diff --git "a/datasets/java/valid.jsonl" "b/datasets/java/valid.jsonl" new file mode 100644--- /dev/null +++ "b/datasets/java/valid.jsonl" @@ -0,0 +1,5183 @@ +{"repo": "google/guava", "path": "android/guava/src/com/google/common/io/CharSource.java", "func_name": "CharSource.copyTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copies the contents of this source to the given sink.\n\n@return the number of characters copied\n@throws IOException if an I/O error occurs while reading from this source or writing to {@code\nsink}", "docstring_tokens": ["Copies", "the", "contents", "of", "this", "source", "to", "the", "given", "sink", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/io/CharSource.java#L208-L222", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/io/CharSource.java", "func_name": "CharSource.read", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads the contents of this source as a string.\n\n@throws IOException if an I/O error occurs while reading from this source", "docstring_tokens": ["Reads", "the", "contents", "of", "this", "source", "as", "a", "string", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/io/CharSource.java#L229-L239", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/io/CharSource.java", "func_name": "CharSource.readLines", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads all the lines of this source as a list of strings. The returned list will be empty if\nthis source is empty.\n\n

Like {@link BufferedReader#readLine()}, this method considers a line to be a sequence of\ntext that is terminated by (but does not include) one of {@code \\r\\n}, {@code \\r} or {@code\n\\n}. If the source's content does not end in a line termination sequence, it is treated as if\nit does.\n\n@throws IOException if an I/O error occurs while reading from this source", "docstring_tokens": ["Reads", "all", "the", "lines", "of", "this", "source", "as", "a", "list", "of", "strings", ".", "The", "returned", "list", "will", "be", "empty", "if", "this", "source", "is", "empty", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/io/CharSource.java#L275-L290", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/io/ReaderInputStream.java", "func_name": "ReaderInputStream.read", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "buffer when possible.", "docstring_tokens": ["buffer", "when", "possible", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/io/ReaderInputStream.java#L124-L186", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/io/ReaderInputStream.java", "func_name": "ReaderInputStream.grow", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a new CharBuffer identical to buf, except twice the capacity.", "docstring_tokens": ["Returns", "a", "new", "CharBuffer", "identical", "to", "buf", "except", "twice", "the", "capacity", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/io/ReaderInputStream.java#L189-L195", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/io/ReaderInputStream.java", "func_name": "ReaderInputStream.readMoreChars", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle the case of underflow caused by needing more input characters.", "docstring_tokens": ["Handle", "the", "case", "of", "underflow", "caused", "by", "needing", "more", "input", "characters", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/io/ReaderInputStream.java#L198-L225", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/io/ReaderInputStream.java", "func_name": "ReaderInputStream.startDraining", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Flips the buffer output buffer so we can start reading bytes from it. If we are starting to\ndrain because there was overflow, and there aren't actually any characters to drain, then the\noverflow must be due to a small output buffer.", "docstring_tokens": ["Flips", "the", "buffer", "output", "buffer", "so", "we", "can", "start", "reading", "bytes", "from", "it", ".", "If", "we", "are", "starting", "to", "drain", "because", "there", "was", "overflow", "and", "there", "aren", "t", "actually", "any", "characters", "to", "drain", "then", "the", "overflow", "must", "be", "due", "to", "a", "small", "output", "buffer", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/io/ReaderInputStream.java#L237-L244", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/Iterables.java", "func_name": "Iterables.toArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copies an iterable's elements into an array.\n\n@param iterable the iterable to copy\n@param type the type of the elements\n@return a newly-allocated array into which all the elements of the iterable have been copied", "docstring_tokens": ["Copies", "an", "iterable", "s", "elements", "into", "an", "array", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/Iterables.java#L316-L319", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/Iterables.java", "func_name": "Iterables.isEmpty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines if the given iterable contains no elements.\n\n

There is no precise {@link Iterator} equivalent to this method, since one can only ask an\niterator whether it has any elements remaining (which one does using {@link\nIterator#hasNext}).\n\n

{@code Stream} equivalent: {@code !stream.findAny().isPresent()}\n\n@return {@code true} if the iterable contains no elements", "docstring_tokens": ["Determines", "if", "the", "given", "iterable", "contains", "no", "elements", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/Iterables.java#L980-L985", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/Iterables.java", "func_name": "Iterables.toIterator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Useful as a public method?", "docstring_tokens": ["Useful", "as", "a", "public", "method?"], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/Iterables.java#L1018-L1025", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/Iterators.java", "func_name": "Iterators.consumingForArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an Iterator that walks the specified array, nulling out elements behind it. This can\navoid memory leaks when an element is no longer necessary.\n\n

This is mainly just to avoid the intermediate ArrayDeque in ConsumingQueueIterator.", "docstring_tokens": ["Returns", "an", "Iterator", "that", "walks", "the", "specified", "array", "nulling", "out", "elements", "behind", "it", ".", "This", "can", "avoid", "memory", "leaks", "when", "an", "element", "is", "no", "longer", "necessary", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/Iterators.java#L449-L469", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/Iterators.java", "func_name": "Iterators.concatNoDefensiveCopy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Concats a varargs array of iterators without making a defensive copy of the array.", "docstring_tokens": ["Concats", "a", "varargs", "array", "of", "iterators", "without", "making", "a", "defensive", "copy", "of", "the", "array", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/Iterators.java#L550-L555", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/Iterators.java", "func_name": "Iterators.clear", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Clears the iterator using its remove method.", "docstring_tokens": ["Clears", "the", "iterator", "using", "its", "remove", "method", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/Iterators.java#L988-L994", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/io/ByteSink.java", "func_name": "ByteSink.write", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes all the given bytes to this sink.\n\n@throws IOException if an I/O occurs while writing to this sink", "docstring_tokens": ["Writes", "all", "the", "given", "bytes", "to", "this", "sink", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/io/ByteSink.java#L96-L109", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/cache/CacheBuilderSpec.java", "func_name": "CacheBuilderSpec.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a CacheBuilderSpec from a string.\n\n@param cacheBuilderSpecification the string form", "docstring_tokens": ["Creates", "a", "CacheBuilderSpec", "from", "a", "string", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/cache/CacheBuilderSpec.java#L136-L158", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/cache/CacheBuilderSpec.java", "func_name": "CacheBuilderSpec.toCacheBuilder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a CacheBuilder configured according to this instance's specification.", "docstring_tokens": ["Returns", "a", "CacheBuilder", "configured", "according", "to", "this", "instance", "s", "specification", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/cache/CacheBuilderSpec.java#L167-L216", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/base/Joiner.java", "func_name": "Joiner.skipNulls", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a joiner with the same behavior as this joiner, except automatically skipping over any\nprovided null elements.", "docstring_tokens": ["Returns", "a", "joiner", "with", "the", "same", "behavior", "as", "this", "joiner", "except", "automatically", "skipping", "over", "any", "provided", "null", "elements", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/base/Joiner.java#L242-L275", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/primitives/ImmutableIntArray.java", "func_name": "ImmutableIntArray.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "okay since we have to copy the just-created array anyway.", "docstring_tokens": ["okay", "since", "we", "have", "to", "copy", "the", "just", "-", "created", "array", "anyway", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/primitives/ImmutableIntArray.java#L138-L145", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/primitives/ImmutableIntArray.java", "func_name": "ImmutableIntArray.subArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a new immutable array containing the values in the specified range.\n\n

Performance note: The returned array has the same full memory footprint as this one\ndoes (no actual copying is performed). To reduce memory usage, use {@code subArray(start,\nend).trimmed()}.", "docstring_tokens": ["Returns", "a", "new", "immutable", "array", "containing", "the", "values", "in", "the", "specified", "range", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/primitives/ImmutableIntArray.java#L436-L441", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/hash/HashingInputStream.java", "func_name": "HashingInputStream.read", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads the next byte of data from the underlying input stream and updates the hasher with the\nbyte read.", "docstring_tokens": ["Reads", "the", "next", "byte", "of", "data", "from", "the", "underlying", "input", "stream", "and", "updates", "the", "hasher", "with", "the", "byte", "read", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/hash/HashingInputStream.java#L50-L58", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/hash/HashingInputStream.java", "func_name": "HashingInputStream.read", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads the specified bytes of data from the underlying input stream and updates the hasher with\nthe bytes read.", "docstring_tokens": ["Reads", "the", "specified", "bytes", "of", "data", "from", "the", "underlying", "input", "stream", "and", "updates", "the", "hasher", "with", "the", "bytes", "read", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/hash/HashingInputStream.java#L64-L72", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/Serialization.java", "func_name": "Serialization.writeMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stores the contents of a map in an output stream, as part of serialization. It does not support\nconcurrent maps whose content may change while the method is running.\n\n

The serialized output consists of the number of entries, first key, first value, second key,\nsecond value, and so on.", "docstring_tokens": ["Stores", "the", "contents", "of", "a", "map", "in", "an", "output", "stream", "as", "part", "of", "serialization", ".", "It", "does", "not", "support", "concurrent", "maps", "whose", "content", "may", "change", "while", "the", "method", "is", "running", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/Serialization.java#L57-L63", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/Serialization.java", "func_name": "Serialization.writeMultiset", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stores the contents of a multiset in an output stream, as part of serialization. It does not\nsupport concurrent multisets whose content may change while the method is running.\n\n

The serialized output consists of the number of distinct elements, the first element, its\ncount, the second element, its count, and so on.", "docstring_tokens": ["Stores", "the", "contents", "of", "a", "multiset", "in", "an", "output", "stream", "as", "part", "of", "serialization", ".", "It", "does", "not", "support", "concurrent", "multisets", "whose", "content", "may", "change", "while", "the", "method", "is", "running", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/Serialization.java#L97-L105", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/Serialization.java", "func_name": "Serialization.getFieldSetter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Secret sauce for setting final fields; don't make it public.", "docstring_tokens": ["Secret", "sauce", "for", "setting", "final", "fields", ";", "don", "t", "make", "it", "public", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/Serialization.java#L185-L192", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/base/Stopwatch.java", "func_name": "Stopwatch.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Starts the stopwatch.\n\n@return this {@code Stopwatch} instance\n@throws IllegalStateException if the stopwatch is already running.", "docstring_tokens": ["Starts", "the", "stopwatch", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/base/Stopwatch.java#L148-L154", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java", "func_name": "ConcurrentHashMultiset.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a number of occurrences of the specified element to this multiset.\n\n@param element the element to add\n@param occurrences the number of occurrences to add\n@return the previous count of the element before the operation; possibly zero\n@throws IllegalArgumentException if {@code occurrences} is negative, or if the resulting amount\nwould exceed {@link Integer#MAX_VALUE}", "docstring_tokens": ["Adds", "a", "number", "of", "occurrences", "of", "the", "specified", "element", "to", "this", "multiset", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java#L201-L248", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/CompactHashSet.java", "func_name": "CompactHashSet.resizeMeMaybe", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resizes the entries storage if necessary.", "docstring_tokens": ["Resizes", "the", "entries", "storage", "if", "necessary", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/CompactHashSet.java#L283-L294", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/net/InetAddresses.java", "func_name": "InetAddresses.bytesToInetAddress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a byte array into an InetAddress.\n\n

{@link InetAddress#getByAddress} is documented as throwing a checked exception \"if IP\naddress is of illegal length.\" We replace it with an unchecked exception, for use by callers\nwho already know that addr is an array of length 4 or 16.\n\n@param addr the raw 4-byte or 16-byte IP address in big-endian order\n@return an InetAddress object created from the raw IP address", "docstring_tokens": ["Convert", "a", "byte", "array", "into", "an", "InetAddress", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/net/InetAddresses.java#L317-L323", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/net/InetAddresses.java", "func_name": "InetAddresses.compressLongestRunOfZeroes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Identify and mark the longest run of zeroes in an IPv6 address.\n\n

Only runs of two or more hextets are considered. In case of a tie, the leftmost run wins. If\na qualifying run is found, its hextets are replaced by the sentinel value -1.\n\n@param hextets {@code int[]} mutable array of eight 16-bit hextets", "docstring_tokens": ["Identify", "and", "mark", "the", "longest", "run", "of", "zeroes", "in", "an", "IPv6", "address", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/net/InetAddresses.java#L364-L385", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/net/InetAddresses.java", "func_name": "InetAddresses.hextetsToIPv6String", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a list of hextets into a human-readable IPv6 address.\n\n

In order for \"::\" compression to work, the input should contain negative sentinel values in\nplace of the elided zeroes.\n\n@param hextets {@code int[]} array of eight 16-bit hextets, or -1s", "docstring_tokens": ["Convert", "a", "list", "of", "hextets", "into", "a", "human", "-", "readable", "IPv6", "address", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/net/InetAddresses.java#L395-L417", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/net/InetAddresses.java", "func_name": "InetAddresses.forUriString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an InetAddress representing the literal IPv4 or IPv6 host portion of a URL, encoded in\nthe format specified by RFC 3986 section 3.2.2.\n\n

This function is similar to {@link InetAddresses#forString(String)}, however, it requires\nthat IPv6 addresses are surrounded by square brackets.\n\n

This function is the inverse of {@link InetAddresses#toUriString(java.net.InetAddress)}.\n\n@param hostAddr A RFC 3986 section 3.2.2 encoded IPv4 or IPv6 address\n@return an InetAddress representing the address in {@code hostAddr}\n@throws IllegalArgumentException if {@code hostAddr} is not a valid IPv4 address, or IPv6\naddress surrounded by square brackets", "docstring_tokens": ["Returns", "an", "InetAddress", "representing", "the", "literal", "IPv4", "or", "IPv6", "host", "portion", "of", "a", "URL", "encoded", "in", "the", "format", "specified", "by", "RFC", "3986", "section", "3", ".", "2", ".", "2", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/net/InetAddresses.java#L459-L466", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/net/InetAddresses.java", "func_name": "InetAddresses.isCompatIPv4Address", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Evaluates whether the argument is an IPv6 \"compat\" address.\n\n

An \"IPv4 compatible\", or \"compat\", address is one with 96 leading bits of zero, with the\nremaining 32 bits interpreted as an IPv4 address. These are conventionally represented in\nstring literals as {@code \"::192.168.0.1\"}, though {@code \"::c0a8:1\"} is also considered an\nIPv4 compatible address (and equivalent to {@code \"::192.168.0.1\"}).\n\n

For more on IPv4 compatible addresses see section 2.5.5.1 of RFC 4291.\n\n

NOTE: This method is different from {@link Inet6Address#isIPv4CompatibleAddress} in that it\nmore correctly classifies {@code \"::\"} and {@code \"::1\"} as proper IPv6 addresses (which they\nare), NOT IPv4 compatible addresses (which they are generally NOT considered to be).\n\n@param ip {@link Inet6Address} to be examined for embedded IPv4 compatible address format\n@return {@code true} if the argument is a valid \"compat\" address", "docstring_tokens": ["Evaluates", "whether", "the", "argument", "is", "an", "IPv6", "compat", "address", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/net/InetAddresses.java#L521-L535", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/net/InetAddresses.java", "func_name": "InetAddresses.getCompatIPv4Address", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the IPv4 address embedded in an IPv4 compatible address.\n\n@param ip {@link Inet6Address} to be examined for an embedded IPv4 address\n@return {@link Inet4Address} of the embedded IPv4 address\n@throws IllegalArgumentException if the argument is not a valid IPv4 compatible address", "docstring_tokens": ["Returns", "the", "IPv4", "address", "embedded", "in", "an", "IPv4", "compatible", "address", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/net/InetAddresses.java#L544-L549", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/net/InetAddresses.java", "func_name": "InetAddresses.isTeredoAddress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Evaluates whether the argument is a Teredo address.\n\n

Teredo addresses begin with the {@code \"2001::/32\"} prefix.\n\n@param ip {@link Inet6Address} to be examined for Teredo address format\n@return {@code true} if the argument is a Teredo address", "docstring_tokens": ["Evaluates", "whether", "the", "argument", "is", "a", "Teredo", "address", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/net/InetAddresses.java#L651-L657", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/net/InetAddresses.java", "func_name": "InetAddresses.isIsatapAddress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Evaluates whether the argument is an ISATAP address.\n\n

From RFC 5214: \"ISATAP interface identifiers are constructed in Modified EUI-64 format [...]\nby concatenating the 24-bit IANA OUI (00-00-5E), the 8-bit hexadecimal value 0xFE, and a 32-bit\nIPv4 address in network byte order [...]\"\n\n

For more on ISATAP addresses see section 6.1 of RFC 5214.\n\n@param ip {@link Inet6Address} to be examined for ISATAP address format\n@return {@code true} if the argument is an ISATAP address", "docstring_tokens": ["Evaluates", "whether", "the", "argument", "is", "an", "ISATAP", "address", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/net/InetAddresses.java#L700-L718", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/net/InetAddresses.java", "func_name": "InetAddresses.getIsatapIPv4Address", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the IPv4 address embedded in an ISATAP address.\n\n@param ip {@link Inet6Address} to be examined for embedded IPv4 in ISATAP address\n@return {@link Inet4Address} of embedded IPv4 in an ISATAP address\n@throws IllegalArgumentException if the argument is not a valid IPv6 ISATAP address", "docstring_tokens": ["Returns", "the", "IPv4", "address", "embedded", "in", "an", "ISATAP", "address", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/net/InetAddresses.java#L727-L731", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/net/InetAddresses.java", "func_name": "InetAddresses.getEmbeddedIPv4ClientAddress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Examines the Inet6Address to extract the embedded IPv4 client address if the InetAddress is an\nIPv6 address of one of the specified address types that contain an embedded IPv4 address.\n\n

NOTE: ISATAP addresses are explicitly excluded from this method due to their trivial\nspoofability. With other transition addresses spoofing involves (at least) infection of one's\nBGP routing table.\n\n@param ip {@link Inet6Address} to be examined for embedded IPv4 client address\n@return {@link Inet4Address} of embedded IPv4 client address\n@throws IllegalArgumentException if the argument does not have a valid embedded IPv4 address", "docstring_tokens": ["Examines", "the", "Inet6Address", "to", "extract", "the", "embedded", "IPv4", "client", "address", "if", "the", "InetAddress", "is", "an", "IPv6", "address", "of", "one", "of", "the", "specified", "address", "types", "that", "contain", "an", "embedded", "IPv4", "address", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/net/InetAddresses.java#L761-L775", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/net/InetAddresses.java", "func_name": "InetAddresses.isMappedIPv4Address", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Evaluates whether the argument is an \"IPv4 mapped\" IPv6 address.\n\n

An \"IPv4 mapped\" address is anything in the range ::ffff:0:0/96 (sometimes written as\n::ffff:0.0.0.0/96), with the last 32 bits interpreted as an IPv4 address.\n\n

For more on IPv4 mapped addresses see section 2.5.5.2 of RFC 4291.\n\n

Note: This method takes a {@code String} argument because {@link InetAddress} automatically\ncollapses mapped addresses to IPv4. (It is actually possible to avoid this using one of the\nobscure {@link Inet6Address} methods, but it would be unwise to depend on such a\npoorly-documented feature.)\n\n@param ipString {@code String} to be examined for embedded IPv4-mapped IPv6 address format\n@return {@code true} if the argument is a valid \"mapped\" address\n@since 10.0", "docstring_tokens": ["Evaluates", "whether", "the", "argument", "is", "an", "IPv4", "mapped", "IPv6", "address", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/net/InetAddresses.java#L795-L811", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/net/InetAddresses.java", "func_name": "InetAddresses.decrement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a new InetAddress that is one less than the passed in address. This method works for\nboth IPv4 and IPv6 addresses.\n\n@param address the InetAddress to decrement\n@return a new InetAddress that is one less than the passed in address\n@throws IllegalArgumentException if InetAddress is at the beginning of its range\n@since 18.0", "docstring_tokens": ["Returns", "a", "new", "InetAddress", "that", "is", "one", "less", "than", "the", "passed", "in", "address", ".", "This", "method", "works", "for", "both", "IPv4", "and", "IPv6", "addresses", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/net/InetAddresses.java#L935-L947", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/Files.java", "func_name": "Files.newReader", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a buffered reader that reads from a file using the given character set.\n\n

{@link java.nio.file.Path} equivalent: {@link\njava.nio.file.Files#newBufferedReader(java.nio.file.Path, Charset)}.\n\n@param file the file to read from\n@param charset the charset used to decode the input stream; see {@link StandardCharsets} for\nhelpful predefined constants\n@return the buffered reader", "docstring_tokens": ["Returns", "a", "buffered", "reader", "that", "reads", "from", "a", "file", "using", "the", "given", "character", "set", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/Files.java#L85-L90", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/Files.java", "func_name": "Files.write", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Overwrites a file with the contents of a byte array.\n\n

{@link java.nio.file.Path} equivalent: {@link\njava.nio.file.Files#write(java.nio.file.Path, byte[], java.nio.file.OpenOption...)}.\n\n@param from the bytes to write\n@param to the destination file\n@throws IOException if an I/O error occurs", "docstring_tokens": ["Overwrites", "a", "file", "with", "the", "contents", "of", "a", "byte", "array", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/Files.java#L267-L270", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/Files.java", "func_name": "Files.copy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copies all bytes from a file to an output stream.\n\n

{@link java.nio.file.Path} equivalent: {@link\njava.nio.file.Files#copy(java.nio.file.Path, OutputStream)}.\n\n@param from the source file\n@param to the output stream\n@throws IOException if an I/O error occurs", "docstring_tokens": ["Copies", "all", "bytes", "from", "a", "file", "to", "an", "output", "stream", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/Files.java#L299-L302", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/Files.java", "func_name": "Files.copy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copies all the bytes from one file to another.\n\n

Copying is not an atomic operation - in the case of an I/O error, power loss, process\ntermination, or other problems, {@code to} may not be a complete copy of {@code from}. If you\nneed to guard against those conditions, you should employ other file-level synchronization.\n\n

Warning: If {@code to} represents an existing file, that file will be overwritten\nwith the contents of {@code from}. If {@code to} and {@code from} refer to the same\nfile, the contents of that file will be deleted.\n\n

{@link java.nio.file.Path} equivalent: {@link\njava.nio.file.Files#copy(java.nio.file.Path, java.nio.file.Path, java.nio.file.CopyOption...)}.\n\n@param from the source file\n@param to the destination file\n@throws IOException if an I/O error occurs\n@throws IllegalArgumentException if {@code from.equals(to)}", "docstring_tokens": ["Copies", "all", "the", "bytes", "from", "one", "file", "to", "another", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/Files.java#L323-L327", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/Files.java", "func_name": "Files.touch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an empty file or updates the last updated timestamp on the same as the unix command of\nthe same name.\n\n@param file the file to create or update\n@throws IOException if an I/O error occurs", "docstring_tokens": ["Creates", "an", "empty", "file", "or", "updates", "the", "last", "updated", "timestamp", "on", "the", "same", "as", "the", "unix", "command", "of", "the", "same", "name", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/Files.java#L440-L447", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/Files.java", "func_name": "Files.readFirstLine", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads the first line from a file. The line does not include line-termination characters, but\ndoes include other leading and trailing whitespace.\n\n@param file the file to read from\n@param charset the charset used to decode the input stream; see {@link StandardCharsets} for\nhelpful predefined constants\n@return the first line, or null if the file is empty\n@throws IOException if an I/O error occurs\n@deprecated Prefer {@code asCharSource(file, charset).readFirstLine()}. This method is\nscheduled to be removed in January 2019.", "docstring_tokens": ["Reads", "the", "first", "line", "from", "a", "file", ".", "The", "line", "does", "not", "include", "line", "-", "termination", "characters", "but", "does", "include", "other", "leading", "and", "trailing", "whitespace", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/Files.java#L518-L523", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/ImmutableBiMap.java", "func_name": "ImmutableBiMap.builderWithExpectedSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a new builder, expecting the specified number of entries to be added.\n\n

If {@code expectedSize} is exactly the number of entries added to the builder before {@link\nBuilder#build} is called, the builder is likely to perform better than an unsized {@link\n#builder()} would have.\n\n

It is not specified if any performance benefits apply if {@code expectedSize} is close to,\nbut not exactly, the number of entries added to the builder.\n\n@since 23.1", "docstring_tokens": ["Returns", "a", "new", "builder", "expecting", "the", "specified", "number", "of", "entries", "to", "be", "added", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/ImmutableBiMap.java#L135-L139", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/ImmutableBiMap.java", "func_name": "ImmutableBiMap.forcePut", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Guaranteed to throw an exception and leave the bimap unmodified.\n\n@throws UnsupportedOperationException always\n@deprecated Unsupported operation.", "docstring_tokens": ["Guaranteed", "to", "throw", "an", "exception", "and", "leave", "the", "bimap", "unmodified", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/ImmutableBiMap.java#L401-L406", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/MinMaxPriorityQueue.java", "func_name": "MinMaxPriorityQueue.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new min-max priority queue using natural order, no maximum size, and initially\ncontaining the given elements.", "docstring_tokens": ["Creates", "a", "new", "min", "-", "max", "priority", "queue", "using", "natural", "order", "no", "maximum", "size", "and", "initially", "containing", "the", "given", "elements", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/MinMaxPriorityQueue.java#L116-L119", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/MinMaxPriorityQueue.java", "func_name": "MinMaxPriorityQueue.calculateNewCapacity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns ~2x the old capacity if small; ~1.5x otherwise.", "docstring_tokens": ["Returns", "~2x", "the", "old", "capacity", "if", "small", ";", "~1", ".", "5x", "otherwise", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/MinMaxPriorityQueue.java#L945-L950", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/hash/Murmur3_32HashFunction.java", "func_name": "Murmur3_32HashFunction.fmix", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finalization mix - force all bits of a hash block to avalanche", "docstring_tokens": ["Finalization", "mix", "-", "force", "all", "bits", "of", "a", "hash", "block", "to", "avalanche"], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/hash/Murmur3_32HashFunction.java#L249-L257", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/graph/ElementOrder.java", "func_name": "ElementOrder.natural", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an instance which specifies that the natural ordering of the elements is guaranteed.", "docstring_tokens": ["Returns", "an", "instance", "which", "specifies", "that", "the", "natural", "ordering", "of", "the", "elements", "is", "guaranteed", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/graph/ElementOrder.java#L89-L91", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.enter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enters this monitor. Blocks at most the given time.\n\n@return whether the monitor was entered", "docstring_tokens": ["Enters", "this", "monitor", ".", "Blocks", "at", "most", "the", "given", "time", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L371-L394", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.enterInterruptibly", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enters this monitor. Blocks at most the given time, and may be interrupted.\n\n@return whether the monitor was entered\n@throws InterruptedException if interrupted while waiting", "docstring_tokens": ["Enters", "this", "monitor", ".", "Blocks", "at", "most", "the", "given", "time", "and", "may", "be", "interrupted", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L411-L414", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.enterWhen", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enters this monitor when the guard is satisfied. Blocks indefinitely, but may be interrupted.\n\n@throws InterruptedException if interrupted while waiting", "docstring_tokens": ["Enters", "this", "monitor", "when", "the", "guard", "is", "satisfied", ".", "Blocks", "indefinitely", "but", "may", "be", "interrupted", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L432-L451", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.enterWhen", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enters this monitor when the guard is satisfied. Blocks at most the given time, including both\nthe time to acquire the lock and the time to wait for the guard to be satisfied, and may be\ninterrupted.\n\n@return whether the monitor was entered, which guarantees that the guard is now satisfied\n@throws InterruptedException if interrupted while waiting", "docstring_tokens": ["Enters", "this", "monitor", "when", "the", "guard", "is", "satisfied", ".", "Blocks", "at", "most", "the", "given", "time", "including", "both", "the", "time", "to", "acquire", "the", "lock", "and", "the", "time", "to", "wait", "for", "the", "guard", "to", "be", "satisfied", "and", "may", "be", "interrupted", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L461-L511", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.enterWhenUninterruptibly", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enters this monitor when the guard is satisfied. Blocks indefinitely.", "docstring_tokens": ["Enters", "this", "monitor", "when", "the", "guard", "is", "satisfied", ".", "Blocks", "indefinitely", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L514-L533", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.enterIf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enters this monitor if the guard is satisfied. Blocks indefinitely acquiring the lock, but does\nnot wait for the guard to be satisfied.\n\n@return whether the monitor was entered, which guarantees that the guard is now satisfied", "docstring_tokens": ["Enters", "this", "monitor", "if", "the", "guard", "is", "satisfied", ".", "Blocks", "indefinitely", "acquiring", "the", "lock", "but", "does", "not", "wait", "for", "the", "guard", "to", "be", "satisfied", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L608-L623", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.enterIf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enters this monitor if the guard is satisfied. Blocks at most the given time acquiring the\nlock, but does not wait for the guard to be satisfied.\n\n@return whether the monitor was entered, which guarantees that the guard is now satisfied", "docstring_tokens": ["Enters", "this", "monitor", "if", "the", "guard", "is", "satisfied", ".", "Blocks", "at", "most", "the", "given", "time", "acquiring", "the", "lock", "but", "does", "not", "wait", "for", "the", "guard", "to", "be", "satisfied", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L631-L648", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.enterIfInterruptibly", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enters this monitor if the guard is satisfied. Blocks indefinitely acquiring the lock, but does\nnot wait for the guard to be satisfied, and may be interrupted.\n\n@return whether the monitor was entered, which guarantees that the guard is now satisfied\n@throws InterruptedException if interrupted while waiting", "docstring_tokens": ["Enters", "this", "monitor", "if", "the", "guard", "is", "satisfied", ".", "Blocks", "indefinitely", "acquiring", "the", "lock", "but", "does", "not", "wait", "for", "the", "guard", "to", "be", "satisfied", "and", "may", "be", "interrupted", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L657-L672", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.tryEnterIf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enters this monitor if it is possible to do so immediately and the guard is satisfied. Does not\nblock acquiring the lock and does not wait for the guard to be satisfied.\n\n

Note: This method disregards the fairness setting of this monitor.\n\n@return whether the monitor was entered, which guarantees that the guard is now satisfied", "docstring_tokens": ["Enters", "this", "monitor", "if", "it", "is", "possible", "to", "do", "so", "immediately", "and", "the", "guard", "is", "satisfied", ".", "Does", "not", "block", "acquiring", "the", "lock", "and", "does", "not", "wait", "for", "the", "guard", "to", "be", "satisfied", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L709-L726", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.waitFor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Waits for the guard to be satisfied. Waits indefinitely, but may be interrupted. May be called\nonly by a thread currently occupying this monitor.\n\n@throws InterruptedException if interrupted while waiting", "docstring_tokens": ["Waits", "for", "the", "guard", "to", "be", "satisfied", ".", "Waits", "indefinitely", "but", "may", "be", "interrupted", ".", "May", "be", "called", "only", "by", "a", "thread", "currently", "occupying", "this", "monitor", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L734-L741", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.waitForUninterruptibly", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Waits for the guard to be satisfied. Waits indefinitely. May be called only by a thread\ncurrently occupying this monitor.", "docstring_tokens": ["Waits", "for", "the", "guard", "to", "be", "satisfied", ".", "Waits", "indefinitely", ".", "May", "be", "called", "only", "by", "a", "thread", "currently", "occupying", "this", "monitor", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L769-L776", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.waitForUninterruptibly", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Waits for the guard to be satisfied. Waits at most the given time. May be called only by a\nthread currently occupying this monitor.\n\n@return whether the guard is now satisfied", "docstring_tokens": ["Waits", "for", "the", "guard", "to", "be", "satisfied", ".", "Waits", "at", "most", "the", "given", "time", ".", "May", "be", "called", "only", "by", "a", "thread", "currently", "occupying", "this", "monitor", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L784-L814", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.getWaitQueueLength", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an estimate of the number of threads waiting for the given guard to become satisfied.\nNote that because timeouts and interrupts may occur at any time, the estimate serves only as an\nupper bound on the actual number of waiters. This method is designed for use in monitoring of\nthe system state, not for synchronization control.", "docstring_tokens": ["Returns", "an", "estimate", "of", "the", "number", "of", "threads", "waiting", "for", "the", "given", "guard", "to", "become", "satisfied", ".", "Note", "that", "because", "timeouts", "and", "interrupts", "may", "occur", "at", "any", "time", "the", "estimate", "serves", "only", "as", "an", "upper", "bound", "on", "the", "actual", "number", "of", "waiters", ".", "This", "method", "is", "designed", "for", "use", "in", "monitoring", "of", "the", "system", "state", "not", "for", "synchronization", "control", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L904-L914", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.signalNextWaiter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Signals some other thread waiting on a satisfied guard, if one exists.\n\n

We manage calls to this method carefully, to signal only when necessary, but never losing a\nsignal, which is the classic problem of this kind of concurrency construct. We must signal if\nthe current thread is about to relinquish the lock and may have changed the state protected by\nthe monitor, thereby causing some guard to be satisfied.\n\n

In addition, any thread that has been signalled when its guard was satisfied acquires the\nresponsibility of signalling the next thread when it again relinquishes the lock. Unlike a\nnormal Condition, there is no guarantee that an interrupted thread has not been signalled,\nsince the concurrency control must manage multiple Conditions. So this method must generally be\ncalled when waits are interrupted.\n\n

On the other hand, if a signalled thread wakes up to discover that its guard is still not\nsatisfied, it does *not* need to call this method before returning to wait. This can only\nhappen due to spurious wakeup (ignorable) or another thread acquiring the lock before the\ncurrent thread can and returning the guard to the unsatisfied state. In the latter case the\nother thread (last thread modifying the state protected by the monitor) takes over the\nresponsibility of signalling the next waiter.\n\n

This method must not be called from within a beginWaitingFor/endWaitingFor block, or else\nthe current thread's guard might be mistakenly signalled, leading to a lost signal.", "docstring_tokens": ["Signals", "some", "other", "thread", "waiting", "on", "a", "satisfied", "guard", "if", "one", "exists", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L980-L988", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.signalAllWaiters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Signals all threads waiting on guards.", "docstring_tokens": ["Signals", "all", "threads", "waiting", "on", "guards", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L1023-L1028", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.beginWaitingFor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Records that the current thread is about to wait on the specified guard.", "docstring_tokens": ["Records", "that", "the", "current", "thread", "is", "about", "to", "wait", "on", "the", "specified", "guard", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L1031-L1039", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.endWaitingFor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Records that the current thread is no longer waiting on the specified guard.", "docstring_tokens": ["Records", "that", "the", "current", "thread", "is", "no", "longer", "waiting", "on", "the", "specified", "guard", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L1042-L1059", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/Monitor.java", "func_name": "Monitor.awaitNanos", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Caller should check before calling that guard is not satisfied.", "docstring_tokens": ["Caller", "should", "check", "before", "calling", "that", "guard", "is", "not", "satisfied", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/Monitor.java#L1098-L1122", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/MoreExecutors.java", "func_name": "MoreExecutors.shutdownAndAwaitTermination", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shuts down the given executor service gradually, first disabling new submissions and later, if\nnecessary, cancelling remaining tasks.\n\n

The method takes the following steps:\n\n

    \n
  1. calls {@link ExecutorService#shutdown()}, disabling acceptance of new submitted tasks.\n
  2. awaits executor service termination for half of the specified timeout.\n
  3. if the timeout expires, it calls {@link ExecutorService#shutdownNow()}, cancelling\npending tasks and interrupting running tasks.\n
  4. awaits executor service termination for the other half of the specified timeout.\n
\n\n

If, at any step of the process, the calling thread is interrupted, the method calls {@link\nExecutorService#shutdownNow()} and returns.\n\n@param service the {@code ExecutorService} to shut down\n@param timeout the maximum time to wait for the {@code ExecutorService} to terminate\n@param unit the time unit of the timeout argument\n@return {@code true} if the {@code ExecutorService} was terminated successfully, {@code false}\nif the call timed out or was interrupted\n@since 17.0", "docstring_tokens": ["Shuts", "down", "the", "given", "executor", "service", "gradually", "first", "disabling", "new", "submissions", "and", "later", "if", "necessary", "cancelling", "remaining", "tasks", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/MoreExecutors.java#L931-L955", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/CharSink.java", "func_name": "CharSink.write", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the given character sequence to this sink.\n\n@throws IOException if an I/O error while writing to this sink", "docstring_tokens": ["Writes", "the", "given", "character", "sequence", "to", "this", "sink", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/CharSink.java#L92-L105", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/util/concurrent/ExecutionList.java", "func_name": "ExecutionList.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs this execution list, executing all existing pairs in the order they were added. However,\nnote that listeners added after this point may be executed before those previously added, and\nnote that the execution order of all listeners is ultimately chosen by the implementations of\nthe supplied executors.\n\n

This method is idempotent. Calling it several times in parallel is semantically equivalent\nto calling it exactly once.\n\n@since 10.0 (present in 1.0 as {@code run})", "docstring_tokens": ["Runs", "this", "execution", "list", "executing", "all", "existing", "pairs", "in", "the", "order", "they", "were", "added", ".", "However", "note", "that", "listeners", "added", "after", "this", "point", "may", "be", "executed", "before", "those", "previously", "added", "and", "note", "that", "the", "execution", "order", "of", "all", "listeners", "is", "ultimately", "chosen", "by", "the", "implementations", "of", "the", "supplied", "executors", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/util/concurrent/ExecutionList.java#L101-L133", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/hash/LittleEndianByteArray.java", "func_name": "LittleEndianByteArray.load64Safely", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Similar to load64, but allows offset + 8 > input.length, padding the result with zeroes. This\nhas to explicitly reverse the order of the bytes as it packs them into the result which makes\nit slower than the native version.\n\n@param input the input bytes\n@param offset the offset into the array at which to start reading\n@param length the number of bytes from the input to read\n@return a long of a concatenated 8 bytes", "docstring_tokens": ["Similar", "to", "load64", "but", "allows", "offset", "+", "8", ">", "input", ".", "length", "padding", "the", "result", "with", "zeroes", ".", "This", "has", "to", "explicitly", "reverse", "the", "order", "of", "the", "bytes", "as", "it", "packs", "them", "into", "the", "result", "which", "makes", "it", "slower", "than", "the", "native", "version", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/hash/LittleEndianByteArray.java#L57-L69", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/hash/LittleEndianByteArray.java", "func_name": "LittleEndianByteArray.store64", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Store 8 bytes into the provided array at the indicated offset, using the value provided.\n\n@param sink the output byte array\n@param offset the offset into the array at which to start writing\n@param value the value to write", "docstring_tokens": ["Store", "8", "bytes", "into", "the", "provided", "array", "at", "the", "indicated", "offset", "using", "the", "value", "provided", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/hash/LittleEndianByteArray.java#L78-L83", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/hash/LittleEndianByteArray.java", "func_name": "LittleEndianByteArray.load32", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load 4 bytes from the provided array at the indicated offset.\n\n@param source the input bytes\n@param offset the offset into the array at which to start\n@return the value found in the array in the form of a long", "docstring_tokens": ["Load", "4", "bytes", "from", "the", "provided", "array", "at", "the", "indicated", "offset", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/hash/LittleEndianByteArray.java#L92-L98", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/net/MediaType.java", "func_name": "MediaType.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new media type with the given type and subtype.\n\n@throws IllegalArgumentException if type or subtype is invalid or if a wildcard is used for the\ntype, but not the subtype.", "docstring_tokens": ["Creates", "a", "new", "media", "type", "with", "the", "given", "type", "and", "subtype", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/net/MediaType.java#L845-L849", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/net/MediaType.java", "func_name": "MediaType.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses a media type from its string representation.\n\n@throws IllegalArgumentException if the input is not parsable", "docstring_tokens": ["Parses", "a", "media", "type", "from", "its", "string", "representation", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/net/MediaType.java#L930-L967", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/reflect/TypeCapture.java", "func_name": "TypeCapture.capture", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the captured type.", "docstring_tokens": ["Returns", "the", "captured", "type", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/reflect/TypeCapture.java#L30-L34", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/Sets.java", "func_name": "Sets.removeAllImpl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove each element in an iterable from a set.", "docstring_tokens": ["Remove", "each", "element", "in", "an", "iterable", "from", "a", "set", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/Sets.java#L1813-L1819", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/escape/CharEscaper.java", "func_name": "CharEscaper.escape", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the escaped form of a given literal string.\n\n@param string the literal string to be escaped\n@return the escaped form of {@code string}\n@throws NullPointerException if {@code string} is null", "docstring_tokens": ["Returns", "the", "escaped", "form", "of", "a", "given", "literal", "string", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/escape/CharEscaper.java#L55-L66", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/escape/CharEscaper.java", "func_name": "CharEscaper.growBuffer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method to grow the character buffer as needed, this only happens once in a while so it's\nok if it's in a method call. If the index passed in is 0 then no copying will be done.", "docstring_tokens": ["Helper", "method", "to", "grow", "the", "character", "buffer", "as", "needed", "this", "only", "happens", "once", "in", "a", "while", "so", "it", "s", "ok", "if", "it", "s", "in", "a", "method", "call", ".", "If", "the", "index", "passed", "in", "is", "0", "then", "no", "copying", "will", "be", "done", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/escape/CharEscaper.java#L162-L171", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/cache/CacheBuilder.java", "func_name": "CacheBuilder.concurrencyLevel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Guides the allowed concurrency among update operations. Used as a hint for internal sizing. The\ntable is internally partitioned to try to permit the indicated number of concurrent updates\nwithout contention. Because assignment of entries to these partitions is not necessarily\nuniform, the actual concurrency observed may vary. Ideally, you should choose a value to\naccommodate as many threads as will ever concurrently modify the table. Using a significantly\nhigher value than you need can waste space and time, and a significantly lower value can lead\nto thread contention. But overestimates and underestimates within an order of magnitude do not\nusually have much noticeable impact. A value of one permits only one thread to modify the cache\nat a time, but since read operations and cache loading computations can proceed concurrently,\nthis still yields higher concurrency than full synchronization.\n\n

Defaults to 4. Note:The default may change in the future. If you care about this\nvalue, you should always choose it explicitly.\n\n

The current implementation uses the concurrency level to create a fixed number of hashtable\nsegments, each governed by its own write lock. The segment lock is taken once for each explicit\nwrite, and twice for each cache loading computation (once prior to loading the new value, and\nonce after loading completes). Much internal cache management is performed at the segment\ngranularity. For example, access queues and write queues are kept per segment when they are\nrequired by the selected eviction algorithm. As such, when writing unit tests it is not\nuncommon to specify {@code concurrencyLevel(1)} in order to achieve more deterministic eviction\nbehavior.\n\n

Note that future implementations may abandon segment locking in favor of more advanced\nconcurrency controls.\n\n@return this {@code CacheBuilder} instance (for chaining)\n@throws IllegalArgumentException if {@code concurrencyLevel} is nonpositive\n@throws IllegalStateException if a concurrency level was already set", "docstring_tokens": ["Guides", "the", "allowed", "concurrency", "among", "update", "operations", ".", "Used", "as", "a", "hint", "for", "internal", "sizing", ".", "The", "table", "is", "internally", "partitioned", "to", "try", "to", "permit", "the", "indicated", "number", "of", "concurrent", "updates", "without", "contention", ".", "Because", "assignment", "of", "entries", "to", "these", "partitions", "is", "not", "necessarily", "uniform", "the", "actual", "concurrency", "observed", "may", "vary", ".", "Ideally", "you", "should", "choose", "a", "value", "to", "accommodate", "as", "many", "threads", "as", "will", "ever", "concurrently", "modify", "the", "table", ".", "Using", "a", "significantly", "higher", "value", "than", "you", "need", "can", "waste", "space", "and", "time", "and", "a", "significantly", "lower", "value", "can", "lead", "to", "thread", "contention", ".", "But", "overestimates", "and", "underestimates", "within", "an", "order", "of", "magnitude", "do", "not", "usually", "have", "much", "noticeable", "impact", ".", "A", "value", "of", "one", "permits", "only", "one", "thread", "to", "modify", "the", "cache", "at", "a", "time", "but", "since", "read", "operations", "and", "cache", "loading", "computations", "can", "proceed", "concurrently", "this", "still", "yields", "higher", "concurrency", "than", "full", "synchronization", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/cache/CacheBuilder.java#L399-L407", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/cache/CacheBuilder.java", "func_name": "CacheBuilder.build", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds a cache which does not automatically load values when keys are requested.\n\n

Consider {@link #build(CacheLoader)} instead, if it is feasible to implement a {@code\nCacheLoader}.\n\n

This method does not alter the state of this {@code CacheBuilder} instance, so it can be\ninvoked again to create multiple independent caches.\n\n@return a cache having the requested features\n@since 11.0", "docstring_tokens": ["Builds", "a", "cache", "which", "does", "not", "automatically", "load", "values", "when", "keys", "are", "requested", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/cache/CacheBuilder.java#L863-L867", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/CompactHashMap.java", "func_name": "CompactHashMap.allocArrays", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle lazy allocation of arrays.", "docstring_tokens": ["Handle", "lazy", "allocation", "of", "arrays", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/CompactHashMap.java#L179-L189", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/math/StatsAccumulator.java", "func_name": "StatsAccumulator.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the given value to the dataset.", "docstring_tokens": ["Adds", "the", "given", "value", "to", "the", "dataset", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/math/StatsAccumulator.java#L48-L71", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/math/StatsAccumulator.java", "func_name": "StatsAccumulator.calculateNewMeanNonFinite", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates the new value for the accumulated mean when a value is added, in the case where at\nleast one of the previous mean and the value is non-finite.", "docstring_tokens": ["Calculates", "the", "new", "value", "for", "the", "accumulated", "mean", "when", "a", "value", "is", "added", "in", "the", "case", "where", "at", "least", "one", "of", "the", "previous", "mean", "and", "the", "value", "is", "non", "-", "finite", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/math/StatsAccumulator.java#L348-L373", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/ImmutableSet.java", "func_name": "ImmutableSet.rebuildHashTable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds a new open-addressed hash table from the first n objects in elements.", "docstring_tokens": ["Builds", "a", "new", "open", "-", "addressed", "hash", "table", "from", "the", "first", "n", "objects", "in", "elements", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/ImmutableSet.java#L440-L455", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/ImmutableSet.java", "func_name": "ImmutableSet.chooseTableSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an array size suitable for the backing array of a hash table that uses open addressing\nwith linear probing in its implementation. The returned size is the smallest power of two that\ncan hold setSize elements with the desired load factor. Always returns at least setSize + 2.", "docstring_tokens": ["Returns", "an", "array", "size", "suitable", "for", "the", "backing", "array", "of", "a", "hash", "table", "that", "uses", "open", "addressing", "with", "linear", "probing", "in", "its", "implementation", ".", "The", "returned", "size", "is", "the", "smallest", "power", "of", "two", "that", "can", "hold", "setSize", "elements", "with", "the", "desired", "load", "factor", ".", "Always", "returns", "at", "least", "setSize", "+", "2", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/ImmutableSet.java#L640-L656", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableTable.java", "func_name": "ImmutableTable.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an empty immutable table.", "docstring_tokens": ["Returns", "an", "empty", "immutable", "table", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableTable.java#L46-L49", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableTable.java", "func_name": "ImmutableTable.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an immutable table containing a single cell.", "docstring_tokens": ["Returns", "an", "immutable", "table", "containing", "a", "single", "cell", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableTable.java#L52-L54", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableTable.java", "func_name": "ImmutableTable.copyOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an immutable copy of the provided table.\n\n

The {@link Table#cellSet()} iteration order of the provided table determines the iteration\nordering of all views in the returned table. Note that some views of the original table and the\ncopied table may have different iteration orders. For more control over the ordering, create a\n{@link Builder} and call {@link Builder#orderRowsBy}, {@link Builder#orderColumnsBy}, and\n{@link Builder#putAll}\n\n

Despite the method name, this method attempts to avoid actually copying the data when it is\nsafe to do so. The exact circumstances under which a copy will or will not be performed are\nundocumented and subject to change.", "docstring_tokens": ["Returns", "an", "immutable", "copy", "of", "the", "provided", "table", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableTable.java#L69-L78", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/base/Converter.java", "func_name": "Converter.identity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a serializable converter that always converts or reverses an object to itself.", "docstring_tokens": ["Returns", "a", "serializable", "converter", "that", "always", "converts", "or", "reverses", "an", "object", "to", "itself", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/base/Converter.java#L477-L480", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/RegularImmutableTable.java", "func_name": "RegularImmutableTable.forOrderedComponents", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A factory that chooses the most space-efficient representation of the table.", "docstring_tokens": ["A", "factory", "that", "chooses", "the", "most", "space", "-", "efficient", "representation", "of", "the", "table", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/RegularImmutableTable.java#L161-L170", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java", "func_name": "ImmutableSortedMultiset.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an immutable sorted multiset containing a single element.", "docstring_tokens": ["Returns", "an", "immutable", "sorted", "multiset", "containing", "a", "single", "element", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java#L61-L66", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java", "func_name": "ImmutableSortedMultiset.reverseOrder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a builder that creates immutable sorted multisets whose elements are ordered by the\nreverse of their natural ordering.\n\n

Note: the type parameter {@code E} extends {@code Comparable} rather than {@code\nComparable} as a workaround for javac bug 6468354.", "docstring_tokens": ["Returns", "a", "builder", "that", "creates", "immutable", "sorted", "multisets", "whose", "elements", "are", "ordered", "by", "the", "reverse", "of", "their", "natural", "ordering", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java#L365-L367", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/Multisets.java", "func_name": "Multisets.retainOccurrencesImpl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Delegate implementation which cares about the element type.", "docstring_tokens": ["Delegate", "implementation", "which", "cares", "about", "the", "element", "type", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/Multisets.java#L716-L735", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/TreeTraverser.java", "func_name": "TreeTraverser.preOrderTraversal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an unmodifiable iterable over the nodes in a tree structure, using pre-order traversal.\nThat is, each node's subtrees are traversed after the node itself is returned.\n\n

No guarantees are made about the behavior of the traversal when nodes change while iteration\nis in progress or when the iterators generated by {@link #children} are advanced.\n\n@deprecated Use {@link com.google.common.graph.Traverser#depthFirstPreOrder} instead, which has\nthe same behavior.", "docstring_tokens": ["Returns", "an", "unmodifiable", "iterable", "over", "the", "nodes", "in", "a", "tree", "structure", "using", "pre", "-", "order", "traversal", ".", "That", "is", "each", "node", "s", "subtrees", "are", "traversed", "after", "the", "node", "itself", "is", "returned", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/TreeTraverser.java#L114-L135", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/Collections2.java", "func_name": "Collections2.newStringBuilderForCollection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns best-effort-sized StringBuilder based on the given collection size.", "docstring_tokens": ["Returns", "best", "-", "effort", "-", "sized", "StringBuilder", "based", "on", "the", "given", "collection", "size", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/Collections2.java#L327-L330", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/reflect/TypeResolver.java", "func_name": "TypeResolver.invariantly", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a resolver that resolves types \"invariantly\".\n\n

For example, when resolving {@code List} in the context of {@code ArrayList}, {@code\n} cannot be invariantly resolved to {@code } because otherwise the parameter type of\n{@code List::set} will be {@code } and it'll falsely say any object can be passed into\n{@code ArrayList::set}.\n\n

Instead, {@code } will be resolved to a capture in the form of a type variable {@code\n}, effectively preventing {@code set} from accepting any type.", "docstring_tokens": ["Returns", "a", "resolver", "that", "resolves", "types", "invariantly", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/reflect/TypeResolver.java#L89-L92", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java", "func_name": "AbstractMapBasedMultimap.setMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Used during deserialization only.", "docstring_tokens": ["Used", "during", "deserialization", "only", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java#L121-L128", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java", "func_name": "AbstractMapBasedMultimap.removeValuesForKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes all values for the provided key.", "docstring_tokens": ["Removes", "all", "values", "for", "the", "provided", "key", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java#L1102-L1110", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/FluentIterable.java", "func_name": "FluentIterable.concatNoDefensiveCopy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Concatenates a varargs array of iterables without making a defensive copy of the array.", "docstring_tokens": ["Concatenates", "a", "varargs", "array", "of", "iterables", "without", "making", "a", "defensive", "copy", "of", "the", "array", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/FluentIterable.java#L283-L301", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/FluentIterable.java", "func_name": "FluentIterable.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a fluent iterable containing no elements.\n\n

{@code Stream} equivalent: {@link Stream#empty}.\n\n@since 20.0", "docstring_tokens": ["Returns", "a", "fluent", "iterable", "containing", "no", "elements", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/FluentIterable.java#L310-L313", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/FluentIterable.java", "func_name": "FluentIterable.toArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an array containing all of the elements from this fluent iterable in iteration order.\n\n

{@code Stream} equivalent: if an object array is acceptable, use {@code\nstream.toArray()}; if {@code type} is a class literal such as {@code MyType.class}, use {@code\nstream.toArray(MyType[]::new)}. Otherwise use {@code stream.toArray( len -> (E[])\nArray.newInstance(type, len))}.\n\n@param type the type of the elements\n@return a newly-allocated array into which all the elements of this fluent iterable have been\ncopied", "docstring_tokens": ["Returns", "an", "array", "containing", "all", "of", "the", "elements", "from", "this", "fluent", "iterable", "in", "iteration", "order", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/FluentIterable.java#L768-L771", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableMultimap.java", "func_name": "ImmutableMultimap.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an immutable multimap containing the given entries, in order.", "docstring_tokens": ["Returns", "an", "immutable", "multimap", "containing", "the", "given", "entries", "in", "order", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableMultimap.java#L81-L83", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableMultimap.java", "func_name": "ImmutableMultimap.entries", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an immutable collection of all key-value pairs in the multimap.", "docstring_tokens": ["Returns", "an", "immutable", "collection", "of", "all", "key", "-", "value", "pairs", "in", "the", "multimap", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableMultimap.java#L514-L517", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/io/ByteSource.java", "func_name": "ByteSource.countBySkipping", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Counts the bytes in the given input stream using skip if possible. Returns SKIP_FAILED if the\nfirst call to skip threw, in which case skip may just not be supported.", "docstring_tokens": ["Counts", "the", "bytes", "in", "the", "given", "input", "stream", "using", "skip", "if", "possible", ".", "Returns", "SKIP_FAILED", "if", "the", "first", "call", "to", "skip", "threw", "in", "which", "case", "skip", "may", "just", "not", "be", "supported", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/io/ByteSource.java#L222-L229", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/io/ByteSource.java", "func_name": "ByteSource.read", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads the full contents of this byte source as a byte array.\n\n@throws IOException if an I/O error occurs while reading from this source", "docstring_tokens": ["Reads", "the", "full", "contents", "of", "this", "byte", "source", "as", "a", "byte", "array", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/io/ByteSource.java#L282-L295", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/io/ByteSource.java", "func_name": "ByteSource.hash", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Hashes the contents of this byte source using the given hash function.\n\n@throws IOException if an I/O error occurs while reading from this source", "docstring_tokens": ["Hashes", "the", "contents", "of", "this", "byte", "source", "using", "the", "given", "hash", "function", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/io/ByteSource.java#L327-L331", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/io/ByteSource.java", "func_name": "ByteSource.contentEquals", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks that the contents of this byte source are equal to the contents of the given byte\nsource.\n\n@throws IOException if an I/O error occurs while reading from this source or {@code other}", "docstring_tokens": ["Checks", "that", "the", "contents", "of", "this", "byte", "source", "are", "equal", "to", "the", "contents", "of", "the", "given", "byte", "source", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/io/ByteSource.java#L339-L363", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/ImmutableRangeMap.java", "func_name": "ImmutableRangeMap.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an empty immutable range map.", "docstring_tokens": ["Returns", "an", "empty", "immutable", "range", "map", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/ImmutableRangeMap.java#L64-L67", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/ImmutableRangeMap.java", "func_name": "ImmutableRangeMap.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an immutable range map mapping a single range to a single value.", "docstring_tokens": ["Returns", "an", "immutable", "range", "map", "mapping", "a", "single", "range", "to", "a", "single", "value", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/ImmutableRangeMap.java#L70-L72", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/hash/Hashing.java", "func_name": "Hashing.concatenating", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a hash function which computes its hash code by concatenating the hash codes of the\nunderlying hash functions together. This can be useful if you need to generate hash codes of a\nspecific length.\n\n

For example, if you need 1024-bit hash codes, you could join two {@link Hashing#sha512} hash\nfunctions together: {@code Hashing.concatenating(Hashing.sha512(), Hashing.sha512())}.\n\n@since 19.0", "docstring_tokens": ["Returns", "a", "hash", "function", "which", "computes", "its", "hash", "code", "by", "concatenating", "the", "hash", "codes", "of", "the", "underlying", "hash", "functions", "together", ".", "This", "can", "be", "useful", "if", "you", "need", "to", "generate", "hash", "codes", "of", "a", "specific", "length", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/hash/Hashing.java#L581-L589", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/ImmutableSortedSet.java", "func_name": "ImmutableSortedSet.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an immutable sorted set containing a single element.", "docstring_tokens": ["Returns", "an", "immutable", "sorted", "set", "containing", "a", "single", "element", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/ImmutableSortedSet.java#L96-L98", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/graph/ValueGraphBuilder.java", "func_name": "ValueGraphBuilder.expectedNodeCount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Specifies the expected number of nodes in the graph.\n\n@throws IllegalArgumentException if {@code expectedNodeCount} is negative", "docstring_tokens": ["Specifies", "the", "expected", "number", "of", "nodes", "in", "the", "graph", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/graph/ValueGraphBuilder.java#L127-L130", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/Comparators.java", "func_name": "Comparators.lexicographical", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "think tip it over into being worthwhile.", "docstring_tokens": ["think", "tip", "it", "over", "into", "being", "worthwhile", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/Comparators.java#L60-L62", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/base/internal/Finalizer.java", "func_name": "Finalizer.startFinalizer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Starts the Finalizer thread. FinalizableReferenceQueue calls this method reflectively.\n\n@param finalizableReferenceClass FinalizableReference.class.\n@param queue a reference queue that the thread will poll.\n@param frqReference a phantom reference to the FinalizableReferenceQueue, which will be queued\neither when the FinalizableReferenceQueue is no longer referenced anywhere, or when its\nclose() method is called.", "docstring_tokens": ["Starts", "the", "Finalizer", "thread", ".", "FinalizableReferenceQueue", "calls", "this", "method", "reflectively", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/base/internal/Finalizer.java#L62-L110", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableSortedMap.java", "func_name": "ImmutableSortedMap.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the empty sorted map.", "docstring_tokens": ["Returns", "the", "empty", "sorted", "map", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableSortedMap.java#L77-L82", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableSortedMap.java", "func_name": "ImmutableSortedMap.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an immutable map containing a single entry.", "docstring_tokens": ["Returns", "an", "immutable", "map", "containing", "a", "single", "entry", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableSortedMap.java#L85-L87", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableSortedMap.java", "func_name": "ImmutableSortedMap.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an immutable sorted map containing the given entries, sorted by the natural ordering of\ntheir keys.\n\n@throws IllegalArgumentException if the two keys are equal according to their natural ordering", "docstring_tokens": ["Returns", "an", "immutable", "sorted", "map", "containing", "the", "given", "entries", "sorted", "by", "the", "natural", "ordering", "of", "their", "keys", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableSortedMap.java#L102-L106", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableSortedMap.java", "func_name": "ImmutableSortedMap.copyOfSorted", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an immutable map containing the same entries as the provided sorted map, with the same\nordering.\n\n

Despite the method name, this method attempts to avoid actually copying the data when it is\nsafe to do so. The exact circumstances under which a copy will or will not be performed are\nundocumented and subject to change.\n\n@throws NullPointerException if any key or value in {@code map} is null", "docstring_tokens": ["Returns", "an", "immutable", "map", "containing", "the", "same", "entries", "as", "the", "provided", "sorted", "map", "with", "the", "same", "ordering", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableSortedMap.java#L235-L253", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/hash/FarmHashFingerprint64.java", "func_name": "FarmHashFingerprint64.weakHashLength32WithSeeds", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Computes intermediate hash of 32 bytes of byte array from the given offset. Results are\nreturned in the output array because when we last measured, this was 12% faster than allocating\nnew arrays every time.", "docstring_tokens": ["Computes", "intermediate", "hash", "of", "32", "bytes", "of", "byte", "array", "from", "the", "given", "offset", ".", "Results", "are", "returned", "in", "the", "output", "array", "because", "when", "we", "last", "measured", "this", "was", "12%", "faster", "than", "allocating", "new", "arrays", "every", "time", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/hash/FarmHashFingerprint64.java#L100-L115", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/util/concurrent/AbstractService.java", "func_name": "AbstractService.checkCurrentState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks that the current state is equal to the expected state.", "docstring_tokens": ["Checks", "that", "the", "current", "state", "is", "equal", "to", "the", "expected", "state", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/util/concurrent/AbstractService.java#L358-L371", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/MoreFiles.java", "func_name": "MoreFiles.listFiles", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an immutable list of paths to the files contained in the given directory.\n\n@throws NoSuchFileException if the file does not exist (optional specific exception)\n@throws NotDirectoryException if the file could not be opened because it is not a directory\n(optional specific exception)\n@throws IOException if an I/O error occurs", "docstring_tokens": ["Returns", "an", "immutable", "list", "of", "paths", "to", "the", "files", "contained", "in", "the", "given", "directory", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/MoreFiles.java#L260-L266", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/MoreFiles.java", "func_name": "MoreFiles.isDirectory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns whether or not the file with the given name in the given dir is a directory.", "docstring_tokens": ["Returns", "whether", "or", "not", "the", "file", "with", "the", "given", "name", "in", "the", "given", "dir", "is", "a", "directory", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/MoreFiles.java#L335-L340", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/MoreFiles.java", "func_name": "MoreFiles.equal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if the files located by the given paths exist, are not directories, and contain\nthe same bytes.\n\n@throws IOException if an I/O error occurs\n@since 22.0", "docstring_tokens": ["Returns", "true", "if", "the", "files", "located", "by", "the", "given", "paths", "exist", "are", "not", "directories", "and", "contain", "the", "same", "bytes", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/MoreFiles.java#L368-L388", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/MoreFiles.java", "func_name": "MoreFiles.touch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Like the unix command of the same name, creates an empty file or updates the last modified\ntimestamp of the existing file at the given path to the current system time.", "docstring_tokens": ["Like", "the", "unix", "command", "of", "the", "same", "name", "creates", "an", "empty", "file", "or", "updates", "the", "last", "modified", "timestamp", "of", "the", "existing", "file", "at", "the", "given", "path", "to", "the", "current", "system", "time", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/MoreFiles.java#L394-L412", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/MoreFiles.java", "func_name": "MoreFiles.getParentPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a path to the parent directory of the given path. If the path actually has a parent\npath, this is simple. Otherwise, we need to do some trickier things. Returns null if the path\nis a root or is the empty path.", "docstring_tokens": ["Returns", "a", "path", "to", "the", "parent", "directory", "of", "the", "given", "path", ".", "If", "the", "path", "actually", "has", "a", "parent", "path", "this", "is", "simple", ".", "Otherwise", "we", "need", "to", "do", "some", "trickier", "things", ".", "Returns", "null", "if", "the", "path", "is", "a", "root", "or", "is", "the", "empty", "path", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/MoreFiles.java#L706-L737", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/MoreFiles.java", "func_name": "MoreFiles.checkAllowsInsecure", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks that the given options allow an insecure delete, throwing an exception if not.", "docstring_tokens": ["Checks", "that", "the", "given", "options", "allow", "an", "insecure", "delete", "throwing", "an", "exception", "if", "not", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/MoreFiles.java#L740-L745", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/MoreFiles.java", "func_name": "MoreFiles.throwDeleteFailed", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Throws an exception indicating that one or more files couldn't be deleted. The thrown exception\ncontains all the exceptions in the given collection as suppressed exceptions.", "docstring_tokens": ["Throws", "an", "exception", "indicating", "that", "one", "or", "more", "files", "couldn", "t", "be", "deleted", ".", "The", "thrown", "exception", "contains", "all", "the", "exceptions", "in", "the", "given", "collection", "as", "suppressed", "exceptions", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/MoreFiles.java#L779-L793", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/MapMakerInternalMap.java", "func_name": "MapMakerInternalMap.rehash", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Applies a supplemental hash function to a given hash code, which defends against poor quality\nhash functions. This is critical when the concurrent hash map uses power-of-two length hash\ntables, that otherwise encounter collisions for hash codes that do not differ in lower or upper\nbits.\n\n@param h hash code", "docstring_tokens": ["Applies", "a", "supplemental", "hash", "function", "to", "a", "given", "hash", "code", "which", "defends", "against", "poor", "quality", "hash", "functions", ".", "This", "is", "critical", "when", "the", "concurrent", "hash", "map", "uses", "power", "-", "of", "-", "two", "length", "hash", "tables", "that", "otherwise", "encounter", "collisions", "for", "hash", "codes", "that", "do", "not", "differ", "in", "lower", "or", "upper", "bits", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/MapMakerInternalMap.java#L1052-L1062", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/MapMakerInternalMap.java", "func_name": "MapMakerInternalMap.segmentFor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the segment that should be used for a key with the given hash.\n\n@param hash the hash code for the key\n@return the segment", "docstring_tokens": ["Returns", "the", "segment", "that", "should", "be", "used", "for", "a", "key", "with", "the", "given", "hash", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/MapMakerInternalMap.java#L1105-L1108", "partition": "valid"} +{"repo": "google/guava", "path": "guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java", "func_name": "ImmutableList.unsafeDelegateList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "are guaranteed to be non-null.", "docstring_tokens": ["are", "guaranteed", "to", "be", "non", "-", "null", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java#L166-L177", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/TreeRangeMap.java", "func_name": "TreeRangeMap.coalescedRange", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Computes the coalesced range for the given range+value - does not mutate the map.", "docstring_tokens": ["Computes", "the", "coalesced", "range", "for", "the", "given", "range", "+", "value", "-", "does", "not", "mutate", "the", "map", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/TreeRangeMap.java#L141-L152", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/eventbus/SubscriberRegistry.java", "func_name": "SubscriberRegistry.unregister", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unregisters all subscribers on the given listener object.", "docstring_tokens": ["Unregisters", "all", "subscribers", "on", "the", "given", "listener", "object", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/eventbus/SubscriberRegistry.java#L93-L113", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/eventbus/SubscriberRegistry.java", "func_name": "SubscriberRegistry.getSubscribers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets an iterator representing an immutable snapshot of all subscribers to the given event at\nthe time this method is called.", "docstring_tokens": ["Gets", "an", "iterator", "representing", "an", "immutable", "snapshot", "of", "all", "subscribers", "to", "the", "given", "event", "at", "the", "time", "this", "method", "is", "called", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/eventbus/SubscriberRegistry.java#L124-L139", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/eventbus/SubscriberRegistry.java", "func_name": "SubscriberRegistry.findAllSubscribers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns all subscribers for the given listener grouped by the type of event they subscribe to.", "docstring_tokens": ["Returns", "all", "subscribers", "for", "the", "given", "listener", "grouped", "by", "the", "type", "of", "event", "they", "subscribe", "to", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/eventbus/SubscriberRegistry.java#L161-L170", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableList.java", "func_name": "ImmutableList.sortedCopyOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an immutable list containing the given elements, sorted according to their natural\norder. The sorting algorithm used is stable, so elements that compare as equal will stay in the\norder in which they appear in the input.\n\n

If your data has no duplicates, or you wish to deduplicate elements, use {@code\nImmutableSortedSet.copyOf(elements)}; if you want a {@code List} you can use its {@code\nasList()} view.\n\n

Java 8 users: If you want to convert a {@link java.util.stream.Stream} to a sorted\n{@code ImmutableList}, use {@code stream.sorted().collect(toImmutableList())}.\n\n@throws NullPointerException if any element in the input is null\n@since 21.0", "docstring_tokens": ["Returns", "an", "immutable", "list", "containing", "the", "given", "elements", "sorted", "according", "to", "their", "natural", "order", ".", "The", "sorting", "algorithm", "used", "is", "stable", "so", "elements", "that", "compare", "as", "equal", "will", "stay", "in", "the", "order", "in", "which", "they", "appear", "in", "the", "input", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableList.java#L291-L297", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableList.java", "func_name": "ImmutableList.asImmutableList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Views the array as an immutable list. Does not check for nulls; does not copy.\n\n

The array must be internally created.", "docstring_tokens": ["Views", "the", "array", "as", "an", "immutable", "list", ".", "Does", "not", "check", "for", "nulls", ";", "does", "not", "copy", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableList.java#L334-L336", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableList.java", "func_name": "ImmutableList.asImmutableList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Views the array as an immutable list. Does not check for nulls.", "docstring_tokens": ["Views", "the", "array", "as", "an", "immutable", "list", ".", "Does", "not", "check", "for", "nulls", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableList.java#L339-L344", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableList.java", "func_name": "ImmutableList.builderWithExpectedSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a new builder, expecting the specified number of elements to be added.\n\n

If {@code expectedSize} is exactly the number of elements added to the builder before {@link\nBuilder#build} is called, the builder is likely to perform better than an unsized {@link\n#builder()} would have.\n\n

It is not specified if any performance benefits apply if {@code expectedSize} is close to,\nbut not exactly, the number of elements added to the builder.\n\n@since 23.1", "docstring_tokens": ["Returns", "a", "new", "builder", "expecting", "the", "specified", "number", "of", "elements", "to", "be", "added", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableList.java#L686-L690", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/ObjectArrays.java", "func_name": "ObjectArrays.concat", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a new array that contains the concatenated contents of two arrays.\n\n@param first the first array of elements to concatenate\n@param second the second array of elements to concatenate\n@param type the component type of the returned array", "docstring_tokens": ["Returns", "a", "new", "array", "that", "contains", "the", "concatenated", "contents", "of", "two", "arrays", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/ObjectArrays.java#L69-L75", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/ObjectArrays.java", "func_name": "ObjectArrays.toArrayImpl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an array containing all of the elements in the specified collection; the runtime type\nof the returned array is that of the specified array. If the collection fits in the specified\narray, it is returned therein. Otherwise, a new array is allocated with the runtime type of the\nspecified array and the size of the specified collection.\n\n

If the collection fits in the specified array with room to spare (i.e., the array has more\nelements than the collection), the element in the array immediately following the end of the\ncollection is set to {@code null}. This is useful in determining the length of the collection\nonly if the caller knows that the collection does not contain any null elements.\n\n

This method returns the elements in the order they are returned by the collection's\niterator.\n\n

TODO(kevinb): support concurrently modified collections?\n\n@param c the collection for which to return an array of elements\n@param array the array in which to place the collection elements\n@throws ArrayStoreException if the runtime type of the specified array is not a supertype of\nthe runtime type of every element in the specified collection", "docstring_tokens": ["Returns", "an", "array", "containing", "all", "of", "the", "elements", "in", "the", "specified", "collection", ";", "the", "runtime", "type", "of", "the", "returned", "array", "is", "that", "of", "the", "specified", "array", ".", "If", "the", "collection", "fits", "in", "the", "specified", "array", "it", "is", "returned", "therein", ".", "Otherwise", "a", "new", "array", "is", "allocated", "with", "the", "runtime", "type", "of", "the", "specified", "array", "and", "the", "size", "of", "the", "specified", "collection", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/ObjectArrays.java#L127-L137", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/ObjectArrays.java", "func_name": "ObjectArrays.checkElementNotNull", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "creation cost.", "docstring_tokens": ["creation", "cost", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/ObjectArrays.java#L222-L228", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/base/Throwables.java", "func_name": "Throwables.getJLA", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the JavaLangAccess class that is present in all Sun JDKs. It is not allowed in\nAppEngine, and not present in non-Sun JDKs.", "docstring_tokens": ["Returns", "the", "JavaLangAccess", "class", "that", "is", "present", "in", "all", "Sun", "JDKs", ".", "It", "is", "not", "allowed", "in", "AppEngine", "and", "not", "present", "in", "non", "-", "Sun", "JDKs", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/base/Throwables.java#L474-L494", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/reflect/TypeToken.java", "func_name": "TypeToken.canonicalizeWildcardType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Just don't ever let the user access it.", "docstring_tokens": ["Just", "don", "t", "ever", "let", "the", "user", "access", "it", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/reflect/TypeToken.java#L1024-L1034", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/ImmutableList.java", "func_name": "ImmutableList.asImmutableList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Views the array as an immutable list. Copies if the specified range does not cover the complete\narray. Does not check for nulls.", "docstring_tokens": ["Views", "the", "array", "as", "an", "immutable", "list", ".", "Copies", "if", "the", "specified", "range", "does", "not", "cover", "the", "complete", "array", ".", "Does", "not", "check", "for", "nulls", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/ImmutableList.java#L362-L374", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableSortedMapFauxverideShim.java", "func_name": "ImmutableSortedMapFauxverideShim.builderWithExpectedSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Not supported for ImmutableSortedMap.\n\n@throws UnsupportedOperationException always\n@deprecated Not supported for ImmutableSortedMap.", "docstring_tokens": ["Not", "supported", "for", "ImmutableSortedMap", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableSortedMapFauxverideShim.java#L49-L52", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/ImmutableMap.java", "func_name": "ImmutableMap.entrySet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an immutable set of the mappings in this map. The iteration order is specified by the\nmethod used to create this map. Typically, this is insertion order.", "docstring_tokens": ["Returns", "an", "immutable", "set", "of", "the", "mappings", "in", "this", "map", ".", "The", "iteration", "order", "is", "specified", "by", "the", "method", "used", "to", "create", "this", "map", ".", "Typically", "this", "is", "insertion", "order", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/ImmutableMap.java#L713-L717", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/LineBuffer.java", "func_name": "LineBuffer.finishLine", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Called when a line is complete.", "docstring_tokens": ["Called", "when", "a", "line", "is", "complete", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/LineBuffer.java#L86-L93", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/Maps.java", "func_name": "Maps.asEntryTransformer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Views a function as an entry transformer that ignores the entry key.", "docstring_tokens": ["Views", "a", "function", "as", "an", "entry", "transformer", "that", "ignores", "the", "entry", "key", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/Maps.java#L1816-L1825", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/Maps.java", "func_name": "Maps.transformEntry", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a view of an entry transformed by the specified transformer.", "docstring_tokens": ["Returns", "a", "view", "of", "an", "entry", "transformed", "by", "the", "specified", "transformer", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/Maps.java#L1851-L1866", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/Maps.java", "func_name": "Maps.asEntryToEntryFunction", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Views an entry transformer as a function from entries to entries.", "docstring_tokens": ["Views", "an", "entry", "transformer", "as", "a", "function", "from", "entries", "to", "entries", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/Maps.java#L1869-L1878", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/Maps.java", "func_name": "Maps.indexMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a map from the ith element of list to i.", "docstring_tokens": ["Returns", "a", "map", "from", "the", "ith", "element", "of", "list", "to", "i", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/Maps.java#L4035-L4042", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/util/concurrent/AbstractFuture.java", "func_name": "AbstractFuture.pendingToString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Provide a human-readable explanation of why this future has not yet completed.\n\n@return null if an explanation cannot be provided because the future is done.\n@since 23.0", "docstring_tokens": ["Provide", "a", "human", "-", "readable", "explanation", "of", "why", "this", "future", "has", "not", "yet", "completed", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/util/concurrent/AbstractFuture.java#L1095-L1105", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/hash/AbstractByteHasher.java", "func_name": "AbstractByteHasher.update", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Updates this hasher with bytes from the given buffer.", "docstring_tokens": ["Updates", "this", "hasher", "with", "bytes", "from", "the", "given", "buffer", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/hash/AbstractByteHasher.java#L54-L63", "partition": "valid"} +{"repo": "google/guava", "path": "guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java", "func_name": "ImmutableSortedSet.unsafeDelegateSortedSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Assumes that delegate doesn't have null elements and comparator.", "docstring_tokens": ["Assumes", "that", "delegate", "doesn", "t", "have", "null", "elements", "and", "comparator", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java#L224-L229", "partition": "valid"} +{"repo": "google/guava", "path": "guava-gwt/src/com/google/common/collect/ImmutableSetMultimap_CustomFieldSerializer.java", "func_name": "ImmutableSetMultimap_CustomFieldSerializer.instantiate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Serialization type safety is at the caller's mercy.", "docstring_tokens": ["Serialization", "type", "safety", "is", "at", "the", "caller", "s", "mercy", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava-gwt/src/com/google/common/collect/ImmutableSetMultimap_CustomFieldSerializer.java#L35-L45", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java", "func_name": "AtomicLongMap.sum", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the sum of all values in this map.\n\n

This method is not atomic: the sum may or may not include other concurrent operations.", "docstring_tokens": ["Returns", "the", "sum", "of", "all", "values", "in", "this", "map", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/AtomicLongMap.java#L320-L326", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/base/FinalizableReferenceQueue.java", "func_name": "FinalizableReferenceQueue.loadFinalizer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Iterates through the given loaders until it finds one that can load Finalizer.\n\n@return Finalizer.class", "docstring_tokens": ["Iterates", "through", "the", "given", "loaders", "until", "it", "finds", "one", "that", "can", "load", "Finalizer", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/base/FinalizableReferenceQueue.java#L212-L221", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/util/concurrent/ListenerCallQueue.java", "func_name": "ListenerCallQueue.dispatch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Dispatches all events enqueued prior to this call, serially and in order, for every listener.\n\n

Note: this method is idempotent and safe to call from any thread", "docstring_tokens": ["Dispatches", "all", "events", "enqueued", "prior", "to", "this", "call", "serially", "and", "in", "order", "for", "every", "listener", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java#L117-L122", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/io/Resources.java", "func_name": "Resources.copy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copies all bytes from a URL to an output stream.\n\n@param from the URL to read from\n@param to the output stream\n@throws IOException if an I/O error occurs", "docstring_tokens": ["Copies", "all", "bytes", "from", "a", "URL", "to", "an", "output", "stream", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/io/Resources.java#L171-L173", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/eventbus/EventBus.java", "func_name": "EventBus.post", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Posts an event to all registered subscribers. This method will return successfully after the\nevent has been posted to all subscribers, and regardless of any exceptions thrown by\nsubscribers.\n\n

If no subscribers have been subscribed for {@code event}'s class, and {@code event} is not\nalready a {@link DeadEvent}, it will be wrapped in a DeadEvent and reposted.\n\n@param event event to post.", "docstring_tokens": ["Posts", "an", "event", "to", "all", "registered", "subscribers", ".", "This", "method", "will", "return", "successfully", "after", "the", "event", "has", "been", "posted", "to", "all", "subscribers", "and", "regardless", "of", "any", "exceptions", "thrown", "by", "subscribers", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/eventbus/EventBus.java#L209-L217", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/MapMaker.java", "func_name": "MapMaker.concurrencyLevel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Guides the allowed concurrency among update operations. Used as a hint for internal sizing. The\ntable is internally partitioned to try to permit the indicated number of concurrent updates\nwithout contention. Because assignment of entries to these partitions is not necessarily\nuniform, the actual concurrency observed may vary. Ideally, you should choose a value to\naccommodate as many threads as will ever concurrently modify the table. Using a significantly\nhigher value than you need can waste space and time, and a significantly lower value can lead\nto thread contention. But overestimates and underestimates within an order of magnitude do not\nusually have much noticeable impact. A value of one permits only one thread to modify the map\nat a time, but since read operations can proceed concurrently, this still yields higher\nconcurrency than full synchronization. Defaults to 4.\n\n

Note: Prior to Guava release 9.0, the default was 16. It is possible the default will\nchange again in the future. If you care about this value, you should always choose it\nexplicitly.\n\n@throws IllegalArgumentException if {@code concurrencyLevel} is nonpositive\n@throws IllegalStateException if a concurrency level was already set", "docstring_tokens": ["Guides", "the", "allowed", "concurrency", "among", "update", "operations", ".", "Used", "as", "a", "hint", "for", "internal", "sizing", ".", "The", "table", "is", "internally", "partitioned", "to", "try", "to", "permit", "the", "indicated", "number", "of", "concurrent", "updates", "without", "contention", ".", "Because", "assignment", "of", "entries", "to", "these", "partitions", "is", "not", "necessarily", "uniform", "the", "actual", "concurrency", "observed", "may", "vary", ".", "Ideally", "you", "should", "choose", "a", "value", "to", "accommodate", "as", "many", "threads", "as", "will", "ever", "concurrently", "modify", "the", "table", ".", "Using", "a", "significantly", "higher", "value", "than", "you", "need", "can", "waste", "space", "and", "time", "and", "a", "significantly", "lower", "value", "can", "lead", "to", "thread", "contention", ".", "But", "overestimates", "and", "underestimates", "within", "an", "order", "of", "magnitude", "do", "not", "usually", "have", "much", "noticeable", "impact", ".", "A", "value", "of", "one", "permits", "only", "one", "thread", "to", "modify", "the", "map", "at", "a", "time", "but", "since", "read", "operations", "can", "proceed", "concurrently", "this", "still", "yields", "higher", "concurrency", "than", "full", "synchronization", ".", "Defaults", "to", "4", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/MapMaker.java#L176-L185", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/AbstractBiMap.java", "func_name": "AbstractBiMap.setDelegates", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Specifies the delegate maps going in each direction. Called by the constructor and by\nsubclasses during deserialization.", "docstring_tokens": ["Specifies", "the", "delegate", "maps", "going", "in", "each", "direction", ".", "Called", "by", "the", "constructor", "and", "by", "subclasses", "during", "deserialization", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/AbstractBiMap.java#L88-L96", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/ArrayTable.java", "func_name": "ArrayTable.toArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a two-dimensional array with the table contents. The row and column indices correspond\nto the positions of the row and column in the iterables provided during table construction. If\nthe table lacks a mapping for a given row and column, the corresponding array element is null.\n\n

Subsequent table changes will not modify the array, and vice versa.\n\n@param valueClass class of values stored in the returned array", "docstring_tokens": ["Returns", "a", "two", "-", "dimensional", "array", "with", "the", "table", "contents", ".", "The", "row", "and", "column", "indices", "correspond", "to", "the", "positions", "of", "the", "row", "and", "column", "in", "the", "iterables", "provided", "during", "table", "construction", ".", "If", "the", "table", "lacks", "a", "mapping", "for", "a", "given", "row", "and", "column", "the", "corresponding", "array", "element", "is", "null", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/ArrayTable.java#L347-L355", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java", "func_name": "SequentialExecutor.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a task to the queue and makes sure a worker thread is running.\n\n

If this method throws, e.g. a {@code RejectedExecutionException} from the delegate executor,\nexecution of tasks will stop until a call to this method or to {@link #resume()} is made.", "docstring_tokens": ["Adds", "a", "task", "to", "the", "queue", "and", "makes", "sure", "a", "worker", "thread", "is", "running", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java#L95-L163", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/Tables.java", "func_name": "Tables.transformValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a view of a table where each value is transformed by a function. All other properties\nof the table, such as iteration order, are left intact.\n\n

Changes in the underlying table are reflected in this view. Conversely, this view supports\nremoval operations, and these are reflected in the underlying table.\n\n

It's acceptable for the underlying table to contain null keys, and even null values provided\nthat the function is capable of accepting null input. The transformed table might contain null\nvalues, if the function sometimes gives a null result.\n\n

The returned table is not thread-safe or serializable, even if the underlying table is.\n\n

The function is applied lazily, invoked when needed. This is necessary for the returned\ntable to be a view, but it means that the function will be applied many times for bulk\noperations like {@link Table#containsValue} and {@code Table.toString()}. For this to perform\nwell, {@code function} should be fast. To avoid lazy evaluation when the returned table doesn't\nneed to be a view, copy the returned table into a new table of your choosing.\n\n@since 10.0", "docstring_tokens": ["Returns", "a", "view", "of", "a", "table", "where", "each", "value", "is", "transformed", "by", "a", "function", ".", "All", "other", "properties", "of", "the", "table", "such", "as", "iteration", "order", "are", "left", "intact", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/Tables.java#L318-L322", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/TreeMultiset.java", "func_name": "TreeMultiset.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an empty multiset containing the given initial elements, sorted according to the\nelements' natural order.\n\n

This implementation is highly efficient when {@code elements} is itself a {@link Multiset}.\n\n

The type specification is {@code }, instead of the more specific\n{@code >}, to support classes defined without generics.", "docstring_tokens": ["Creates", "an", "empty", "multiset", "containing", "the", "given", "initial", "elements", "sorted", "according", "to", "the", "elements", "natural", "order", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/TreeMultiset.java#L105-L109", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/AggregateFuture.java", "func_name": "AggregateFuture.addCausalChain", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the chain to the seen set, and returns whether all the chain was new to us.", "docstring_tokens": ["Adds", "the", "chain", "to", "the", "seen", "set", "and", "returns", "whether", "all", "the", "chain", "was", "new", "to", "us", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/AggregateFuture.java#L290-L304", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/cache/CacheBuilder.java", "func_name": "CacheBuilder.expireAfterWrite", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Specifies that each entry should be automatically removed from the cache once a fixed duration\nhas elapsed after the entry's creation, or the most recent replacement of its value.\n\n

When {@code duration} is zero, this method hands off to {@link #maximumSize(long)\nmaximumSize}{@code (0)}, ignoring any otherwise-specified maximum size or weight. This can be\nuseful in testing, or to disable caching temporarily without a code change.\n\n

Expired entries may be counted in {@link Cache#size}, but will never be visible to read or\nwrite operations. Expired entries are cleaned up as part of the routine maintenance described\nin the class javadoc.\n\n@param duration the length of time after an entry is created that it should be automatically\nremoved\n@return this {@code CacheBuilder} instance (for chaining)\n@throws IllegalArgumentException if {@code duration} is negative\n@throws IllegalStateException if the time to live or time to idle was already set\n@throws ArithmeticException for durations greater than +/- approximately 292 years\n@since 25.0", "docstring_tokens": ["Specifies", "that", "each", "entry", "should", "be", "automatically", "removed", "from", "the", "cache", "once", "a", "fixed", "duration", "has", "elapsed", "after", "the", "entry", "s", "creation", "or", "the", "most", "recent", "replacement", "of", "its", "value", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/cache/CacheBuilder.java#L656-L661", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java", "func_name": "ThreadFactoryBuilder.setPriority", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the priority for new threads created with this ThreadFactory.\n\n@param priority the priority for new Threads created with this ThreadFactory\n@return this for the builder pattern", "docstring_tokens": ["Sets", "the", "priority", "for", "new", "threads", "created", "with", "this", "ThreadFactory", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java#L92-L107", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/net/HostAndPort.java", "func_name": "HostAndPort.fromParts", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Build a HostAndPort instance from separate host and port values.\n\n

Note: Non-bracketed IPv6 literals are allowed. Use {@link #requireBracketsForIPv6()} to\nprohibit these.\n\n@param host the host string to parse. Must not contain a port number.\n@param port a port number from [0..65535]\n@return if parsing was successful, a populated HostAndPort object.\n@throws IllegalArgumentException if {@code host} contains a port number, or {@code port} is out\nof range.", "docstring_tokens": ["Build", "a", "HostAndPort", "instance", "from", "separate", "host", "and", "port", "values", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/net/HostAndPort.java#L131-L136", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/net/HostAndPort.java", "func_name": "HostAndPort.fromHost", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Build a HostAndPort instance from a host only.\n\n

Note: Non-bracketed IPv6 literals are allowed. Use {@link #requireBracketsForIPv6()} to\nprohibit these.\n\n@param host the host-only string to parse. Must not contain a port number.\n@return if parsing was successful, a populated HostAndPort object.\n@throws IllegalArgumentException if {@code host} contains a port number.\n@since 17.0", "docstring_tokens": ["Build", "a", "HostAndPort", "instance", "from", "a", "host", "only", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/net/HostAndPort.java#L149-L153", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/net/HostAndPort.java", "func_name": "HostAndPort.fromString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Split a freeform string into a host and port, without strict validation.\n\n

Note that the host-only formats will leave the port field undefined. You can use {@link\n#withDefaultPort(int)} to patch in a default value.\n\n@param hostPortString the input string to parse.\n@return if parsing was successful, a populated HostAndPort object.\n@throws IllegalArgumentException if nothing meaningful could be parsed.", "docstring_tokens": ["Split", "a", "freeform", "string", "into", "a", "host", "and", "port", "without", "strict", "validation", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/net/HostAndPort.java#L165-L202", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/net/HostAndPort.java", "func_name": "HostAndPort.getHostAndPortFromBracketedHost", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses a bracketed host-port string, throwing IllegalArgumentException if parsing fails.\n\n@param hostPortString the full bracketed host-port specification. Post might not be specified.\n@return an array with 2 strings: host and port, in that order.\n@throws IllegalArgumentException if parsing the bracketed host-port string fails.", "docstring_tokens": ["Parses", "a", "bracketed", "host", "-", "port", "string", "throwing", "IllegalArgumentException", "if", "parsing", "fails", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/net/HostAndPort.java#L211-L241", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/GeneralRange.java", "func_name": "GeneralRange.all", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the whole range relative to the specified comparator.", "docstring_tokens": ["Returns", "the", "whole", "range", "relative", "to", "the", "specified", "comparator", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/GeneralRange.java#L58-L60", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/GeneralRange.java", "func_name": "GeneralRange.reverse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the same range relative to the reversed comparator.", "docstring_tokens": ["Returns", "the", "same", "range", "relative", "to", "the", "reversed", "comparator", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/GeneralRange.java#L251-L267", "partition": "valid"} +{"repo": "google/guava", "path": "guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java", "func_name": "ImmutableSet.unsafeDelegate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "the elements are known to be non-null.", "docstring_tokens": ["the", "elements", "are", "known", "to", "be", "non", "-", "null", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java#L135-L144", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/reflect/ImmutableTypeToInstanceMap.java", "func_name": "ImmutableTypeToInstanceMap.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an empty type to instance map.", "docstring_tokens": ["Returns", "an", "empty", "type", "to", "instance", "map", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/reflect/ImmutableTypeToInstanceMap.java#L35-L37", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java", "func_name": "CycleDetectingLockFactory.aboutToAcquire", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "CycleDetectingLock implementations must call this method before attempting to acquire the lock.", "docstring_tokens": ["CycleDetectingLock", "implementations", "must", "call", "this", "method", "before", "attempting", "to", "acquire", "the", "lock", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java#L707-L714", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableRangeSet.java", "func_name": "ImmutableRangeSet.subRangeSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a view of the intersection of this range set with the given range.", "docstring_tokens": ["Returns", "a", "view", "of", "the", "intersection", "of", "this", "range", "set", "with", "the", "given", "range", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableRangeSet.java#L468-L479", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/RegularImmutableMap.java", "func_name": "RegularImmutableMap.makeImmutable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Makes an entry usable internally by a new ImmutableMap without rereading its contents.", "docstring_tokens": ["Makes", "an", "entry", "usable", "internally", "by", "a", "new", "ImmutableMap", "without", "rereading", "its", "contents", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/RegularImmutableMap.java#L120-L124", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/collect/RegularImmutableMap.java", "func_name": "RegularImmutableMap.makeImmutable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Makes an entry usable internally by a new ImmutableMap.", "docstring_tokens": ["Makes", "an", "entry", "usable", "internally", "by", "a", "new", "ImmutableMap", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/collect/RegularImmutableMap.java#L127-L129", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/escape/Escapers.java", "func_name": "Escapers.wrap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Private helper to wrap a CharEscaper as a UnicodeEscaper.", "docstring_tokens": ["Private", "helper", "to", "wrap", "a", "CharEscaper", "as", "a", "UnicodeEscaper", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/escape/Escapers.java#L223-L270", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/math/PairedStatsAccumulator.java", "func_name": "PairedStatsAccumulator.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the given pair of values to the dataset.", "docstring_tokens": ["Adds", "the", "given", "pair", "of", "values", "to", "the", "dataset", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/math/PairedStatsAccumulator.java#L43-L64", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableBiMap.java", "func_name": "ImmutableBiMap.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an immutable bimap containing a single entry.", "docstring_tokens": ["Returns", "an", "immutable", "bimap", "containing", "a", "single", "entry", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableBiMap.java#L47-L50", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/ImmutableBiMap.java", "func_name": "ImmutableBiMap.copyOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an immutable bimap containing the given entries. The returned bimap iterates over\nentries in the same order as the original iterable.\n\n@throws IllegalArgumentException if two keys have the same value or two values have the same\nkey\n@throws NullPointerException if any key, value, or entry is null\n@since 19.0", "docstring_tokens": ["Returns", "an", "immutable", "bimap", "containing", "the", "given", "entries", ".", "The", "returned", "bimap", "iterates", "over", "entries", "in", "the", "same", "order", "as", "the", "original", "iterable", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/ImmutableBiMap.java#L299-L307", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/base/Functions.java", "func_name": "Functions.identity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "implementation is \"fully variant\"; E has become a \"pass-through\" type", "docstring_tokens": ["implementation", "is", "fully", "variant", ";", "E", "has", "become", "a", "pass", "-", "through", "type"], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/base/Functions.java#L81-L84", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/base/Functions.java", "func_name": "Functions.forPredicate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a function that returns the same boolean output as the given predicate for all inputs.\n\n

The returned function is consistent with equals (as documented at {@link\nFunction#apply}) if and only if {@code predicate} is itself consistent with equals.\n\n

Java 8 users: use the method reference {@code predicate::test} instead.", "docstring_tokens": ["Creates", "a", "function", "that", "returns", "the", "same", "boolean", "output", "as", "the", "given", "predicate", "for", "all", "inputs", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/base/Functions.java#L272-L274", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/cache/LocalCache.java", "func_name": "LocalCache.unset", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Singleton placeholder that indicates a value is being loaded.", "docstring_tokens": ["Singleton", "placeholder", "that", "indicates", "a", "value", "is", "being", "loaded", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/cache/LocalCache.java#L725-L728", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/cache/LocalCache.java", "func_name": "LocalCache.isExpired", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if the entry has expired.", "docstring_tokens": ["Returns", "true", "if", "the", "entry", "has", "expired", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/cache/LocalCache.java#L1762-L1771", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/util/concurrent/RateLimiter.java", "func_name": "RateLimiter.reserveAndGetWaitLength", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserves next ticket and returns the wait time that the caller must wait for.\n\n@return the required wait time, never negative", "docstring_tokens": ["Reserves", "next", "ticket", "and", "returns", "the", "wait", "time", "that", "the", "caller", "must", "wait", "for", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/util/concurrent/RateLimiter.java#L370-L373", "partition": "valid"} +{"repo": "google/guava", "path": "guava/src/com/google/common/escape/UnicodeEscaper.java", "func_name": "UnicodeEscaper.codePointAt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the Unicode code point of the character at the given index.\n\n

Unlike {@link Character#codePointAt(CharSequence, int)} or {@link String#codePointAt(int)}\nthis method will never fail silently when encountering an invalid surrogate pair.\n\n

The behaviour of this method is as follows:\n\n

    \n
  1. If {@code index >= end}, {@link IndexOutOfBoundsException} is thrown.\n
  2. If the character at the specified index is not a surrogate, it is returned.\n
  3. If the first character was a high surrogate value, then an attempt is made to read the\nnext character.\n
      \n
    1. If the end of the sequence was reached, the negated value of the trailing high\nsurrogate is returned.\n
    2. If the next character was a valid low surrogate, the code point value of the\nhigh/low surrogate pair is returned.\n
    3. If the next character was not a low surrogate value, then {@link\nIllegalArgumentException} is thrown.\n
    \n
  4. If the first character was a low surrogate value, {@link IllegalArgumentException} is\nthrown.\n
\n\n@param seq the sequence of characters from which to decode the code point\n@param index the index of the first character to decode\n@param end the index beyond the last valid character to decode\n@return the Unicode code point for the given index or the negated value of the trailing high\nsurrogate character at the end of the sequence", "docstring_tokens": ["Returns", "the", "Unicode", "code", "point", "of", "the", "character", "at", "the", "given", "index", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/guava/src/com/google/common/escape/UnicodeEscaper.java#L245-L286", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/HashBiMap.java", "func_name": "HashBiMap.ensureCapacity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Ensures that all of the internal structures in the HashBiMap are ready for this many elements.", "docstring_tokens": ["Ensures", "that", "all", "of", "the", "internal", "structures", "in", "the", "HashBiMap", "are", "ready", "for", "this", "many", "elements", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/HashBiMap.java#L155-L185", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/HashBiMap.java", "func_name": "HashBiMap.insertIntoTableKToV", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Updates the K-to-V hash table to include the entry at the specified index, which is assumed to\nhave not yet been added.", "docstring_tokens": ["Updates", "the", "K", "-", "to", "-", "V", "hash", "table", "to", "include", "the", "entry", "at", "the", "specified", "index", "which", "is", "assumed", "to", "have", "not", "yet", "been", "added", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/HashBiMap.java#L372-L377", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/HashBiMap.java", "func_name": "HashBiMap.insertIntoTableVToK", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Updates the V-to-K hash table to include the entry at the specified index, which is assumed to\nhave not yet been added.", "docstring_tokens": ["Updates", "the", "V", "-", "to", "-", "K", "hash", "table", "to", "include", "the", "entry", "at", "the", "specified", "index", "which", "is", "assumed", "to", "have", "not", "yet", "been", "added", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/HashBiMap.java#L383-L388", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/HashBiMap.java", "func_name": "HashBiMap.deleteFromTableKToV", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Updates the K-to-V hash table to remove the entry at the specified index, which is assumed to\nbe present. Does not update any other data structures.", "docstring_tokens": ["Updates", "the", "K", "-", "to", "-", "V", "hash", "table", "to", "remove", "the", "entry", "at", "the", "specified", "index", "which", "is", "assumed", "to", "be", "present", ".", "Does", "not", "update", "any", "other", "data", "structures", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/HashBiMap.java#L394-L416", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/HashBiMap.java", "func_name": "HashBiMap.deleteFromTableVToK", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Updates the V-to-K hash table to remove the entry at the specified index, which is assumed to\nbe present. Does not update any other data structures.", "docstring_tokens": ["Updates", "the", "V", "-", "to", "-", "K", "hash", "table", "to", "remove", "the", "entry", "at", "the", "specified", "index", "which", "is", "assumed", "to", "be", "present", ".", "Does", "not", "update", "any", "other", "data", "structures", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/HashBiMap.java#L422-L444", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/HashBiMap.java", "func_name": "HashBiMap.removeEntry", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the entry at the specified index, given the hash of its key and value.", "docstring_tokens": ["Removes", "the", "entry", "at", "the", "specified", "index", "given", "the", "hash", "of", "its", "key", "and", "value", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/HashBiMap.java#L553-L567", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/HashBiMap.java", "func_name": "HashBiMap.removeEntryKeyHashKnown", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the entry at the specified index, given the hash of its key.", "docstring_tokens": ["Removes", "the", "entry", "at", "the", "specified", "index", "given", "the", "hash", "of", "its", "key", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/HashBiMap.java#L570-L572", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/collect/HashBiMap.java", "func_name": "HashBiMap.removeEntryValueHashKnown", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the entry at the specified index, given the hash of its value.", "docstring_tokens": ["Removes", "the", "entry", "at", "the", "specified", "index", "given", "the", "hash", "of", "its", "value", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/collect/HashBiMap.java#L575-L577", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/graph/NetworkBuilder.java", "func_name": "NetworkBuilder.expectedNodeCount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Specifies the expected number of nodes in the network.\n\n@throws IllegalArgumentException if {@code expectedNodeCount} is negative", "docstring_tokens": ["Specifies", "the", "expected", "number", "of", "nodes", "in", "the", "network", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/graph/NetworkBuilder.java#L142-L145", "partition": "valid"} +{"repo": "google/guava", "path": "android/guava/src/com/google/common/graph/NetworkBuilder.java", "func_name": "NetworkBuilder.expectedEdgeCount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Specifies the expected number of edges in the network.\n\n@throws IllegalArgumentException if {@code expectedEdgeCount} is negative", "docstring_tokens": ["Specifies", "the", "expected", "number", "of", "edges", "in", "the", "network", "."], "sha": "7155d12b70a2406fa84d94d4b8b3bc108e89abfd", "url": "https://github.com/google/guava/blob/7155d12b70a2406fa84d94d4b8b3bc108e89abfd/android/guava/src/com/google/common/graph/NetworkBuilder.java#L152-L155", "partition": "valid"} +{"repo": "codingapi/tx-lcn", "path": "txlcn-tc/src/main/java/com/codingapi/txlcn/tc/support/p6spy/common/CallableStatementInformation.java", "func_name": "CallableStatementInformation.getSqlWithValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the query for the callable statement with all parameter placeholders\nreplaced with the actual parameter values\n\n@return the SQL", "docstring_tokens": ["Generates", "the", "query", "for", "the", "callable", "statement", "with", "all", "parameter", "placeholders", "replaced", "with", "the", "actual", "parameter", "values"], "sha": "1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6", "url": "https://github.com/codingapi/tx-lcn/blob/1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6/txlcn-tc/src/main/java/com/codingapi/txlcn/tc/support/p6spy/common/CallableStatementInformation.java#L42-L85", "partition": "valid"} +{"repo": "codingapi/tx-lcn", "path": "txlcn-tc/src/main/java/com/codingapi/txlcn/tc/support/p6spy/common/CallableStatementInformation.java", "func_name": "CallableStatementInformation.setParameterValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Records the value of a parameter.\n\n@param name the name of the parameter\n@param value the value of the parameter", "docstring_tokens": ["Records", "the", "value", "of", "a", "parameter", "."], "sha": "1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6", "url": "https://github.com/codingapi/tx-lcn/blob/1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6/txlcn-tc/src/main/java/com/codingapi/txlcn/tc/support/p6spy/common/CallableStatementInformation.java#L103-L105", "partition": "valid"} +{"repo": "codingapi/tx-lcn", "path": "txlcn-tc/src/main/java/com/codingapi/txlcn/tc/core/transaction/txc/analy/util/SqlUtils.java", "func_name": "SqlUtils.objectToBlob", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "java Object to bytes\n\n@param o o\n@return byte[]", "docstring_tokens": ["java", "Object", "to", "bytes"], "sha": "1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6", "url": "https://github.com/codingapi/tx-lcn/blob/1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6/txlcn-tc/src/main/java/com/codingapi/txlcn/tc/core/transaction/txc/analy/util/SqlUtils.java#L129-L135", "partition": "valid"} +{"repo": "codingapi/tx-lcn", "path": "txlcn-tc/src/main/java/com/codingapi/txlcn/tc/core/transaction/txc/analy/util/SqlUtils.java", "func_name": "SqlUtils.blobToObject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "bytes to java object.\n\n@param blob blob\n@param type type\n@param T\n@return T", "docstring_tokens": ["bytes", "to", "java", "object", "."], "sha": "1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6", "url": "https://github.com/codingapi/tx-lcn/blob/1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6/txlcn-tc/src/main/java/com/codingapi/txlcn/tc/core/transaction/txc/analy/util/SqlUtils.java#L145-L151", "partition": "valid"} +{"repo": "codingapi/tx-lcn", "path": "txlcn-tc/src/main/java/com/codingapi/txlcn/tc/core/transaction/txc/analy/TxcServiceImpl.java", "func_name": "TxcServiceImpl.lockDataLine", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "lock data line\n\n@param groupId groupId\n@param unitId unitId\n@param lockIdSet lockIdSet\n@param isXLock isXLock\n@throws TxcLogicException \u4e1a\u52a1\u5f02\u5e38", "docstring_tokens": ["lock", "data", "line"], "sha": "1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6", "url": "https://github.com/codingapi/tx-lcn/blob/1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6/txlcn-tc/src/main/java/com/codingapi/txlcn/tc/core/transaction/txc/analy/TxcServiceImpl.java#L82-L91", "partition": "valid"} +{"repo": "codingapi/tx-lcn", "path": "txlcn-tc/src/main/java/com/codingapi/txlcn/tc/core/transaction/txc/analy/TxcServiceImpl.java", "func_name": "TxcServiceImpl.saveUndoLog", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "save sql undo log\n\n@param groupId groupId\n@param unitId unitId\n@param sqlType sqlType\n@param recordList recordList\n@throws TxcLogicException \u4e1a\u52a1\u5f02\u5e38", "docstring_tokens": ["save", "sql", "undo", "log"], "sha": "1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6", "url": "https://github.com/codingapi/tx-lcn/blob/1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6/txlcn-tc/src/main/java/com/codingapi/txlcn/tc/core/transaction/txc/analy/TxcServiceImpl.java#L102-L113", "partition": "valid"} +{"repo": "codingapi/tx-lcn", "path": "txlcn-tm/src/main/java/com/codingapi/txlcn/tm/core/storage/redis/RedisConfiguration.java", "func_name": "RedisConfiguration.functionDomainRedisTemplate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "default configuration redis template when have RedisConnectionFactory", "docstring_tokens": ["default", "configuration", "redis", "template", "when", "have", "RedisConnectionFactory"], "sha": "1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6", "url": "https://github.com/codingapi/tx-lcn/blob/1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6/txlcn-tm/src/main/java/com/codingapi/txlcn/tm/core/storage/redis/RedisConfiguration.java#L37-L49", "partition": "valid"} +{"repo": "codingapi/tx-lcn", "path": "txlcn-tracing/src/main/java/com/codingapi/txlcn/tracing/TracingContext.java", "func_name": "TracingContext.appMapString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "String Type App map.\n\n@return appMap", "docstring_tokens": ["String", "Type", "App", "map", "."], "sha": "1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6", "url": "https://github.com/codingapi/tx-lcn/blob/1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6/txlcn-tracing/src/main/java/com/codingapi/txlcn/tracing/TracingContext.java#L142-L150", "partition": "valid"} +{"repo": "codingapi/tx-lcn", "path": "txlcn-tc/src/main/java/com/codingapi/txlcn/tc/support/p6spy/common/P6Util.java", "func_name": "P6Util.locateOnClassPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Locates a file on the classpath.\n\n@param filename the relative filePath of the file to load\n@return the URL of the file or null if not found", "docstring_tokens": ["Locates", "a", "file", "on", "the", "classpath", "."], "sha": "1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6", "url": "https://github.com/codingapi/tx-lcn/blob/1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6/txlcn-tc/src/main/java/com/codingapi/txlcn/tc/support/p6spy/common/P6Util.java#L96-L112", "partition": "valid"} +{"repo": "codingapi/tx-lcn", "path": "txlcn-tc/src/main/java/com/codingapi/txlcn/tc/support/p6spy/common/ConnectionInformation.java", "func_name": "ConnectionInformation.fromConnection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method should only be used in test scenarios\n\n@param connection the underlying connection (possibly a mock)\n@return a new {@link ConnectionInformation} instance", "docstring_tokens": ["This", "method", "should", "only", "be", "used", "in", "test", "scenarios"], "sha": "1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6", "url": "https://github.com/codingapi/tx-lcn/blob/1f95ecd4b845d91c7a5920a1fbfd8f682d6f40a6/txlcn-tc/src/main/java/com/codingapi/txlcn/tc/support/p6spy/common/ConnectionInformation.java#L43-L47", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/util/ExceptionToResourceMapping.java", "func_name": "ExceptionToResourceMapping.mapThrowable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Looks at the exception and its causes trying to find an ID.", "docstring_tokens": ["Looks", "at", "the", "exception", "and", "its", "causes", "trying", "to", "find", "an", "ID", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/util/ExceptionToResourceMapping.java#L41-L60", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBusAnnotationProcessor/src/org/greenrobot/eventbus/annotationprocessor/EventBusAnnotationProcessor.java", "func_name": "EventBusAnnotationProcessor.checkForSubscribersToSkip", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Subscriber classes should be skipped if their class or any involved event class are not visible to the index.", "docstring_tokens": ["Subscriber", "classes", "should", "be", "skipped", "if", "their", "class", "or", "any", "involved", "event", "class", "are", "not", "visible", "to", "the", "index", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBusAnnotationProcessor/src/org/greenrobot/eventbus/annotationprocessor/EventBusAnnotationProcessor.java#L158-L208", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/EventBus.java", "func_name": "EventBus.getDefault", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convenience singleton for apps using a process-wide EventBus instance.", "docstring_tokens": ["Convenience", "singleton", "for", "apps", "using", "a", "process", "-", "wide", "EventBus", "instance", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/EventBus.java#L80-L91", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/EventBus.java", "func_name": "EventBus.subscribe", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Must be called in synchronized block", "docstring_tokens": ["Must", "be", "called", "in", "synchronized", "block"], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/EventBus.java#L151-L199", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/EventBus.java", "func_name": "EventBus.unsubscribeByEventType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Only updates subscriptionsByEventType, not typesBySubscriber! Caller must update typesBySubscriber.", "docstring_tokens": ["Only", "updates", "subscriptionsByEventType", "not", "typesBySubscriber!", "Caller", "must", "update", "typesBySubscriber", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/EventBus.java#L224-L238", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/EventBus.java", "func_name": "EventBus.unregister", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unregisters the given subscriber from all event classes.", "docstring_tokens": ["Unregisters", "the", "given", "subscriber", "from", "all", "event", "classes", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/EventBus.java#L241-L251", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/EventBus.java", "func_name": "EventBus.post", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Posts the given event to the event bus.", "docstring_tokens": ["Posts", "the", "given", "event", "to", "the", "event", "bus", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/EventBus.java#L254-L274", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/EventBus.java", "func_name": "EventBus.getStickyEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the most recent sticky event for the given type.\n\n@see #postSticky(Object)", "docstring_tokens": ["Gets", "the", "most", "recent", "sticky", "event", "for", "the", "given", "type", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/EventBus.java#L316-L320", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/EventBus.java", "func_name": "EventBus.removeStickyEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove and gets the recent sticky event for the given event type.\n\n@see #postSticky(Object)", "docstring_tokens": ["Remove", "and", "gets", "the", "recent", "sticky", "event", "for", "the", "given", "event", "type", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/EventBus.java#L327-L331", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/EventBus.java", "func_name": "EventBus.removeStickyEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the sticky event if it equals to the given event.\n\n@return true if the events matched and the sticky event was removed.", "docstring_tokens": ["Removes", "the", "sticky", "event", "if", "it", "equals", "to", "the", "given", "event", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/EventBus.java#L338-L349", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/EventBus.java", "func_name": "EventBus.lookupAllEventTypes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Looks up all Class objects including super classes and interfaces. Should also work for interfaces.", "docstring_tokens": ["Looks", "up", "all", "Class", "objects", "including", "super", "classes", "and", "interfaces", ".", "Should", "also", "work", "for", "interfaces", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/EventBus.java#L465-L480", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/EventBus.java", "func_name": "EventBus.addInterfaces", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recurses through super interfaces.", "docstring_tokens": ["Recurses", "through", "super", "interfaces", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/EventBus.java#L483-L490", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/EventBusBuilder.java", "func_name": "EventBusBuilder.addIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds an index generated by EventBus' annotation preprocessor.", "docstring_tokens": ["Adds", "an", "index", "generated", "by", "EventBus", "annotation", "preprocessor", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/EventBusBuilder.java#L137-L143", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/util/ErrorDialogManager.java", "func_name": "ErrorDialogManager.attachTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Scope is limited to the activity's class.", "docstring_tokens": ["Scope", "is", "limited", "to", "the", "activity", "s", "class", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/util/ErrorDialogManager.java#L200-L203", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/util/ErrorDialogFragmentFactory.java", "func_name": "ErrorDialogFragmentFactory.prepareErrorFragment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prepares the fragment's arguments and creates the fragment. May be overridden to provide custom error fragments.", "docstring_tokens": ["Prepares", "the", "fragment", "s", "arguments", "and", "creates", "the", "fragment", ".", "May", "be", "overridden", "to", "provide", "custom", "error", "fragments", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/util/ErrorDialogFragmentFactory.java#L38-L70", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/util/ErrorDialogFragmentFactory.java", "func_name": "ErrorDialogFragmentFactory.getTitleFor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "May be overridden to provide custom error title.", "docstring_tokens": ["May", "be", "overridden", "to", "provide", "custom", "error", "title", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/util/ErrorDialogFragmentFactory.java#L76-L78", "partition": "valid"} +{"repo": "greenrobot/EventBus", "path": "EventBus/src/org/greenrobot/eventbus/util/ErrorDialogFragmentFactory.java", "func_name": "ErrorDialogFragmentFactory.getMessageFor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "May be overridden to provide custom error messages.", "docstring_tokens": ["May", "be", "overridden", "to", "provide", "custom", "error", "messages", "."], "sha": "2e7c0461106a3c261859579ec6fdcb5353ed31a4", "url": "https://github.com/greenrobot/EventBus/blob/2e7c0461106a3c261859579ec6fdcb5353ed31a4/EventBus/src/org/greenrobot/eventbus/util/ErrorDialogFragmentFactory.java#L81-L84", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/DrainUtils.java", "func_name": "DrainUtils.postCompleteDrain", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Drains the queue either in a pre- or post-complete state.\n\n@param n the requested amount\n@param actual the consumer of values\n@param queue the queue holding available values\n@param field the field updater holding the requested amount\n@param instance the parent instance of the requested field\n@param isCancelled callback to detect cancellation\n@return true if the queue was completely drained or the drain process was cancelled", "docstring_tokens": ["Drains", "the", "queue", "either", "in", "a", "pre", "-", "or", "post", "-", "complete", "state", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/DrainUtils.java#L92-L162", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/BlockingSingleSubscriber.java", "func_name": "BlockingSingleSubscriber.blockingGet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Block until the first value arrives and return it, otherwise\nreturn null for an empty source and rethrow any exception.\n\n@param timeout the timeout to wait\n@param unit the time unit\n\n@return the first value or null if the source is empty", "docstring_tokens": ["Block", "until", "the", "first", "value", "arrives", "and", "return", "it", "otherwise", "return", "null", "for", "an", "empty", "source", "and", "rethrow", "any", "exception", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/BlockingSingleSubscriber.java#L108-L137", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/Flux.java", "func_name": "Flux.elementAt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Emit only the element at the given index position or fall back to a\ndefault value if the sequence is shorter.\n\n

\n\"\"\n\n@reactor.discard This operator discards elements that appear before the requested index.\n\n@param index zero-based index of the only item to emit\n@param defaultValue a default value to emit if the sequence is shorter\n\n@return a {@link Mono} of the item at the specified zero-based index or a default value", "docstring_tokens": ["Emit", "only", "the", "element", "at", "the", "given", "index", "position", "or", "fall", "back", "to", "a", "default", "value", "if", "the", "sequence", "is", "shorter", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/Flux.java#L4384-L4386", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/Flux.java", "func_name": "Flux.onErrorResume", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Subscribe to a returned fallback publisher when any error occurs, using a function to\nchoose the fallback depending on the error.\n\n

\n\"\"\n\n@param fallback the function to choose the fallback to an alternative {@link Publisher}\n\n@return a {@link Flux} falling back upon source onError", "docstring_tokens": ["Subscribe", "to", "a", "returned", "fallback", "publisher", "when", "any", "error", "occurs", "using", "a", "function", "to", "choose", "the", "fallback", "depending", "on", "the", "error", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/Flux.java#L6242-L6244", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/Flux.java", "func_name": "Flux.repeat", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Repeatedly subscribe to the source if the predicate returns true after completion of the previous\nsubscription. A specified maximum of repeat will limit the number of re-subscribe.\n\n

\n\"\"\n\n@param numRepeat the number of times to re-subscribe on complete (positive, or 0 for original sequence only)\n@param predicate the boolean to evaluate on onComplete\n\n@return a {@link Flux} that repeats on onComplete while the predicate matches,\nup to the specified number of repetitions", "docstring_tokens": ["Repeatedly", "subscribe", "to", "the", "source", "if", "the", "predicate", "returns", "true", "after", "completion", "of", "the", "previous", "subscription", ".", "A", "specified", "maximum", "of", "repeat", "will", "limit", "the", "number", "of", "re", "-", "subscribe", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/Flux.java#L6731-L6739", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/Flux.java", "func_name": "Flux.convertToMono", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the appropriate Mono instance for a known Supplier Flux.\n\n@param supplier the supplier Flux\n\n@return the mono representing that Flux", "docstring_tokens": ["Returns", "the", "appropriate", "Mono", "instance", "for", "a", "known", "Supplier", "Flux", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/Flux.java#L9315-L9332", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/EventLoopProcessor.java", "func_name": "EventLoopProcessor.getAndSub", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Concurrent subtraction bound to 0 and Long.MAX_VALUE. Any concurrent write will\n\"happen\" before this operation.\n\n@param sequence current sequence to update\n@param toSub delta to sub\n\n@return value before subscription, 0 or Long.MAX_VALUE", "docstring_tokens": ["Concurrent", "subtraction", "bound", "to", "0", "and", "Long", ".", "MAX_VALUE", ".", "Any", "concurrent", "write", "will", "happen", "before", "this", "operation", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/EventLoopProcessor.java#L173-L185", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/Operators.java", "func_name": "Operators.as", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the subscription as QueueSubscription if possible or null.\n@param the value type of the QueueSubscription.\n@param s the source subscription to try to convert.\n@return the QueueSubscription instance or null", "docstring_tokens": ["Returns", "the", "subscription", "as", "QueueSubscription", "if", "possible", "or", "null", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/Operators.java#L102-L109", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/Operators.java", "func_name": "Operators.error", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calls onSubscribe on the target Subscriber with the empty instance followed by a call to onError with the\nsupplied error.\n\n@param s target Subscriber to error\n@param e the actual error", "docstring_tokens": ["Calls", "onSubscribe", "on", "the", "target", "Subscriber", "with", "the", "empty", "instance", "followed", "by", "a", "call", "to", "onError", "with", "the", "supplied", "error", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/Operators.java#L180-L183", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/Operators.java", "func_name": "Operators.produced", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Concurrent subtraction bound to 0, mostly used to decrement a request tracker by\nthe amount produced by the operator. Any concurrent write will \"happen before\"\nthis operation.\n\n@param the parent instance type\n@param updater current field updater\n@param instance current instance to update\n@param toSub delta to subtract\n@return value after subtraction or zero", "docstring_tokens": ["Concurrent", "subtraction", "bound", "to", "0", "mostly", "used", "to", "decrement", "a", "request", "tracker", "by", "the", "amount", "produced", "by", "the", "operator", ".", "Any", "concurrent", "write", "will", "happen", "before", "this", "operation", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/Operators.java#L849-L860", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/Operators.java", "func_name": "Operators.scalarSubscription", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Represents a fuseable Subscription that emits a single constant value synchronously\nto a Subscriber or consumer.\n\n@param subscriber the delegate {@link Subscriber} that will be requesting the value\n@param value the single value to be emitted\n@param the value type\n@return a new scalar {@link Subscription}", "docstring_tokens": ["Represents", "a", "fuseable", "Subscription", "that", "emits", "a", "single", "constant", "value", "synchronously", "to", "a", "Subscriber", "or", "consumer", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/Operators.java#L937-L940", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/MonoIgnoreThen.java", "func_name": "MonoIgnoreThen.shift", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shifts the current last Mono into the ignore array and sets up a new last Mono instance.\n@param the new last value type\n@param newLast the new last Mono instance\n@return the new operator set up", "docstring_tokens": ["Shifts", "the", "current", "last", "Mono", "into", "the", "ignore", "array", "and", "sets", "up", "a", "new", "last", "Mono", "instance", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/MonoIgnoreThen.java#L65-L74", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/util/concurrent/WaitStrategy.java", "func_name": "WaitStrategy.phasedOffSleep", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Block by parking in a loop\n@param spinTimeout the spin timeout\n@param yieldTimeout the yield timeout\n@param units the time unit\n@return the wait strategy", "docstring_tokens": ["Block", "by", "parking", "in", "a", "loop"], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/util/concurrent/WaitStrategy.java#L151-L153", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/Mono.java", "func_name": "Mono.and", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Join the termination signals from this mono and another source into the returned\nvoid mono\n\n

\n\"\"\n

\n@param other the {@link Publisher} to wait for\ncomplete\n@return a new combined Mono\n@see #when", "docstring_tokens": ["Join", "the", "termination", "signals", "from", "this", "mono", "and", "another", "source", "into", "the", "returned", "void", "mono"], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/Mono.java#L1465-L1475", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/Mono.java", "func_name": "Mono.defaultIfEmpty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Provide a default single value if this mono is completed without any data\n\n

\n\"\"\n

\n@param defaultV the alternate value if this sequence is empty\n\n@return a new {@link Mono}\n\n@see Flux#defaultIfEmpty(Object)", "docstring_tokens": ["Provide", "a", "default", "single", "value", "if", "this", "mono", "is", "completed", "without", "any", "data"], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/Mono.java#L1792-L1806", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/Mono.java", "func_name": "Mono.or", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Emit the first available result from this mono or the other mono.\n\n

\n\"\"\n\n@param other the racing other {@link Mono} to compete with for the result\n\n@return a new {@link Mono}\n@see #first", "docstring_tokens": ["Emit", "the", "first", "available", "result", "from", "this", "mono", "or", "the", "other", "mono", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/Mono.java#L2878-L2887", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/Mono.java", "func_name": "Mono.onErrorResume", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Subscribe to a fallback publisher when any error occurs, using a function to\nchoose the fallback depending on the error.\n\n

\n\"\"\n\n@param fallback the function to choose the fallback to an alternative {@link Mono}\n\n@return a {@link Mono} falling back upon source onError\n\n@see Flux#onErrorResume", "docstring_tokens": ["Subscribe", "to", "a", "fallback", "publisher", "when", "any", "error", "occurs", "using", "a", "function", "to", "choose", "the", "fallback", "depending", "on", "the", "error", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/Mono.java#L3043-L3046", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/Hooks.java", "func_name": "Hooks.getOnEachOperatorHooks", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Immutable views on hook trackers, for testing purpose", "docstring_tokens": ["Immutable", "views", "on", "hook", "trackers", "for", "testing", "purpose"], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/Hooks.java#L519-L521", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/MonoDelayUntil.java", "func_name": "MonoDelayUntil.copyWithNewTriggerGenerator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a trigger generator to wait for.\n@param delayError the delayError parameter for the trigger being added, ignored if already true\n@param triggerGenerator the new trigger to add to the copy of the operator\n@return a new {@link MonoDelayUntil} instance with same source but additional trigger generator", "docstring_tokens": ["Add", "a", "trigger", "generator", "to", "wait", "for", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/MonoDelayUntil.java#L68-L77", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/QueueDrainSubscriber.java", "func_name": "QueueDrainSubscriber.drainMaxLoop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Drain the queue but give up with an error if there aren't enough requests.\n@param the queue value type\n@param the emission value type\n@param q the queue\n@param a the subscriber\n@param delayError true if errors should be delayed after all normal items\n@param dispose the disposable to call when termination happens and cleanup is necessary\n@param qd the QueueDrain instance that gives status information to the drain logic", "docstring_tokens": ["Drain", "the", "queue", "but", "give", "up", "with", "an", "error", "if", "there", "aren", "t", "enough", "requests", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/QueueDrainSubscriber.java#L198-L243", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/FluxFlatMap.java", "func_name": "FluxFlatMap.trySubscribeScalarMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if the source is a Supplier and if the mapper's publisher output is also\na supplier, thus avoiding subscribing to any of them.\n\n@param source the source publisher\n@param s the end consumer\n@param mapper the mapper function\n@param fuseableExpected if true, the parent class was marked Fuseable thus the\nmapping output has to signal onSubscribe with a QueueSubscription\n\n@return true if the optimization worked", "docstring_tokens": ["Checks", "if", "the", "source", "is", "a", "Supplier", "and", "if", "the", "mapper", "s", "publisher", "output", "is", "also", "a", "supplier", "thus", "avoiding", "subscribing", "to", "any", "of", "them", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/FluxFlatMap.java#L117-L180", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java", "func_name": "ParallelFlux.as", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Perform a fluent transformation to a value via a converter function which receives\nthis ParallelFlux.\n\n@param the output value type\n@param converter the converter function from {@link ParallelFlux} to some type\n\n@return the value returned by the converter function", "docstring_tokens": ["Perform", "a", "fluent", "transformation", "to", "a", "value", "via", "a", "converter", "function", "which", "receives", "this", "ParallelFlux", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java#L153-L155", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java", "func_name": "ParallelFlux.collect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Collect the elements in each rail into a collection supplied via a\ncollectionSupplier and collected into with a collector action, emitting the\ncollection at the end.\n\n@param the collection type\n@param collectionSupplier the supplier of the collection in each rail\n@param collector the collector, taking the per-rail collection and the current\nitem\n\n@return the new {@link ParallelFlux} instance", "docstring_tokens": ["Collect", "the", "elements", "in", "each", "rail", "into", "a", "collection", "supplied", "via", "a", "collectionSupplier", "and", "collected", "into", "with", "a", "collector", "action", "emitting", "the", "collection", "at", "the", "end", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java#L242-L245", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java", "func_name": "ParallelFlux.concatMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates and concatenates Publishers on each 'rail', signalling errors immediately\nand generating 2 publishers upfront.\n\n@param the result type\n@param mapper the function to map each rail's value into a Publisher source and the\ninner Publishers (immediate, boundary, end)\n\n@return the new {@link ParallelFlux} instance", "docstring_tokens": ["Generates", "and", "concatenates", "Publishers", "on", "each", "rail", "signalling", "errors", "immediately", "and", "generating", "2", "publishers", "upfront", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java#L325-L327", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java", "func_name": "ParallelFlux.doOnCancel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Run the specified runnable when a 'rail' receives a cancellation.\n\n@param onCancel the callback\n\n@return the new {@link ParallelFlux} instance", "docstring_tokens": ["Run", "the", "specified", "runnable", "when", "a", "rail", "receives", "a", "cancellation", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java#L379-L382", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java", "func_name": "ParallelFlux.doOnComplete", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Run the specified runnable when a 'rail' completes.\n\n@param onComplete the callback\n\n@return the new {@link ParallelFlux} instance", "docstring_tokens": ["Run", "the", "specified", "runnable", "when", "a", "rail", "completes", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java#L391-L394", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java", "func_name": "ParallelFlux.doOnError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call the specified consumer with the exception passing through any 'rail'.\n\n@param onError the callback\n\n@return the new {@link ParallelFlux} instance", "docstring_tokens": ["Call", "the", "specified", "consumer", "with", "the", "exception", "passing", "through", "any", "rail", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java#L436-L439", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java", "func_name": "ParallelFlux.doOnRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call the specified consumer with the request amount if any rail receives a\nrequest.\n\n@param onRequest the callback\n\n@return the new {@link ParallelFlux} instance", "docstring_tokens": ["Call", "the", "specified", "consumer", "with", "the", "request", "amount", "if", "any", "rail", "receives", "a", "request", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java#L478-L481", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java", "func_name": "ParallelFlux.flatMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates and flattens Publishers on each 'rail', optionally delaying errors,\nhaving a total number of simultaneous subscriptions to the inner Publishers and\nusing the given prefetch amount for the inner Publishers.\n\n@param the result type\n@param mapper the function to map each rail's value into a Publisher\n@param delayError should the errors from the main and the inner sources delayed\ntill everybody terminates?\n@param maxConcurrency the maximum number of simultaneous subscriptions to the\ngenerated inner Publishers\n@param prefetch the number of items to prefetch from each inner Publisher\n\n@return the new {@link ParallelFlux} instance", "docstring_tokens": ["Generates", "and", "flattens", "Publishers", "on", "each", "rail", "optionally", "delaying", "errors", "having", "a", "total", "number", "of", "simultaneous", "subscriptions", "to", "the", "inner", "Publishers", "and", "using", "the", "given", "prefetch", "amount", "for", "the", "inner", "Publishers", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java#L591-L601", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java", "func_name": "ParallelFlux.sequential", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Merges the values from each 'rail' in a round-robin or same-order fashion and\nexposes it as a regular Publisher sequence, running with a give prefetch value for\nthe rails.\n\n@param prefetch the prefetch amount to use for each rail\n\n@return the new Flux instance", "docstring_tokens": ["Merges", "the", "values", "from", "each", "rail", "in", "a", "round", "-", "robin", "or", "same", "-", "order", "fashion", "and", "exposes", "it", "as", "a", "regular", "Publisher", "sequence", "running", "with", "a", "give", "prefetch", "value", "for", "the", "rails", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java#L907-L911", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java", "func_name": "ParallelFlux.validate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validates the number of subscribers and returns true if their number matches the\nparallelism level of this ParallelFlux.\n\n@param subscribers the array of Subscribers\n\n@return true if the number of subscribers equals to the parallelism level", "docstring_tokens": ["Validates", "the", "number", "of", "subscribers", "and", "returns", "true", "if", "their", "number", "matches", "the", "parallelism", "level", "of", "this", "ParallelFlux", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java#L1113-L1124", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java", "func_name": "ParallelFlux.concatMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates and concatenates Publishers on each 'rail', optionally delaying errors\nand using the given prefetch amount for generating Publishers upfront.\n\n@param the result type\n@param mapper the function to map each rail's value into a Publisher\n@param prefetch the number of items to prefetch from each inner Publisher\n@param errorMode the error handling, i.e., when to report errors from the main\nsource and the inner Publishers (immediate, boundary, end)\n\n@return the new {@link ParallelFlux} instance", "docstring_tokens": ["Generates", "and", "concatenates", "Publishers", "on", "each", "rail", "optionally", "delaying", "errors", "and", "using", "the", "given", "prefetch", "amount", "for", "generating", "Publishers", "upfront", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java#L1138-L1146", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java", "func_name": "ParallelFlux.concatMapDelayError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates and concatenates Publishers on each 'rail', delaying errors\nand using the given prefetch amount for generating Publishers upfront.\n\n@param the result type\n@param mapper the function to map each rail's value into a Publisher\n@param delayUntilEnd true if delayed until all sources are concatenated\n@param prefetch the number of items to prefetch from each inner Publisher\nsource and the inner Publishers (immediate, boundary, end)\n\n@return the new {@link ParallelFlux} instance", "docstring_tokens": ["Generates", "and", "concatenates", "Publishers", "on", "each", "rail", "delaying", "errors", "and", "using", "the", "given", "prefetch", "amount", "for", "generating", "Publishers", "upfront", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/ParallelFlux.java#L1160-L1165", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/Exceptions.java", "func_name": "Exceptions.terminate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Atomic utility to safely mark a volatile throwable reference with a terminal\nmarker.\n\n@param field the atomic container\n@param instance the reference instance\n@param the instance type\n\n@return the previously masked throwable", "docstring_tokens": ["Atomic", "utility", "to", "safely", "mark", "a", "volatile", "throwable", "reference", "with", "a", "terminal", "marker", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/Exceptions.java#L339-L347", "partition": "valid"} +{"repo": "reactor/reactor-core", "path": "reactor-core/src/main/java/reactor/core/publisher/SignalLogger.java", "func_name": "SignalLogger.log", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Structured logging with level adaptation and operator ascii graph if required.\n\n@param signalType the type of signal being logged\n@param signalValue the value for the signal (use empty string if not required)", "docstring_tokens": ["Structured", "logging", "with", "level", "adaptation", "and", "operator", "ascii", "graph", "if", "required", "."], "sha": "df2eba4ab7d2393e1a942ce972c3307fbbd47ff9", "url": "https://github.com/reactor/reactor-core/blob/df2eba4ab7d2393e1a942ce972c3307fbbd47ff9/reactor-core/src/main/java/reactor/core/publisher/SignalLogger.java#L174-L194", "partition": "valid"} +{"repo": "lingochamp/FileDownloader", "path": "library/src/main/java/com/liulishuo/filedownloader/FileDownloader.java", "func_name": "FileDownloader.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Start the download queue by the same listener.\n\n@param listener Used to assemble tasks which is bound by the same {@code listener}\n@param isSerial Whether start tasks one by one rather than parallel.\n@return {@code true} if start tasks successfully.", "docstring_tokens": ["Start", "the", "download", "queue", "by", "the", "same", "listener", "."], "sha": "53bca84d573505ff78899c4aa2056c3d40384c1b", "url": "https://github.com/lingochamp/FileDownloader/blob/53bca84d573505ff78899c4aa2056c3d40384c1b/library/src/main/java/com/liulishuo/filedownloader/FileDownloader.java#L227-L239", "partition": "valid"} +{"repo": "lingochamp/FileDownloader", "path": "library/src/main/java/com/liulishuo/filedownloader/FileDownloader.java", "func_name": "FileDownloader.pauseAll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Pause all tasks running in FileDownloader.", "docstring_tokens": ["Pause", "all", "tasks", "running", "in", "FileDownloader", "."], "sha": "53bca84d573505ff78899c4aa2056c3d40384c1b", "url": "https://github.com/lingochamp/FileDownloader/blob/53bca84d573505ff78899c4aa2056c3d40384c1b/library/src/main/java/com/liulishuo/filedownloader/FileDownloader.java#L260-L273", "partition": "valid"} +{"repo": "lingochamp/FileDownloader", "path": "library/src/main/java/com/liulishuo/filedownloader/FileDownloader.java", "func_name": "FileDownloader.getSoFar", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get downloaded bytes so far by the downloadId.", "docstring_tokens": ["Get", "downloaded", "bytes", "so", "far", "by", "the", "downloadId", "."], "sha": "53bca84d573505ff78899c4aa2056c3d40384c1b", "url": "https://github.com/lingochamp/FileDownloader/blob/53bca84d573505ff78899c4aa2056c3d40384c1b/library/src/main/java/com/liulishuo/filedownloader/FileDownloader.java#L357-L364", "partition": "valid"} +{"repo": "lingochamp/FileDownloader", "path": "library/src/main/java/com/liulishuo/filedownloader/FileDownloader.java", "func_name": "FileDownloader.unBindServiceIfIdle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unbind and stop the downloader service when there is no task running in the FileDownloader.\n\n@return {@code true} if unbind and stop the downloader service successfully, {@code false}\nthere are some tasks running in the FileDownloader.", "docstring_tokens": ["Unbind", "and", "stop", "the", "downloader", "service", "when", "there", "is", "no", "task", "running", "in", "the", "FileDownloader", "."], "sha": "53bca84d573505ff78899c4aa2056c3d40384c1b", "url": "https://github.com/lingochamp/FileDownloader/blob/53bca84d573505ff78899c4aa2056c3d40384c1b/library/src/main/java/com/liulishuo/filedownloader/FileDownloader.java#L524-L537", "partition": "valid"} +{"repo": "lingochamp/FileDownloader", "path": "library/src/main/java/com/liulishuo/filedownloader/FileDownloader.java", "func_name": "FileDownloader.setMaxNetworkThreadCount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the maximum count of the network thread, what is the number of simultaneous downloads in\nFileDownloader.\n\n@param count the number of simultaneous downloads, scope: [1, 12].\n@return whether is successful to set the max network thread count.\nIf there are any actively executing tasks in FileDownloader, you will receive a warn\npriority log int the logcat and this operation would be failed.", "docstring_tokens": ["Set", "the", "maximum", "count", "of", "the", "network", "thread", "what", "is", "the", "number", "of", "simultaneous", "downloads", "in", "FileDownloader", "."], "sha": "53bca84d573505ff78899c4aa2056c3d40384c1b", "url": "https://github.com/lingochamp/FileDownloader/blob/53bca84d573505ff78899c4aa2056c3d40384c1b/library/src/main/java/com/liulishuo/filedownloader/FileDownloader.java#L681-L691", "partition": "valid"} +{"repo": "lingochamp/FileDownloader", "path": "library/src/main/java/com/liulishuo/filedownloader/services/FileDownloadManager.java", "func_name": "FileDownloadManager.pauseAll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Pause all running task", "docstring_tokens": ["Pause", "all", "running", "task"], "sha": "53bca84d573505ff78899c4aa2056c3d40384c1b", "url": "https://github.com/lingochamp/FileDownloader/blob/53bca84d573505ff78899c4aa2056c3d40384c1b/library/src/main/java/com/liulishuo/filedownloader/services/FileDownloadManager.java#L230-L240", "partition": "valid"} +{"repo": "lingochamp/FileDownloader", "path": "library/src/main/java/com/liulishuo/filedownloader/FileDownloadQueueSet.java", "func_name": "FileDownloadQueueSet.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Start tasks in a queue.\n\n@see #downloadSequentially(BaseDownloadTask...)\n@see #downloadSequentially(List)\n@see #downloadTogether(BaseDownloadTask...)\n@see #downloadTogether(List)", "docstring_tokens": ["Start", "tasks", "in", "a", "queue", "."], "sha": "53bca84d573505ff78899c4aa2056c3d40384c1b", "url": "https://github.com/lingochamp/FileDownloader/blob/53bca84d573505ff78899c4aa2056c3d40384c1b/library/src/main/java/com/liulishuo/filedownloader/FileDownloadQueueSet.java#L120-L166", "partition": "valid"} +{"repo": "lingochamp/FileDownloader", "path": "library/src/main/java/com/liulishuo/filedownloader/FileDownloadList.java", "func_name": "FileDownloadList.divertAndIgnoreDuplicate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Divert all data in list 2 destination list", "docstring_tokens": ["Divert", "all", "data", "in", "list", "2", "destination", "list"], "sha": "53bca84d573505ff78899c4aa2056c3d40384c1b", "url": "https://github.com/lingochamp/FileDownloader/blob/53bca84d573505ff78899c4aa2056c3d40384c1b/library/src/main/java/com/liulishuo/filedownloader/FileDownloadList.java#L158-L169", "partition": "valid"} +{"repo": "lingochamp/FileDownloader", "path": "library/src/main/java/com/liulishuo/filedownloader/FileDownloadList.java", "func_name": "FileDownloadList.addUnchecked", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method generally used for enqueuing the task which will be assembled by a queue.\n\n@see BaseDownloadTask.InQueueTask#enqueue()", "docstring_tokens": ["This", "method", "generally", "used", "for", "enqueuing", "the", "task", "which", "will", "be", "assembled", "by", "a", "queue", "."], "sha": "53bca84d573505ff78899c4aa2056c3d40384c1b", "url": "https://github.com/lingochamp/FileDownloader/blob/53bca84d573505ff78899c4aa2056c3d40384c1b/library/src/main/java/com/liulishuo/filedownloader/FileDownloadList.java#L240-L257", "partition": "valid"} +{"repo": "lingochamp/FileDownloader", "path": "library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadSerialQueue.java", "func_name": "FileDownloadSerialQueue.pause", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Pause the queue.\n\n@see #resume()", "docstring_tokens": ["Pause", "the", "queue", "."], "sha": "53bca84d573505ff78899c4aa2056c3d40384c1b", "url": "https://github.com/lingochamp/FileDownloader/blob/53bca84d573505ff78899c4aa2056c3d40384c1b/library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadSerialQueue.java#L84-L100", "partition": "valid"} +{"repo": "lingochamp/FileDownloader", "path": "library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadSerialQueue.java", "func_name": "FileDownloadSerialQueue.resume", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resume the queue if the queue is paused.\n\n@see #pause()", "docstring_tokens": ["Resume", "the", "queue", "if", "the", "queue", "is", "paused", "."], "sha": "53bca84d573505ff78899c4aa2056c3d40384c1b", "url": "https://github.com/lingochamp/FileDownloader/blob/53bca84d573505ff78899c4aa2056c3d40384c1b/library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadSerialQueue.java#L107-L126", "partition": "valid"} +{"repo": "lingochamp/FileDownloader", "path": "library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadUtils.java", "func_name": "FileDownloadUtils.isAcceptRange", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "accept range is effect by response code and Accept-Ranges header field.", "docstring_tokens": ["accept", "range", "is", "effect", "by", "response", "code", "and", "Accept", "-", "Ranges", "header", "field", "."], "sha": "53bca84d573505ff78899c4aa2056c3d40384c1b", "url": "https://github.com/lingochamp/FileDownloader/blob/53bca84d573505ff78899c4aa2056c3d40384c1b/library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadUtils.java#L553-L559", "partition": "valid"} +{"repo": "lingochamp/FileDownloader", "path": "library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadUtils.java", "func_name": "FileDownloadUtils.findInstanceLengthForTrial", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "content-length.", "docstring_tokens": ["content", "-", "length", "."], "sha": "53bca84d573505ff78899c4aa2056c3d40384c1b", "url": "https://github.com/lingochamp/FileDownloader/blob/53bca84d573505ff78899c4aa2056c3d40384c1b/library/src/main/java/com/liulishuo/filedownloader/util/FileDownloadUtils.java#L564-L580", "partition": "valid"} +{"repo": "Clans/FloatingActionButton", "path": "library/src/main/java/com/github/clans/fab/FloatingActionMenu.java", "func_name": "FloatingActionMenu.setAnimated", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets whether open and close actions should be animated\n\n@param animated if false - menu items will appear/disappear instantly without any animation", "docstring_tokens": ["Sets", "whether", "open", "and", "close", "actions", "should", "be", "animated"], "sha": "d3feaadabb8e4780e8bca330f4f67b94f21e1796", "url": "https://github.com/Clans/FloatingActionButton/blob/d3feaadabb8e4780e8bca330f4f67b94f21e1796/library/src/main/java/com/github/clans/fab/FloatingActionMenu.java#L760-L764", "partition": "valid"} +{"repo": "Clans/FloatingActionButton", "path": "library/src/main/java/com/github/clans/fab/FloatingActionButton.java", "func_name": "FloatingActionButton.setElevationCompat", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the shadow color and radius to mimic the native elevation.\n\n

API 21+: Sets the native elevation of this view, in pixels. Updates margins to\nmake the view hold its position in layout across different platform versions.

", "docstring_tokens": ["Sets", "the", "shadow", "color", "and", "radius", "to", "mimic", "the", "native", "elevation", "."], "sha": "d3feaadabb8e4780e8bca330f4f67b94f21e1796", "url": "https://github.com/Clans/FloatingActionButton/blob/d3feaadabb8e4780e8bca330f4f67b94f21e1796/library/src/main/java/com/github/clans/fab/FloatingActionButton.java#L1131-L1152", "partition": "valid"} +{"repo": "Clans/FloatingActionButton", "path": "library/src/main/java/com/github/clans/fab/FloatingActionButton.java", "func_name": "FloatingActionButton.setLabelColors", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the label's background colors", "docstring_tokens": ["Set", "the", "label", "s", "background", "colors"], "sha": "d3feaadabb8e4780e8bca330f4f67b94f21e1796", "url": "https://github.com/Clans/FloatingActionButton/blob/d3feaadabb8e4780e8bca330f4f67b94f21e1796/library/src/main/java/com/github/clans/fab/FloatingActionButton.java#L1300-L1311", "partition": "valid"} +{"repo": "itfsw/mybatis-generator-plugin", "path": "src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/TemplateCommentGenerator.java", "func_name": "TemplateCommentGenerator.addConfigurationProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds properties for this instance from any properties configured in the\nCommentGenerator configuration.\n\nThis method will be called before any of the other methods.\n\n@param properties\nAll properties from the configuration", "docstring_tokens": ["Adds", "properties", "for", "this", "instance", "from", "any", "properties", "configured", "in", "the", "CommentGenerator", "configuration", "."], "sha": "c2746d9567952cabe0eed8c533beb8c1a8bc1dce", "url": "https://github.com/itfsw/mybatis-generator-plugin/blob/c2746d9567952cabe0eed8c533beb8c1a8bc1dce/src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/TemplateCommentGenerator.java#L204-L211", "partition": "valid"} +{"repo": "itfsw/mybatis-generator-plugin", "path": "src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/TemplateCommentGenerator.java", "func_name": "TemplateCommentGenerator.addModelClassComment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a comment for a model class. The Java code merger should\nbe notified not to delete the entire class in case any manual\nchanges have been made. So this method will always use the\n\"do not delete\" annotation.\n\nBecause of difficulties with the Java file merger, the default implementation\nof this method should NOT add comments. Comments should only be added if\nspecifically requested by the user (for example, by enabling table remark comments).\n\n@param topLevelClass\nthe top level class\n@param introspectedTable\nthe introspected table", "docstring_tokens": ["Adds", "a", "comment", "for", "a", "model", "class", ".", "The", "Java", "code", "merger", "should", "be", "notified", "not", "to", "delete", "the", "entire", "class", "in", "case", "any", "manual", "changes", "have", "been", "made", ".", "So", "this", "method", "will", "always", "use", "the", "do", "not", "delete", "annotation", "."], "sha": "c2746d9567952cabe0eed8c533beb8c1a8bc1dce", "url": "https://github.com/itfsw/mybatis-generator-plugin/blob/c2746d9567952cabe0eed8c533beb8c1a8bc1dce/src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/TemplateCommentGenerator.java#L274-L283", "partition": "valid"} +{"repo": "itfsw/mybatis-generator-plugin", "path": "src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/TemplateCommentGenerator.java", "func_name": "TemplateCommentGenerator.addEnumComment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the enum comment.\n\n@param innerEnum\nthe inner enum\n@param introspectedTable\nthe introspected table", "docstring_tokens": ["Adds", "the", "enum", "comment", "."], "sha": "c2746d9567952cabe0eed8c533beb8c1a8bc1dce", "url": "https://github.com/itfsw/mybatis-generator-plugin/blob/c2746d9567952cabe0eed8c533beb8c1a8bc1dce/src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/TemplateCommentGenerator.java#L346-L355", "partition": "valid"} +{"repo": "itfsw/mybatis-generator-plugin", "path": "src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/TemplateCommentGenerator.java", "func_name": "TemplateCommentGenerator.addGetterComment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the getter comment.\n\n@param method\nthe method\n@param introspectedTable\nthe introspected table\n@param introspectedColumn\nthe introspected column", "docstring_tokens": ["Adds", "the", "getter", "comment", "."], "sha": "c2746d9567952cabe0eed8c533beb8c1a8bc1dce", "url": "https://github.com/itfsw/mybatis-generator-plugin/blob/c2746d9567952cabe0eed8c533beb8c1a8bc1dce/src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/TemplateCommentGenerator.java#L367-L377", "partition": "valid"} +{"repo": "itfsw/mybatis-generator-plugin", "path": "src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/TemplateCommentGenerator.java", "func_name": "TemplateCommentGenerator.addGeneralMethodComment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the general method comment.\n\n@param method\nthe method\n@param introspectedTable\nthe introspected table", "docstring_tokens": ["Adds", "the", "general", "method", "comment", "."], "sha": "c2746d9567952cabe0eed8c533beb8c1a8bc1dce", "url": "https://github.com/itfsw/mybatis-generator-plugin/blob/c2746d9567952cabe0eed8c533beb8c1a8bc1dce/src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/TemplateCommentGenerator.java#L409-L418", "partition": "valid"} +{"repo": "itfsw/mybatis-generator-plugin", "path": "src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/TemplateCommentGenerator.java", "func_name": "TemplateCommentGenerator.addComment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method should add a suitable comment as a child element of the specified xmlElement to warn users that the\nelement was generated and is subject to regeneration.\n\n@param xmlElement\nthe xml element", "docstring_tokens": ["This", "method", "should", "add", "a", "suitable", "comment", "as", "a", "child", "element", "of", "the", "specified", "xmlElement", "to", "warn", "users", "that", "the", "element", "was", "generated", "and", "is", "subject", "to", "regeneration", "."], "sha": "c2746d9567952cabe0eed8c533beb8c1a8bc1dce", "url": "https://github.com/itfsw/mybatis-generator-plugin/blob/c2746d9567952cabe0eed8c533beb8c1a8bc1dce/src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/TemplateCommentGenerator.java#L449-L457", "partition": "valid"} +{"repo": "itfsw/mybatis-generator-plugin", "path": "src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/InnerTypeFullyQualifiedJavaType.java", "func_name": "InnerTypeFullyQualifiedJavaType.getFullyQualifiedName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method returns the fully qualified name - including any generic type parameters.\n\n@return Returns the fullyQualifiedName.", "docstring_tokens": ["This", "method", "returns", "the", "fully", "qualified", "name", "-", "including", "any", "generic", "type", "parameters", "."], "sha": "c2746d9567952cabe0eed8c533beb8c1a8bc1dce", "url": "https://github.com/itfsw/mybatis-generator-plugin/blob/c2746d9567952cabe0eed8c533beb8c1a8bc1dce/src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/InnerTypeFullyQualifiedJavaType.java#L59-L65", "partition": "valid"} +{"repo": "itfsw/mybatis-generator-plugin", "path": "src/main/java/com/itfsw/mybatis/generator/plugins/utils/XmlElementGeneratorTools.java", "func_name": "XmlElementGeneratorTools.getSelectKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method should return an XmlElement for the select key used to\nautomatically generate keys.\n@param introspectedColumn the column related to the select key statement\n@param generatedKey the generated key for the current table\n@return the selectKey element", "docstring_tokens": ["This", "method", "should", "return", "an", "XmlElement", "for", "the", "select", "key", "used", "to", "automatically", "generate", "keys", "."], "sha": "c2746d9567952cabe0eed8c533beb8c1a8bc1dce", "url": "https://github.com/itfsw/mybatis-generator-plugin/blob/c2746d9567952cabe0eed8c533beb8c1a8bc1dce/src/main/java/com/itfsw/mybatis/generator/plugins/utils/XmlElementGeneratorTools.java#L54-L56", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/ResourceTableFactory.java", "func_name": "ResourceTableFactory.newFrameworkResourceTable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds an Android framework resource table in the \"android\" package space.", "docstring_tokens": ["Builds", "an", "Android", "framework", "resource", "table", "in", "the", "android", "package", "space", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/ResourceTableFactory.java#L11-L31", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/ResourceTableFactory.java", "func_name": "ResourceTableFactory.newResourceTable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an application resource table which can be constructed with multiple resources paths\nrepresenting overlayed resource libraries.", "docstring_tokens": ["Creates", "an", "application", "resource", "table", "which", "can", "be", "constructed", "with", "multiple", "resources", "paths", "representing", "overlayed", "resource", "libraries", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/ResourceTableFactory.java#L37-L56", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/ResourceTableFactory.java", "func_name": "ResourceTableFactory.addMissingStyleableAttributes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check the stylable elements. Not for aapt generated R files but for framework R files it is possible to\nhave attributes in the styleable array for which there is no corresponding R.attr field.", "docstring_tokens": ["Check", "the", "stylable", "elements", ".", "Not", "for", "aapt", "generated", "R", "files", "but", "for", "framework", "R", "files", "it", "is", "possible", "to", "have", "attributes", "in", "the", "styleable", "array", "for", "which", "there", "is", "no", "corresponding", "R", ".", "attr", "field", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/ResourceTableFactory.java#L83-L109", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowSettings.java", "func_name": "ShadowSettings.setWifiOn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Non-Android accessor that allows the value of the WIFI_ON setting to be set.\n\n@param isOn new status for wifi mode", "docstring_tokens": ["Non", "-", "Android", "accessor", "that", "allows", "the", "value", "of", "the", "WIFI_ON", "setting", "to", "be", "set", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowSettings.java#L455-L460", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/Qualifiers.java", "func_name": "Qualifiers.addSmallestScreenWidth", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the Config already has a `sw` qualifier, do nothing. Otherwise, add a `sw`\nqualifier for the given width.\n\n@deprecated Use {@link android.content.res.Configuration#smallestScreenWidthDp} instead.", "docstring_tokens": ["If", "the", "Config", "already", "has", "a", "sw", "qualifier", "do", "nothing", ".", "Otherwise", "add", "a", "sw", "qualifier", "for", "the", "given", "width", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/Qualifiers.java#L121-L131", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java", "func_name": "ClassInstrumentor.instrumentNativeMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates native stub which returns the default return value.\n\n@param mutableClass Class to be instrumented\n@param method Method to be instrumented, must be native", "docstring_tokens": ["Creates", "native", "stub", "which", "returns", "the", "default", "return", "value", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java#L363-L370", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java", "func_name": "ClassInstrumentor.rewriteMethodBody", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Filters methods that might need special treatment because of various reasons", "docstring_tokens": ["Filters", "methods", "that", "might", "need", "special", "treatment", "because", "of", "various", "reasons"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java#L395-L441", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java", "func_name": "ClassInstrumentor.isGregorianCalendarBooleanConstructor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies if the @targetMethod is a `(boolean)` constructor for\n{@link java.util.GregorianCalendar}.", "docstring_tokens": ["Verifies", "if", "the"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java#L447-L451", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java", "func_name": "ClassInstrumentor.makeClassPublic", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Replaces protected and private class modifiers with public.", "docstring_tokens": ["Replaces", "protected", "and", "private", "class", "modifiers", "with", "public", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java#L484-L486", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java", "func_name": "ClassInstrumentor.makeMethodPublic", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Replaces protected and private method modifiers with public.", "docstring_tokens": ["Replaces", "protected", "and", "private", "method", "modifiers", "with", "public", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java#L491-L493", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java", "func_name": "ClassInstrumentor.makeMethodPrivate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Replaces protected and public class modifiers with private.", "docstring_tokens": ["Replaces", "protected", "and", "public", "class", "modifiers", "with", "private", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/sandbox/src/main/java/org/robolectric/internal/bytecode/ClassInstrumentor.java#L498-L500", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowAccessibilityNodeInfo.java", "func_name": "ShadowAccessibilityNodeInfo.setTraversalAfter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the view whose node is visited after this one in accessibility traversal.\n\nThis may be useful for configuring traversal order in tests before the corresponding\nviews have been inflated.\n\n@param info The previous node.\n@see #getTraversalAfter()", "docstring_tokens": ["Sets", "the", "view", "whose", "node", "is", "visited", "after", "this", "one", "in", "accessibility", "traversal", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowAccessibilityNodeInfo.java#L777-L783", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowAccessibilityNodeInfo.java", "func_name": "ShadowAccessibilityNodeInfo.setTraversalBefore", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the view before whose node this one should be visited during traversal.\n\nThis may be useful for configuring traversal order in tests before the corresponding\nviews have been inflated.\n\n@param info The view providing the preceding node.\n@see #getTraversalBefore()", "docstring_tokens": ["Sets", "the", "view", "before", "whose", "node", "this", "one", "should", "be", "visited", "during", "traversal", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowAccessibilityNodeInfo.java#L812-L818", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowAccessibilityNodeInfo.java", "func_name": "ShadowAccessibilityNodeInfo.addChild", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a child node to this one. Also initializes the parent field of the\nchild.\n\n@param child The node to be added as a child.", "docstring_tokens": ["Add", "a", "child", "node", "to", "this", "one", ".", "Also", "initializes", "the", "parent", "field", "of", "the", "child", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowAccessibilityNodeInfo.java#L1032-L1040", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "sandbox/src/main/java/org/robolectric/internal/bytecode/RobolectricGeneratorAdapter.java", "func_name": "RobolectricGeneratorAdapter.pushDefaultReturnValueToStack", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Forces a return of a default value, depending on the method's return type\n\n@param type The method's return type", "docstring_tokens": ["Forces", "a", "return", "of", "a", "default", "value", "depending", "on", "the", "method", "s", "return", "type"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/sandbox/src/main/java/org/robolectric/internal/bytecode/RobolectricGeneratorAdapter.java#L51-L65", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/OsConstantsValues.java", "func_name": "OsConstantsValues.getMode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the st_mode for the path.", "docstring_tokens": ["Returns", "the", "st_mode", "for", "the", "path", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/OsConstantsValues.java#L38-L54", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/android/controller/ActivityController.java", "func_name": "ActivityController.setup", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calls the same lifecycle methods on the Activity called by Android when an Activity is restored from previously saved state.\n\n@param savedInstanceState Saved instance state.\n@return Activity controller instance.", "docstring_tokens": ["Calls", "the", "same", "lifecycle", "methods", "on", "the", "Activity", "called", "by", "Android", "when", "an", "Activity", "is", "restored", "from", "previously", "saved", "state", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/android/controller/ActivityController.java#L260-L267", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/android/controller/ActivityController.java", "func_name": "ActivityController.configurationChange", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Performs a configuration change on the Activity.\n\nIf the activity is configured to handle changes without being recreated,\n{@link Activity#onConfigurationChanged(Configuration)} will be called. Otherwise, the activity\nis recreated as described [here](https://developer.android.com/guide/topics/resources/runtime-changes.html).\n\n@param newConfiguration The new configuration to be set.\n@return ActivityController instance", "docstring_tokens": ["Performs", "a", "configuration", "change", "on", "the", "Activity", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/android/controller/ActivityController.java#L300-L405", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/android/controller/ActivityController.java", "func_name": "ActivityController.recreate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recreates activity instance which is controlled by this ActivityController.\nNonConfigurationInstances and savedInstanceStateBundle are properly passed into a new instance.\nAfter the recreation, it brings back its lifecycle state to the original state. The activity\nshould not be destroyed yet.", "docstring_tokens": ["Recreates", "activity", "instance", "which", "is", "controlled", "by", "this", "ActivityController", ".", "NonConfigurationInstances", "and", "savedInstanceStateBundle", "are", "properly", "passed", "into", "a", "new", "instance", ".", "After", "the", "recreation", "it", "brings", "back", "its", "lifecycle", "state", "to", "the", "original", "state", ".", "The", "activity", "should", "not", "be", "destroyed", "yet", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/android/controller/ActivityController.java#L413-L482", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowTelephonyManager.java", "func_name": "ShadowTelephonyManager.setCallState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the current call state with the option to specify an incoming phone number for the\nCALL_STATE_RINGING state. The incoming phone number will be ignored for all other cases.", "docstring_tokens": ["Sets", "the", "current", "call", "state", "with", "the", "option", "to", "specify", "an", "incoming", "phone", "number", "for", "the", "CALL_STATE_RINGING", "state", ".", "The", "incoming", "phone", "number", "will", "be", "ignored", "for", "all", "other", "cases", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowTelephonyManager.java#L159-L170", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "robolectric/src/main/java/org/robolectric/junit/rules/ExpectedLogMessagesRule.java", "func_name": "ExpectedLogMessagesRule.expectLogMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds an expected log statement. If this log is not printed during test execution, the test case\nwill fail. Do not use this to suppress failures. Use this to test that expected error cases in\nyour code cause log messages to be printed.", "docstring_tokens": ["Adds", "an", "expected", "log", "statement", ".", "If", "this", "log", "is", "not", "printed", "during", "test", "execution", "the", "test", "case", "will", "fail", ".", "Do", "not", "use", "this", "to", "suppress", "failures", ".", "Use", "this", "to", "test", "that", "expected", "error", "cases", "in", "your", "code", "cause", "log", "messages", "to", "be", "printed", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/robolectric/src/main/java/org/robolectric/junit/rules/ExpectedLogMessagesRule.java#L85-L88", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/manifest/ServiceData.java", "func_name": "ServiceData.isExported", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns whether this service is exported by checking the XML attribute.\n\n@return true if the service is exported", "docstring_tokens": ["Returns", "whether", "this", "service", "is", "exported", "by", "checking", "the", "XML", "attribute", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/manifest/ServiceData.java#L68-L73", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/CachedPathIteratorFactory.java", "func_name": "CachedPathIteratorFactory.getShapeEndPoint", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the end point of a given segment\n\n@param type the segment type\n@param coords the segment coordinates array\n@param point the return array where the point will be stored", "docstring_tokens": ["Returns", "the", "end", "point", "of", "a", "given", "segment"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/CachedPathIteratorFactory.java#L182-L187", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/CachedPathIteratorFactory.java", "func_name": "CachedPathIteratorFactory.getPointAtLength", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the estimated position along a path of the given length.", "docstring_tokens": ["Returns", "the", "estimated", "position", "along", "a", "path", "of", "the", "given", "length", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/CachedPathIteratorFactory.java#L236-L259", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/ResTable_config.java", "func_name": "ResTable_config.createConfig", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "packed version of \"tl\"", "docstring_tokens": ["packed", "version", "of", "tl"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/ResTable_config.java#L119-L184", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/ResTable_config.java", "func_name": "ResTable_config.diff", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "that is different.", "docstring_tokens": ["that", "is", "different", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/ResTable_config.java#L975-L1001", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/ResTable_config.java", "func_name": "ResTable_config.isDefault", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if this is the default \"any\" configuration.", "docstring_tokens": ["Returns", "true", "if", "this", "is", "the", "default", "any", "configuration", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/ResTable_config.java#L1067-L1092", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowUserManager.java", "func_name": "ShadowUserManager.getApplicationRestrictions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Compared to real Android, there is no check that the package name matches the application\npackage name and the method returns instantly.\n\n@see #setApplicationRestrictions(String, Bundle)", "docstring_tokens": ["Compared", "to", "real", "Android", "there", "is", "no", "check", "that", "the", "package", "name", "matches", "the", "application", "package", "name", "and", "the", "method", "returns", "instantly", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowUserManager.java#L86-L90", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowUserManager.java", "func_name": "ShadowUserManager.addUserProfile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a profile associated for the user that the calling process is running on.\n\nThe user is assigned an arbitrary unique serial number.\n\n@return the user's serial number", "docstring_tokens": ["Adds", "a", "profile", "associated", "for", "the", "user", "that", "the", "calling", "process", "is", "running", "on", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowUserManager.java#L106-L110", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowUserManager.java", "func_name": "ShadowUserManager.addUser", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a user with the specified name, userId and flags.\n\n@param id the unique id of user\n@param name name of the user\n@param flags 16 bits for user type. See {@link UserInfo#flags}\n@return a handle to the new user", "docstring_tokens": ["Creates", "a", "user", "with", "the", "specified", "name", "userId", "and", "flags", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowUserManager.java#L530-L542", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowBluetoothSocket.java", "func_name": "ShadowBluetoothSocket.connect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method doesn't perform an actual connection and returns immediately", "docstring_tokens": ["This", "method", "doesn", "t", "perform", "an", "actual", "connection", "and", "returns", "immediately"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowBluetoothSocket.java#L69-L75", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "sandbox/src/main/java/org/robolectric/internal/bytecode/InvokeDynamicClassInstrumentor.java", "func_name": "InvokeDynamicClassInstrumentor.interceptInvokeVirtualMethodWithInvokeDynamic", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Intercepts the method using the invokedynamic bytecode instruction available in Java 7+.\nShould be called through interceptInvokeVirtualMethod, not directly.", "docstring_tokens": ["Intercepts", "the", "method", "using", "the", "invokedynamic", "bytecode", "instruction", "available", "in", "Java", "7", "+", ".", "Should", "be", "called", "through", "interceptInvokeVirtualMethod", "not", "directly", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/sandbox/src/main/java/org/robolectric/internal/bytecode/InvokeDynamicClassInstrumentor.java#L92-L106", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/DynamicRefTable.java", "func_name": "DynamicRefTable.addMappings", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds mappings from the other DynamicRefTable", "docstring_tokens": ["Adds", "mappings", "from", "the", "other", "DynamicRefTable"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/DynamicRefTable.java#L42-L82", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/DynamicRefTable.java", "func_name": "DynamicRefTable.addMapping", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "the given package.", "docstring_tokens": ["the", "given", "package", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/DynamicRefTable.java#L86-L93", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowContextWrapper.java", "func_name": "ShadowContextWrapper.grantPermissions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Grant the given permissions for the given process and user.", "docstring_tokens": ["Grant", "the", "given", "permissions", "for", "the", "given", "process", "and", "user", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowContextWrapper.java#L115-L117", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowContextWrapper.java", "func_name": "ShadowContextWrapper.denyPermissions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Revoke the given permissions for the given process and user.", "docstring_tokens": ["Revoke", "the", "given", "permissions", "for", "the", "given", "process", "and", "user", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowContextWrapper.java#L129-L131", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "robolectric/src/main/java/org/robolectric/plugins/DefaultSdkPicker.java", "func_name": "DefaultSdkPicker.selectSdks", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enumerate the SDKs to be used for this test.\n\n@param configuration a collection of configuration objects, including {@link Config}\n@param usesSdk the {@link UsesSdk} for the test\n@return the list of candidate {@link Sdk}s.\n@since 3.9", "docstring_tokens": ["Enumerate", "the", "SDKs", "to", "be", "used", "for", "this", "test", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/robolectric/src/main/java/org/robolectric/plugins/DefaultSdkPicker.java#L65-L74", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowLegacyAssetManager.java", "func_name": "ShadowLegacyAssetManager.getFileFromZip", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extract an asset from a zipped up assets provided by the build system, this is required because\nthere is no way to get a FileDescriptor from a zip entry. This is a temporary measure for Bazel\nwhich can be removed once binary resources are supported.", "docstring_tokens": ["Extract", "an", "asset", "from", "a", "zipped", "up", "assets", "provided", "by", "the", "build", "system", "this", "is", "required", "because", "there", "is", "no", "way", "to", "get", "a", "FileDescriptor", "from", "a", "zip", "entry", ".", "This", "is", "a", "temporary", "measure", "for", "Bazel", "which", "can", "be", "removed", "once", "binary", "resources", "are", "supported", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowLegacyAssetManager.java#L416-L434", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/FakeHttp.java", "func_name": "FakeHttp.getNextSentHttpRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Accessor to obtain HTTP requests made during the current test in the order in which they were made.\n\n@return the requested request or null if there are none.", "docstring_tokens": ["Accessor", "to", "obtain", "HTTP", "requests", "made", "during", "the", "current", "test", "in", "the", "order", "in", "which", "they", "were", "made", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/FakeHttp.java#L99-L102", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/FakeHttp.java", "func_name": "FakeHttp.addHttpResponseRule", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds an HTTP response rule. The response will be returned when the rule is matched.\n\n@param method method to match.\n@param uri uri to match.\n@param response response to return when a match is found.", "docstring_tokens": ["Adds", "an", "HTTP", "response", "rule", ".", "The", "response", "will", "be", "returned", "when", "the", "rule", "is", "matched", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/FakeHttp.java#L120-L122", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/FakeHttp.java", "func_name": "FakeHttp.addHttpResponseRule", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds an HTTP response rule. For each time the rule is matched, responses will be shifted\noff the list and returned. When all responses have been given and the rule is matched again,\nan exception will be thrown.\n\n@param requestMatcher custom {@code RequestMatcher}.\n@param responses responses to return in order when a match is found.", "docstring_tokens": ["Adds", "an", "HTTP", "response", "rule", ".", "For", "each", "time", "the", "rule", "is", "matched", "responses", "will", "be", "shifted", "off", "the", "list", "and", "returned", ".", "When", "all", "responses", "have", "been", "given", "and", "the", "rule", "is", "matched", "again", "an", "exception", "will", "be", "thrown", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/FakeHttp.java#L162-L164", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaMuxer.java", "func_name": "ShadowMediaMuxer.nativeStop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Closes the FileOutputStream for the associated muxer.", "docstring_tokens": ["Closes", "the", "FileOutputStream", "for", "the", "associated", "muxer", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaMuxer.java#L140-L151", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/FakeHttpLayer.java", "func_name": "FakeHttpLayer.addHttpResponseRule", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a response rule.\n\n@param requestMatcher Request matcher\n@param responses A list of responses that are returned to matching requests in order from first to last.", "docstring_tokens": ["Add", "a", "response", "rule", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/FakeHttpLayer.java#L81-L83", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaRouter.java", "func_name": "ShadowMediaRouter.addBluetoothRoute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the Bluetooth A2DP route and ensures it's the selected route, simulating connecting a\nBluetooth device.", "docstring_tokens": ["Adds", "the", "Bluetooth", "A2DP", "route", "and", "ensures", "it", "s", "the", "selected", "route", "simulating", "connecting", "a", "Bluetooth", "device", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaRouter.java#L30-L43", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowProcess.java", "func_name": "ShadowProcess.setThreadPriority", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stores priority for the given thread, but doesn't actually change it to not mess up with test\nrunner. Unlike real implementation does not throw any exceptions.\n\n@param tid The identifier of the thread. If equals zero, the identifier of the calling thread\nwill be used.", "docstring_tokens": ["Stores", "priority", "for", "the", "given", "thread", "but", "doesn", "t", "actually", "change", "it", "to", "not", "mess", "up", "with", "test", "runner", ".", "Unlike", "real", "implementation", "does", "not", "throw", "any", "exceptions", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowProcess.java#L66-L80", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowProcess.java", "func_name": "ShadowProcess.getThreadPriority", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns priority stored for the given thread.\n\n@param tid The identifier of the thread. If equals zero, the identifier of the calling thread\nwill be used.", "docstring_tokens": ["Returns", "priority", "stored", "for", "the", "given", "thread", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowProcess.java#L88-L96", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/NativeBitSet64.java", "func_name": "NativeBitSet64.getIndexOfBit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the index of the specified bit in the set, which is the number of marked bits that appear\nbefore the specified bit.", "docstring_tokens": ["Gets", "the", "index", "of", "the", "specified", "bit", "in", "the", "set", "which", "is", "the", "number", "of", "marked", "bits", "that", "appear", "before", "the", "specified", "bit", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/NativeBitSet64.java#L92-L101", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowAppOpsManager.java", "func_name": "ShadowAppOpsManager.setMode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Change the operating mode for the given op in the given app package. You must pass in both the\nuid and name of the application whose mode is being modified; if these do not match, the\nmodification will not be applied.\n\n

This method is public for testing {@link #checkOpNoThrow}. If {@link #checkOpNoThrow} is\ncalled afterwards with the {@code op}, {@code ui}, and {@code packageName} provided, it will\nreturn the {@code mode} set here.\n\n@param op The operation to modify. One of the OPSTR_* constants.\n@param uid The user id of the application whose mode will be changed.\n@param packageName The name of the application package name whose mode will be changed.", "docstring_tokens": ["Change", "the", "operating", "mode", "for", "the", "given", "op", "in", "the", "given", "app", "package", ".", "You", "must", "pass", "in", "both", "the", "uid", "and", "name", "of", "the", "application", "whose", "mode", "is", "being", "modified", ";", "if", "these", "do", "not", "match", "the", "modification", "will", "not", "be", "applied", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowAppOpsManager.java#L94-L100", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ResourceHelper.java", "func_name": "ResourceHelper.getColor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the color value represented by the given string value\n\n@param value the color value\n@return the color as an int\n@throws NumberFormatException if the conversion failed.", "docstring_tokens": ["Returns", "the", "color", "value", "represented", "by", "the", "given", "string", "value"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ResourceHelper.java#L50-L94", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ResourceHelper.java", "func_name": "ResourceHelper.getColorType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the TypedValue color type represented by the given string value\n\n@param value the color value\n@return the color as an int. For backwards compatibility, will return a default of ARGB8 if\nvalue format is unrecognized.", "docstring_tokens": ["Returns", "the", "TypedValue", "color", "type", "represented", "by", "the", "given", "string", "value"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ResourceHelper.java#L103-L117", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ResourceHelper.java", "func_name": "ResourceHelper.parseFloatAttribute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse a float attribute and return the parsed value into a given TypedValue.\n@param attribute the name of the attribute. Can be null if requireUnit is false.\n@param value the string value of the attribute\n@param outValue the TypedValue to receive the parsed value\n@param requireUnit whether the value is expected to contain a unit.\n@return true if success.", "docstring_tokens": ["Parse", "a", "float", "attribute", "and", "return", "the", "parsed", "value", "into", "a", "given", "TypedValue", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ResourceHelper.java#L181-L255", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowImageDecoder.java", "func_name": "ShadowImageDecoder.nCreate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "native method implementations...", "docstring_tokens": ["native", "method", "implementations", "..."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowImageDecoder.java#L256-L259", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowImageDecoder.java", "func_name": "ShadowImageDecoder.nCreate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The fd must be seekable.", "docstring_tokens": ["The", "fd", "must", "be", "seekable", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowImageDecoder.java#L279-L282", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowActivity.java", "func_name": "ShadowActivity.clickMenuItem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Perform a click on a menu item.\n\n@param menuItemResId Menu item resource ID.\n@return True if the click was handled, false otherwise.", "docstring_tokens": ["Perform", "a", "click", "on", "a", "menu", "item", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowActivity.java#L433-L436", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowActivity.java", "func_name": "ShadowActivity.callOnActivityResult", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "For internal use only. Not for public use.", "docstring_tokens": ["For", "internal", "use", "only", ".", "Not", "for", "public", "use", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowActivity.java#L439-L444", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowActivity.java", "func_name": "ShadowActivity.startLockTask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Starts a lock task.\n\n

The status of the lock task can be verified using {@link #isLockTask} method. Otherwise this\nimplementation has no effect.", "docstring_tokens": ["Starts", "a", "lock", "task", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowActivity.java#L606-L610", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowActivity.java", "func_name": "ShadowActivity.stopLockTask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stops a lock task.\n\n

The status of the lock task can be verified using {@link #isLockTask} method. Otherwise this\nimplementation has no effect.", "docstring_tokens": ["Stops", "a", "lock", "task", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowActivity.java#L618-L622", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "utils/src/main/java/org/robolectric/util/Scheduler.java", "func_name": "Scheduler.postDelayed", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a runnable to the queue to be run after a delay.", "docstring_tokens": ["Add", "a", "runnable", "to", "the", "queue", "to", "be", "run", "after", "a", "delay", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/utils/src/main/java/org/robolectric/util/Scheduler.java#L158-L165", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "utils/src/main/java/org/robolectric/util/Scheduler.java", "func_name": "Scheduler.postAtFrontOfQueue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a runnable to the head of the queue.\n\n@param runnable Runnable to add.", "docstring_tokens": ["Add", "a", "runnable", "to", "the", "head", "of", "the", "queue", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/utils/src/main/java/org/robolectric/util/Scheduler.java#L172-L184", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "utils/src/main/java/org/robolectric/util/Scheduler.java", "func_name": "Scheduler.remove", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove a runnable from the queue.\n\n@param runnable Runnable to remove.", "docstring_tokens": ["Remove", "a", "runnable", "from", "the", "queue", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/utils/src/main/java/org/robolectric/util/Scheduler.java#L191-L198", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "utils/src/main/java/org/robolectric/util/Scheduler.java", "func_name": "Scheduler.advanceToLastPostedRunnable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Run all runnables in the queue, and any additional runnables they schedule that are scheduled\nbefore the latest scheduled runnable currently in the queue.\n\n@return True if a runnable was executed.", "docstring_tokens": ["Run", "all", "runnables", "in", "the", "queue", "and", "any", "additional", "runnables", "they", "schedule", "that", "are", "scheduled", "before", "the", "latest", "scheduled", "runnable", "currently", "in", "the", "queue", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/utils/src/main/java/org/robolectric/util/Scheduler.java#L206-L214", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "utils/src/main/java/org/robolectric/util/Scheduler.java", "func_name": "Scheduler.advanceBy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Run all runnables that are scheduled to run in the next time interval.\n\n@return True if a runnable was executed.", "docstring_tokens": ["Run", "all", "runnables", "that", "are", "scheduled", "to", "run", "in", "the", "next", "time", "interval", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/utils/src/main/java/org/robolectric/util/Scheduler.java#L242-L245", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "utils/src/main/java/org/robolectric/util/Scheduler.java", "func_name": "Scheduler.advanceTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Run all runnables that are scheduled before the endTime.\n\n@param endTime Future time.\n@return True if a runnable was executed.", "docstring_tokens": ["Run", "all", "runnables", "that", "are", "scheduled", "before", "the", "endTime", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/utils/src/main/java/org/robolectric/util/Scheduler.java#L253-L266", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "utils/src/main/java/org/robolectric/util/Scheduler.java", "func_name": "Scheduler.runOneTask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Run the next runnable in the queue.\n\n@return True if a runnable was executed.", "docstring_tokens": ["Run", "the", "next", "runnable", "in", "the", "queue", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/utils/src/main/java/org/robolectric/util/Scheduler.java#L273-L283", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowContextImpl.java", "func_name": "ShadowContextImpl.bindServiceAsUser", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Binds to a service but ignores the given UserHandle.", "docstring_tokens": ["Binds", "to", "a", "service", "but", "ignores", "the", "given", "UserHandle", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowContextImpl.java#L317-L321", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPausedSystemClock.java", "func_name": "ShadowPausedSystemClock.setCurrentTimeMillis", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the current wall time.\n\n

Currently does not perform any permission checks.\n\n@return false if specified time is less than current time.", "docstring_tokens": ["Sets", "the", "current", "wall", "time", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPausedSystemClock.java#L65-L76", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPausedMessageQueue.java", "func_name": "ShadowPausedMessageQueue.isIdle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Exposes the API23+_isIdle method to older platforms", "docstring_tokens": ["Exposes", "the", "API23", "+", "_isIdle", "method", "to", "older", "platforms"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPausedMessageQueue.java#L141-L158", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPausedMessageQueue.java", "func_name": "ShadowPausedMessageQueue.reset", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "so it should be package private", "docstring_tokens": ["so", "it", "should", "be", "package", "private"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPausedMessageQueue.java#L249-L255", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "robolectric/src/main/java/org/robolectric/Robolectric.java", "func_name": "Robolectric.buildActivity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a ActivityController for the given activity class.\n\n

Consider using {@link androidx.test.core.app.ActivityScenario} instead, which provides\nhigher-level, streamlined APIs to control the lifecycle and it works with instrumentation tests\ntoo.", "docstring_tokens": ["Creates", "a", "ActivityController", "for", "the", "given", "activity", "class", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/robolectric/src/main/java/org/robolectric/Robolectric.java#L74-L76", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "robolectric/src/main/java/org/robolectric/Robolectric.java", "func_name": "Robolectric.buildActivity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a ActivityController for the given activity class with the intent.\n\n

Note: the activity class is not determined by the intent.\n\n

Consider using {@link androidx.test.core.app.ActivityScenario} instead, which provides\nhigher-level, streamlined APIs to control the lifecycle and it works with instrumentation tests\ntoo.", "docstring_tokens": ["Creates", "a", "ActivityController", "for", "the", "given", "activity", "class", "with", "the", "intent", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/robolectric/src/main/java/org/robolectric/Robolectric.java#L87-L90", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "robolectric/src/main/java/org/robolectric/Robolectric.java", "func_name": "Robolectric.setupActivity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Simulates starting activity with the given class type and returns its reference.\n\n

Use {@link androidx.test.core.app.ActivityScenario} instead, which works with\ninstrumentation tests too.\n\n@deprecated use {@link androidx.test.core.app.ActivityScenario}", "docstring_tokens": ["Simulates", "starting", "activity", "with", "the", "given", "class", "type", "and", "returns", "its", "reference", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/robolectric/src/main/java/org/robolectric/Robolectric.java#L100-L103", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "robolectric/src/main/java/org/robolectric/Robolectric.java", "func_name": "Robolectric.buildFragment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a FragmentController for the given fragment class.\n\n

FragmentController provides low-level APIs to control its lifecycle. Please consider using\n{@link androidx.fragment.app.testing.FragmentScenario} instead, which provides higher level\nAPIs and works with instrumentation tests too.\n\n@deprecated Native Fragments have been deprecated in Android P. Android encourages developers\nto use androidx fragments, to test these use FragmentScenario.", "docstring_tokens": ["Creates", "a", "FragmentController", "for", "the", "given", "fragment", "class", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/robolectric/src/main/java/org/robolectric/Robolectric.java#L115-L118", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowTextToSpeech.java", "func_name": "ShadowTextToSpeech.speak", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Speaks the string using the specified queuing strategy and speech parameters.\n\n@param params The real implementation converts the hashmap into a bundle, but the bundle\nargument is not used in the shadow implementation.", "docstring_tokens": ["Speaks", "the", "string", "using", "the", "specified", "queuing", "strategy", "and", "speech", "parameters", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowTextToSpeech.java#L45-L53", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplayManagerGlobal.java", "func_name": "ShadowDisplayManagerGlobal.getStableDisplaySize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the 'natural' dimensions of the default display.", "docstring_tokens": ["Returns", "the", "natural", "dimensions", "of", "the", "default", "display", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplayManagerGlobal.java#L57-L61", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/Fs.java", "func_name": "Fs.getJarFs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a reference-counted Jar FileSystem, possibly one that was previously returned.", "docstring_tokens": ["Returns", "a", "reference", "-", "counted", "Jar", "FileSystem", "possibly", "one", "that", "was", "previously", "returned", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/Fs.java#L164-L180", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowLog.java", "func_name": "ShadowLog.getLogsForTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns ordered list of all log items for a specific tag.\n\n@param tag The tag to get logs for\n@return The list of log items for the tag or an empty list if no logs for that tag exist.", "docstring_tokens": ["Returns", "ordered", "list", "of", "all", "log", "items", "for", "a", "specific", "tag", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowLog.java#L190-L193", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/manifest/AndroidManifest.java", "func_name": "AndroidManifest.getAllManifests", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns all transitively reachable manifests, including this one, in order and without\nduplicates.", "docstring_tokens": ["Returns", "all", "transitively", "reachable", "manifests", "including", "this", "one", "in", "order", "and", "without", "duplicates", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/manifest/AndroidManifest.java#L674-L679", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/manifest/AndroidManifest.java", "func_name": "AndroidManifest.getBroadcastReceiver", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns data for the broadcast receiver with the provided name from this manifest. If no\nreceiver with the class name can be found, returns null.\n\n@param className the fully resolved class name of the receiver\n@return data for the receiver or null if it cannot be found", "docstring_tokens": ["Returns", "data", "for", "the", "broadcast", "receiver", "with", "the", "provided", "name", "from", "this", "manifest", ".", "If", "no", "receiver", "with", "the", "class", "name", "can", "be", "found", "returns", "null", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/manifest/AndroidManifest.java#L810-L818", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowNotificationManager.java", "func_name": "ShadowNotificationManager.deleteNotificationChannelGroup", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Delete a notification channel group and all notification channels associated with the group.\nThis method will not notify any NotificationListenerService of resulting changes to\nnotification channel groups nor to notification channels.", "docstring_tokens": ["Delete", "a", "notification", "channel", "group", "and", "all", "notification", "channels", "associated", "with", "the", "group", ".", "This", "method", "will", "not", "notify", "any", "NotificationListenerService", "of", "resulting", "changes", "to", "notification", "channel", "groups", "nor", "to", "notification", "channels", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowNotificationManager.java#L161-L176", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "utils/reflector/src/main/java/org/robolectric/util/reflector/UnsafeAccess.java", "func_name": "UnsafeAccess.getJavaVersion", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the Java version as an int value.\n\n@return the Java version as an int value (8, 9, etc.)", "docstring_tokens": ["Returns", "the", "Java", "version", "as", "an", "int", "value", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/utils/reflector/src/main/java/org/robolectric/util/reflector/UnsafeAccess.java#L85-L100", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowMotionEvent.java", "func_name": "ShadowMotionEvent.transform", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "shadow this directly as opposed to nativeTransform because need access to ShadowMatrix", "docstring_tokens": ["shadow", "this", "directly", "as", "opposed", "to", "nativeTransform", "because", "need", "access", "to", "ShadowMatrix"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowMotionEvent.java#L954-L963", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowCaptureResult.java", "func_name": "ShadowCaptureResult.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtain a property of the CaptureResult.", "docstring_tokens": ["Obtain", "a", "property", "of", "the", "CaptureResult", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowCaptureResult.java#L28-L33", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowArscAssetManager.java", "func_name": "ShadowArscAssetManager.loadResourceBagValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if the resource was found, filling in mRetStringBlock and\nmRetData.", "docstring_tokens": ["Returns", "true", "if", "the", "resource", "was", "found", "filling", "in", "mRetStringBlock", "and", "mRetData", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowArscAssetManager.java#L607-L616", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowLegacyLooper.java", "func_name": "ShadowLegacyLooper.post", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enqueue a task to be run later.\n\n@param runnable the task to be run\n@param delayMillis how many milliseconds into the (virtual) future to run it\n@return true if the runnable is enqueued\n@see android.os.Handler#postDelayed(Runnable,long)\n@deprecated Use a {@link android.os.Handler} instance to post to a looper.", "docstring_tokens": ["Enqueue", "a", "task", "to", "be", "run", "later", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowLegacyLooper.java#L220-L229", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowLegacyLooper.java", "func_name": "ShadowLegacyLooper.postAtFrontOfQueue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enqueue a task to be run ahead of all other delayed tasks.\n\n@param runnable the task to be run\n@return true if the runnable is enqueued\n@see android.os.Handler#postAtFrontOfQueue(Runnable)\n@deprecated Use a {@link android.os.Handler} instance to post to a looper.", "docstring_tokens": ["Enqueue", "a", "task", "to", "be", "run", "ahead", "of", "all", "other", "delayed", "tasks", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowLegacyLooper.java#L239-L248", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.addActivityIfNotPresent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Makes sure that given activity exists.\n\nIf the activity doesn't exist yet, it will be created with {@code applicationInfo} set to an\nexisting application, or if it doesn't exist, a new package will be created.\n\n@return existing or newly created activity info.", "docstring_tokens": ["Makes", "sure", "that", "given", "activity", "exists", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L161-L168", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.addServiceIfNotPresent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Makes sure that given service exists.\n\nIf the service doesn't exist yet, it will be created with {@code applicationInfo} set to an\nexisting application, or if it doesn't exist, a new package will be created.\n\n@return existing or newly created service info.", "docstring_tokens": ["Makes", "sure", "that", "given", "service", "exists", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L178-L185", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.addReceiverIfNotPresent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Makes sure that given receiver exists.\n\nIf the receiver doesn't exist yet, it will be created with {@code applicationInfo} set to an\nexisting application, or if it doesn't exist, a new package will be created.\n\n@return existing or newly created receiver info.", "docstring_tokens": ["Makes", "sure", "that", "given", "receiver", "exists", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L195-L202", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.addProviderIfNotPresent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Makes sure that given provider exists.\n\nIf the provider doesn't exist yet, it will be created with {@code applicationInfo} set to an\nexisting application, or if it doesn't exist, a new package will be created.\n\n@return existing or newly created provider info.", "docstring_tokens": ["Makes", "sure", "that", "given", "provider", "exists", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L212-L219", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.addOrUpdateActivity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds or updates given activity in the system.\n\nIf activity with the same {@link ComponentInfo#name} and {@code ComponentInfo#packageName}\nexists it will be updated. Its {@link ComponentInfo#applicationInfo} is always set to {@link\nApplicationInfo} already existing in the system, but if no application exists a new one will\nbe created using {@link ComponentInfo#applicationInfo} in this component.", "docstring_tokens": ["Adds", "or", "updates", "given", "activity", "in", "the", "system", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L238-L245", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.addOrUpdateService", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds or updates given service in the system.\n\nIf service with the same {@link ComponentInfo#name} and {@code ComponentInfo#packageName}\nexists it will be updated. Its {@link ComponentInfo#applicationInfo} is always set to {@link\nApplicationInfo} already existing in the system, but if no application exists a new one will be\ncreated using {@link ComponentInfo#applicationInfo} in this component.", "docstring_tokens": ["Adds", "or", "updates", "given", "service", "in", "the", "system", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L255-L262", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.addOrUpdateReceiver", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds or updates given broadcast receiver in the system.\n\nIf broadcast receiver with the same {@link ComponentInfo#name} and {@code\nComponentInfo#packageName} exists it will be updated. Its {@link ComponentInfo#applicationInfo}\nis always set to {@link ApplicationInfo} already existing in the system, but if no\napplication exists a new one will be created using {@link ComponentInfo#applicationInfo} in\nthis component.", "docstring_tokens": ["Adds", "or", "updates", "given", "broadcast", "receiver", "in", "the", "system", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L273-L280", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.addOrUpdateProvider", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds or updates given content provider in the system.\n\nIf content provider with the same {@link ComponentInfo#name} and {@code\nComponentInfo#packageName} exists it will be updated. Its {@link ComponentInfo#applicationInfo}\nis always set to {@link ApplicationInfo} already existing in the system, but if no\napplication exists a new one will be created using {@link ComponentInfo#applicationInfo} in\nthis component.", "docstring_tokens": ["Adds", "or", "updates", "given", "content", "provider", "in", "the", "system", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L291-L298", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.removeActivity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes activity from the package manager.\n\n@return the removed component or {@code null} if no such component existed.", "docstring_tokens": ["Removes", "activity", "from", "the", "package", "manager", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L305-L309", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.removeService", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes service from the package manager.\n\n@return the removed component or {@code null} if no such component existed.", "docstring_tokens": ["Removes", "service", "from", "the", "package", "manager", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L316-L320", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.removeProvider", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes content provider from the package manager.\n\n@return the removed component or {@code null} if no such component existed.", "docstring_tokens": ["Removes", "content", "provider", "from", "the", "package", "manager", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L327-L331", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.removeReceiver", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes broadcast receiver from the package manager.\n\n@return the removed component or {@code null} if no such component existed.", "docstring_tokens": ["Removes", "broadcast", "receiver", "from", "the", "package", "manager", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L338-L342", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.setResolveInfosForIntent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets extra resolve infos for an intent.\n\nThose entries are added to whatever might be in the manifest already.\n\nNote that all resolve infos will have {@link ResolveInfo#isDefault} field set to {@code\ntrue} to allow their resolution for implicit intents. If this is not what you want, then you\nstill have the reference to those ResolveInfos, and you can set the field back to {@code\nfalse}.\n\n@deprecated see the note on {@link #addResolveInfoForIntent(Intent, ResolveInfo)}.", "docstring_tokens": ["Sets", "extra", "resolve", "infos", "for", "an", "intent", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L550-L556", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.addResolveInfoForIntent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds extra resolve info for an intent.\n\nNote that this resolve info will have {@link ResolveInfo#isDefault} field set to {@code\ntrue} to allow its resolution for implicit intents. If this is not what you want, then please\nuse {@link #addResolveInfoForIntentNoDefaults} instead.\n\n@deprecated use {@link #addIntentFilterForComponent} instead and if the component doesn't exist\nadd it using any of {@link #installPackage}, {@link #addOrUpdateActivity}, {@link\n#addActivityIfNotPresent} or their counterparts for other types of components.", "docstring_tokens": ["Adds", "extra", "resolve", "info", "for", "an", "intent", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L575-L596", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.addPackageInternal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Internal use only.\n\n@param appPackage", "docstring_tokens": ["Internal", "use", "only", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L1063-L1101", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.addIntentFilterForActivity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add intent filter for given activity.\n\n@throws NameNotFoundException if component with given name doesn't exist.", "docstring_tokens": ["Add", "intent", "filter", "for", "given", "activity", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L1280-L1283", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.addIntentFilterForService", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add intent filter for given service.\n\n@throws NameNotFoundException if component with given name doesn't exist.", "docstring_tokens": ["Add", "intent", "filter", "for", "given", "service", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L1290-L1293", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.addIntentFilterForReceiver", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add intent filter for given receiver.\n\n@throws NameNotFoundException if component with given name doesn't exist.", "docstring_tokens": ["Add", "intent", "filter", "for", "given", "receiver", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L1300-L1303", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java", "func_name": "ShadowPackageManager.addIntentFilterForProvider", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add intent filter for given provider.\n\n@throws NameNotFoundException if component with given name doesn't exist.", "docstring_tokens": ["Add", "intent", "filter", "for", "given", "provider", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java#L1310-L1313", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/LocaleData.java", "func_name": "LocaleData.findParent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "to represent the root locale", "docstring_tokens": ["to", "represent", "the", "root", "locale"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/LocaleData.java#L31-L46", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/LocaleData.java", "func_name": "LocaleData.findAncestors", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "any results in 'out'.)", "docstring_tokens": ["any", "results", "in", "out", ".", ")"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/LocaleData.java#L60-L80", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageParser.java", "func_name": "ShadowPackageParser.callParsePackage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses an AndroidManifest.xml file using the framework PackageParser.", "docstring_tokens": ["Parses", "an", "AndroidManifest", ".", "xml", "file", "using", "the", "framework", "PackageParser", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageParser.java#L34-L71", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "robolectric/src/main/java/org/robolectric/android/internal/LocalActivityInvoker.java", "func_name": "LocalActivityInvoker.getIntentForActivity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This implementation makes sure, that the activity you are trying to launch exists", "docstring_tokens": ["This", "implementation", "makes", "sure", "that", "the", "activity", "you", "are", "trying", "to", "launch", "exists"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/robolectric/src/main/java/org/robolectric/android/internal/LocalActivityInvoker.java#L135-L144", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/LoadedArsc.java", "func_name": "LoadedArsc.VerifyResTableType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "the ResChunk_header is safe.", "docstring_tokens": ["the", "ResChunk_header", "is", "safe", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/LoadedArsc.java#L225-L258", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "robolectric/src/main/java/org/robolectric/internal/MavenManifestFactory.java", "func_name": "MavenManifestFactory.findLibraries", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find valid library AndroidManifest files referenced from an already loaded AndroidManifest's\n`project.properties` file, recursively.", "docstring_tokens": ["Find", "valid", "library", "AndroidManifest", "files", "referenced", "from", "an", "already", "loaded", "AndroidManifest", "s", "project", ".", "properties", "file", "recursively", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/robolectric/src/main/java/org/robolectric/internal/MavenManifestFactory.java#L106-L139", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDevicePolicyManager.java", "func_name": "ShadowDevicePolicyManager.getOrganizationName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns organization name.\n\n

The API can only be called by profile owner since Android N.\n\n

Android framework has a hidden API for getting the organization name for device owner since\nAndroid O. This method, however, is extended to return the organization name for device owners\ntoo to make testing of {@link #setOrganizationName(ComponentName, CharSequence)} easier for\ndevice owner cases.", "docstring_tokens": ["Returns", "organization", "name", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDevicePolicyManager.java#L474-L484", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDevicePolicyManager.java", "func_name": "ShadowDevicePolicyManager.setPermittedAccessibilityServices", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets permitted accessibility services.\n\n

The API can be called by either a profile or device owner.\n\n

This method does not check already enabled non-system accessibility services, so will always\nset the restriction and return true.", "docstring_tokens": ["Sets", "permitted", "accessibility", "services", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDevicePolicyManager.java#L511-L517", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDevicePolicyManager.java", "func_name": "ShadowDevicePolicyManager.setPermittedInputMethods", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets permitted input methods.\n\n

The API can be called by either a profile or device owner.\n\n

This method does not check already enabled non-system input methods, so will always set the\nrestriction and return true.", "docstring_tokens": ["Sets", "permitted", "input", "methods", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDevicePolicyManager.java#L534-L539", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDevicePolicyManager.java", "func_name": "ShadowDevicePolicyManager.activateResetToken", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Activates reset token for given admin.\n\n@param admin Which {@link DeviceAdminReceiver} this request is associated with.\n@return if the activation state changed.\n@throws IllegalArgumentException if there is no token set for this admin.", "docstring_tokens": ["Activates", "reset", "token", "for", "given", "admin", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDevicePolicyManager.java#L1000-L1005", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/CppAssetManager2.java", "func_name": "CppAssetManager2.GetResourceConfigurations", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "boolean exclude_mipmap = false);", "docstring_tokens": ["boolean", "exclude_mipmap", "=", "false", ")", ";"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/CppAssetManager2.java#L444-L457", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/CppAssetManager2.java", "func_name": "CppAssetManager2.GetResourceLocales", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "boolean merge_equivalent_languages = false);", "docstring_tokens": ["boolean", "merge_equivalent_languages", "=", "false", ")", ";"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/CppAssetManager2.java#L467-L480", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/CppAssetManager2.java", "func_name": "CppAssetManager2.OpenNonAsset", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "is inconsistent for split APKs.", "docstring_tokens": ["is", "inconsistent", "for", "split", "APKs", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/CppAssetManager2.java#L547-L565", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowBackupManager.java", "func_name": "ShadowBackupManager.addAvailableRestoreSets", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a restore set available to be restored.", "docstring_tokens": ["Adds", "a", "restore", "set", "available", "to", "be", "restored", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowBackupManager.java#L91-L93", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPausedLooper.java", "func_name": "ShadowPausedLooper.runPaused", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "compatibility for now", "docstring_tokens": ["compatibility", "for", "now"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPausedLooper.java#L194-L202", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowPausedLooper.java", "func_name": "ShadowPausedLooper.executeOnLooper", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes the given runnable on the loopers thread, and waits for it to complete.", "docstring_tokens": ["Executes", "the", "given", "runnable", "on", "the", "loopers", "thread", "and", "waits", "for", "it", "to", "complete", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowPausedLooper.java#L271-L282", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java", "func_name": "ShadowParcel.readParcelable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "this needs to start above 0, which is a magic number to Parcel", "docstring_tokens": ["this", "needs", "to", "start", "above", "0", "which", "is", "a", "magic", "number", "to", "Parcel"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java#L56-L71", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java", "func_name": "ShadowParcel.writeBlob", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "non-existent-in-JDK java.util.Arrays.checkOffsetAndCount method.", "docstring_tokens": ["non", "-", "existent", "-", "in", "-", "JDK", "java", ".", "util", ".", "Arrays", ".", "checkOffsetAndCount", "method", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java#L239-L248", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java", "func_name": "ShadowParcel.nativeWriteBlob", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "nativeWriteBlob was introduced in lollipop, thus no need for a int nativePtr variant", "docstring_tokens": ["nativeWriteBlob", "was", "introduced", "in", "lollipop", "thus", "no", "need", "for", "a", "int", "nativePtr", "variant"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java#L261-L264", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java", "func_name": "ShadowParcel.toByteArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts a ByteBuffer to a raw byte array. This method should be symmetrical with\nfromByteArray.", "docstring_tokens": ["Converts", "a", "ByteBuffer", "to", "a", "raw", "byte", "array", ".", "This", "method", "should", "be", "symmetrical", "with", "fromByteArray", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java#L932-L958", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java", "func_name": "ShadowParcel.setDataPosition", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the current data position.\n\n@param pos\nDesired position in bytes", "docstring_tokens": ["Sets", "the", "current", "data", "position", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java#L994-L1001", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java", "func_name": "ShadowParcel.checkConsistentReadAndIncrementPosition", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Ensures that the next sizeBytes are all the initial value we read.\n\n

This detects:\n\n

    \n
  • Reading an item, but not starting at its start position\n
  • Reading items that were truncated by setSize\n
  • Reading items that were partially overwritten by another\n
", "docstring_tokens": ["Ensures", "that", "the", "next", "sizeBytes", "are", "all", "the", "initial", "value", "we", "read", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java#L1045-L1064", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java", "func_name": "ShadowParcel.peek", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the item at the current position, or null if uninitialized or null.", "docstring_tokens": ["Returns", "the", "item", "at", "the", "current", "position", "or", "null", "if", "uninitialized", "or", "null", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java#L1067-L1071", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java", "func_name": "ShadowParcel.readNextItem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads a complete item in the byte buffer.\n\n@param clazz this is the type that is being read, but not checked in this method\n@return null if the default value should be returned, otherwise the item holding the data", "docstring_tokens": ["Reads", "a", "complete", "item", "in", "the", "byte", "buffer", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java#L1079-L1087", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java", "func_name": "ShadowParcel.readValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads the next value in the byte buffer of a specified type.\n\n@param pastEndValue value to return when reading past the end of the buffer\n@param clazz this is the type that is being read, but not checked in this method\n@param allowNull whether null values are permitted", "docstring_tokens": ["Reads", "the", "next", "value", "in", "the", "byte", "buffer", "of", "a", "specified", "type", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java#L1096-L1128", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java", "func_name": "ShadowParcel.readZeroes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines if there is a sequence of castable zeroes, and consumes them.\n\n

This is the only exception for strong typing, because zero bytes are portable and\nunambiguous. There are a few situations where well-written code can rely on this, so it is\nworthwhile making a special exception for. This tolerates partially-overwritten and truncated\nvalues if all bytes are zero.", "docstring_tokens": ["Determines", "if", "there", "is", "a", "sequence", "of", "castable", "zeroes", "and", "consumes", "them", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java#L1138-L1152", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java", "func_name": "ShadowParcel.readPrimitive", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads a primitive, which may reinterpret zeros of other types.\n\n@param defaultSizeBytes if reinterpreting zeros, the number of bytes to consume\n@param defaultValue the default value for zeros or reading past the end\n@param clazz this is the type that is being read, but not checked in this method", "docstring_tokens": ["Reads", "a", "primitive", "which", "may", "reinterpret", "zeros", "of", "other", "types", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java#L1161-L1167", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java", "func_name": "ShadowParcel.writeItem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes an encoded item directly, bypassing alignment, and possibly repeating an item.", "docstring_tokens": ["Writes", "an", "encoded", "item", "directly", "bypassing", "alignment", "and", "possibly", "repeating", "an", "item", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowParcel.java#L1170-L1182", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "utils/src/main/java/org/robolectric/util/Util.java", "func_name": "Util.readBytes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method consumes an input stream and returns its content.\n\n@param is The input stream to read from.\n@return The bytes read from the stream.\n@throws IOException Error reading from stream.", "docstring_tokens": ["This", "method", "consumes", "an", "input", "stream", "and", "returns", "its", "content", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/utils/src/main/java/org/robolectric/util/Util.java#L61-L66", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/NativeObjRegistry.java", "func_name": "NativeObjRegistry.getNativeObjectId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve the native id for given object. Assigns a new unique id to the object if not\npreviously registered.\n\n@deprecated Use {@link #register(Object)} instead.", "docstring_tokens": ["Retrieve", "the", "native", "id", "for", "given", "object", ".", "Assigns", "a", "new", "unique", "id", "to", "the", "object", "if", "not", "previously", "registered", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/NativeObjRegistry.java#L51-L64", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/NativeObjRegistry.java", "func_name": "NativeObjRegistry.getNativeObject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve the native object for given id. Throws if object with that id cannot be found", "docstring_tokens": ["Retrieve", "the", "native", "object", "for", "given", "id", ".", "Throws", "if", "object", "with", "that", "id", "cannot", "be", "found"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/NativeObjRegistry.java#L135-L145", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplication.java", "func_name": "ShadowApplication.callAttach", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Attaches an application to a base context.\n\n@param context The context with which to initialize the application, whose base context will\nbe attached to the application", "docstring_tokens": ["Attaches", "an", "application", "to", "a", "base", "context", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplication.java#L78-L81", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowConnectivityManager.java", "func_name": "ShadowConnectivityManager.setDefaultNetworkActive", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the active state of the default network.\n\nBy default this is true and affects the result of {@link\nConnectivityManager#isActiveNetworkMetered()}, {@link\nConnectivityManager#isDefaultNetworkActive()}, {@link ConnectivityManager#getActiveNetwork()}\nand {@link ConnectivityManager#getAllNetworkInfo()}.\n\nCalling this method with {@code true} after any listeners have been registered with {@link\nConnectivityManager#addDefaultNetworkActiveListener(OnNetworkActiveListener)} will result in\nthose listeners being fired.\n\n@param isActive The active state of the default network.", "docstring_tokens": ["Sets", "the", "active", "state", "of", "the", "default", "network", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowConnectivityManager.java#L306-L315", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowSoundPool.java", "func_name": "ShadowSoundPool.play", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "native method.", "docstring_tokens": ["native", "method", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowSoundPool.java#L50-L55", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowSoundPool.java", "func_name": "ShadowSoundPool.load", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "FileDescriptor which would make it difficult to check if a given sound has been placed.", "docstring_tokens": ["FileDescriptor", "which", "would", "make", "it", "difficult", "to", "check", "if", "a", "given", "sound", "has", "been", "placed", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowSoundPool.java#L66-L71", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowAppWidgetManager.java", "func_name": "ShadowAppWidgetManager.reconstructWidgetViewAsIfPhoneWasRotated", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Triggers a reapplication of the most recent set of actions against the widget, which is what happens when the\nphone is rotated. Does not attempt to simulate a change in screen geometry.\n\n@param appWidgetId the ID of the widget to be affected", "docstring_tokens": ["Triggers", "a", "reapplication", "of", "the", "most", "recent", "set", "of", "actions", "against", "the", "widget", "which", "is", "what", "happens", "when", "the", "phone", "is", "rotated", ".", "Does", "not", "attempt", "to", "simulate", "a", "change", "in", "screen", "geometry", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowAppWidgetManager.java#L146-L150", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowAppWidgetManager.java", "func_name": "ShadowAppWidgetManager.createWidgets", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a bunch of widgets by inflating the same layout multiple times.\n\n@param appWidgetProviderClass the app widget provider class\n@param widgetLayoutId id of the layout to inflate\n@param howManyToCreate number of new widgets to create\n@return the IDs of the new widgets", "docstring_tokens": ["Creates", "a", "bunch", "of", "widgets", "by", "inflating", "the", "same", "layout", "multiple", "times", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowAppWidgetManager.java#L171-L185", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaPlayer.java", "func_name": "ShadowMediaPlayer.invokeSeekCompleteListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Allows test cases to simulate seek completion by invoking callback.", "docstring_tokens": ["Allows", "test", "cases", "to", "simulate", "seek", "completion", "by", "invoking", "callback", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaPlayer.java#L1497-L1509", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaPlayer.java", "func_name": "ShadowMediaPlayer.invokeInfoListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Allows test cases to directly simulate invocation of the OnInfo event.\n\n@param what\nparameter to pass in to {@code what} in\n{@link MediaPlayer.OnInfoListener#onInfo(MediaPlayer, int, int)}.\n@param extra\nparameter to pass in to {@code extra} in\n{@link MediaPlayer.OnInfoListener#onInfo(MediaPlayer, int, int)}.", "docstring_tokens": ["Allows", "test", "cases", "to", "directly", "simulate", "invocation", "of", "the", "OnInfo", "event", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaPlayer.java#L1521-L1525", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaPlayer.java", "func_name": "ShadowMediaPlayer.invokeErrorListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Allows test cases to directly simulate invocation of the OnError event.\n\n@param what\nparameter to pass in to {@code what} in\n{@link MediaPlayer.OnErrorListener#onError(MediaPlayer, int, int)}.\n@param extra\nparameter to pass in to {@code extra} in\n{@link MediaPlayer.OnErrorListener#onError(MediaPlayer, int, int)}.", "docstring_tokens": ["Allows", "test", "cases", "to", "directly", "simulate", "invocation", "of", "the", "OnError", "event", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaPlayer.java#L1537-L1556", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java", "func_name": "ShadowDisplay.getDefaultDisplay", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the default display.\n\n@return the default display", "docstring_tokens": ["Returns", "the", "default", "display", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java#L37-L41", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java", "func_name": "ShadowDisplay.setDensityDpi", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Changes the density for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.", "docstring_tokens": ["Changes", "the", "density", "for", "this", "display", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java#L187-L194", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java", "func_name": "ShadowDisplay.setXdpi", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Changes the horizontal DPI for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.", "docstring_tokens": ["Changes", "the", "horizontal", "DPI", "for", "this", "display", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java#L202-L209", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java", "func_name": "ShadowDisplay.setYdpi", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Changes the vertical DPI for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.", "docstring_tokens": ["Changes", "the", "vertical", "DPI", "for", "this", "display", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java#L217-L224", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java", "func_name": "ShadowDisplay.setName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Changes the name for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.", "docstring_tokens": ["Changes", "the", "name", "for", "this", "display", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java#L255-L262", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java", "func_name": "ShadowDisplay.setFlags", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Changes the flags for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.", "docstring_tokens": ["Changes", "the", "flags", "for", "this", "display", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java#L270-L277", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java", "func_name": "ShadowDisplay.setWidth", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Changes the width available to the application for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n\n@param width the new width in pixels", "docstring_tokens": ["Changes", "the", "width", "available", "to", "the", "application", "for", "this", "display", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java#L287-L294", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java", "func_name": "ShadowDisplay.setHeight", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Changes the height available to the application for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n\n@param height new height in pixels", "docstring_tokens": ["Changes", "the", "height", "available", "to", "the", "application", "for", "this", "display", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java#L304-L311", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java", "func_name": "ShadowDisplay.setRealWidth", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Changes the simulated physical width for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n\n@param width the new width in pixels", "docstring_tokens": ["Changes", "the", "simulated", "physical", "width", "for", "this", "display", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java#L321-L328", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java", "func_name": "ShadowDisplay.setRealHeight", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Changes the simulated physical height for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n\n@param height the new height in pixels", "docstring_tokens": ["Changes", "the", "simulated", "physical", "height", "for", "this", "display", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java#L338-L345", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java", "func_name": "ShadowDisplay.setRotation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Changes the rotation for this display.\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n\n@param rotation one of {@link Surface#ROTATION_0}, {@link Surface#ROTATION_90},\n{@link Surface#ROTATION_180}, {@link Surface#ROTATION_270}", "docstring_tokens": ["Changes", "the", "rotation", "for", "this", "display", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java#L367-L374", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java", "func_name": "ShadowDisplay.setState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Changes the simulated state for this display, such as whether it is on or off\n\nAny registered {@link android.hardware.display.DisplayManager.DisplayListener}s will be\nnotified of the change.\n\n@param state the new state: one of {@link Display#STATE_OFF}, {@link Display#STATE_ON},\n{@link Display#STATE_DOZE}, {@link Display#STATE_DOZE_SUSPEND}, or\n{@link Display#STATE_UNKNOWN}.", "docstring_tokens": ["Changes", "the", "simulated", "state", "for", "this", "display", "such", "as", "whether", "it", "is", "on", "or", "off"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplay.java#L396-L401", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/DefaultRequestDirector.java", "func_name": "DefaultRequestDirector.releaseConnection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the connection back to the connection manager\nand prepares for retrieving a new connection during\nthe next request.", "docstring_tokens": ["Returns", "the", "connection", "back", "to", "the", "connection", "manager", "and", "prepares", "for", "retrieving", "a", "new", "connection", "during", "the", "next", "request", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/DefaultRequestDirector.java#L607-L617", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/DefaultRequestDirector.java", "func_name": "DefaultRequestDirector.establishRoute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Establishes the target route.\n\n@param route the route to establish\n@param context the context for the request execution\n\n@throws HttpException in case of a problem\n@throws IOException in case of an IO problem", "docstring_tokens": ["Establishes", "the", "target", "route", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/DefaultRequestDirector.java#L663-L719", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "sandbox/src/main/java/org/robolectric/internal/bytecode/InstrumentingClassWriter.java", "func_name": "InstrumentingClassWriter.getCommonSuperClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the common super type of the two given types without actually loading\nthe classes in the ClassLoader.", "docstring_tokens": ["Returns", "the", "common", "super", "type", "of", "the", "two", "given", "types", "without", "actually", "loading", "the", "classes", "in", "the", "ClassLoader", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/sandbox/src/main/java/org/robolectric/internal/bytecode/InstrumentingClassWriter.java#L33-L82", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/android/XmlResourceParserImpl.java", "func_name": "XmlResourceParserImpl.qualify", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "for testing only...", "docstring_tokens": ["for", "testing", "only", "..."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/android/XmlResourceParserImpl.java#L342-L351", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/android/XmlResourceParserImpl.java", "func_name": "XmlResourceParserImpl.navigateToNextNode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Navigate to the next node after a node and all of his\nchildren have been explored.\n\nIf the node has unexplored siblings navigate to the\nnext sibling. Otherwise return to its parent.\n\n@param node the node which was just explored.\n@return {@link XmlPullParserException#START_TAG} if the given\nnode has siblings, {@link XmlPullParserException#END_TAG}\nif the node has no unexplored siblings or\n{@link XmlPullParserException#END_DOCUMENT} if the explored\nwas the root document.\n@throws XmlPullParserException if the parser fails to\nparse the next node.", "docstring_tokens": ["Navigate", "to", "the", "next", "node", "after", "a", "node", "and", "all", "of", "his", "children", "have", "been", "explored", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/android/XmlResourceParserImpl.java#L546-L561", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/android/XmlResourceParserImpl.java", "func_name": "XmlResourceParserImpl.isAndroidSupportedFeature", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tell is a given feature is supported by android.\n\n@param name Feature name.\n@return True if the feature is supported.", "docstring_tokens": ["Tell", "is", "a", "given", "feature", "is", "supported", "by", "android", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/android/XmlResourceParserImpl.java#L839-L849", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/ResTable.java", "func_name": "ResTable.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "bool appAsLib=false, bool isSystemAsset=false);", "docstring_tokens": ["bool", "appAsLib", "=", "false", "bool", "isSystemAsset", "=", "false", ")", ";"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/ResTable.java#L145-L167", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/RuntimeEnvironment.java", "func_name": "RuntimeEnvironment.getQualifiers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a qualifier string describing the given configuration and display metrics.\n\n@param configuration the configuration.\n@param displayMetrics the display metrics.\n@return a qualifier string as described (https://developer.android.com/guide/topics/resources/providing-resources.html#QualifierRules)[here].", "docstring_tokens": ["Returns", "a", "qualifier", "string", "describing", "the", "given", "configuration", "and", "display", "metrics", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/RuntimeEnvironment.java#L120-L122", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/RuntimeEnvironment.java", "func_name": "RuntimeEnvironment.setQualifiers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Overrides the current device configuration.\n\nIf `newQualifiers` starts with a plus (`+`), the prior configuration is used as the base\nconfiguration, with the given changes applied additively. Otherwise, default values are used\nfor unspecified properties, as described [here](http://robolectric.org/device-configuration/).\n\n@param newQualifiers the qualifiers to apply", "docstring_tokens": ["Overrides", "the", "current", "device", "configuration", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/RuntimeEnvironment.java#L133-L150", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/ResourceString.java", "func_name": "ResourceString.buildString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds a string from a null-terminated char data.", "docstring_tokens": ["Builds", "a", "string", "from", "a", "null", "-", "terminated", "char", "data", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/ResourceString.java#L115-L123", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "utils/src/main/java/org/robolectric/util/inject/ServiceFinder.java", "func_name": "ServiceFinder.load", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new service loader for the given service type and class\nloader.\n\n@param the class of the service type\n\n@param service\nThe interface or abstract class representing the service\n\n@param loader\nThe class loader to be used to load provider-configuration files\nand provider classes, or null if the system class\nloader (or, failing that, the bootstrap class loader) is to be\nused\n\n@return A new service loader", "docstring_tokens": ["Creates", "a", "new", "service", "loader", "for", "the", "given", "service", "type", "and", "class", "loader", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/utils/src/main/java/org/robolectric/util/inject/ServiceFinder.java#L404-L408", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "utils/src/main/java/org/robolectric/util/inject/ServiceFinder.java", "func_name": "ServiceFinder.loadInstalled", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new service loader for the given service type, using the\nextension class loader.\n\n

This convenience method simply locates the extension class loader,\ncall it extClassLoader, and then returns\n\n

\nServiceFinder.load(service, extClassLoader)
\n\n

If the extension class loader cannot be found then the system class\nloader is used; if there is no system class loader then the bootstrap\nclass loader is used.\n\n

This method is intended for use when only installed providers are\ndesired. The resulting service will only find and load providers that\nhave been installed into the current Java virtual machine; providers on\nthe application's class path will be ignored.\n\n@param the class of the service type\n\n@param service\nThe interface or abstract class representing the service\n\n@return A new service loader", "docstring_tokens": ["Creates", "a", "new", "service", "loader", "for", "the", "given", "service", "type", "using", "the", "extension", "class", "loader", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/utils/src/main/java/org/robolectric/util/inject/ServiceFinder.java#L464-L472", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "utils/src/main/java/org/robolectric/util/inject/ServiceFinder.java", "func_name": "ServiceFinder.loadFromSystemProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Internal API to support built-in SPIs that check a system property first.\nReturns an instance specified by a property with the class' binary name, or null if\nno such property is set.\n@hide", "docstring_tokens": ["Internal", "API", "to", "support", "built", "-", "in", "SPIs", "that", "check", "a", "system", "property", "first", ".", "Returns", "an", "instance", "specified", "by", "a", "property", "with", "the", "class", "binary", "name", "or", "null", "if", "no", "such", "property", "is", "set", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/utils/src/main/java/org/robolectric/util/inject/ServiceFinder.java#L482-L493", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowUsbManager.java", "func_name": "ShadowUsbManager.hasPermissionForPackage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if the given package has permission to access the device.", "docstring_tokens": ["Returns", "true", "if", "the", "given", "package", "has", "permission", "to", "access", "the", "device", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowUsbManager.java#L63-L66", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowUsbManager.java", "func_name": "ShadowUsbManager.revokePermission", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Revokes permission to a USB device granted to a package. This method does nothing if the\npackage doesn't have permission to access the device.", "docstring_tokens": ["Revokes", "permission", "to", "a", "USB", "device", "granted", "to", "a", "package", ".", "This", "method", "does", "nothing", "if", "the", "package", "doesn", "t", "have", "permission", "to", "access", "the", "device", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowUsbManager.java#L89-L94", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowUsbManager.java", "func_name": "ShadowUsbManager.addOrUpdateUsbDevice", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a USB device into available USB devices map with permission value. If the USB device\nalready exists, updates the USB device with new permission value.", "docstring_tokens": ["Adds", "a", "USB", "device", "into", "available", "USB", "devices", "map", "with", "permission", "value", ".", "If", "the", "USB", "device", "already", "exists", "updates", "the", "USB", "device", "with", "new", "permission", "value", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowUsbManager.java#L126-L135", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowUsbManager.java", "func_name": "ShadowUsbManager.removeUsbDevice", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes a USB device from available USB devices map.", "docstring_tokens": ["Removes", "a", "USB", "device", "from", "available", "USB", "devices", "map", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowUsbManager.java#L138-L142", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowUsbManager.java", "func_name": "ShadowUsbManager.addPort", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a USB port to UsbManager.", "docstring_tokens": ["Adds", "a", "USB", "port", "to", "UsbManager", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowUsbManager.java#L160-L181", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowUsbManager.java", "func_name": "ShadowUsbManager.openAccessory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Opens a file descriptor from a temporary file.", "docstring_tokens": ["Opens", "a", "file", "descriptor", "from", "a", "temporary", "file", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowUsbManager.java#L205-L215", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDropBoxManager.java", "func_name": "ShadowDropBoxManager.addData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds entry to the DropboxManager with the flag indicating data is text.\n\n

The existing {@link DropBoxManager#addData}, {@link DropBoxManager#addFile}, and {@link\nDropBoxManager#addText} methods in DropBoxManager are not shadowed. This method is a\nconvenience for quickly adding multiple historical entries. The entries can be added in any\norder since this shadow will sort the entries by the specified timestamp.\n\n

The flag will be set to {@link DropBoxManager#IS_TEXT} so that {@link\nDropBoxManager.Entry#getText} can be used.\n\n@param tag can be any arbitrary string\n@param timestamp is an arbitrary timestamp that must be unique from all other entries\n@param data must not be null", "docstring_tokens": ["Adds", "entry", "to", "the", "DropboxManager", "with", "the", "flag", "indicating", "data", "is", "text", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDropBoxManager.java#L34-L36", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/ShadowMediaBrowserCompat.java", "func_name": "ShadowMediaBrowserCompat.createMediaItem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a MediaItem and returns it.\n\n@param parentId the id of the parent MediaItem. If the MediaItem to be created will be the\nroot, parentId should be null.\n@param mediaId the id of the MediaItem to be created.\n@param title the title of the MediaItem to be created.\n@param flag says if the MediaItem to be created is browsable and/or playable.\n@return the newly created MediaItem.", "docstring_tokens": ["Creates", "a", "MediaItem", "and", "returns", "it", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/ShadowMediaBrowserCompat.java#L187-L210", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java", "func_name": "ReflectionHelpers.createDeepProxy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a proxy for the given class which returns other deep proxies from all it's methods.\n\n

The returned object will be an instance of the given class, but all methods will return\neither the \"default\" value for primitives, or another deep proxy for non-primitive types.\n\n

This should be used rarely, for cases where we need to create deep proxies in order not\nto crash. The inner proxies are impossible to configure, so there is no way to create\nmeaningful behavior from a deep proxy. It serves mainly to prevent Null Pointer Exceptions.\n@param clazz the class to provide a proxy instance of.\n@return a new \"Deep Proxy\" instance of the given class.", "docstring_tokens": ["Create", "a", "proxy", "for", "the", "given", "class", "which", "returns", "other", "deep", "proxies", "from", "all", "it", "s", "methods", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java#L53-L70", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java", "func_name": "ReflectionHelpers.getField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reflectively get the value of a field.\n\n@param object Target object.\n@param fieldName The field name.\n@param The return type.\n@return Value of the field on the object.", "docstring_tokens": ["Reflectively", "get", "the", "value", "of", "a", "field", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java#L107-L121", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java", "func_name": "ReflectionHelpers.callInstanceMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reflectively call an instance method on an object.\n\n@param instance Target object.\n@param methodName The method name to call.\n@param classParameters Array of parameter types and values.\n@param The return type.\n@return The return value of the method.", "docstring_tokens": ["Reflectively", "call", "an", "instance", "method", "on", "an", "object", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java#L236-L261", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java", "func_name": "ReflectionHelpers.callInstanceMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reflectively call an instance method on an object on a specific class.\n\n@param cl The class.\n@param instance Target object.\n@param methodName The method name to call.\n@param classParameters Array of parameter types and values.\n@param The return type.\n@return The return value of the method.", "docstring_tokens": ["Reflectively", "call", "an", "instance", "method", "on", "an", "object", "on", "a", "specific", "class", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java#L273-L295", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java", "func_name": "ReflectionHelpers.callStaticMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method for calling a static method using a class from a custom class loader\n\n@param classLoader\n@param fullyQualifiedClassName\n@param methodName\n@param classParameters\n@param \n@return", "docstring_tokens": ["Helper", "method", "for", "calling", "a", "static", "method", "using", "a", "class", "from", "a", "custom", "class", "loader"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java#L307-L314", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java", "func_name": "ReflectionHelpers.callStaticMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reflectively call a static method on a class.\n\n@param clazz Target class.\n@param methodName The method name to call.\n@param classParameters Array of parameter types and values.\n@param The return type.\n@return The return value of the method.", "docstring_tokens": ["Reflectively", "call", "a", "static", "method", "on", "a", "class", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java#L325-L350", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java", "func_name": "ReflectionHelpers.newInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new instance of a class\n\n@param cl The class object.\n@param The class type.\n@return New class instance.", "docstring_tokens": ["Create", "a", "new", "instance", "of", "a", "class"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java#L374-L381", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java", "func_name": "ReflectionHelpers.callConstructor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reflectively call the constructor of an object.\n\n@param clazz Target class.\n@param classParameters Array of parameter types and values.\n@param The return type.\n@return The return value of the method.", "docstring_tokens": ["Reflectively", "call", "the", "constructor", "of", "an", "object", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadowapi/src/main/java/org/robolectric/util/ReflectionHelpers.java#L391-L412", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowWifiRttManager.java", "func_name": "ShadowWifiRttManager.startRanging", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If there are RangingResults set by the setRangeResults method of this shadow class, this method\nwill call the onRangingResults method of the callback on the executor thread and pass the list\nof RangingResults. If there are no ranging results set, it will pass\nRangingResultCallback.STATUS_CODE_FAIL to the onRangingFailure method of the callback, also\ncalled on the executor thread.", "docstring_tokens": ["If", "there", "are", "RangingResults", "set", "by", "the", "setRangeResults", "method", "of", "this", "shadow", "class", "this", "method", "will", "call", "the", "onRangingResults", "method", "of", "the", "callback", "on", "the", "executor", "thread", "and", "pass", "the", "list", "of", "RangingResults", ".", "If", "there", "are", "no", "ranging", "results", "set", "it", "will", "pass", "RangingResultCallback", ".", "STATUS_CODE_FAIL", "to", "the", "onRangingFailure", "method", "of", "the", "callback", "also", "called", "on", "the", "executor", "thread", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowWifiRttManager.java#L28-L36", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowFontsContract.java", "func_name": "ShadowFontsContract.getFontSync", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a stub typeface immediately.", "docstring_tokens": ["Returns", "a", "stub", "typeface", "immediately", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowFontsContract.java#L15-L18", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "robolectric/src/main/java/org/robolectric/ApkLoader.java", "func_name": "ApkLoader.getCompileTimeSdkResourceTable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the ResourceTable for the compile time SDK.", "docstring_tokens": ["Returns", "the", "ResourceTable", "for", "the", "compile", "time", "SDK", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/robolectric/src/main/java/org/robolectric/ApkLoader.java#L33-L41", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowView.java", "func_name": "ShadowView.dump", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Emits an xml-like representation of the view to System.out.\n\n@param view the view to dump.\n@deprecated - Please use {@link androidx.test.espresso.util.HumanReadables#describe(View)}", "docstring_tokens": ["Emits", "an", "xml", "-", "like", "representation", "of", "the", "view", "to", "System", ".", "out", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowView.java#L106-L111", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowView.java", "func_name": "ShadowView.innerText", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the text contained within this view.\n\n@param view the view to scan for text\n@return Text contained within this view.", "docstring_tokens": ["Returns", "the", "text", "contained", "within", "this", "view", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowView.java#L119-L123", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowInstrumentation.java", "func_name": "ShadowInstrumentation.getAppropriateWrappers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the BroadcaseReceivers wrappers, matching intent's action and permissions.", "docstring_tokens": ["Returns", "the", "BroadcaseReceivers", "wrappers", "matching", "intent", "s", "action", "and", "permissions", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowInstrumentation.java#L249-L271", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowInstrumentation.java", "func_name": "ShadowInstrumentation.postIntent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enforces that BroadcastReceivers invoked during an ordered broadcast run serially, passing\nalong their results.", "docstring_tokens": ["Enforces", "that", "BroadcastReceivers", "invoked", "during", "an", "ordered", "broadcast", "run", "serially", "passing", "along", "their", "results", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowInstrumentation.java#L340-L371", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowColor.java", "func_name": "ShadowColor.RGBToHSV", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This is implemented in native code in the Android SDK.\n\n

Since HSV == HSB then the implementation from {@link java.awt.Color} can be used, with a\nsmall adjustment to the representation of the hue.\n\n

{@link java.awt.Color} represents hue as 0..1 (where 1 == 100% == 360 degrees), while {@link\nandroid.graphics.Color} represents hue as 0..360 degrees. The correct hue can be calculated by\nmultiplying with 360.\n\n@param red Red component\n@param green Green component\n@param blue Blue component\n@param hsv Array to store HSV components", "docstring_tokens": ["This", "is", "implemented", "in", "native", "code", "in", "the", "Android", "SDK", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowColor.java#L24-L28", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowTrace.java", "func_name": "ShadowTrace.beginSection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Starts a new trace section with given name.", "docstring_tokens": ["Starts", "a", "new", "trace", "section", "with", "given", "name", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowTrace.java#L44-L63", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowTrace.java", "func_name": "ShadowTrace.endSection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Ends the most recent active trace section.\n\n@throws {@link AssertionError} if called without any active trace section.", "docstring_tokens": ["Ends", "the", "most", "recent", "active", "trace", "section", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowTrace.java#L70-L82", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "utils/src/main/java/org/robolectric/util/inject/Injector.java", "func_name": "Injector.getProvider", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds a provider for the given key.\n\nCalls are guaranteed idempotent and non-blocking.", "docstring_tokens": ["Finds", "a", "provider", "for", "the", "given", "key", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/utils/src/main/java/org/robolectric/util/inject/Injector.java#L306-L319", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/android/FileMap.java", "func_name": "FileMap.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns \"false\" on failure.", "docstring_tokens": ["Returns", "false", "on", "failure", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/android/FileMap.java#L27-L35", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/android/util/concurrent/PausedExecutorService.java", "func_name": "PausedExecutorService.runAll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute all posted tasks and block until they are complete.\n\n@return the number of tasks executed", "docstring_tokens": ["Execute", "all", "posted", "tasks", "and", "block", "until", "they", "are", "complete", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/android/util/concurrent/PausedExecutorService.java#L86-L97", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/android/util/concurrent/PausedExecutorService.java", "func_name": "PausedExecutorService.runNext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes the next queued task.\n\nWill be ignored if called from the executor service thread to prevent deadlocks.\n\n@return true if task was run, false if queue was empty", "docstring_tokens": ["Executes", "the", "next", "queued", "task", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/android/util/concurrent/PausedExecutorService.java#L106-L117", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowAudioManager.java", "func_name": "ShadowAudioManager.requestAudioFocus", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Provides a mock like interface for the requestAudioFocus method by storing the request object\nfor later inspection and returning the value specified in setNextFocusRequestResponse.", "docstring_tokens": ["Provides", "a", "mock", "like", "interface", "for", "the", "requestAudioFocus", "method", "by", "storing", "the", "request", "object", "for", "later", "inspection", "and", "returning", "the", "value", "specified", "in", "setNextFocusRequestResponse", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowAudioManager.java#L96-L100", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowAudioManager.java", "func_name": "ShadowAudioManager.abandonAudioFocusRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Provides a mock like interface for the abandonAudioFocusRequest method by storing the request\nobject for later inspection and returning the value specified in setNextFocusRequestResponse.", "docstring_tokens": ["Provides", "a", "mock", "like", "interface", "for", "the", "abandonAudioFocusRequest", "method", "by", "storing", "the", "request", "object", "for", "later", "inspection", "and", "returning", "the", "value", "specified", "in", "setNextFocusRequestResponse", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowAudioManager.java#L112-L116", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaCodec.java", "func_name": "ShadowMediaCodec.native_start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Starts the async encoding process, by first reporting a format change event, and then\npresenting an input buffer to the callback.", "docstring_tokens": ["Starts", "the", "async", "encoding", "process", "by", "first", "reporting", "a", "format", "change", "event", "and", "then", "presenting", "an", "input", "buffer", "to", "the", "callback", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaCodec.java#L58-L76", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaCodec.java", "func_name": "ShadowMediaCodec.getBuffer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the input or output buffer corresponding to the given index, or null if invalid.", "docstring_tokens": ["Returns", "the", "input", "or", "output", "buffer", "corresponding", "to", "the", "given", "index", "or", "null", "if", "invalid", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaCodec.java#L85-L90", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaCodec.java", "func_name": "ShadowMediaCodec.native_queueInputBuffer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Triggers presentation of the corresponding output buffer for the given input buffer, and passes\nthe given metadata as buffer info.", "docstring_tokens": ["Triggers", "presentation", "of", "the", "corresponding", "output", "buffer", "for", "the", "given", "input", "buffer", "and", "passes", "the", "given", "metadata", "as", "buffer", "info", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaCodec.java#L96-L108", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaCodec.java", "func_name": "ShadowMediaCodec.releaseOutputBuffer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Triggers presentation of the corresponding input buffer for the given output buffer, if end of\nstream has not yet been signaled.", "docstring_tokens": ["Triggers", "presentation", "of", "the", "corresponding", "input", "buffer", "for", "the", "given", "output", "buffer", "if", "end", "of", "stream", "has", "not", "yet", "been", "signaled", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaCodec.java#L114-L121", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowUsageStatsManager.java", "func_name": "ShadowUsageStatsManager.simulateTimeChange", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Simulates the operations done by the framework when there is a time change. If the time is\nchanged, the timestamps of all existing usage events will be shifted by the same offset as the\ntime change, in order to make sure they remain stable relative to the new time.\n\n

This method won't affect the results of {@link #queryUsageStats} method.\n\n@param offsetToAddInMillis the offset to be applied to all events. For example, if {@code\noffsetInMillis} is 60,000, then all {@link Event}s will be shifted forward by 1 minute\n(into the future). Likewise, if {@code offsetInMillis} is -60,000, then all {@link Event}s\nwill be shifted backward by 1 minute (into the past).", "docstring_tokens": ["Simulates", "the", "operations", "done", "by", "the", "framework", "when", "there", "is", "a", "time", "change", ".", "If", "the", "time", "is", "changed", "the", "timestamps", "of", "all", "existing", "usage", "events", "will", "be", "shifted", "by", "the", "same", "offset", "as", "the", "time", "change", "in", "order", "to", "make", "sure", "they", "remain", "stable", "relative", "to", "the", "new", "time", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowUsageStatsManager.java#L295-L303", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/LegacyManifestParser.java", "func_name": "LegacyManifestParser.metaDataToBundle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Goes through the meta data and puts each value in to a bundle as the correct type.\n\n

Note that this will convert resource identifiers specified via the value attribute as well.\n\n@param meta Meta data to put in to a bundle\n@return bundle containing the meta data", "docstring_tokens": ["Goes", "through", "the", "meta", "data", "and", "puts", "each", "value", "in", "to", "a", "bundle", "as", "the", "correct", "type", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/LegacyManifestParser.java#L558-L579", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowSQLiteConnection.java", "func_name": "ShadowSQLiteConnection.convertSQLWithLocalizedUnicodeCollator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert SQL with phrase COLLATE LOCALIZED or COLLATE UNICODE to COLLATE NOCASE.", "docstring_tokens": ["Convert", "SQL", "with", "phrase", "COLLATE", "LOCALIZED", "or", "COLLATE", "UNICODE", "to", "COLLATE", "NOCASE", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowSQLiteConnection.java#L96-L99", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplicationPackageManager.java", "func_name": "ShadowApplicationPackageManager.newPackageInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "There is no copy constructor for PackageInfo", "docstring_tokens": ["There", "is", "no", "copy", "constructor", "for", "PackageInfo"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplicationPackageManager.java#L413-L418", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplicationPackageManager.java", "func_name": "ShadowApplicationPackageManager.isGrantedForBackwardsCompatibility", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns whether a permission should be treated as granted to the package for backward\ncompatibility reasons.\n\nBefore Robolectric 4.0 the ShadowPackageManager treated every requested permission as\nautomatically granted. 4.0 changes this behavior, and only treats a permission as granted if\nPackageInfo.requestedPermissionFlags[permissionIndex] & REQUESTED_PERMISSION_GRANTED ==\nREQUESTED_PERMISSION_GRANTED which matches the real PackageManager's behavior.\n\nSince many existing tests didn't set the requestedPermissionFlags on their {@code\nPackageInfo} objects, but assumed that all permissions are granted, we auto-grant all\npermissions if the requestedPermissionFlags is not set. If the requestedPermissionFlags is set,\nwe assume that the test is configuring the permission grant state, and we don't override this\nsetting.", "docstring_tokens": ["Returns", "whether", "a", "permission", "should", "be", "treated", "as", "granted", "to", "the", "package", "for", "backward", "compatibility", "reasons", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplicationPackageManager.java#L717-L727", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplicationPackageManager.java", "func_name": "ShadowApplicationPackageManager.applyFlagsToComponentInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Modifies the component in place using.\n\n@throws NameNotFoundException when component is filtered out by a flag", "docstring_tokens": ["Modifies", "the", "component", "in", "place", "using", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplicationPackageManager.java#L784-L827", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplicationPackageManager.java", "func_name": "ShadowApplicationPackageManager.getPermissionIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the index of the given permission in the PackageInfo.requestedPermissions array, or -1\nif it's not found.", "docstring_tokens": ["Returns", "the", "index", "of", "the", "given", "permission", "in", "the", "PackageInfo", ".", "requestedPermissions", "array", "or", "-", "1", "if", "it", "s", "not", "found", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplicationPackageManager.java#L1304-L1314", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplicationPackageManager.java", "func_name": "ShadowApplicationPackageManager.getUserBadgedIcon", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a profile badge to the icon.\n\nThis implementation just returns the unbadged icon, as some default implementations add an\ninternal resource to the icon that is unavailable to Robolectric.", "docstring_tokens": ["Adds", "a", "profile", "badge", "to", "the", "icon", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplicationPackageManager.java#L1682-L1685", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplicationPackageManager.java", "func_name": "ShadowApplicationPackageManager.hasProfileOwnerOrDeviceOwnerOnCurrentUser", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns whether the current user profile has a profile owner or a device owner.", "docstring_tokens": ["Returns", "whether", "the", "current", "user", "profile", "has", "a", "profile", "owner", "or", "a", "device", "owner", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowApplicationPackageManager.java#L1734-L1740", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "resources/src/main/java/org/robolectric/res/StringResources.java", "func_name": "StringResources.extractCodePoint", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts code points in a given string to actual characters. This method doesn't handle code\npoints whose char counts are 2. In other words, this method doesn't handle U+10XXXX.", "docstring_tokens": ["Converts", "code", "points", "in", "a", "given", "string", "to", "actual", "characters", ".", "This", "method", "doesn", "t", "handle", "code", "points", "whose", "char", "counts", "are", "2", ".", "In", "other", "words", "this", "method", "doesn", "t", "handle", "U", "+", "10XXXX", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/resources/src/main/java/org/robolectric/res/StringResources.java#L91-L99", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "utils/reflector/src/main/java/org/robolectric/util/reflector/Reflector.java", "func_name": "Reflector.reflector", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an object which provides accessors for invoking otherwise inaccessible methods and\nfields.\n\n@param iClass an interface with methods matching private methods on the target\n@param target the target object", "docstring_tokens": ["Returns", "an", "object", "which", "provides", "accessors", "for", "invoking", "otherwise", "inaccessible", "methods", "and", "fields", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/utils/reflector/src/main/java/org/robolectric/util/reflector/Reflector.java#L58-L78", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowContentResolver.java", "func_name": "ShadowContentResolver.getStatus", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve information on the status of the given account.\n\n@param account the account\n@param authority the authority\n@param create whether to create if no such account is found\n@return the account's status", "docstring_tokens": ["Retrieve", "information", "on", "the", "status", "of", "the", "given", "account", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowContentResolver.java#L675-L687", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowContentResolver.java", "func_name": "ShadowContentResolver.getContentObservers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the content observers registered for updates under the given URI.\n\nWill be empty if no observer is registered.\n\n@param uri Given URI\n@return The content observers, or null", "docstring_tokens": ["Returns", "the", "content", "observers", "registered", "for", "updates", "under", "the", "given", "URI", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowContentResolver.java#L817-L825", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplayManager.java", "func_name": "ShadowDisplayManager.addDisplay", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a simulated display and drain the main looper queue to ensure all the callbacks are\nprocessed.\n\n@param qualifiersStr the {@link Qualifiers} string representing characteristics of the new\ndisplay.\n@return the new display's ID", "docstring_tokens": ["Adds", "a", "simulated", "display", "and", "drain", "the", "main", "looper", "queue", "to", "ensure", "all", "the", "callbacks", "are", "processed", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplayManager.java#L55-L59", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplayManager.java", "func_name": "ShadowDisplayManager.changeDisplay", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Changes properties of a simulated display. The original properties will be passed to the\n`consumer`, which may modify them in place. The display will be updated with the new\nproperties.\n\n@param displayId the display id to change\n@param consumer a function which modifies the display properties", "docstring_tokens": ["Changes", "properties", "of", "a", "simulated", "display", ".", "The", "original", "properties", "will", "be", "passed", "to", "the", "consumer", "which", "may", "modify", "them", "in", "place", ".", "The", "display", "will", "be", "updated", "with", "the", "new", "properties", "."], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDisplayManager.java#L171-L181", "partition": "valid"} +{"repo": "robolectric/robolectric", "path": "shadows/framework/src/main/java/org/robolectric/shadows/ShadowDebug.java", "func_name": "ShadowDebug.fixTracePath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Forked from android.os.Debug", "docstring_tokens": ["Forked", "from", "android", ".", "os", ".", "Debug"], "sha": "4fa79a2c72f8abbf742ab920419653c207b41d62", "url": "https://github.com/robolectric/robolectric/blob/4fa79a2c72f8abbf742ab920419653c207b41d62/shadows/framework/src/main/java/org/robolectric/shadows/ShadowDebug.java#L94-L110", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/lang/util/CronSequenceGenerator.java", "func_name": "CronSequenceGenerator.findNext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Search the bits provided for the next set bit after the value provided,\nand reset the calendar.\n@param bits a {@link BitSet} representing the allowed values of the field\n@param value the current value of the field\n@param calendar the calendar to increment as we move through the bits\n@param field the field to increment in the calendar (@see\n{@link Calendar} for the static constants defining valid fields)\n@param lowerOrders the Calendar field ids that should be reset (i.e. the\nones of lower significance than the field of interest)\n@return the value of the calendar field that is next in the sequence", "docstring_tokens": ["Search", "the", "bits", "provided", "for", "the", "next", "set", "bit", "after", "the", "value", "provided", "and", "reset", "the", "calendar", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/lang/util/CronSequenceGenerator.java#L211-L224", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/lang/util/CronSequenceGenerator.java", "func_name": "CronSequenceGenerator.reset", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reset the calendar setting all the fields provided to zero.", "docstring_tokens": ["Reset", "the", "calendar", "setting", "all", "the", "fields", "provided", "to", "zero", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/lang/util/CronSequenceGenerator.java#L229-L233", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/lang/util/CronSequenceGenerator.java", "func_name": "CronSequenceGenerator.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse the given pattern expression.", "docstring_tokens": ["Parse", "the", "given", "pattern", "expression", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/lang/util/CronSequenceGenerator.java#L241-L258", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.getArgIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the index of the given method argument in the frame's local\nvariables array.\n\n@param arg\nthe index of a method argument.\n@return the index of the given method argument in the frame's local\nvariables array.", "docstring_tokens": ["Returns", "the", "index", "of", "the", "given", "method", "argument", "in", "the", "frame", "s", "local", "variables", "array", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L516-L522", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.loadInsn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instruction to push a local variable on the stack.\n\n@param type\nthe type of the local variable to be loaded.\n@param index\nan index in the frame's local variables array.", "docstring_tokens": ["Generates", "the", "instruction", "to", "push", "a", "local", "variable", "on", "the", "stack", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L532-L534", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.storeInsn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instruction to store the top stack value in a local\nvariable.\n\n@param type\nthe type of the local variable to be stored.\n@param index\nan index in the frame's local variables array.", "docstring_tokens": ["Generates", "the", "instruction", "to", "store", "the", "top", "stack", "value", "in", "a", "local", "variable", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L545-L547", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.loadArgs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instructions to load the given method arguments on the\nstack.\n\n@param arg\nthe index of the first method argument to be loaded.\n@param count\nthe number of method arguments to be loaded.", "docstring_tokens": ["Generates", "the", "instructions", "to", "load", "the", "given", "method", "arguments", "on", "the", "stack", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L579-L586", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.loadArgArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instructions to load all the method arguments on the stack,\nas a single object array.", "docstring_tokens": ["Generates", "the", "instructions", "to", "load", "all", "the", "method", "arguments", "on", "the", "stack", "as", "a", "single", "object", "array", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L599-L609", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.loadLocal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instruction to load the given local variable on the stack.\n\n@param local\na local variable identifier, as returned by\n{@link LocalVariablesSorter#newLocal(Type) newLocal()}.\n@param type\nthe type of this local variable.", "docstring_tokens": ["Generates", "the", "instruction", "to", "load", "the", "given", "local", "variable", "on", "the", "stack", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L667-L670", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.storeLocal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instruction to store the top stack value in the given local\nvariable.\n\n@param local\na local variable identifier, as returned by\n{@link LocalVariablesSorter#newLocal(Type) newLocal()}.\n@param type\nthe type of this local variable.", "docstring_tokens": ["Generates", "the", "instruction", "to", "store", "the", "top", "stack", "value", "in", "the", "given", "local", "variable", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L694-L697", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.swap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instructions to swap the top two stack values.\n\n@param prev\ntype of the top - 1 stack value.\n@param type\ntype of the top stack value.", "docstring_tokens": ["Generates", "the", "instructions", "to", "swap", "the", "top", "two", "stack", "values", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L794-L811", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.box", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instructions to box the top stack value. This value is\nreplaced by its boxed equivalent on top of the stack.\n\n@param type\nthe type of the top stack value.", "docstring_tokens": ["Generates", "the", "instructions", "to", "box", "the", "top", "stack", "value", ".", "This", "value", "is", "replaced", "by", "its", "boxed", "equivalent", "on", "top", "of", "the", "stack", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L941-L963", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.unbox", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instructions to unbox the top stack value. This value is\nreplaced by its unboxed equivalent on top of the stack.\n\n@param type\nthe type of the top stack value.", "docstring_tokens": ["Generates", "the", "instructions", "to", "unbox", "the", "top", "stack", "value", ".", "This", "value", "is", "replaced", "by", "its", "unboxed", "equivalent", "on", "top", "of", "the", "stack", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L993-L1027", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.ifCmp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instructions to jump to a label based on the comparison of\nthe top two stack values.\n\n@param type\nthe type of the top two stack values.\n@param mode\nhow these values must be compared. One of EQ, NE, LT, GE, GT,\nLE.\n@param label\nwhere to jump if the comparison result is true.", "docstring_tokens": ["Generates", "the", "instructions", "to", "jump", "to", "a", "label", "based", "on", "the", "comparison", "of", "the", "top", "two", "stack", "values", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L1075-L1126", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.fieldInsn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates a get field or set field instruction.\n\n@param opcode\nthe instruction's opcode.\n@param ownerType\nthe class in which the field is defined.\n@param name\nthe name of the field.\n@param fieldType\nthe type of the field.", "docstring_tokens": ["Generates", "a", "get", "field", "or", "set", "field", "instruction", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L1299-L1303", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.getStatic", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instruction to push the value of a static field on the\nstack.\n\n@param owner\nthe class in which the field is defined.\n@param name\nthe name of the field.\n@param type\nthe type of the field.", "docstring_tokens": ["Generates", "the", "instruction", "to", "push", "the", "value", "of", "a", "static", "field", "on", "the", "stack", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L1316-L1318", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.putStatic", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instruction to store the top stack value in a static field.\n\n@param owner\nthe class in which the field is defined.\n@param name\nthe name of the field.\n@param type\nthe type of the field.", "docstring_tokens": ["Generates", "the", "instruction", "to", "store", "the", "top", "stack", "value", "in", "a", "static", "field", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L1330-L1332", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.getField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instruction to push the value of a non static field on the\nstack.\n\n@param owner\nthe class in which the field is defined.\n@param name\nthe name of the field.\n@param type\nthe type of the field.", "docstring_tokens": ["Generates", "the", "instruction", "to", "push", "the", "value", "of", "a", "non", "static", "field", "on", "the", "stack", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L1345-L1347", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.putField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instruction to store the top stack value in a non static\nfield.\n\n@param owner\nthe class in which the field is defined.\n@param name\nthe name of the field.\n@param type\nthe type of the field.", "docstring_tokens": ["Generates", "the", "instruction", "to", "store", "the", "top", "stack", "value", "in", "a", "non", "static", "field", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L1360-L1362", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.invokeInsn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates an invoke method instruction.\n\n@param opcode\nthe instruction's opcode.\n@param type\nthe class in which the method is defined.\n@param method\nthe method to be invoked.", "docstring_tokens": ["Generates", "an", "invoke", "method", "instruction", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L1378-L1384", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.invokeVirtual", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instruction to invoke a normal method.\n\n@param owner\nthe class in which the method is defined.\n@param method\nthe method to be invoked.", "docstring_tokens": ["Generates", "the", "instruction", "to", "invoke", "a", "normal", "method", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L1394-L1396", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.invokeConstructor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instruction to invoke a constructor.\n\n@param type\nthe class in which the constructor is defined.\n@param method\nthe constructor to be invoked.", "docstring_tokens": ["Generates", "the", "instruction", "to", "invoke", "a", "constructor", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L1406-L1408", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.invokeStatic", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instruction to invoke a static method.\n\n@param owner\nthe class in which the method is defined.\n@param method\nthe method to be invoked.", "docstring_tokens": ["Generates", "the", "instruction", "to", "invoke", "a", "static", "method", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L1418-L1420", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.invokeInterface", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instruction to invoke an interface method.\n\n@param owner\nthe class in which the method is defined.\n@param method\nthe method to be invoked.", "docstring_tokens": ["Generates", "the", "instruction", "to", "invoke", "an", "interface", "method", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L1430-L1432", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.throwException", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instructions to create and throw an exception. The\nexception class must have a constructor with a single String argument.\n\n@param type\nthe class of the exception to be thrown.\n@param msg\nthe detailed message of the exception.", "docstring_tokens": ["Generates", "the", "instructions", "to", "create", "and", "throw", "an", "exception", ".", "The", "exception", "class", "must", "have", "a", "constructor", "with", "a", "single", "String", "argument", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L1548-L1554", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java", "func_name": "GeneratorAdapter.checkCast", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the instruction to check that the top stack value is of the\ngiven type.\n\n@param type\na class or interface type.", "docstring_tokens": ["Generates", "the", "instruction", "to", "check", "that", "the", "top", "stack", "value", "is", "of", "the", "given", "type", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/commons/GeneratorAdapter.java#L1563-L1567", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/MethodWriter.java", "func_name": "MethodWriter.visitImplicitFirstFrame", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visit the implicit first frame of this method.", "docstring_tokens": ["Visit", "the", "implicit", "first", "frame", "of", "this", "method", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/MethodWriter.java#L1799-L1855", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/MethodWriter.java", "func_name": "MethodWriter.startFrame", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Starts the visit of a stack map frame.\n\n@param offset\nthe offset of the instruction to which the frame corresponds.\n@param nLocal\nthe number of local variables in the frame.\n@param nStack\nthe number of stack elements in the frame.\n@return the index of the next element to be written in this frame.", "docstring_tokens": ["Starts", "the", "visit", "of", "a", "stack", "map", "frame", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/MethodWriter.java#L1868-L1877", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ClassWriter.java", "func_name": "ClassWriter.newMethodItem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a method reference to the constant pool of the class being build.\nDoes nothing if the constant pool already contains a similar item.\n\n@param owner\nthe internal name of the method's owner class.\n@param name\nthe method's name.\n@param desc\nthe method's descriptor.\n@param itf\ntrue if owner is an interface.\n@return a new or already existing method reference item.", "docstring_tokens": ["Adds", "a", "method", "reference", "to", "the", "constant", "pool", "of", "the", "class", "being", "build", ".", "Does", "nothing", "if", "the", "constant", "pool", "already", "contains", "a", "similar", "item", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ClassWriter.java#L1445-L1456", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ClassWriter.java", "func_name": "ClassWriter.newFloat", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a float to the constant pool of the class being build. Does nothing\nif the constant pool already contains a similar item.\n\n@param value\nthe float value.\n@return a new or already existing float item.", "docstring_tokens": ["Adds", "a", "float", "to", "the", "constant", "pool", "of", "the", "class", "being", "build", ".", "Does", "nothing", "if", "the", "constant", "pool", "already", "contains", "a", "similar", "item", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ClassWriter.java#L1506-L1515", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ClassWriter.java", "func_name": "ClassWriter.newString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a string to the constant pool of the class being build. Does nothing\nif the constant pool already contains a similar item.\n\n@param value\nthe String value.\n@return a new or already existing string item.", "docstring_tokens": ["Adds", "a", "string", "to", "the", "constant", "pool", "of", "the", "class", "being", "build", ".", "Does", "nothing", "if", "the", "constant", "pool", "already", "contains", "a", "similar", "item", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ClassWriter.java#L1565-L1574", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ClassWriter.java", "func_name": "ClassWriter.newNameTypeItem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a name and type to the constant pool of the class being build. Does\nnothing if the constant pool already contains a similar item.\n\n@param name\na name.\n@param desc\na type descriptor.\n@return a new or already existing name and type item.", "docstring_tokens": ["Adds", "a", "name", "and", "type", "to", "the", "constant", "pool", "of", "the", "class", "being", "build", ".", "Does", "nothing", "if", "the", "constant", "pool", "already", "contains", "a", "similar", "item", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ClassWriter.java#L1602-L1611", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ClassWriter.java", "func_name": "ClassWriter.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the constant pool's hash table item which is equal to the given\nitem.\n\n@param key\na constant pool item.\n@return the constant pool's hash table item which is equal to the given\nitem, or null if there is no such item.", "docstring_tokens": ["Returns", "the", "constant", "pool", "s", "hash", "table", "item", "which", "is", "equal", "to", "the", "given", "item", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ClassWriter.java#L1755-L1761", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ClassWriter.java", "func_name": "ClassWriter.put122", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Puts one byte and two shorts into the constant pool.\n\n@param b\na byte.\n@param s1\na short.\n@param s2\nanother short.", "docstring_tokens": ["Puts", "one", "byte", "and", "two", "shorts", "into", "the", "constant", "pool", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ClassWriter.java#L1803-L1805", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ClassWriter.java", "func_name": "ClassWriter.put112", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Puts two bytes and one short into the constant pool.\n\n@param b1\na byte.\n@param b2\nanother byte.\n@param s\na short.", "docstring_tokens": ["Puts", "two", "bytes", "and", "one", "short", "into", "the", "constant", "pool", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ClassWriter.java#L1817-L1819", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/AnnotationVisitor.java", "func_name": "AnnotationVisitor.visitEnum", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits an enumeration value of the annotation.\n\n@param name\nthe value name.\n@param desc\nthe class descriptor of the enumeration class.\n@param value\nthe actual enumeration value.", "docstring_tokens": ["Visits", "an", "enumeration", "value", "of", "the", "annotation", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/AnnotationVisitor.java#L114-L118", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/AnnotationVisitor.java", "func_name": "AnnotationVisitor.visitAnnotation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits a nested annotation value of the annotation.\n\n@param name\nthe value name.\n@param desc\nthe class descriptor of the nested annotation class.\n@return a visitor to visit the actual nested annotation value, or\nnull if this visitor is not interested in visiting this\nnested annotation. The nested annotation value must be fully\nvisited before calling other methods on this annotation\nvisitor.", "docstring_tokens": ["Visits", "a", "nested", "annotation", "value", "of", "the", "annotation", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/AnnotationVisitor.java#L133-L138", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/img/Images.java", "func_name": "Images.pos4twist", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "2. width, y, x", "docstring_tokens": ["2", ".", "width", "y", "x"], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/img/Images.java#L618-L627", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/img/Images.java", "func_name": "Images.createJPEG4", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Java's ImageIO can't process 4-component images and Java2D can't apply\nAffineTransformOp either, so convert raster data to RGB. Technique due to\nMArk Stephens. Free for any use.", "docstring_tokens": ["Java", "s", "ImageIO", "can", "t", "process", "4", "-", "component", "images", "and", "Java2D", "can", "t", "apply", "AffineTransformOp", "either", "so", "convert", "raster", "data", "to", "RGB", ".", "Technique", "due", "to", "MArk", "Stephens", ".", "Free", "for", "any", "use", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/img/Images.java#L1135-L1176", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java", "func_name": "MethodVisitor.visitParameter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits a parameter of this method.\n\n@param name\nparameter name or null if none is provided.\n@param access\nthe parameter's access flags, only ACC_FINAL,\nACC_SYNTHETIC or/and ACC_MANDATED are\nallowed (see {@link Opcodes}).", "docstring_tokens": ["Visits", "a", "parameter", "of", "this", "method", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java#L113-L120", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java", "func_name": "MethodVisitor.visitAnnotation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits an annotation of this method.\n\n@param desc\nthe class descriptor of the annotation class.\n@param visible\ntrue if the annotation is visible at runtime.\n@return a visitor to visit the annotation values, or null if\nthis visitor is not interested in visiting this annotation.", "docstring_tokens": ["Visits", "an", "annotation", "of", "this", "method", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java#L149-L154", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java", "func_name": "MethodVisitor.visitParameterAnnotation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits an annotation of a parameter this method.\n\n@param parameter\nthe parameter index.\n@param desc\nthe class descriptor of the annotation class.\n@param visible\ntrue if the annotation is visible at runtime.\n@return a visitor to visit the annotation values, or null if\nthis visitor is not interested in visiting this annotation.", "docstring_tokens": ["Visits", "an", "annotation", "of", "a", "parameter", "this", "method", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java#L204-L210", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java", "func_name": "MethodVisitor.visitTypeInsn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits a type instruction. A type instruction is an instruction that\ntakes the internal name of a class as parameter.\n\n@param opcode\nthe opcode of the type instruction to be visited. This opcode\nis either NEW, ANEWARRAY, CHECKCAST or INSTANCEOF.\n@param type\nthe operand of the instruction to be visited. This operand\nmust be the internal name of an object or array class (see\n{@link Type#getInternalName() getInternalName}).", "docstring_tokens": ["Visits", "a", "type", "instruction", ".", "A", "type", "instruction", "is", "an", "instruction", "that", "takes", "the", "internal", "name", "of", "a", "class", "as", "parameter", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java#L399-L403", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java", "func_name": "MethodVisitor.visitFieldInsn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits a field instruction. A field instruction is an instruction that\nloads or stores the value of a field of an object.\n\n@param opcode\nthe opcode of the type instruction to be visited. This opcode\nis either GETSTATIC, PUTSTATIC, GETFIELD or PUTFIELD.\n@param owner\nthe internal name of the field's owner class (see\n{@link Type#getInternalName() getInternalName}).\n@param name\nthe field's name.\n@param desc\nthe field's descriptor (see {@link Type Type}).", "docstring_tokens": ["Visits", "a", "field", "instruction", ".", "A", "field", "instruction", "is", "an", "instruction", "that", "loads", "or", "stores", "the", "value", "of", "a", "field", "of", "an", "object", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java#L420-L425", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java", "func_name": "MethodVisitor.visitMethodInsn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits a method instruction. A method instruction is an instruction that\ninvokes a method.\n\n@param opcode\nthe opcode of the type instruction to be visited. This opcode\nis either INVOKEVIRTUAL, INVOKESPECIAL, INVOKESTATIC or\nINVOKEINTERFACE.\n@param owner\nthe internal name of the method's owner class (see\n{@link Type#getInternalName() getInternalName}).\n@param name\nthe method's name.\n@param desc\nthe method's descriptor (see {@link Type Type}).", "docstring_tokens": ["Visits", "a", "method", "instruction", ".", "A", "method", "instruction", "is", "an", "instruction", "that", "invokes", "a", "method", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java#L443-L454", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java", "func_name": "MethodVisitor.visitTableSwitchInsn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits a TABLESWITCH instruction.\n\n@param min\nthe minimum key value.\n@param max\nthe maximum key value.\n@param dflt\nbeginning of the default handler block.\n@param labels\nbeginnings of the handler blocks. labels[i] is the\nbeginning of the handler block for the min + i key.", "docstring_tokens": ["Visits", "a", "TABLESWITCH", "instruction", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java#L626-L631", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java", "func_name": "MethodVisitor.visitLookupSwitchInsn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits a LOOKUPSWITCH instruction.\n\n@param dflt\nbeginning of the default handler block.\n@param keys\nthe values of the keys.\n@param labels\nbeginnings of the handler blocks. labels[i] is the\nbeginning of the handler block for the keys[i] key.", "docstring_tokens": ["Visits", "a", "LOOKUPSWITCH", "instruction", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java#L644-L648", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java", "func_name": "MethodVisitor.visitMultiANewArrayInsn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits a MULTIANEWARRAY instruction.\n\n@param desc\nan array type descriptor (see {@link Type Type}).\n@param dims\nnumber of dimensions of the array to allocate.", "docstring_tokens": ["Visits", "a", "MULTIANEWARRAY", "instruction", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java#L658-L662", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java", "func_name": "MethodVisitor.visitLocalVariableAnnotation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits an annotation on a local variable type.\n\n@param typeRef\na reference to the annotated type. The sort of this type\nreference must be {@link TypeReference#LOCAL_VARIABLE\nLOCAL_VARIABLE} or {@link TypeReference#RESOURCE_VARIABLE\nRESOURCE_VARIABLE}. See {@link TypeReference}.\n@param typePath\nthe path to the annotated type argument, wildcard bound, array\nelement type, or static inner type within 'typeRef'. May be\nnull if the annotation targets 'typeRef' as a whole.\n@param start\nthe fist instructions corresponding to the continuous ranges\nthat make the scope of this local variable (inclusive).\n@param end\nthe last instructions corresponding to the continuous ranges\nthat make the scope of this local variable (exclusive). This\narray must have the same size as the 'start' array.\n@param index\nthe local variable's index in each range. This array must have\nthe same size as the 'start' array.\n@param desc\nthe class descriptor of the annotation class.\n@param visible\ntrue if the annotation is visible at runtime.\n@return a visitor to visit the annotation values, or null if\nthis visitor is not interested in visiting this annotation.", "docstring_tokens": ["Visits", "an", "annotation", "on", "a", "local", "variable", "type", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java#L825-L836", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java", "func_name": "MethodVisitor.visitLineNumber", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits a line number declaration.\n\n@param line\na line number. This number refers to the source file from\nwhich the class was compiled.\n@param start\nthe first instruction corresponding to this line number.\n@throws IllegalArgumentException\nif start has not already been visited by this\nvisitor (by the {@link #visitLabel visitLabel} method).", "docstring_tokens": ["Visits", "a", "line", "number", "declaration", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/MethodVisitor.java#L850-L854", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ClassReader.java", "func_name": "ClassReader.readFrameType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads a stack map frame type and stores it at the given index in the\ngiven array.\n\n@param frame\nthe array where the parsed type must be stored.\n@param index\nthe index in 'frame' where the parsed type must be stored.\n@param v\nthe start offset of the stack map frame type to read.\n@param buf\na buffer to read strings.\n@param labels\nthe labels of the method currently being parsed, indexed by\ntheir offset. If the parsed type is an Uninitialized type, a\nnew label for the corresponding NEW instruction is stored in\nthis array if it does not already exist.\n@return the offset of the first byte after the parsed type.", "docstring_tokens": ["Reads", "a", "stack", "map", "frame", "type", "and", "stores", "it", "at", "the", "given", "index", "in", "the", "given", "array", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ClassReader.java#L2201-L2235", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Frame.java", "func_name": "Frame.set", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets this frame to the given value.\n\n@param cw\nthe ClassWriter to which this label belongs.\n@param nLocal\nthe number of local variables.\n@param local\nthe local variable types. Primitive types are represented by\n{@link Opcodes#TOP}, {@link Opcodes#INTEGER},\n{@link Opcodes#FLOAT}, {@link Opcodes#LONG},\n{@link Opcodes#DOUBLE},{@link Opcodes#NULL} or\n{@link Opcodes#UNINITIALIZED_THIS} (long and double are\nrepresented by a single element). Reference types are\nrepresented by String objects (representing internal names),\nand uninitialized types by Label objects (this label\ndesignates the NEW instruction that created this uninitialized\nvalue).\n@param nStack\nthe number of operand stack elements.\n@param stack\nthe operand stack types (same format as the \"local\" array).", "docstring_tokens": ["Sets", "this", "frame", "to", "the", "given", "value", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Frame.java#L546-L562", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Frame.java", "func_name": "Frame.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the output frame local variable type at the given index.\n\n@param local\nthe index of the local that must be returned.\n@return the output frame local variable type at the given index.", "docstring_tokens": ["Returns", "the", "output", "frame", "local", "variable", "type", "at", "the", "given", "index", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Frame.java#L634-L648", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Frame.java", "func_name": "Frame.set", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the output frame local variable type at the given index.\n\n@param local\nthe index of the local that must be set.\n@param type\nthe value of the local that must be set.", "docstring_tokens": ["Sets", "the", "output", "frame", "local", "variable", "type", "at", "the", "given", "index", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Frame.java#L658-L671", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Frame.java", "func_name": "Frame.push", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Pushes a new type onto the output frame stack.\n\n@param cw\nthe ClassWriter to which this label belongs.\n@param desc\nthe descriptor of the type to be pushed. Can also be a method\ndescriptor (in this case this method pushes its return type\nonto the output frame stack).", "docstring_tokens": ["Pushes", "a", "new", "type", "onto", "the", "output", "frame", "stack", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Frame.java#L709-L717", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Frame.java", "func_name": "Frame.type", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the int encoding of the given type.\n\n@param cw\nthe ClassWriter to which this label belongs.\n@param desc\na type descriptor.\n@return the int encoding of the given type.", "docstring_tokens": ["Returns", "the", "int", "encoding", "of", "the", "given", "type", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Frame.java#L728-L791", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Frame.java", "func_name": "Frame.pop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Pops the given number of types from the output frame stack.\n\n@param elements\nthe number of types that must be popped.", "docstring_tokens": ["Pops", "the", "given", "number", "of", "types", "from", "the", "output", "frame", "stack", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Frame.java#L813-L823", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Frame.java", "func_name": "Frame.pop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Pops a type from the output frame stack.\n\n@param desc\nthe descriptor of the type to be popped. Can also be a method\ndescriptor (in this case this method pops the types\ncorresponding to the method arguments).", "docstring_tokens": ["Pops", "a", "type", "from", "the", "output", "frame", "stack", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Frame.java#L833-L842", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Frame.java", "func_name": "Frame.init", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a new type to the list of types on which a constructor is invoked in\nthe basic block.\n\n@param var\na type on a which a constructor is invoked.", "docstring_tokens": ["Adds", "a", "new", "type", "to", "the", "list", "of", "types", "on", "which", "a", "constructor", "is", "invoked", "in", "the", "basic", "block", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Frame.java#L851-L864", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Frame.java", "func_name": "Frame.init", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Replaces the given type with the appropriate type if it is one of the\ntypes on which a constructor is invoked in the basic block.\n\n@param cw\nthe ClassWriter to which this label belongs.\n@param t\na type\n@return t or, if t is one of the types on which a constructor is invoked\nin the basic block, the type corresponding to this constructor.", "docstring_tokens": ["Replaces", "the", "given", "type", "with", "the", "appropriate", "type", "if", "it", "is", "one", "of", "the", "types", "on", "which", "a", "constructor", "is", "invoked", "in", "the", "basic", "block", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Frame.java#L877-L901", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ClassVisitor.java", "func_name": "ClassVisitor.visitSource", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits the source of the class.\n\n@param source\nthe name of the source file from which the class was compiled.\nMay be null.\n@param debug\nadditional debug information to compute the correspondance\nbetween source and compiled elements of the class. May be\nnull.", "docstring_tokens": ["Visits", "the", "source", "of", "the", "class", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ClassVisitor.java#L128-L132", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ClassVisitor.java", "func_name": "ClassVisitor.visitOuterClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits the enclosing class of the class. This method must be called only\nif the class has an enclosing class.\n\n@param owner\ninternal name of the enclosing class of the class.\n@param name\nthe name of the method that contains the class, or\nnull if the class is not enclosed in a method of its\nenclosing class.\n@param desc\nthe descriptor of the method that contains the class, or\nnull if the class is not enclosed in a method of its\nenclosing class.", "docstring_tokens": ["Visits", "the", "enclosing", "class", "of", "the", "class", ".", "This", "method", "must", "be", "called", "only", "if", "the", "class", "has", "an", "enclosing", "class", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ClassVisitor.java#L149-L153", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ClassVisitor.java", "func_name": "ClassVisitor.visitAnnotation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits an annotation of the class.\n\n@param desc\nthe class descriptor of the annotation class.\n@param visible\ntrue if the annotation is visible at runtime.\n@return a visitor to visit the annotation values, or null if\nthis visitor is not interested in visiting this annotation.", "docstring_tokens": ["Visits", "an", "annotation", "of", "the", "class", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ClassVisitor.java#L165-L170", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ClassVisitor.java", "func_name": "ClassVisitor.visitTypeAnnotation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits an annotation on a type in the class signature.\n\n@param typeRef\na reference to the annotated type. The sort of this type\nreference must be {@link TypeReference#CLASS_TYPE_PARAMETER\nCLASS_TYPE_PARAMETER},\n{@link TypeReference#CLASS_TYPE_PARAMETER_BOUND\nCLASS_TYPE_PARAMETER_BOUND} or\n{@link TypeReference#CLASS_EXTENDS CLASS_EXTENDS}. See\n{@link TypeReference}.\n@param typePath\nthe path to the annotated type argument, wildcard bound, array\nelement type, or static inner type within 'typeRef'. May be\nnull if the annotation targets 'typeRef' as a whole.\n@param desc\nthe class descriptor of the annotation class.\n@param visible\ntrue if the annotation is visible at runtime.\n@return a visitor to visit the annotation values, or null if\nthis visitor is not interested in visiting this annotation.", "docstring_tokens": ["Visits", "an", "annotation", "on", "a", "type", "in", "the", "class", "signature", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ClassVisitor.java#L194-L203", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/lang/Maths.java", "func_name": "Maths.extract", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get part of one integer as a new integer\n\n@param bs\noriginal integer\n@param low\nthe low bit position (inclusive), 0 base\n@param high\nthe high bit position (exclusive), 0 base\n@return new integer", "docstring_tokens": ["Get", "part", "of", "one", "integer", "as", "a", "new", "integer"], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/lang/Maths.java#L115-L122", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Type.java", "func_name": "Type.getObjectType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the Java type corresponding to the given internal name.\n\n@param internalName\nan internal name.\n@return the Java type corresponding to the given internal name.", "docstring_tokens": ["Returns", "the", "Java", "type", "corresponding", "to", "the", "given", "internal", "name", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Type.java#L227-L230", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Type.java", "func_name": "Type.getArgumentTypes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the Java types corresponding to the argument types of the given\nmethod descriptor.\n\n@param methodDescriptor\na method descriptor.\n@return the Java types corresponding to the argument types of the given\nmethod descriptor.", "docstring_tokens": ["Returns", "the", "Java", "types", "corresponding", "to", "the", "argument", "types", "of", "the", "given", "method", "descriptor", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Type.java#L324-L349", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Type.java", "func_name": "Type.getReturnType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the Java type corresponding to the return type of the given\nmethod descriptor.\n\n@param methodDescriptor\na method descriptor.\n@return the Java type corresponding to the return type of the given\nmethod descriptor.", "docstring_tokens": ["Returns", "the", "Java", "type", "corresponding", "to", "the", "return", "type", "of", "the", "given", "method", "descriptor", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Type.java#L378-L390", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Type.java", "func_name": "Type.getArgumentsAndReturnSizes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Computes the size of the arguments and of the return value of a method.\n\n@param desc\nthe descriptor of a method.\n@return the size of the arguments of the method (plus one for the\nimplicit this argument), argSize, and the size of its return\nvalue, retSize, packed into a single int i =\n(argSize << 2) | retSize (argSize is therefore equal to\ni >> 2, and retSize to i & 0x03).", "docstring_tokens": ["Computes", "the", "size", "of", "the", "arguments", "and", "of", "the", "return", "value", "of", "a", "method", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Type.java#L416-L442", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Type.java", "func_name": "Type.getType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the Java type corresponding to the given type descriptor. For\nmethod descriptors, buf is supposed to contain nothing more than the\ndescriptor itself.\n\n@param buf\na buffer containing a type descriptor.\n@param off\nthe offset of this descriptor in the previous buffer.\n@return the Java type corresponding to the given type descriptor.", "docstring_tokens": ["Returns", "the", "Java", "type", "corresponding", "to", "the", "given", "type", "descriptor", ".", "For", "method", "descriptors", "buf", "is", "supposed", "to", "contain", "nothing", "more", "than", "the", "descriptor", "itself", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Type.java#L455-L498", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Type.java", "func_name": "Type.getDescriptor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Appends the descriptor corresponding to this Java type to the given\nstring buffer.\n\n@param buf\nthe string buffer to which the descriptor must be appended.", "docstring_tokens": ["Appends", "the", "descriptor", "corresponding", "to", "this", "Java", "type", "to", "the", "given", "string", "buffer", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Type.java#L672-L684", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Type.java", "func_name": "Type.getDescriptor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the descriptor corresponding to the given Java type.\n\n@param c\nan object class, a primitive class or an array class.\n@return the descriptor corresponding to the given class.", "docstring_tokens": ["Returns", "the", "descriptor", "corresponding", "to", "the", "given", "Java", "type", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Type.java#L711-L715", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/Type.java", "func_name": "Type.getOpcode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a JVM instruction opcode adapted to this Java type. This method\nmust not be used for method types.\n\n@param opcode\na JVM instruction opcode. This opcode must be one of ILOAD,\nISTORE, IALOAD, IASTORE, IADD, ISUB, IMUL, IDIV, IREM, INEG,\nISHL, ISHR, IUSHR, IAND, IOR, IXOR and IRETURN.\n@return an opcode that is similar to the given opcode, but adapted to\nthis Java type. For example, if this type is float and\nopcode is IRETURN, this method returns FRETURN.", "docstring_tokens": ["Returns", "a", "JVM", "instruction", "opcode", "adapted", "to", "this", "Java", "type", ".", "This", "method", "must", "not", "be", "used", "for", "method", "types", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/Type.java#L832-L842", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ByteVector.java", "func_name": "ByteVector.putByte", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Puts a byte into this byte vector. The byte vector is automatically\nenlarged if necessary.\n\n@param b\na byte.\n@return this byte vector.", "docstring_tokens": ["Puts", "a", "byte", "into", "this", "byte", "vector", ".", "The", "byte", "vector", "is", "automatically", "enlarged", "if", "necessary", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ByteVector.java#L77-L85", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ByteVector.java", "func_name": "ByteVector.put11", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Puts two bytes into this byte vector. The byte vector is automatically\nenlarged if necessary.\n\n@param b1\na byte.\n@param b2\nanother byte.\n@return this byte vector.", "docstring_tokens": ["Puts", "two", "bytes", "into", "this", "byte", "vector", ".", "The", "byte", "vector", "is", "automatically", "enlarged", "if", "necessary", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ByteVector.java#L97-L107", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ByteVector.java", "func_name": "ByteVector.putShort", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Puts a short into this byte vector. The byte vector is automatically\nenlarged if necessary.\n\n@param s\na short.\n@return this byte vector.", "docstring_tokens": ["Puts", "a", "short", "into", "this", "byte", "vector", ".", "The", "byte", "vector", "is", "automatically", "enlarged", "if", "necessary", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ByteVector.java#L117-L127", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ByteVector.java", "func_name": "ByteVector.put12", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Puts a byte and a short into this byte vector. The byte vector is\nautomatically enlarged if necessary.\n\n@param b\na byte.\n@param s\na short.\n@return this byte vector.", "docstring_tokens": ["Puts", "a", "byte", "and", "a", "short", "into", "this", "byte", "vector", ".", "The", "byte", "vector", "is", "automatically", "enlarged", "if", "necessary", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ByteVector.java#L139-L150", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ByteVector.java", "func_name": "ByteVector.putInt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Puts an int into this byte vector. The byte vector is automatically\nenlarged if necessary.\n\n@param i\nan int.\n@return this byte vector.", "docstring_tokens": ["Puts", "an", "int", "into", "this", "byte", "vector", ".", "The", "byte", "vector", "is", "automatically", "enlarged", "if", "necessary", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ByteVector.java#L160-L172", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ByteVector.java", "func_name": "ByteVector.putLong", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Puts a long into this byte vector. The byte vector is automatically\nenlarged if necessary.\n\n@param l\na long.\n@return this byte vector.", "docstring_tokens": ["Puts", "a", "long", "into", "this", "byte", "vector", ".", "The", "byte", "vector", "is", "automatically", "enlarged", "if", "necessary", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ByteVector.java#L182-L200", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ByteVector.java", "func_name": "ByteVector.putUTF8", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Puts an UTF8 string into this byte vector. The byte vector is\nautomatically enlarged if necessary.\n\n@param s\na String whose UTF8 encoded length must be less than 65536.\n@return this byte vector.", "docstring_tokens": ["Puts", "an", "UTF8", "string", "into", "this", "byte", "vector", ".", "The", "byte", "vector", "is", "automatically", "enlarged", "if", "necessary", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ByteVector.java#L210-L239", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ByteVector.java", "func_name": "ByteVector.putByteArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Puts an array of bytes into this byte vector. The byte vector is\nautomatically enlarged if necessary.\n\n@param b\nan array of bytes. May be null to put len\nnull bytes into this byte vector.\n@param off\nindex of the fist byte of b that must be copied.\n@param len\nnumber of bytes of b that must be copied.\n@return this byte vector.", "docstring_tokens": ["Puts", "an", "array", "of", "bytes", "into", "this", "byte", "vector", ".", "The", "byte", "vector", "is", "automatically", "enlarged", "if", "necessary", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ByteVector.java#L314-L323", "partition": "valid"} +{"repo": "nutzam/nutz", "path": "src/org/nutz/repo/org/objectweb/asm/ByteVector.java", "func_name": "ByteVector.enlarge", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enlarge this byte vector so that it can receive n more bytes.\n\n@param size\nnumber of additional bytes that this byte vector should be\nable to receive.", "docstring_tokens": ["Enlarge", "this", "byte", "vector", "so", "that", "it", "can", "receive", "n", "more", "bytes", "."], "sha": "a38694d5cbda2692e7931ab093c168487a6a4bfe", "url": "https://github.com/nutzam/nutz/blob/a38694d5cbda2692e7931ab093c168487a6a4bfe/src/org/nutz/repo/org/objectweb/asm/ByteVector.java#L332-L338", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameTranslateMappingStrategy.java", "func_name": "HeaderColumnNameTranslateMappingStrategy.getColumnName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves the column name for a given column position\n\n@param col - column position.\n@return - The column name.", "docstring_tokens": ["Retrieves", "the", "column", "name", "for", "a", "given", "column", "position"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameTranslateMappingStrategy.java#L43-L46", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameTranslateMappingStrategy.java", "func_name": "HeaderColumnNameTranslateMappingStrategy.setColumnMapping", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the column mapping to those passed in.\n@param columnMapping - source column mapping.", "docstring_tokens": ["Sets", "the", "column", "mapping", "to", "those", "passed", "in", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameTranslateMappingStrategy.java#L60-L65", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/configuration/AbstractConfigurationContainer.java", "func_name": "AbstractConfigurationContainer.getValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the value for the given property cast to the passed returnType.\nIf the type of the property and the given return type are not compatible an exception will be thrown.\nIf the passed propertyName is not a defined property, an exception is thrown.", "docstring_tokens": ["Returns", "the", "value", "for", "the", "given", "property", "cast", "to", "the", "passed", "returnType", ".", "If", "the", "type", "of", "the", "property", "and", "the", "given", "return", "type", "are", "not", "compatible", "an", "exception", "will", "be", "thrown", ".", "If", "the", "passed", "propertyName", "is", "not", "a", "defined", "property", "an", "exception", "is", "thrown", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/configuration/AbstractConfigurationContainer.java#L55-L58", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/configuration/AbstractConfigurationContainer.java", "func_name": "AbstractConfigurationContainer.init", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Override default values for properties with the given ConfigurationProviders.", "docstring_tokens": ["Override", "default", "values", "for", "properties", "with", "the", "given", "ConfigurationProviders", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/configuration/AbstractConfigurationContainer.java#L64-L71", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/file/IOCase.java", "func_name": "IOCase.forName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Factory method to create an IOCase from a name.\n\n@param name the name to find\n@return the IOCase object\n@throws IllegalArgumentException if the name is invalid", "docstring_tokens": ["Factory", "method", "to", "create", "an", "IOCase", "from", "a", "name", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/file/IOCase.java#L76-L87", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/file/IOCase.java", "func_name": "IOCase.convertCase", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts the case of the input String to a standard format.\nSubsequent operations can then use standard String methods.\n\n@param str the string to convert, null returns null\n@return the lower-case version if case-insensitive", "docstring_tokens": ["Converts", "the", "case", "of", "the", "input", "String", "to", "a", "standard", "format", ".", "Subsequent", "operations", "can", "then", "use", "standard", "String", "methods", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/file/IOCase.java#L221-L226", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/change/ChangeParameterMetaData.java", "func_name": "ChangeParameterMetaData.getCurrentValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the current value of this parameter for the given Change.", "docstring_tokens": ["Returns", "the", "current", "value", "of", "this", "parameter", "for", "the", "given", "Change", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/change/ChangeParameterMetaData.java#L261-L278", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/change/ChangeParameterMetaData.java", "func_name": "ChangeParameterMetaData.setValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the value of this parameter on the given change.", "docstring_tokens": ["Sets", "the", "value", "of", "this", "parameter", "on", "the", "given", "change", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/change/ChangeParameterMetaData.java#L283-L327", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/CollectionUtil.java", "func_name": "CollectionUtil.createIfNull", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a new empty array if the passed array is null.", "docstring_tokens": ["Returns", "a", "new", "empty", "array", "if", "the", "passed", "array", "is", "null", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/CollectionUtil.java#L72-L78", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/CollectionUtil.java", "func_name": "CollectionUtil.createIfNull", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a new empty set if the passed array is null.", "docstring_tokens": ["Returns", "a", "new", "empty", "set", "if", "the", "passed", "array", "is", "null", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/CollectionUtil.java#L83-L89", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/parser/core/yaml/YamlChangeLogParser.java", "func_name": "YamlChangeLogParser.getGlobalParam", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extract the global parameter from the properties.\n\n@param property the map of props\n@return the global param", "docstring_tokens": ["Extract", "the", "global", "parameter", "from", "the", "properties", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/parser/core/yaml/YamlChangeLogParser.java#L121-L131", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/statement/ExecutablePreparedStatementBase.java", "func_name": "ExecutablePreparedStatementBase.attachParams", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the list of bind variables for the execution of a DML statement\n@param cols a list of columns with their designated values\n@param stmt the PreparedStatement to which the values are to be attached\n@throws SQLException if JDBC objects to a setting (non-existent bind number, wrong column type etc.)\n@throws DatabaseException if an I/O error occurs during the read of LOB values", "docstring_tokens": ["Sets", "the", "list", "of", "bind", "variables", "for", "the", "execution", "of", "a", "DML", "statement"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/statement/ExecutablePreparedStatementBase.java#L105-L113", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/statement/ExecutablePreparedStatementBase.java", "func_name": "ExecutablePreparedStatementBase.getAbsolutePath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets absolute and normalized path for path.\nIf path is relative, absolute path is calculated relative to change log file.\n\n@param path Absolute or relative path.\n@return Absolute and normalized path.", "docstring_tokens": ["Gets", "absolute", "and", "normalized", "path", "for", "path", ".", "If", "path", "is", "relative", "absolute", "path", "is", "calculated", "relative", "to", "change", "log", "file", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/statement/ExecutablePreparedStatementBase.java#L331-L339", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/change/CheckSum.java", "func_name": "CheckSum.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse the given storedCheckSum string value and return a new CheckSum object.", "docstring_tokens": ["Parse", "the", "given", "storedCheckSum", "string", "value", "and", "return", "a", "new", "CheckSum", "object", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/change/CheckSum.java#L44-L58", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/change/CheckSum.java", "func_name": "CheckSum.compute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Compute a storedCheckSum of the given string.", "docstring_tokens": ["Compute", "a", "storedCheckSum", "of", "the", "given", "string", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/change/CheckSum.java#L70-L78", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-maven-plugin/src/main/java/org/liquibase/maven/plugins/AbstractLiquibaseMojo.java", "func_name": "AbstractLiquibaseMojo.getClassLoaderIncludingProjectClasspath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an isolated classloader.\n\n@return ClassLoader\n@noinspection unchecked", "docstring_tokens": ["Returns", "an", "isolated", "classloader", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-maven-plugin/src/main/java/org/liquibase/maven/plugins/AbstractLiquibaseMojo.java#L446-L458", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-maven-plugin/src/main/java/org/liquibase/maven/plugins/AbstractLiquibaseMojo.java", "func_name": "AbstractLiquibaseMojo.printSettings", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prints the settings that have been set of defaulted for the plugin. These will only\nbe shown in verbose mode.\n\n@param indent The indent string to use when printing the settings.", "docstring_tokens": ["Prints", "the", "settings", "that", "have", "been", "set", "of", "defaulted", "for", "the", "plugin", ".", "These", "will", "only", "be", "shown", "in", "verbose", "mode", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-maven-plugin/src/main/java/org/liquibase/maven/plugins/AbstractLiquibaseMojo.java#L491-L504", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-maven-plugin/src/main/java/org/liquibase/maven/plugins/AbstractLiquibaseMojo.java", "func_name": "AbstractLiquibaseMojo.parsePropertiesFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses a properties file and sets the associated fields in the plugin.\n\n@param propertiesInputStream The input stream which is the Liquibase properties that\nneeds to be parsed.\n@throws org.apache.maven.plugin.MojoExecutionException If there is a problem parsing\nthe file.", "docstring_tokens": ["Parses", "a", "properties", "file", "and", "sets", "the", "associated", "fields", "in", "the", "plugin", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-maven-plugin/src/main/java/org/liquibase/maven/plugins/AbstractLiquibaseMojo.java#L526-L558", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-maven-plugin/src/main/java/org/liquibase/maven/plugins/AbstractLiquibaseMojo.java", "func_name": "AbstractLiquibaseMojo.isCurrentFieldValueSpecified", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method will check to see if the user has specified a value different to that of\nthe default value. This is not an ideal solution, but should cover most situations in\nthe use of the plugin.\n\n@param f The Field to check if a user has specified a value for.\n@return true if the user has specified a value.", "docstring_tokens": ["This", "method", "will", "check", "to", "see", "if", "the", "user", "has", "specified", "a", "value", "different", "to", "that", "of", "the", "default", "value", ".", "This", "is", "not", "an", "ideal", "solution", "but", "should", "cover", "most", "situations", "in", "the", "use", "of", "the", "plugin", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-maven-plugin/src/main/java/org/liquibase/maven/plugins/AbstractLiquibaseMojo.java#L568-L582", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVWriter.java", "func_name": "CSVWriter.writeNext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the next line to the file.\n\n@param nextLine a string array with each comma-separated element as a separate\nentry.\n@param applyQuotesToAll true if all values are to be quoted. false applies quotes only\nto values which contain the separator, escape, quote or new line characters.", "docstring_tokens": ["Writes", "the", "next", "line", "to", "the", "file", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVWriter.java#L179-L217", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVWriter.java", "func_name": "CSVWriter.stringContainsSpecialCharacters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "checks to see if the line contains special characters.\n@param line - element of data to check for special characters.\n@return true if the line contains the quote, escape, separator, newline or return.", "docstring_tokens": ["checks", "to", "see", "if", "the", "line", "contains", "special", "characters", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVWriter.java#L234-L237", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVWriter.java", "func_name": "CSVWriter.processLine", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Processes all the characters in a line.\n@param nextElement - element to process.\n@return a StringBuilder with the elements data.", "docstring_tokens": ["Processes", "all", "the", "characters", "in", "a", "line", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVWriter.java#L244-L252", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVWriter.java", "func_name": "CSVWriter.processCharacter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Appends the character to the StringBuilder adding the escape character if needed.\n@param sb - StringBuffer holding the processed character.\n@param nextChar - character to process", "docstring_tokens": ["Appends", "the", "character", "to", "the", "StringBuilder", "adding", "the", "escape", "character", "if", "needed", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVWriter.java#L259-L265", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/servlet/LiquibaseServletListener.java", "func_name": "LiquibaseServletListener.executeUpdate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes the Liquibase update.", "docstring_tokens": ["Executes", "the", "Liquibase", "update", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/servlet/LiquibaseServletListener.java#L199-L251", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/configuration/ConfigurationProperty.java", "func_name": "ConfigurationProperty.valueOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts an object of a different type to the type used by this property. If types are not convertible, an exception is thrown.", "docstring_tokens": ["Converts", "an", "object", "of", "a", "different", "type", "to", "the", "type", "used", "by", "this", "property", ".", "If", "types", "are", "not", "convertible", "an", "exception", "is", "thrown", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/configuration/ConfigurationProperty.java#L87-L109", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/configuration/ConfigurationProperty.java", "func_name": "ConfigurationProperty.getValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the value currently stored in this property cast to the given type.", "docstring_tokens": ["Returns", "the", "value", "currently", "stored", "in", "this", "property", "cast", "to", "the", "given", "type", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/configuration/ConfigurationProperty.java#L121-L127", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/configuration/ConfigurationProperty.java", "func_name": "ConfigurationProperty.setValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Overwrites the value currently stored in this property. It he passed type is not compatible with the defined type, an exception is thrown.", "docstring_tokens": ["Overwrites", "the", "value", "currently", "stored", "in", "this", "property", ".", "It", "he", "passed", "type", "is", "not", "compatible", "with", "the", "defined", "type", "an", "exception", "is", "thrown", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/configuration/ConfigurationProperty.java#L132-L139", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/configuration/ConfigurationProperty.java", "func_name": "ConfigurationProperty.addAlias", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds an alias for this property. An alias is an alternate to the \"name\" field that can be used by the ConfigurationProvers to look up starting values.", "docstring_tokens": ["Adds", "an", "alias", "for", "this", "property", ".", "An", "alias", "is", "an", "alternate", "to", "the", "name", "field", "that", "can", "be", "used", "by", "the", "ConfigurationProvers", "to", "look", "up", "starting", "values", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/configuration/ConfigurationProperty.java#L144-L150", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/configuration/ConfigurationProperty.java", "func_name": "ConfigurationProperty.setDefaultValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the default value to use if no ConfigurationProviders override it. Throws an exception if the given object is not compatible with the defined type.", "docstring_tokens": ["Sets", "the", "default", "value", "to", "use", "if", "no", "ConfigurationProviders", "override", "it", ".", "Throws", "an", "exception", "if", "the", "given", "object", "is", "not", "compatible", "with", "the", "defined", "type", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/configuration/ConfigurationProperty.java#L174-L185", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/sqlgenerator/core/CreateIndexGeneratorFirebird.java", "func_name": "CreateIndexGeneratorFirebird.generateSql", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate a CREATE INDEX SQL statement for Firebird databases.\n@param statement A CreateIndexStatement with the desired properties of the SQL to be generated\n@param database A database object (must be of FirebirdDatabase type, or we will error out)\n@param sqlGeneratorChain The other generators in the current chain (ignored by this implementation)\n@return An array with one entry containing the generated CREATE INDEX statement for Firebird.", "docstring_tokens": ["Generate", "a", "CREATE", "INDEX", "SQL", "statement", "for", "Firebird", "databases", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/sqlgenerator/core/CreateIndexGeneratorFirebird.java#L101-L157", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/sqlgenerator/core/CreateIndexGeneratorFirebird.java", "func_name": "CreateIndexGeneratorFirebird.applyIsComputedExpressionHeuristic", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "An imperfect heuristic to determine if an expression is more likely a column name or a computed expression.\n@return true if it is more likely an expression, false if it is more likely a column name (identifier).", "docstring_tokens": ["An", "imperfect", "heuristic", "to", "determine", "if", "an", "expression", "is", "more", "likely", "a", "column", "name", "or", "a", "computed", "expression", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/sqlgenerator/core/CreateIndexGeneratorFirebird.java#L243-L265", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/Liquibase.java", "func_name": "Liquibase.tag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "'Tags' the database for future rollback", "docstring_tokens": ["Tags", "the", "database", "for", "future", "rollback"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/Liquibase.java#L1161-L1178", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/Liquibase.java", "func_name": "Liquibase.listLocks", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Display change log lock information.", "docstring_tokens": ["Display", "change", "log", "lock", "information", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/Liquibase.java#L1240-L1244", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/Liquibase.java", "func_name": "Liquibase.getChangeSetStatuses", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the ChangeSetStatuses of all changesets in the change log file and history in the order they\nwould be ran.", "docstring_tokens": ["Returns", "the", "ChangeSetStatuses", "of", "all", "changesets", "in", "the", "change", "log", "file", "and", "history", "in", "the", "order", "they", "would", "be", "ran", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/Liquibase.java#L1313-L1331", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/Liquibase.java", "func_name": "Liquibase.clearCheckSums", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets checksums to null so they will be repopulated next run", "docstring_tokens": ["Sets", "checksums", "to", "null", "so", "they", "will", "be", "repopulated", "next", "run"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/Liquibase.java#L1440-L1464", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/CsvToBean.java", "func_name": "CsvToBean.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "parse the values from a csvReader constructed from the passed in Reader.\n@param mapper - mapping strategy for the bean.\n@param reader - Reader used to construct a CSVReader\n@return List of Objects.", "docstring_tokens": ["parse", "the", "values", "from", "a", "csvReader", "constructed", "from", "the", "passed", "in", "Reader", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/CsvToBean.java#L50-L52", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/CsvToBean.java", "func_name": "CsvToBean.processLine", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a single object from a line from the csv file.\n@param mapper - MappingStrategy\n@param line - array of Strings from the csv file.\n@return - object containing the values.\n@throws ReflectiveOperationException - thrown on error accessing bean.\n@throws IntrospectionException - thrown on error getting the PropertyDescriptor.", "docstring_tokens": ["Creates", "a", "single", "object", "from", "a", "line", "from", "the", "csv", "file", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/CsvToBean.java#L119-L129", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/CsvToBean.java", "func_name": "CsvToBean.getPropertyEditor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Attempt to find custom property editor on descriptor first, else try the propery editor manager.\n\n@param desc - PropertyDescriptor.\n@return - the PropertyEditor for the given PropertyDescriptor.\n@throws ReflectiveOperationException - thrown when getting the PropertyEditor for the class.", "docstring_tokens": ["Attempt", "to", "find", "custom", "property", "editor", "on", "descriptor", "first", "else", "try", "the", "propery", "editor", "manager", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/CsvToBean.java#L177-L183", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/servicelocator/DefaultPackageScanClassResolver.java", "func_name": "DefaultPackageScanClassResolver.loadImplementationsInJar", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds matching classes within a jar files that contains a folder\nstructure matching the package structure. If the File is not a JarFile or\ndoes not exist a warning will be logged, but no error will be raised.\n\nAny nested JAR files found inside this JAR will be assumed to also be\non the classpath and will be recursively examined for classes in `parentPackage`.\n@param parentPackage the parent package under which classes must be in order to\nbe considered\n@param parentFileStream the inputstream of the jar file to be examined for classes\n@param loader a classloader which can load classes contained within the JAR file\n@param parentFileName a unique name for the parentFileStream, to be used for caching.\nThis is the URL of the parentFileStream, if it comes from a URL,\nor a composite ID if we are currently examining a nested JAR.", "docstring_tokens": ["Finds", "matching", "classes", "within", "a", "jar", "files", "that", "contains", "a", "folder", "structure", "matching", "the", "package", "structure", ".", "If", "the", "File", "is", "not", "a", "JarFile", "or", "does", "not", "exist", "a", "warning", "will", "be", "logged", "but", "no", "error", "will", "be", "raised", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/servicelocator/DefaultPackageScanClassResolver.java#L415-L484", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/servicelocator/DefaultPackageScanClassResolver.java", "func_name": "DefaultPackageScanClassResolver.addIfMatching", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the class designated by the fully qualified class name provided to\nthe set of resolved classes if and only if it is approved by the Test\nsupplied.\n\n@param test the test used to determine if the class matches\n@param fqn the fully qualified name of a class", "docstring_tokens": ["Add", "the", "class", "designated", "by", "the", "fully", "qualified", "class", "name", "provided", "to", "the", "set", "of", "resolved", "classes", "if", "and", "only", "if", "it", "is", "approved", "by", "the", "Test", "supplied", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/servicelocator/DefaultPackageScanClassResolver.java#L494-L528", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/ObjectUtil.java", "func_name": "ObjectUtil.getPropertyType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tried to determine the appropriate reader method for a given propertyName of a given object and, if found,\nreturns the class of its return type.\n@param object the object to examine\n@param propertyName the property name whose reading method should be searched\n@return the class name of the return type if the reading method is found, null if it is not found.", "docstring_tokens": ["Tried", "to", "determine", "the", "appropriate", "reader", "method", "for", "a", "given", "propertyName", "of", "a", "given", "object", "and", "if", "found", "returns", "the", "class", "of", "its", "return", "type", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/ObjectUtil.java#L58-L64", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/ObjectUtil.java", "func_name": "ObjectUtil.hasProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Examines the given object's class and returns true if reader and writer methods both exist for the\ngiven property name.\n@param object the object for which the class should be examined\n@param propertyName the property name to search\n@return true if both reader and writer methods exist", "docstring_tokens": ["Examines", "the", "given", "object", "s", "class", "and", "returns", "true", "if", "reader", "and", "writer", "methods", "both", "exist", "for", "the", "given", "property", "name", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/ObjectUtil.java#L73-L75", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/ObjectUtil.java", "func_name": "ObjectUtil.setProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tries to guess the \"real\" data type of propertyValue by the given propertyName, then sets the\nselected property of the given object to that value.\n@param object the object whose property should be set\n@param propertyName name of the property to set\n@param propertyValue new value of the property, as String", "docstring_tokens": ["Tries", "to", "guess", "the", "real", "data", "type", "of", "propertyValue", "by", "the", "given", "propertyName", "then", "sets", "the", "selected", "property", "of", "the", "given", "object", "to", "that", "value", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/ObjectUtil.java#L106-L144", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/ObjectUtil.java", "func_name": "ObjectUtil.getReadMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tries to find the Java method to read a given propertyName for the given object.\n@param object the object whose class will be examined\n@param propertyName the property name for which the read method should be searched\n@return the {@link Method} if found, null in all other cases.", "docstring_tokens": ["Tries", "to", "find", "the", "Java", "method", "to", "read", "a", "given", "propertyName", "for", "the", "given", "object", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/ObjectUtil.java#L187-L202", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/ObjectUtil.java", "func_name": "ObjectUtil.getWriteMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tries to find the Java method to write a new value for a given propertyName to the given object.\n@param object the object whose class will be examined\n@param propertyName the property name for which the write method is to be searched\n@return the {@link Method} if found, null in all other cases.", "docstring_tokens": ["Tries", "to", "find", "the", "Java", "method", "to", "write", "a", "new", "value", "for", "a", "given", "propertyName", "to", "the", "given", "object", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/ObjectUtil.java#L210-L221", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/ObjectUtil.java", "func_name": "ObjectUtil.getMethods", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines the class of a given object and returns an array of that class's methods. The information might come\nfrom a cache.\n@param object the object to examine\n@return a list of methods belonging to the class of the object", "docstring_tokens": ["Determines", "the", "class", "of", "a", "given", "object", "and", "returns", "an", "array", "of", "that", "class", "s", "methods", ".", "The", "information", "might", "come", "from", "a", "cache", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/ObjectUtil.java#L229-L237", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/diff/ObjectDifferences.java", "func_name": "ObjectDifferences.undoCollection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sometimes an attribute in one object is a single-entity collection and on the other it is just the object.\nCheck the passed potentialCollection and if it is a single-entry collection of the same type as the otherObject, return just the collection element.\nOtherwise, return the original collection.", "docstring_tokens": ["Sometimes", "an", "attribute", "in", "one", "object", "is", "a", "single", "-", "entity", "collection", "and", "on", "the", "other", "it", "is", "just", "the", "object", ".", "Check", "the", "passed", "potentialCollection", "and", "if", "it", "is", "a", "single", "-", "entry", "collection", "of", "the", "same", "type", "as", "the", "otherObject", "return", "just", "the", "collection", "element", ".", "Otherwise", "return", "the", "original", "collection", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/diff/ObjectDifferences.java#L84-L93", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/structure/core/Table.java", "func_name": "Table.getOutgoingForeignKeys", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the list of all outgoing FOREIGN KEYS from this table", "docstring_tokens": ["Returns", "the", "list", "of", "all", "outgoing", "FOREIGN", "KEYS", "from", "this", "table"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/structure/core/Table.java#L35-L38", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-cdi/src/main/java/liquibase/integration/cdi/SchemesCDIConfigBuilder.java", "func_name": "SchemesCDIConfigBuilder.createCDILiquibaseConfig", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "API method.", "docstring_tokens": ["API", "method", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-cdi/src/main/java/liquibase/integration/cdi/SchemesCDIConfigBuilder.java#L65-L86", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-cdi/src/main/java/liquibase/integration/cdi/SchemesCDIConfigBuilder.java", "func_name": "SchemesCDIConfigBuilder.fileLocked", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Synchronization among multiple JVM's.", "docstring_tokens": ["Synchronization", "among", "multiple", "JVM", "s", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-cdi/src/main/java/liquibase/integration/cdi/SchemesCDIConfigBuilder.java#L175-L211", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/SpringBootFatJar.java", "func_name": "SpringBootFatJar.getSimplePathForResources", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method used to simplify an entryName\n\nEx: with path jar:/some/jar.jar!/BOOT-INF/classes!/db/changelog and entryName /BOOT-INF/classes/db/changelog\nThe simple entry name for Spring is db/changelog\n(/BOOT-INF/classes/ is not needed and break the liquibase alphabetical sort order)\n\n@param entryName the entryName to simplify\n@param path file path\n@return the simple path", "docstring_tokens": ["Method", "used", "to", "simplify", "an", "entryName"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/SpringBootFatJar.java#L29-L39", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/changelog/ChangeSetStatus.java", "func_name": "ChangeSetStatus.isFilteredBy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convenience method to check wither a given ChangeSetFilter type is a reason for running the change set or not.", "docstring_tokens": ["Convenience", "method", "to", "check", "wither", "a", "given", "ChangeSetFilter", "type", "is", "a", "reason", "for", "running", "the", "change", "set", "or", "not", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/changelog/ChangeSetStatus.java#L93-L108", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/JdbcUtils.java", "func_name": "JdbcUtils.getValueForColumn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether a result set has a column matching the specified column name.\nThe column name is first changed to match the database format.\nE.g. an unquoted columnName in h2 will be converted to uppercase so the column name that is\nbeing checked for is really the uppercase version of the column name,\n\n@param rs result set to check\n@param columnNameToCheck column name to check\n@return The value if found, null if not found", "docstring_tokens": ["Checks", "whether", "a", "result", "set", "has", "a", "column", "matching", "the", "specified", "column", "name", ".", "The", "column", "name", "is", "first", "changed", "to", "match", "the", "database", "format", ".", "E", ".", "g", ".", "an", "unquoted", "columnName", "in", "h2", "will", "be", "converted", "to", "uppercase", "so", "the", "column", "name", "that", "is", "being", "checked", "for", "is", "really", "the", "uppercase", "version", "of", "the", "column", "name"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/JdbcUtils.java#L150-L163", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/configuration/LiquibaseConfiguration.java", "func_name": "LiquibaseConfiguration.init", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Re-initialize the configuration with the given ConfigurationProviders. Any existing\nAbstractConfigurationContainer instances are reset to defaults.", "docstring_tokens": ["Re", "-", "initialize", "the", "configuration", "with", "the", "given", "ConfigurationProviders", ".", "Any", "existing", "AbstractConfigurationContainer", "instances", "are", "reset", "to", "defaults", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/configuration/LiquibaseConfiguration.java#L65-L72", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/CommandLineUtils.java", "func_name": "CommandLineUtils.initializeDatabase", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes RawSqlStatements particular to each database engine to set the default schema for the given Database\n\n@param username The username used for the connection. Used with MSSQL databases\n@param defaultCatalogName Catalog name and schema name are similar concepts.\nUsed if defaultCatalogName is null.\n@param defaultSchemaName Catalog name and schema name are similar concepts.\nCatalog is used with Oracle, DB2 and MySQL, and takes\nprecedence over the schema name.\n@param database Which Database object is affected by the initialization.\n@throws DatabaseException", "docstring_tokens": ["Executes", "RawSqlStatements", "particular", "to", "each", "database", "engine", "to", "set", "the", "default", "schema", "for", "the", "given", "Database"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/CommandLineUtils.java#L147-L177", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/diff/compare/core/DefaultDatabaseObjectComparator.java", "func_name": "DefaultDatabaseObjectComparator.nameMatches", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Static so it can be used in other comparators if needed", "docstring_tokens": ["Static", "so", "it", "can", "be", "used", "in", "other", "comparators", "if", "needed"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/diff/compare/core/DefaultDatabaseObjectComparator.java#L112-L127", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/snapshot/jvm/ForeignKeySnapshotGenerator.java", "func_name": "ForeignKeySnapshotGenerator.setValidateOptionIfAvailable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to map 'validate' option for FK. This thing works only for ORACLE\n\n@param database - DB where FK will be created\n@param foreignKey - FK object to persist validate option\n@param cachedRow - it's a cache-map to get metadata about FK", "docstring_tokens": ["Method", "to", "map", "validate", "option", "for", "FK", ".", "This", "thing", "works", "only", "for", "ORACLE"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/snapshot/jvm/ForeignKeySnapshotGenerator.java#L234-L243", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/snapshot/SnapshotControl.java", "func_name": "SnapshotControl.addType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a new DatabaseObject type to the list of object types to be included in snapshots.\n@param type The type to be added\n@param database The database to check for any dependent types that need to be included as well\n@return true if the type was added to the list, false if it was already present.", "docstring_tokens": ["Adds", "a", "new", "DatabaseObject", "type", "to", "the", "list", "of", "object", "types", "to", "be", "included", "in", "snapshots", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/snapshot/SnapshotControl.java#L135-L143", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/spring/SpringLiquibase.java", "func_name": "SpringLiquibase.afterPropertiesSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executed automatically when the bean is initialized.", "docstring_tokens": ["Executed", "automatically", "when", "the", "bean", "is", "initialized", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/spring/SpringLiquibase.java#L293-L328", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/AbstractCSVToBean.java", "func_name": "AbstractCSVToBean.checkForTrim", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the trimmed value of the string only if the property the string is describing should be trimmed\nto be converted to that type.\n\n@param s - String describing the value.\n@param prop - property descriptor of the value.\n@return the string passed in if the property is a string otherwise it will return the string with the\nbeginning and end whitespace removed.", "docstring_tokens": ["Returns", "the", "trimmed", "value", "of", "the", "string", "only", "if", "the", "property", "the", "string", "is", "describing", "should", "be", "trimmed", "to", "be", "converted", "to", "that", "type", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/AbstractCSVToBean.java#L29-L31", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/AbstractCSVToBean.java", "func_name": "AbstractCSVToBean.convertValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a string value to its Object value.\n\n@param value - String value\n@param prop - PropertyDescriptor\n@return The object set to value (i.e. Integer). Will return String if no PropertyEditor is found.\n@throws ReflectiveOperationException - Thrown on error getting the property editor from the property descriptor.", "docstring_tokens": ["Convert", "a", "string", "value", "to", "its", "Object", "value", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/AbstractCSVToBean.java#L45-L53", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/Main.java", "func_name": "Main.main", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Entry point. This is what gets executes when starting this program from the command line. This is actually\na simple wrapper so that an errorlevel of != 0 is guaranteed in case of an uncaught exception.\n\n@param args the command line arguments", "docstring_tokens": ["Entry", "point", ".", "This", "is", "what", "gets", "executes", "when", "starting", "this", "program", "from", "the", "command", "line", ".", "This", "is", "actually", "a", "simple", "wrapper", "so", "that", "an", "errorlevel", "of", "!", "=", "0", "is", "guaranteed", "in", "case", "of", "an", "uncaught", "exception", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L120-L128", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/Main.java", "func_name": "Main.splitArg", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "What the number 2 stands for is obvious from the context", "docstring_tokens": ["What", "the", "number", "2", "stands", "for", "is", "obvious", "from", "the", "context"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L250-L261", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/Main.java", "func_name": "Main.isCommand", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if the given arg is a valid main command of Liquibase.\n\n@param arg the String to test\n@return true if it is a valid main command, false if not", "docstring_tokens": ["Returns", "true", "if", "the", "given", "arg", "is", "a", "valid", "main", "command", "of", "Liquibase", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L286-L327", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/Main.java", "func_name": "Main.isNoArgCommand", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if the given main command arg needs no special parameters.\n\n@param arg the main command to test\n@return true if arg is a valid main command and needs no special parameters, false in all other cases", "docstring_tokens": ["Returns", "true", "if", "the", "given", "main", "command", "arg", "needs", "no", "special", "parameters", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L335-L352", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/Main.java", "func_name": "Main.extract", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extract a single object from a JAR file into a temporary file.\n\n@param jar the JAR file from which we will extract\n@param entry the object inside the JAR file that to be extracted\n@return a File object with the temporary file containing the extracted object\n@throws IOException if an I/O problem occurs", "docstring_tokens": ["Extract", "a", "single", "object", "from", "a", "JAR", "file", "into", "a", "temporary", "file", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L385-L400", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/Main.java", "func_name": "Main.parseDefaultPropertyFileFromResource", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Open a property file that is embedded as a Java resource and parse it.\n\n@param potentialPropertyFile location and file name of the property file\n@throws IOException if the file cannot be opened\n@throws CommandLineParsingException if an error occurs during parsing", "docstring_tokens": ["Open", "a", "property", "file", "that", "is", "embedded", "as", "a", "Java", "resource", "and", "parse", "it", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L437-L445", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/Main.java", "func_name": "Main.fixupArgs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "On windows machines, it splits args on '=' signs. Put it back like it was.", "docstring_tokens": ["On", "windows", "machines", "it", "splits", "args", "on", "=", "signs", ".", "Put", "it", "back", "like", "it", "was", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L465-L487", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/Main.java", "func_name": "Main.checkSetup", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "After parsing, checks if the given combination of main command and can be executed.\n\n@return an empty List if successful, or a list of error messages", "docstring_tokens": ["After", "parsing", "checks", "if", "the", "given", "combination", "of", "main", "command", "and", "can", "be", "executed", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L494-L516", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/Main.java", "func_name": "Main.checkForMissingCommandParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks for missing command line parameters and, if any problems are found,\nreturns the list of issues in String form.\n\n@param messages an array of Strings to which messages for issues found will be added", "docstring_tokens": ["Checks", "for", "missing", "command", "line", "parameters", "and", "if", "any", "problems", "are", "found", "returns", "the", "list", "of", "issues", "in", "String", "form", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L599-L604", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/Main.java", "func_name": "Main.checkForMalformedCommandParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks for incorrectly written command line parameters and, if any problems are found,\nreturns the list of issues in String form.\n\n@param messages an array of Strings to which messages for issues found will be added", "docstring_tokens": ["Checks", "for", "incorrectly", "written", "command", "line", "parameters", "and", "if", "any", "problems", "are", "found", "returns", "the", "list", "of", "issues", "in", "String", "form", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L612-L635", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/Main.java", "func_name": "Main.parsePropertiesFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads various execution parameters from an InputStream and sets our internal state according to the values\nfound.\n\n@param propertiesInputStream an InputStream from a Java properties file\n@throws IOException if there is a problem reading the InputStream\n@throws CommandLineParsingException if an invalid property is encountered", "docstring_tokens": ["Reads", "various", "execution", "parameters", "from", "an", "InputStream", "and", "sets", "our", "internal", "state", "according", "to", "the", "values", "found", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L645-L690", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/Main.java", "func_name": "Main.printHelp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If any errors have been found, print the list of errors first, then print the command line help text.\n\n@param errorMessages List of error messages\n@param stream the output stream to write the text to", "docstring_tokens": ["If", "any", "errors", "have", "been", "found", "print", "the", "list", "of", "errors", "first", "then", "print", "the", "command", "line", "help", "text", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L698-L704", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/Main.java", "func_name": "Main.printHelp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Print instructions on how to use this program from the command line.\n\n@param stream the output stream to write the help text to", "docstring_tokens": ["Print", "instructions", "on", "how", "to", "use", "this", "program", "from", "the", "command", "line", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L711-L714", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/Main.java", "func_name": "Main.parseOptions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses the command line options. If an invalid argument is given, a CommandLineParsingException is thrown.\n\n@param paramArgs the arguments to parse\n@throws CommandLineParsingException thrown if an invalid argument is passed", "docstring_tokens": ["Parses", "the", "command", "line", "options", ".", "If", "an", "invalid", "argument", "is", "given", "a", "CommandLineParsingException", "is", "thrown", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L722-L762", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/Main.java", "func_name": "Main.getCommandParam", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the value for a command line parameter of the form parameterName=value, or defaultValue if that\nparameter has not been specified by the user.\n\n@param paramName name of the parameter\n@param defaultValue return value if parameter is not given\n@return the user-specified value for paramName, or defaultValue\n@throws CommandLineParsingException if a parameter on the command line is un-parsable", "docstring_tokens": ["Returns", "the", "value", "for", "a", "command", "line", "parameter", "of", "the", "form", "parameterName", "=", "value", "or", "defaultValue", "if", "that", "parameter", "has", "not", "been", "specified", "by", "the", "user", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/Main.java#L1349-L1364", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/NumberUtils.java", "func_name": "NumberUtils.readInteger", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convenience method for converting a string to an Integer object\n@param value string value\n@return Null if the value is null, otherwise the converted integer", "docstring_tokens": ["Convenience", "method", "for", "converting", "a", "string", "to", "an", "Integer", "object"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/NumberUtils.java#L201-L206", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/LabelExpression.java", "func_name": "LabelExpression.matches", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if the passed runtime labels match this label expression", "docstring_tokens": ["Returns", "true", "if", "the", "passed", "runtime", "labels", "match", "this", "label", "expression"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/LabelExpression.java#L75-L89", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/snapshot/SnapshotGeneratorFactory.java", "func_name": "SnapshotGeneratorFactory.has", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if a specific object is present in a database\n@param example The DatabaseObject to check for existence\n@param database The DBMS in which the object might exist\n@return true if object existence can be confirmed, false otherweise\n@throws DatabaseException If a problem occurs in the DBMS-specific code\n@throws InvalidExampleException If the object cannot be checked properly, e.g. if the object name is ambiguous", "docstring_tokens": ["Checks", "if", "a", "specific", "object", "is", "present", "in", "a", "database"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/snapshot/SnapshotGeneratorFactory.java#L99-L152", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/snapshot/SnapshotGeneratorFactory.java", "func_name": "SnapshotGeneratorFactory.createSnapshot", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a database snapshot for a given array of DatabaseObjects\n\n@param examples an array of DatabaseObjects objects\n@param database the database to work on\n@param snapshotControl the options/settings for snapshot generation\n@return a database snapshot that includes all objects matching the specification\n@throws DatabaseException if a problem occurs during snapshotting\n@throws InvalidExampleException if the given catalog/schema combinations are invalid (e.g. duplicates)", "docstring_tokens": ["Creates", "a", "database", "snapshot", "for", "a", "given", "array", "of", "DatabaseObjects"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/snapshot/SnapshotGeneratorFactory.java#L201-L216", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/snapshot/SnapshotGeneratorFactory.java", "func_name": "SnapshotGeneratorFactory.createSnapshot", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a DatabaseSnapshot for a single DatabaseObject.\n@param example the object to snapshot\n@param database the database to work on\n@param the type of the object (must extend DatabaseObject)\n@return the snapshot of the desired object\n@throws DatabaseException if a problem occurs during snapshotting\n@throws InvalidExampleException if the given catalog/schema combinations are invalid (e.g. duplicates)", "docstring_tokens": ["Creates", "a", "DatabaseSnapshot", "for", "a", "single", "DatabaseObject", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/snapshot/SnapshotGeneratorFactory.java#L227-L229", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/change/core/DropAllForeignKeyConstraintsChange.java", "func_name": "DropAllForeignKeyConstraintsChange.generateChildren", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Iterates through all the FOREIGN KEYs of the target table and outputs a list of DropForeignKeyConstraintChanges\nfor a given database type.\n\n@param database the database type for which subchanges need to be generated\n@return the list of generated DropForeignKeyConstraintChanges", "docstring_tokens": ["Iterates", "through", "all", "the", "FOREIGN", "KEYs", "of", "the", "target", "table", "and", "outputs", "a", "list", "of", "DropForeignKeyConstraintChanges", "for", "a", "given", "database", "type", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/change/core/DropAllForeignKeyConstraintsChange.java#L80-L132", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/FileUtil.java", "func_name": "FileUtil.cleanDirectory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Clean a directory without deleting it.", "docstring_tokens": ["Clean", "a", "directory", "without", "deleting", "it", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/FileUtil.java#L17-L45", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/StringUtil.java", "func_name": "StringUtil.splitSQL", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Splits a candidate multi-line SQL statement along ;'s and \"go\"'s.", "docstring_tokens": ["Splits", "a", "candidate", "multi", "-", "line", "SQL", "statement", "along", ";", "s", "and", "go", "s", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/StringUtil.java#L153-L155", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/StringUtil.java", "func_name": "StringUtil.pad", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds spaces to the right of the input value until the string has reached the given length. Nothing is done\nif the string already has the given length or if the string is even longer.\n@param value The string to pad (if necessary)\n@param length the desired length\n@return the input string, padded if necessary.", "docstring_tokens": ["Adds", "spaces", "to", "the", "right", "of", "the", "input", "value", "until", "the", "string", "has", "reached", "the", "given", "length", ".", "Nothing", "is", "done", "if", "the", "string", "already", "has", "the", "given", "length", "or", "if", "the", "string", "is", "even", "longer", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/StringUtil.java#L379-L386", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/StringUtil.java", "func_name": "StringUtil.leftPad", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds spaces to the left of the input value until the string has reached the given length. Nothing is done\nif the string already has the given length or if the string is even longer.\n@param value The string to pad (if necessary)\n@param length the desired length\n@return the input string, padded if necessary.", "docstring_tokens": ["Adds", "spaces", "to", "the", "left", "of", "the", "input", "value", "until", "the", "string", "has", "reached", "the", "given", "length", ".", "Nothing", "is", "done", "if", "the", "string", "already", "has", "the", "given", "length", "or", "if", "the", "string", "is", "even", "longer", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/StringUtil.java#L395-L402", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/StringUtil.java", "func_name": "StringUtil.randomIdentifer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Produce a random identifer of the given length, consisting only of uppercase letters.\n@param len desired length of the string\n@return an identifier of the desired length", "docstring_tokens": ["Produce", "a", "random", "identifer", "of", "the", "given", "length", "consisting", "only", "of", "uppercase", "letters", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/StringUtil.java#L490-L497", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/StringUtil.java", "func_name": "StringUtil.stripSqlCommentsAndWhitespacesFromTheEnd", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Strips the comments and whitespaces from the end of given sql string.\n@param sqlString\n@return", "docstring_tokens": ["Strips", "the", "comments", "and", "whitespaces", "from", "the", "end", "of", "given", "sql", "string", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/StringUtil.java#L670-L698", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/StringUtil.java", "func_name": "StringUtil.concatConsistentCase", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Concatenates the addition string to the baseString string, adjusting the case of \"addition\" to match the base string.\nIf the string is all caps, append addition in all caps. If all lower case, append in all lower case. If baseString is mixed case, make no changes to addition.", "docstring_tokens": ["Concatenates", "the", "addition", "string", "to", "the", "baseString", "string", "adjusting", "the", "case", "of", "addition", "to", "match", "the", "base", "string", ".", "If", "the", "string", "is", "all", "caps", "append", "addition", "in", "all", "caps", ".", "If", "all", "lower", "case", "append", "in", "all", "lower", "case", ".", "If", "baseString", "is", "mixed", "case", "make", "no", "changes", "to", "addition", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/StringUtil.java#L774-L784", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/snapshot/jvm/JdbcSnapshotGenerator.java", "func_name": "JdbcSnapshotGenerator.getDatabaseCatalogNames", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fetches an array of Strings with the catalog names in the database.\n@param database The database from which to get the schema names\n@return An array of catalog name Strings (May be an empty array)\n@throws SQLException propagated java.sql.SQLException\n@throws DatabaseException if a different problem occurs during the DBMS-specific code", "docstring_tokens": ["Fetches", "an", "array", "of", "Strings", "with", "the", "catalog", "names", "in", "the", "database", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/snapshot/jvm/JdbcSnapshotGenerator.java#L136-L165", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/StringClauses.java", "func_name": "StringClauses.append", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a new clause at the end of the list with the given key.", "docstring_tokens": ["Adds", "a", "new", "clause", "at", "the", "end", "of", "the", "list", "with", "the", "given", "key", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/StringClauses.java#L79-L90", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/StringClauses.java", "func_name": "StringClauses.append", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a new sub-clause at the end of the list with the given key.", "docstring_tokens": ["Adds", "a", "new", "sub", "-", "clause", "at", "the", "end", "of", "the", "list", "with", "the", "given", "key", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/StringClauses.java#L95-L106", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/StringClauses.java", "func_name": "StringClauses.prepend", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a clause with the given key to the beginning of the list.", "docstring_tokens": ["Adds", "a", "clause", "with", "the", "given", "key", "to", "the", "beginning", "of", "the", "list", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/StringClauses.java#L150-L152", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/StringClauses.java", "func_name": "StringClauses.insertBefore", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inserts a new clause before the given key. Throws IllegalArgumentException if the existingKey does not exist.", "docstring_tokens": ["Inserts", "a", "new", "clause", "before", "the", "given", "key", ".", "Throws", "IllegalArgumentException", "if", "the", "existingKey", "does", "not", "exist", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/StringClauses.java#L285-L287", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/StringClauses.java", "func_name": "StringClauses.insertAfter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inserts a new clause after the given key. Throws IllegalArgumentException if the existingKey does not exist.", "docstring_tokens": ["Inserts", "a", "new", "clause", "after", "the", "given", "key", ".", "Throws", "IllegalArgumentException", "if", "the", "existingKey", "does", "not", "exist", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/StringClauses.java#L350-L352", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/StringClauses.java", "func_name": "StringClauses.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves the given key. Returns null if not set.\nIf clause at key is a StringClause, return the string version of it.\nWill traverse sub-clauses to find the key.", "docstring_tokens": ["Retrieves", "the", "given", "key", ".", "Returns", "null", "if", "not", "set", ".", "If", "clause", "at", "key", "is", "a", "StringClause", "return", "the", "string", "version", "of", "it", ".", "Will", "traverse", "sub", "-", "clauses", "to", "find", "the", "key", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/StringClauses.java#L405-L412", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/StringClauses.java", "func_name": "StringClauses.getSubclause", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves the given key. Returns null if not set. If clause at key is a String, return a new StringClause version of it. Will traverse sub-clauses to find the key.", "docstring_tokens": ["Retrieves", "the", "given", "key", ".", "Returns", "null", "if", "not", "set", ".", "If", "clause", "at", "key", "is", "a", "String", "return", "a", "new", "StringClause", "version", "of", "it", ".", "Will", "traverse", "sub", "-", "clauses", "to", "find", "the", "key", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/StringClauses.java#L439-L449", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/diff/output/changelog/DiffToChangeLog.java", "func_name": "DiffToChangeLog.print", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prints changeLog that would bring the target database to be the same as\nthe reference database", "docstring_tokens": ["Prints", "changeLog", "that", "would", "bring", "the", "target", "database", "to", "be", "the", "same", "as", "the", "reference", "database"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/diff/output/changelog/DiffToChangeLog.java#L144-L151", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/database/DatabaseFactory.java", "func_name": "DatabaseFactory.getImplementedDatabases", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns instances of all implemented database types.", "docstring_tokens": ["Returns", "instances", "of", "all", "implemented", "database", "types", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/database/DatabaseFactory.java#L57-L63", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/database/DatabaseFactory.java", "func_name": "DatabaseFactory.getInternalDatabases", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns instances of all \"internal\" database types.", "docstring_tokens": ["Returns", "instances", "of", "all", "internal", "database", "types", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/database/DatabaseFactory.java#L68-L74", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/datatype/LiquibaseDataType.java", "func_name": "LiquibaseDataType.validate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validates the correct state of this data type against a given database.\n@param database the database to validate against\n@return true if the current settings for this data type can be implemented on the given database, false otherwise", "docstring_tokens": ["Validates", "the", "correct", "state", "of", "this", "data", "type", "against", "a", "given", "database", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/datatype/LiquibaseDataType.java#L127-L139", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/datatype/LiquibaseDataType.java", "func_name": "LiquibaseDataType.toDatabaseDataType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Transforms this data type into the native data type of the target DBMS.\n@param database the {@link Database} for which the native data type is to be constructed\n@return the new, native data type", "docstring_tokens": ["Transforms", "this", "data", "type", "into", "the", "native", "data", "type", "of", "the", "target", "DBMS", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/datatype/LiquibaseDataType.java#L146-L161", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/datatype/LiquibaseDataType.java", "func_name": "LiquibaseDataType.objectToSql", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the value object in a format to include in SQL. Quote if necessary.", "docstring_tokens": ["Returns", "the", "value", "object", "in", "a", "format", "to", "include", "in", "SQL", ".", "Quote", "if", "necessary", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/datatype/LiquibaseDataType.java#L166-L175", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/datatype/LiquibaseDataType.java", "func_name": "LiquibaseDataType.isCurrentDateTimeFunction", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines if the given function name refers to the function that returns the current\ntime and date for a specific DBMS. Also returns true if the name returns the Liquibase wildcard\nCURRENT_DATE_TIME_PLACE_HOLDER, which will later be translated into the appropriate function.\n@param string The database function name to test\n@param database A database object to test against\n@return see above", "docstring_tokens": ["Determines", "if", "the", "given", "function", "name", "refers", "to", "the", "function", "that", "returns", "the", "current", "time", "and", "date", "for", "a", "specific", "DBMS", ".", "Also", "returns", "true", "if", "the", "name", "returns", "the", "Liquibase", "wildcard", "CURRENT_DATE_TIME_PLACE_HOLDER", "which", "will", "later", "be", "translated", "into", "the", "appropriate", "function", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/datatype/LiquibaseDataType.java#L240-L244", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/database/core/DB2Database.java", "func_name": "DB2Database.supportsBooleanDataType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "boolean data type column are allowed for versions >= 11.1.1.1\n@return", "docstring_tokens": ["boolean", "data", "type", "column", "are", "allowed", "for", "versions", ">", "=", "11", ".", "1", ".", "1", ".", "1"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/database/core/DB2Database.java#L30-L46", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/database/core/H2Database.java", "func_name": "H2Database.getConcatSql", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recursive way of building CONCAT instruction\n\n@param values a non null List of String\n@return a String containing the CONCAT instruction with all elements, or only a value if there is only one element in the list", "docstring_tokens": ["Recursive", "way", "of", "building", "CONCAT", "instruction"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/database/core/H2Database.java#L205-L211", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/sqlgenerator/SqlGeneratorFactory.java", "func_name": "SqlGeneratorFactory.generateStatementsVolatile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return true if the SqlStatement class queries the database in any way to determine Statements to execute.\nIf the statement queries the database, it cannot be used in updateSql type operations", "docstring_tokens": ["Return", "true", "if", "the", "SqlStatement", "class", "queries", "the", "database", "in", "any", "way", "to", "determine", "Statements", "to", "execute", ".", "If", "the", "statement", "queries", "the", "database", "it", "cannot", "be", "used", "in", "updateSql", "type", "operations"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/sqlgenerator/SqlGeneratorFactory.java#L223-L230", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-maven-plugin/src/main/java/org/liquibase/maven/plugins/MavenUtils.java", "func_name": "MavenUtils.addArtifact", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the artifact file into the set of URLs so it can be used in a URLClassLoader.\n@param urls The set to add the artifact file URL to.\n@param artifact The Artifact to resolve the file for.\n@throws MalformedURLException If there is a problem creating the URL for the file.", "docstring_tokens": ["Adds", "the", "artifact", "file", "into", "the", "set", "of", "URLs", "so", "it", "can", "be", "used", "in", "a", "URLClassLoader", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-maven-plugin/src/main/java/org/liquibase/maven/plugins/MavenUtils.java#L95-L117", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-maven-plugin/src/main/java/org/liquibase/maven/plugins/MavenUtils.java", "func_name": "MavenUtils.getDeclaredField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recursively searches for the field specified by the fieldName in the class and all\nthe super classes until it either finds it, or runs out of parents.\n@param clazz The Class to start searching from.\n@param fieldName The name of the field to retrieve.\n@return The {@link Field} identified by the field name.\n@throws NoSuchFieldException If the field was not found in the class or any of its\nsuper classes.", "docstring_tokens": ["Recursively", "searches", "for", "the", "field", "specified", "by", "the", "fieldName", "in", "the", "class", "and", "all", "the", "super", "classes", "until", "it", "either", "finds", "it", "or", "runs", "out", "of", "parents", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-maven-plugin/src/main/java/org/liquibase/maven/plugins/MavenUtils.java#L177-L193", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/commandline/CommandLineResourceAccessor.java", "func_name": "CommandLineResourceAccessor.getAlternatePaths", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return alternate options for the given path that the user maybe meant. Return in order of likelihood.", "docstring_tokens": ["Return", "alternate", "options", "for", "the", "given", "path", "that", "the", "user", "maybe", "meant", ".", "Return", "in", "order", "of", "likelihood", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/commandline/CommandLineResourceAccessor.java#L53-L62", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/ContextExpression.java", "func_name": "ContextExpression.matches", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if the passed runtime contexts match this context expression", "docstring_tokens": ["Returns", "true", "if", "the", "passed", "runtime", "contexts", "match", "this", "context", "expression"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/ContextExpression.java#L75-L89", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/ant/BaseLiquibaseTask.java", "func_name": "BaseLiquibaseTask.createResourceAccessor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a suitable ResourceAccessor for use in an Ant task..\n\n@param classLoader The ClassLoader to use in the ResourceAccessor. It is preferable that it is an AntClassLoader.\n@return A ResourceAccessor.", "docstring_tokens": ["Creates", "a", "suitable", "ResourceAccessor", "for", "use", "in", "an", "Ant", "task", ".."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/ant/BaseLiquibaseTask.java#L168-L178", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/integration/ant/BaseLiquibaseTask.java", "func_name": "BaseLiquibaseTask.closeDatabase", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convenience method to safely close the database connection.\n\n@param database The database to close.", "docstring_tokens": ["Convenience", "method", "to", "safely", "close", "the", "database", "connection", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/integration/ant/BaseLiquibaseTask.java#L189-L197", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVParser.java", "func_name": "CSVParser.appendNextCharacterAndAdvanceLoop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Appends the next character in the line to the stringbuffer.\n\n@param line - line to process\n@param sb - contains the processed character\n@param i - current position in the line.\n@return new position in the line.", "docstring_tokens": ["Appends", "the", "next", "character", "in", "the", "line", "to", "the", "stringbuffer", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVParser.java#L453-L457", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVParser.java", "func_name": "CSVParser.isNextCharacterEscapedQuote", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks to see if the character after the index is a quotation character.\n\nprecondition: the current character is a quote or an escape\n\n@param nextLine the current line\n@param inQuotes true if the current context is quoted\n@param i current index in line\n@return true if the following character is a quote", "docstring_tokens": ["Checks", "to", "see", "if", "the", "character", "after", "the", "index", "is", "a", "quotation", "character", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVParser.java#L479-L483", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVParser.java", "func_name": "CSVParser.isNextCharacterEscapable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks to see if the character after the current index in a String is an escapable character.\nMeaning the next character is either a quotation character or the escape char and you are inside\nquotes.\n\nprecondition: the current character is an escape\n\n@param nextLine the current line\n@param inQuotes true if the current context is quoted\n@param i current index in line\n@return true if the following character is a quote", "docstring_tokens": ["Checks", "to", "see", "if", "the", "character", "after", "the", "current", "index", "in", "a", "String", "is", "an", "escapable", "character", ".", "Meaning", "the", "next", "character", "is", "either", "a", "quotation", "character", "or", "the", "escape", "char", "and", "you", "are", "inside", "quotes", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVParser.java#L528-L532", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/parser/core/ParsedNode.java", "func_name": "ParsedNode.getChildren", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns all child nodes with the given namespace and name.\nIf none match, an empty list is returned.\nReturned list is unmodifiableList.", "docstring_tokens": ["Returns", "all", "child", "nodes", "with", "the", "given", "namespace", "and", "name", ".", "If", "none", "match", "an", "empty", "list", "is", "returned", ".", "Returned", "list", "is", "unmodifiableList", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/parser/core/ParsedNode.java#L65-L73", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/parser/core/ParsedNode.java", "func_name": "ParsedNode.setValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the value of this ParsedNode.\nIf the passed value is a ParsedNode, it is added as a child, not as the value.\nIf the passed value is a Map, it is converted to a ParsedNode and added as a child, not as the value.\nIf the passed value is a Collection, each object is added as a child if it is a ParsedNode or a Map.\nIf there are multiple simple values in a passed collection, value is set to a List. If there is a single value in a collection, value is set to the single value.", "docstring_tokens": ["Sets", "the", "value", "of", "this", "ParsedNode", ".", "If", "the", "passed", "value", "is", "a", "ParsedNode", "it", "is", "added", "as", "a", "child", "not", "as", "the", "value", ".", "If", "the", "passed", "value", "is", "a", "Map", "it", "is", "converted", "to", "a", "ParsedNode", "and", "added", "as", "a", "child", "not", "as", "the", "value", ".", "If", "the", "passed", "value", "is", "a", "Collection", "each", "object", "is", "added", "as", "a", "child", "if", "it", "is", "a", "ParsedNode", "or", "a", "Map", ".", "If", "there", "are", "multiple", "simple", "values", "in", "a", "passed", "collection", "value", "is", "set", "to", "a", "List", ".", "If", "there", "is", "a", "single", "value", "in", "a", "collection", "value", "is", "set", "to", "the", "single", "value", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/parser/core/ParsedNode.java#L89-L116", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/parser/core/ParsedNode.java", "func_name": "ParsedNode.getValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the value associated with this node converted to the given type.\n\n@throws ParsedNodeException if the current value type cannot be converted", "docstring_tokens": ["Return", "the", "value", "associated", "with", "this", "node", "converted", "to", "the", "given", "type", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/parser/core/ParsedNode.java#L123-L125", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/parser/core/ParsedNode.java", "func_name": "ParsedNode.getChild", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the ParsedNode defined by the given namespace and name.\n@throws liquibase.parser.core.ParsedNodeException if multiple nodes match.", "docstring_tokens": ["Returns", "the", "ParsedNode", "defined", "by", "the", "given", "namespace", "and", "name", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/parser/core/ParsedNode.java#L167-L178", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/parser/core/ParsedNode.java", "func_name": "ParsedNode.getChildValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the value of the given node, converted to the passed type.\n@throws liquibase.parser.core.ParsedNodeException if there is an error converting the value", "docstring_tokens": ["Returns", "the", "value", "of", "the", "given", "node", "converted", "to", "the", "passed", "type", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/parser/core/ParsedNode.java#L217-L223", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/parser/core/ParsedNode.java", "func_name": "ParsedNode.getChildValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the value of the given node with no conversion attempted.", "docstring_tokens": ["Returns", "the", "value", "of", "the", "given", "node", "with", "no", "conversion", "attempted", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/parser/core/ParsedNode.java#L276-L282", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/resource/InputStreamList.java", "func_name": "InputStreamList.close", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Close the streams in this collection.", "docstring_tokens": ["Close", "the", "streams", "in", "this", "collection", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/resource/InputStreamList.java#L51-L60", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/datatype/DatabaseDataType.java", "func_name": "DatabaseDataType.isAutoIncrement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Mainly for postgres, check if the column is a serial data type.\n@return Whether the type is serial", "docstring_tokens": ["Mainly", "for", "postgres", "check", "if", "the", "column", "is", "a", "serial", "data", "type", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/datatype/DatabaseDataType.java#L49-L52", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/resource/FileSystemResourceAccessor.java", "func_name": "FileSystemResourceAccessor.isCompressedFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if the given path is a compressed file.", "docstring_tokens": ["Returns", "true", "if", "the", "given", "path", "is", "a", "compressed", "file", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/resource/FileSystemResourceAccessor.java#L265-L267", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/structure/core/Relation.java", "func_name": "Relation.getColumn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the column object for the given columnName. If the column does not exist in this table,\nreturn null.", "docstring_tokens": ["Returns", "the", "column", "object", "for", "the", "given", "columnName", ".", "If", "the", "column", "does", "not", "exist", "in", "this", "table", "return", "null", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/structure/core/Relation.java#L76-L83", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/Scope.java", "func_name": "Scope.getSingleton", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Looks up the singleton object of the given type. If the singleton has not been created yet, it will be instantiated.\nThe singleton is a singleton based on the root scope and the same object will be returned for all child scopes of the root.", "docstring_tokens": ["Looks", "up", "the", "singleton", "object", "of", "the", "given", "type", ".", "If", "the", "singleton", "has", "not", "been", "created", "yet", "it", "will", "be", "instantiated", ".", "The", "singleton", "is", "a", "singleton", "based", "on", "the", "root", "scope", "and", "the", "same", "object", "will", "be", "returned", "for", "all", "child", "scopes", "of", "the", "root", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/Scope.java#L228-L253", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/changelog/StandardChangeLogHistoryService.java", "func_name": "StandardChangeLogHistoryService.tag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tags the database changelog with the given string.", "docstring_tokens": ["Tags", "the", "database", "changelog", "with", "the", "given", "string", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/changelog/StandardChangeLogHistoryService.java#L417-L436", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/precondition/PreconditionFactory.java", "func_name": "PreconditionFactory.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new Precondition subclass based on the given tag name.", "docstring_tokens": ["Create", "a", "new", "Precondition", "subclass", "based", "on", "the", "given", "tag", "name", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/precondition/PreconditionFactory.java#L58-L68", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/NowAndTodayUtil.java", "func_name": "NowAndTodayUtil.isNowOrTodayFormat", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if date starts with \"NOW\" or \"TODAY\".\n\n@param value value to test\n@return true if value starts with \"NOW\" or \"TODAY\" (case insensitive), false otherwise.", "docstring_tokens": ["Checks", "if", "date", "starts", "with", "NOW", "or", "TODAY", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/NowAndTodayUtil.java#L37-L48", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/changelog/ChangeLogParameters.java", "func_name": "ChangeLogParameters.getValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the value of a parameter\n\n@param key Name of the parameter\n@return The parameter value or null if not found. (Note that null can also be return if it is the parameter\nvalue. For strict parameter existence use {@link #hasValue(String, DatabaseChangeLog)}", "docstring_tokens": ["Return", "the", "value", "of", "a", "parameter"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/changelog/ChangeLogParameters.java#L145-L148", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/snapshot/jvm/UniqueConstraintSnapshotGenerator.java", "func_name": "UniqueConstraintSnapshotGenerator.setValidateOptionIfAvailable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to map 'validate' option for UC. This thing works only for ORACLE\n\n@param database - DB where UC will be created\n@param uniqueConstraint - UC object to persist validate option\n@param columnsMetadata - it's a cache-map to get metadata about UC", "docstring_tokens": ["Method", "to", "map", "validate", "option", "for", "UC", ".", "This", "thing", "works", "only", "for", "ORACLE"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/snapshot/jvm/UniqueConstraintSnapshotGenerator.java#L76-L85", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/snapshot/jvm/UniqueConstraintSnapshotGenerator.java", "func_name": "UniqueConstraintSnapshotGenerator.getUniqueConstraintsSqlInformix", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets an SQL query that returns the constraint names and columns for all UNIQUE constraints.\n@param database A database object of the InformixDatabase type\n@param schema Name of the schema to examine (or null for all)\n@param name Name of the constraint to examine (or null for all)\n@return A lengthy SQL statement that fetches the constraint names and columns", "docstring_tokens": ["Gets", "an", "SQL", "query", "that", "returns", "the", "constraint", "names", "and", "columns", "for", "all", "UNIQUE", "constraints", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/snapshot/jvm/UniqueConstraintSnapshotGenerator.java#L345-L391", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/change/ChangeMetaData.java", "func_name": "ChangeMetaData.getSetParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the parameters of the given change that are set to a non-null value. Will never return a null map, only an empty or populated map.", "docstring_tokens": ["Return", "the", "parameters", "of", "the", "given", "change", "that", "are", "set", "to", "a", "non", "-", "null", "value", ".", "Will", "never", "return", "a", "null", "map", "only", "an", "empty", "or", "populated", "map", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/change/ChangeMetaData.java#L91-L99", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/change/ChangeMetaData.java", "func_name": "ChangeMetaData.getRequiredParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the required parameters for this change for the given database. Will never return a null map, only an empty or populated map.", "docstring_tokens": ["Returns", "the", "required", "parameters", "for", "this", "change", "for", "the", "given", "database", ".", "Will", "never", "return", "a", "null", "map", "only", "an", "empty", "or", "populated", "map", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/change/ChangeMetaData.java#L104-L113", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/sqlgenerator/core/InsertOrUpdateGeneratorInformix.java", "func_name": "InsertOrUpdateGeneratorInformix.convertToString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copied and modified from liquibase.sqlgenerator.core.InsertOrUpdateGeneratorMySQL", "docstring_tokens": ["Copied", "and", "modified", "from", "liquibase", ".", "sqlgenerator", ".", "core", ".", "InsertOrUpdateGeneratorMySQL"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/sqlgenerator/core/InsertOrUpdateGeneratorInformix.java#L112-L130", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/change/AbstractChange.java", "func_name": "AbstractChange.getSerializableFields", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the fields on this change that are serializable.", "docstring_tokens": ["Returns", "the", "fields", "on", "this", "change", "that", "are", "serializable", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/change/AbstractChange.java#L551-L554", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/file/FilenameUtils.java", "func_name": "FilenameUtils.doGetFullPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Does the work of getting the path.\n\n@param filename the filename\n@param includeSeparator true to include the end separator\n@return the path", "docstring_tokens": ["Does", "the", "work", "of", "getting", "the", "path", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/file/FilenameUtils.java#L779-L800", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java", "func_name": "HeaderColumnNameMappingStrategy.createIndexLookup", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an index map of column names to column position.\n@param values - array of header values.", "docstring_tokens": ["Creates", "an", "index", "map", "of", "column", "names", "to", "column", "position", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java#L70-L76", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java", "func_name": "HeaderColumnNameMappingStrategy.getColumnIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the column index that corresponds to a specific colum name.\nIf the CSV file doesn't have a header row, this method will always return\nnull.\n\n@param name the column name\n@return the column index, or null if the name doesn't exist", "docstring_tokens": ["Gets", "the", "column", "index", "that", "corresponds", "to", "a", "specific", "colum", "name", ".", "If", "the", "CSV", "file", "doesn", "t", "have", "a", "header", "row", "this", "method", "will", "always", "return", "null", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java#L93-L102", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java", "func_name": "HeaderColumnNameMappingStrategy.findDescriptor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the property descriptor for a given column position.\n@param col the column to find the description for\n@return - the property descriptor for the column position or null if one could not be found.\n@throws IntrospectionException - thrown on error retrieving the property description.", "docstring_tokens": ["Gets", "the", "property", "descriptor", "for", "a", "given", "column", "position", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java#L110-L114", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java", "func_name": "HeaderColumnNameMappingStrategy.findField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the field for a given column position.\n\n@param col the column to find the field for\n@return - BeanField containing the field - and whether it is mandatory - for a given column position, or null if\none could not be found", "docstring_tokens": ["Gets", "the", "field", "for", "a", "given", "column", "position", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java#L123-L127", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java", "func_name": "HeaderColumnNameMappingStrategy.getColumnName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the column name for a given column position.\n\n@param col - column position.\n@return - the column name or null if the position is larger than the header array or there is no headers defined.", "docstring_tokens": ["Get", "the", "column", "name", "for", "a", "given", "column", "position", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java#L135-L137", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java", "func_name": "HeaderColumnNameMappingStrategy.findDescriptor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find the property descriptor for a given column.\n@param name - column name to look up.\n@return - the property descriptor for the column.\n@throws IntrospectionException - thrown on error loading the property descriptors.", "docstring_tokens": ["Find", "the", "property", "descriptor", "for", "a", "given", "column", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java#L145-L150", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java", "func_name": "HeaderColumnNameMappingStrategy.findField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find the field for a given column.\n\n@param name - the column name to look up.\n@return - BeanField containing the field - and whether it is mandatory - for the column.", "docstring_tokens": ["Find", "the", "field", "for", "a", "given", "column", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java#L158-L163", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java", "func_name": "HeaderColumnNameMappingStrategy.matches", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines if the name of a property descriptor matches the column name.\nCurrently only used by unit tests.\n@param name - name of the column.\n@param desc - property descriptor to check against\n@return - true if the name matches the name in the property descriptor.", "docstring_tokens": ["Determines", "if", "the", "name", "of", "a", "property", "descriptor", "matches", "the", "column", "name", ".", "Currently", "only", "used", "by", "unit", "tests", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java#L172-L174", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java", "func_name": "HeaderColumnNameMappingStrategy.loadDescriptorMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "builds a map of property descriptors for the Bean.\n@return - map of property descriptors\n@throws IntrospectionException - thrown on error getting information about the bean.", "docstring_tokens": ["builds", "a", "map", "of", "property", "descriptors", "for", "the", "Bean", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/HeaderColumnNameMappingStrategy.java#L181-L191", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/ColumnPositionMappingStrategy.java", "func_name": "ColumnPositionMappingStrategy.getColumnName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "gets a column name.\n@param col - position of the column.\n@return - column name or null if col > number of mappings.", "docstring_tokens": ["gets", "a", "column", "name", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/ColumnPositionMappingStrategy.java#L51-L54", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/ColumnPositionMappingStrategy.java", "func_name": "ColumnPositionMappingStrategy.setColumnMapping", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Setter for the ColumnMappings.\n@param columnMapping - column names to be mapped.", "docstring_tokens": ["Setter", "for", "the", "ColumnMappings", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/bean/ColumnPositionMappingStrategy.java#L68-L72", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/datatype/core/CharType.java", "func_name": "CharType.getSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the size of this data type definition. If unknown or unspecified, return -1", "docstring_tokens": ["Return", "the", "size", "of", "this", "data", "type", "definition", ".", "If", "unknown", "or", "unspecified", "return", "-", "1"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/datatype/core/CharType.java#L74-L88", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/database/core/HsqlDatabase.java", "func_name": "HsqlDatabase.supportsDefaultValueComputed", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks to see if the string is an acceptable computed value for HSQL\n\"datetime\" columns are the only columns for which HSQL supports computer values.\n\n@param columnType String of the column's data type\n@param defaultValue String to be checked for valid valueComputed in HSQL\n@return boolean True if the string represents a function supported by HSQL for default values", "docstring_tokens": ["Checks", "to", "see", "if", "the", "string", "is", "an", "acceptable", "computed", "value", "for", "HSQL", "datetime", "columns", "are", "the", "only", "columns", "for", "which", "HSQL", "supports", "computer", "values", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/database/core/HsqlDatabase.java#L333-L336", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/changelog/visitor/StatusVisitor.java", "func_name": "StatusVisitor.getChangeSetsToRun", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the change sets that will execute", "docstring_tokens": ["Return", "the", "change", "sets", "that", "will", "execute"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/changelog/visitor/StatusVisitor.java#L105-L114", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/database/core/PostgresDatabase.java", "func_name": "PostgresDatabase.escapeObjectName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This has special case logic to handle NOT quoting column names if they are\nof type 'LiquibaseColumn' - columns in the DATABASECHANGELOG or DATABASECHANGELOGLOCK\ntables.", "docstring_tokens": ["This", "has", "special", "case", "logic", "to", "handle", "NOT", "quoting", "column", "names", "if", "they", "are", "of", "type", "LiquibaseColumn", "-", "columns", "in", "the", "DATABASECHANGELOG", "or", "DATABASECHANGELOGLOCK", "tables", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/database/core/PostgresDatabase.java#L227-L236", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/change/ColumnConfig.java", "func_name": "ColumnConfig.setValueNumeric", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the number this column should be set to. Supports integers and decimals, and strips off any wrapping\nparentheses. If the passed value cannot be parsed as a number in US locale, it is assumed to be a function\nthat returns a number. If the value \"null\" is passed, it will set a null value.", "docstring_tokens": ["Set", "the", "number", "this", "column", "should", "be", "set", "to", ".", "Supports", "integers", "and", "decimals", "and", "strips", "off", "any", "wrapping", "parentheses", ".", "If", "the", "passed", "value", "cannot", "be", "parsed", "as", "a", "number", "in", "US", "locale", "it", "is", "assumed", "to", "be", "a", "function", "that", "returns", "a", "number", ".", "If", "the", "value", "null", "is", "passed", "it", "will", "set", "a", "null", "value", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/change/ColumnConfig.java#L284-L302", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/change/ColumnConfig.java", "func_name": "ColumnConfig.setValueBoolean", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the valueBoolean based on a given string.\nIf the passed value cannot be parsed as a date, it is assumed to be a function that returns a boolean.\nIf the string \"null\" or an empty string is passed, it will set a null value.\nIf \"1\" is passed, defaultValueBoolean is set to true. If 0 is passed, defaultValueBoolean is set to false", "docstring_tokens": ["Set", "the", "valueBoolean", "based", "on", "a", "given", "string", ".", "If", "the", "passed", "value", "cannot", "be", "parsed", "as", "a", "date", "it", "is", "assumed", "to", "be", "a", "function", "that", "returns", "a", "boolean", ".", "If", "the", "string", "null", "or", "an", "empty", "string", "is", "passed", "it", "will", "set", "a", "null", "value", ".", "If", "1", "is", "passed", "defaultValueBoolean", "is", "set", "to", "true", ".", "If", "0", "is", "passed", "defaultValueBoolean", "is", "set", "to", "false"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/change/ColumnConfig.java#L318-L334", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/change/ColumnConfig.java", "func_name": "ColumnConfig.setDefaultValueBoolean", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the defaultValueBoolean based on a given string.\nIf the passed value cannot be parsed as a date, it is assumed to be a function that returns a boolean.\nIf the string \"null\" or an empty string is passed, it will set a null value.\nIf \"1\" is passed, defaultValueBoolean is set to true. If 0 is passed, defaultValueBoolean is set to false", "docstring_tokens": ["Set", "the", "defaultValueBoolean", "based", "on", "a", "given", "string", ".", "If", "the", "passed", "value", "cannot", "be", "parsed", "as", "a", "date", "it", "is", "assumed", "to", "be", "a", "function", "that", "returns", "a", "boolean", ".", "If", "the", "string", "null", "or", "an", "empty", "string", "is", "passed", "it", "will", "set", "a", "null", "value", ".", "If", "1", "is", "passed", "defaultValueBoolean", "is", "set", "to", "true", ".", "If", "0", "is", "passed", "defaultValueBoolean", "is", "set", "to", "false"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/change/ColumnConfig.java#L591-L607", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/change/ChangeFactory.java", "func_name": "ChangeFactory.unregister", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unregister all instances of a given Change name. Normally used for testing, but can be called manually if needed.", "docstring_tokens": ["Unregister", "all", "instances", "of", "a", "given", "Change", "name", ".", "Normally", "used", "for", "testing", "but", "can", "be", "called", "manually", "if", "needed", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/change/ChangeFactory.java#L64-L70", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/change/ChangeFactory.java", "func_name": "ChangeFactory.getDefinedChanges", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns all defined changes in the registry. Returned set is not modifiable.", "docstring_tokens": ["Returns", "all", "defined", "changes", "in", "the", "registry", ".", "Returned", "set", "is", "not", "modifiable", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/change/ChangeFactory.java#L75-L81", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/change/ChangeFactory.java", "func_name": "ChangeFactory.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new Change implementation for the given change name. The class of the constructed object will be the Change implementation with the highest priority.\nEach call to create will return a new instance of the Change.", "docstring_tokens": ["Create", "a", "new", "Change", "implementation", "for", "the", "given", "change", "name", ".", "The", "class", "of", "the", "constructed", "object", "will", "be", "the", "Change", "implementation", "with", "the", "highest", "priority", ".", "Each", "call", "to", "create", "will", "return", "a", "new", "instance", "of", "the", "Change", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/change/ChangeFactory.java#L87-L97", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/ui/SwingUIFacade.java", "func_name": "SwingUIFacade.promptForNonLocalDatabase", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Displays swing-based dialog about running against a non-localhost database.\nReturns true if the user selected that they are OK with that.", "docstring_tokens": ["Displays", "swing", "-", "based", "dialog", "about", "running", "against", "a", "non", "-", "localhost", "database", ".", "Returns", "true", "if", "the", "user", "selected", "that", "they", "are", "OK", "with", "that", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/ui/SwingUIFacade.java#L14-L21", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/database/AbstractJdbcDatabase.java", "func_name": "AbstractJdbcDatabase.getConnectionSchemaName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Overwrite this method to get the default schema name for the connection.\nIf you only need to change the statement that obtains the current schema then override\n@see AbstractJdbcDatabase#getConnectionSchemaNameCallStatement()", "docstring_tokens": ["Overwrite", "this", "method", "to", "get", "the", "default", "schema", "name", "for", "the", "connection", ".", "If", "you", "only", "need", "to", "change", "the", "statement", "that", "obtains", "the", "current", "schema", "then", "override"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/database/AbstractJdbcDatabase.java#L348-L364", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/database/AbstractJdbcDatabase.java", "func_name": "AbstractJdbcDatabase.isSafeToRunUpdate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Default implementation, just look for \"local\" IPs. If the database returns a null URL we return false since we don't know it's safe to run the update.\n\n@throws liquibase.exception.DatabaseException", "docstring_tokens": ["Default", "implementation", "just", "look", "for", "local", "IPs", ".", "If", "the", "database", "returns", "a", "null", "URL", "we", "return", "false", "since", "we", "don", "t", "know", "it", "s", "safe", "to", "run", "the", "update", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/database/AbstractJdbcDatabase.java#L1231-L1242", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/database/AbstractJdbcDatabase.java", "func_name": "AbstractJdbcDatabase.filterRollbackVisitors", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Takes a list of SqlVisitors and returns a new list with only the SqlVisitors set to apply to rollbacks", "docstring_tokens": ["Takes", "a", "list", "of", "SqlVisitors", "and", "returns", "a", "new", "list", "with", "only", "the", "SqlVisitors", "set", "to", "apply", "to", "rollbacks"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/database/AbstractJdbcDatabase.java#L1312-L1323", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/database/AbstractJdbcDatabase.java", "func_name": "AbstractJdbcDatabase.getMaxFractionalDigitsForTimestamp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Most relational databases support 9 fractional digits, and subclasses must overwrite this method if they\nsupport less than that.\n\n@return the maxmimum number of supported fractional digits in TIMESTAMP columns", "docstring_tokens": ["Most", "relational", "databases", "support", "9", "fractional", "digits", "and", "subclasses", "must", "overwrite", "this", "method", "if", "they", "support", "less", "than", "that", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/database/AbstractJdbcDatabase.java#L1580-L1591", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/serializer/core/xml/XMLChangeLogSerializer.java", "func_name": "XMLChangeLogSerializer.checkString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Catch any characters that will cause problems when parsing the XML down the road.\n\n@throws UnexpectedLiquibaseException with the message {@link #INVALID_STRING_ENCODING_MESSAGE} if an issue is found.", "docstring_tokens": ["Catch", "any", "characters", "that", "will", "cause", "problems", "when", "parsing", "the", "XML", "down", "the", "road", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/serializer/core/xml/XMLChangeLogSerializer.java#L246-L279", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/serializer/core/xml/XMLChangeLogSerializer.java", "func_name": "XMLChangeLogSerializer.createNode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "create a XML node with nodeName and simple text content", "docstring_tokens": ["create", "a", "XML", "node", "with", "nodeName", "and", "simple", "text", "content"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/serializer/core/xml/XMLChangeLogSerializer.java#L293-L297", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/Validate.java", "func_name": "Validate.notNull", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Throws exception if passed object is null", "docstring_tokens": ["Throws", "exception", "if", "passed", "object", "is", "null"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/Validate.java#L15-L19", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/database/core/SybaseDatabase.java", "func_name": "SybaseDatabase.isSybaseProductName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "package private to facilitate testing", "docstring_tokens": ["package", "private", "to", "facilitate", "testing"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/database/core/SybaseDatabase.java#L117-L123", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/sql/visitor/SqlVisitorFactory.java", "func_name": "SqlVisitorFactory.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new Change subclass based on the given tag name.", "docstring_tokens": ["Create", "a", "new", "Change", "subclass", "based", "on", "the", "given", "tag", "name", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/sql/visitor/SqlVisitorFactory.java#L40-L50", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/NetUtil.java", "func_name": "NetUtil.getLocalHostAddress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns Local Host IP Address\n@return local Host IP address\n@throws UnknownHostException\n@throws SocketException", "docstring_tokens": ["Returns", "Local", "Host", "IP", "Address"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/NetUtil.java#L52-L59", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/NetUtil.java", "func_name": "NetUtil.getLocalHostName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns Local Host Name\n@return local Host Name\n@throws UnknownHostException\n@throws SocketException", "docstring_tokens": ["Returns", "Local", "Host", "Name"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/NetUtil.java#L67-L74", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/sqlgenerator/core/CreateProcedureGenerator.java", "func_name": "CreateProcedureGenerator.surroundWithSchemaSets", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convenience method for when the schemaName is set but we don't want to parse the body", "docstring_tokens": ["Convenience", "method", "for", "when", "the", "schemaName", "is", "set", "but", "we", "don", "t", "want", "to", "parse", "the", "body"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/sqlgenerator/core/CreateProcedureGenerator.java#L124-L135", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/sqlgenerator/core/CreateProcedureGenerator.java", "func_name": "CreateProcedureGenerator.addSchemaToText", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convenience method for other classes similar to this that want to be able to modify the procedure text to add the schema", "docstring_tokens": ["Convenience", "method", "for", "other", "classes", "similar", "to", "this", "that", "want", "to", "be", "able", "to", "modify", "the", "procedure", "text", "to", "add", "the", "schema"], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/sqlgenerator/core/CreateProcedureGenerator.java#L140-L174", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/MD5Util.java", "func_name": "MD5Util.encodeHex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts an array of bytes into an array of characters representing the hexadecimal values of each byte in order.\nThe returned array will be double the length of the passed array, as it takes two characters to represent any\ngiven byte.\n\n@param data\na byte[] to convert to Hex characters\n@return A char[] containing hexadecimal characters", "docstring_tokens": ["Converts", "an", "array", "of", "bytes", "into", "an", "array", "of", "characters", "representing", "the", "hexadecimal", "values", "of", "each", "byte", "in", "order", ".", "The", "returned", "array", "will", "be", "double", "the", "length", "of", "the", "passed", "array", "as", "it", "takes", "two", "characters", "to", "represent", "any", "given", "byte", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/MD5Util.java#L80-L93", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/snapshot/jvm/SchemaSnapshotGenerator.java", "func_name": "SchemaSnapshotGenerator.getDatabaseSchemaNames", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fetches an array of Strings with the schema names in the database.\n@param database The database from which to get the schema names\n@return An array of schema name Strings (May be an empty array)\n@throws SQLException propagated java.sql.SQLException\n@throws DatabaseException if a different problem occurs during the DBMS-specific code", "docstring_tokens": ["Fetches", "an", "array", "of", "Strings", "with", "the", "schema", "names", "in", "the", "database", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/snapshot/jvm/SchemaSnapshotGenerator.java#L125-L141", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVReader.java", "func_name": "CSVReader.readNext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads the next line from the buffer and converts to a string array.\n\n@return a string array with each comma-separated element as a separate\nentry.\n@throws IOException if bad things happen during the read", "docstring_tokens": ["Reads", "the", "next", "line", "from", "the", "buffer", "and", "converts", "to", "a", "string", "array", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVReader.java#L268-L286", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVReader.java", "func_name": "CSVReader.getNextLine", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads the next line from the file.\n\n@return the next line from the file without trailing newline\n@throws IOException if bad things happen during the read", "docstring_tokens": ["Reads", "the", "next", "line", "from", "the", "file", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVReader.java#L320-L341", "partition": "valid"} +{"repo": "liquibase/liquibase", "path": "liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVReader.java", "func_name": "CSVReader.isClosed", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks to see if the file is closed.\n@return true if the reader can no longer be read from.", "docstring_tokens": ["Checks", "to", "see", "if", "the", "file", "is", "closed", "."], "sha": "86a3b30fa6821ac981056f252f918557f5ebcc60", "url": "https://github.com/liquibase/liquibase/blob/86a3b30fa6821ac981056f252f918557f5ebcc60/liquibase-core/src/main/java/liquibase/util/csv/opencsv/CSVReader.java#L347-L359", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/DynamicConfiguration.java", "func_name": "DynamicConfiguration.startPolling", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Start polling the configuration source with the specified scheduler.\n\n@param source PolledConfigurationSource to poll\n@param scheduler AbstractPollingScheduler whose {@link AbstractPollingScheduler#schedule(Runnable)} will be\nused to determine the polling schedule", "docstring_tokens": ["Start", "polling", "the", "configuration", "source", "with", "the", "specified", "scheduler", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/DynamicConfiguration.java#L56-L61", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-zookeeper/src/main/java/com/netflix/config/source/ZooKeeperConfigurationSource.java", "func_name": "ZooKeeperConfigurationSource.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a listener to the pathChildrenCache, initializes the cache, then starts the cache-management background thread\n\n@throws Exception", "docstring_tokens": ["Adds", "a", "listener", "to", "the", "pathChildrenCache", "initializes", "the", "cache", "then", "starts", "the", "cache", "-", "management", "background", "thread"], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-zookeeper/src/main/java/com/netflix/config/source/ZooKeeperConfigurationSource.java#L88-L134", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/WebApplicationProperties.java", "func_name": "WebApplicationProperties.setAppConfFolder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The folder where the application's properties files are located.\n\n@param appConfFolderFromConfig\nthe folder as a File object where the\napplication's properties files are located\n@param baseConfigFileName\nthe \"base\" name of the properties file. For e.g. if you have\nconfig.properties, config-test.properties, then the value to\npass in is \"config\"", "docstring_tokens": ["The", "folder", "where", "the", "application", "s", "properties", "files", "are", "located", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/WebApplicationProperties.java#L158-L161", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/DynamicPropertyFactory.java", "func_name": "DynamicPropertyFactory.getIntProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new property whose value is an integer and subject to change on-the-fly.\n\n@param propName property name\n@param defaultValue default value if the property is not defined in underlying configuration\n@param propertyChangeCallback a Runnable to be called when the property is changed", "docstring_tokens": ["Create", "a", "new", "property", "whose", "value", "is", "an", "integer", "and", "subject", "to", "change", "on", "-", "the", "-", "fly", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/DynamicPropertyFactory.java#L336-L341", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/DynamicPropertyFactory.java", "func_name": "DynamicPropertyFactory.getLongProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new property whose value is a long and subject to change on-the-fly.\n\n@param propName property name\n@param defaultValue default value if the property is not defined in underlying configuration\n@param propertyChangeCallback a Runnable to be called when the property is changed", "docstring_tokens": ["Create", "a", "new", "property", "whose", "value", "is", "a", "long", "and", "subject", "to", "change", "on", "-", "the", "-", "fly", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/DynamicPropertyFactory.java#L360-L365", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/DynamicPropertyFactory.java", "func_name": "DynamicPropertyFactory.getBooleanProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new property whose value is a boolean and subject to change on-the-fly.\n\n@param propName property name\n@param defaultValue default value if the property is not defined in underlying configuration\n@param propertyChangeCallback a Runnable to be called when the property is changed", "docstring_tokens": ["Create", "a", "new", "property", "whose", "value", "is", "a", "boolean", "and", "subject", "to", "change", "on", "-", "the", "-", "fly", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/DynamicPropertyFactory.java#L384-L389", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/DynamicPropertyFactory.java", "func_name": "DynamicPropertyFactory.getFloatProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new property whose value is a float and subject to change on-the-fly.\n\n@param propName property name\n@param defaultValue default value if the property is not defined in underlying configuration\n@param propertyChangeCallback a Runnable to be called when the property is changed", "docstring_tokens": ["Create", "a", "new", "property", "whose", "value", "is", "a", "float", "and", "subject", "to", "change", "on", "-", "the", "-", "fly", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/DynamicPropertyFactory.java#L408-L413", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/DynamicPropertyFactory.java", "func_name": "DynamicPropertyFactory.getDoubleProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new property whose value is a double and subject to change on-the-fly.\n\n@param propName property name\n@param defaultValue default value if the property is not defined in underlying configuration\n@param propertyChangeCallback a Runnable to be called when the property is changed", "docstring_tokens": ["Create", "a", "new", "property", "whose", "value", "is", "a", "double", "and", "subject", "to", "change", "on", "-", "the", "-", "fly", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/DynamicPropertyFactory.java#L432-L437", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-aws/src/main/java/com/netflix/config/sources/DynamoDbDeploymentContextTableCache.java", "func_name": "DynamoDbDeploymentContextTableCache.loadPropertiesFromTable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Scan the table in dynamo and create a map with the results. In this case the map has a complex type as the value,\nso that Deployment Context is taken into account.\n\n@param table\n@return", "docstring_tokens": ["Scan", "the", "table", "in", "dynamo", "and", "create", "a", "map", "with", "the", "results", ".", "In", "this", "case", "the", "map", "has", "a", "complex", "type", "as", "the", "value", "so", "that", "Deployment", "Context", "is", "taken", "into", "account", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-aws/src/main/java/com/netflix/config/sources/DynamoDbDeploymentContextTableCache.java#L256-L283", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/DynamicProperty.java", "func_name": "DynamicProperty.getInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the DynamicProperty for a given property name.\nThis may be a previously constructed object,\nor an object constructed on-demand to satisfy the request.\n\n@param propName the name of the property\n@return a DynamicProperty object that holds the cached value of\nthe configuration property named {@code propName}", "docstring_tokens": ["Gets", "the", "DynamicProperty", "for", "a", "given", "property", "name", ".", "This", "may", "be", "a", "previously", "constructed", "object", "or", "an", "object", "constructed", "on", "-", "demand", "to", "satisfy", "the", "request", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/DynamicProperty.java#L244-L259", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/DynamicProperty.java", "func_name": "DynamicProperty.updateAllProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "return true iff _some_ value actually changed", "docstring_tokens": ["return", "true", "iff", "_some_", "value", "actually", "changed"], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/DynamicProperty.java#L598-L607", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/PropertyWrapper.java", "func_name": "PropertyWrapper.addCallback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the callback to be triggered when the value of the property is changed\n\n@param callback", "docstring_tokens": ["Add", "the", "callback", "to", "be", "triggered", "when", "the", "value", "of", "the", "property", "is", "changed"], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/PropertyWrapper.java#L149-L155", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/PropertyWrapper.java", "func_name": "PropertyWrapper.removeAllCallbacks", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove all callbacks registered through this instance of property", "docstring_tokens": ["Remove", "all", "callbacks", "registered", "through", "this", "instance", "of", "property"], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/PropertyWrapper.java#L160-L167", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/util/HttpVerbUriRegexPropertyValue.java", "func_name": "HttpVerbUriRegexPropertyValue.getVerbUriRegex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Expects property value to be of the form <uriRegex> OR <HTTP\nVerb name><space><uriRegex>\n\n@param propValue\nproperty value\n@return {@link HttpVerbUriRegexPropertyValue} instance corresponding to\npropValue if propValue is not null, null otherwise", "docstring_tokens": ["Expects", "property", "value", "to", "be", "of", "the", "form", "<", ";", "uriRegex>", ";", "OR", "<", ";", "HTTP", "Verb", "name>", ";", "<", ";", "space>", ";", "<", ";", "uriRegex>", ";"], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/util/HttpVerbUriRegexPropertyValue.java#L52-L70", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/util/ConfigurationUtils.java", "func_name": "ConfigurationUtils.loadPropertiesFromInputStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load properties from InputStream with utf-8 encoding, and it will take care of closing the input stream.\n@param fin\n@return\n@throws IOException", "docstring_tokens": ["Load", "properties", "from", "InputStream", "with", "utf", "-", "8", "encoding", "and", "it", "will", "take", "care", "of", "closing", "the", "input", "stream", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/util/ConfigurationUtils.java#L257-L271", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/util/ConfigurationUtils.java", "func_name": "OverridingPropertiesConfiguration.addProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Need to override this method for PDCLOUD-1809.", "docstring_tokens": ["Need", "to", "override", "this", "method", "for", "PDCLOUD", "-", "1809", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/util/ConfigurationUtils.java#L299-L306", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/DynamicPropertyUpdater.java", "func_name": "DynamicPropertyUpdater.updateProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Updates the properties in the config param given the contents of the result param.\n\n@param result\neither an incremental or full set of data\n@param config\nunderlying config map\n@param ignoreDeletesFromSource\nif true, deletes will be skipped", "docstring_tokens": ["Updates", "the", "properties", "in", "the", "config", "param", "given", "the", "contents", "of", "the", "result", "param", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/DynamicPropertyUpdater.java#L59-L109", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/DynamicPropertyUpdater.java", "func_name": "DynamicPropertyUpdater.addOrChangeProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add or update the property in the underlying config depending on if it exists\n\n@param name\n@param newValue\n@param config", "docstring_tokens": ["Add", "or", "update", "the", "property", "in", "the", "underlying", "config", "depending", "on", "if", "it", "exists"], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/DynamicPropertyUpdater.java#L118-L157", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/DynamicPropertyUpdater.java", "func_name": "DynamicPropertyUpdater.deleteProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Delete a property in the underlying config\n\n@param key\n@param config", "docstring_tokens": ["Delete", "a", "property", "in", "the", "underlying", "config"], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/DynamicPropertyUpdater.java#L165-L171", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/ConcurrentMapConfiguration.java", "func_name": "ConcurrentMapConfiguration.clear", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Clear the map and fire corresonding events.", "docstring_tokens": ["Clear", "the", "map", "and", "fire", "corresonding", "events", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/ConcurrentMapConfiguration.java#L278-L284", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/ConcurrentMapConfiguration.java", "func_name": "ConcurrentMapConfiguration.getProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Utility method to get a Properties object from this Configuration", "docstring_tokens": ["Utility", "method", "to", "get", "a", "Properties", "object", "from", "this", "Configuration"], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/ConcurrentMapConfiguration.java#L289-L297", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/AbstractPollingScheduler.java", "func_name": "AbstractPollingScheduler.initialLoad", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Do an initial poll from the source and apply the result to the configuration.\n\n@param source source of the configuration\n@param config Configuration to apply the polling result\n@throws RuntimeException if any error occurs in polling the configuration source", "docstring_tokens": ["Do", "an", "initial", "poll", "from", "the", "source", "and", "apply", "the", "result", "to", "the", "configuration", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/AbstractPollingScheduler.java#L75-L89", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java", "func_name": "ConcurrentCompositeConfiguration.addConfigurationAtIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a configuration with a name at a particular index.\n\n@throws IndexOutOfBoundsException", "docstring_tokens": ["Add", "a", "configuration", "with", "a", "name", "at", "a", "particular", "index", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java#L355-L368", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java", "func_name": "ConcurrentCompositeConfiguration.removeConfiguration", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove a configuration. The container configuration cannot be removed.\n\n@param config The configuration to remove", "docstring_tokens": ["Remove", "a", "configuration", ".", "The", "container", "configuration", "cannot", "be", "removed", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java#L380-L394", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java", "func_name": "ConcurrentCompositeConfiguration.removeConfiguration", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the configuration with the specified name.\n\n@param name the name of the configuration to be removed\n@return the removed configuration (null if this configuration\nwas not found)", "docstring_tokens": ["Removes", "the", "configuration", "with", "the", "specified", "name", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java#L412-L423", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java", "func_name": "ConcurrentCompositeConfiguration.getKeys", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get all the keys contained by sub configurations.\n\n@throws ConcurrentModificationException if concurrent modification happens on any sub configuration\nwhen it is iterated to get all the keys", "docstring_tokens": ["Get", "all", "the", "keys", "contained", "by", "sub", "configurations", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java#L554-L575", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java", "func_name": "ConcurrentCompositeConfiguration.getKeys", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the list of the keys contained in the sub configurations that match the\nspecified prefix.", "docstring_tokens": ["Get", "the", "list", "of", "the", "keys", "contained", "in", "the", "sub", "configurations", "that", "match", "the", "specified", "prefix", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java#L591-L607", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java", "func_name": "ConcurrentCompositeConfiguration.containsKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if the any of the sub configurations contains the specified key.\n\n@param key the key whose presence in this configuration is to be tested\n\n@return true if the configuration contains a value for this\nkey, false otherwise", "docstring_tokens": ["Check", "if", "the", "any", "of", "the", "sub", "configurations", "contains", "the", "specified", "key", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java#L648-L662", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java", "func_name": "ConcurrentCompositeConfiguration.getList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a List of objects associated with the given configuration key.\nIf the key doesn't map to an existing object, the default value\nis returned.\n\n@param key The configuration key.\n@param defaultValue The default value.\n@return The associated List of value.", "docstring_tokens": ["Get", "a", "List", "of", "objects", "associated", "with", "the", "given", "configuration", "key", ".", "If", "the", "key", "doesn", "t", "map", "to", "an", "existing", "object", "the", "default", "value", "is", "returned", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java#L674-L711", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java", "func_name": "ConcurrentCompositeConfiguration.getStringArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get an array of strings associated with the given configuration key.\nIf the key doesn't map to an existing object an empty array is returned\n\n@param key The configuration key.\n@return The associated string array if key is found.", "docstring_tokens": ["Get", "an", "array", "of", "strings", "associated", "with", "the", "given", "configuration", "key", ".", "If", "the", "key", "doesn", "t", "map", "to", "an", "existing", "object", "an", "empty", "array", "is", "returned"], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/ConcurrentCompositeConfiguration.java#L721-L735", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/ConfigurationManager.java", "func_name": "ConfigurationManager.loadCascadedPropertiesFromResources", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load resource configName.properties first. Then load configName-deploymentEnvironment.properties\ninto the system wide configuration. For example, if configName is \"application\", and deployment environment\nis \"test\", this API will first load \"application.properties\", then load \"application-test.properties\" to\noverride any property that also exist in \"application.properties\".\n\n@param configName prefix of the properties file name.\n@throws IOException\n@see DeploymentContext#getDeploymentEnvironment()", "docstring_tokens": ["Load", "resource", "configName", ".", "properties", "first", ".", "Then", "load", "configName", "-", "deploymentEnvironment", ".", "properties", "into", "the", "system", "wide", "configuration", ".", "For", "example", "if", "configName", "is", "application", "and", "deployment", "environment", "is", "test", "this", "API", "will", "first", "load", "application", ".", "properties", "then", "load", "application", "-", "test", ".", "properties", "to", "override", "any", "property", "that", "also", "exist", "in", "application", ".", "properties", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/ConfigurationManager.java#L285-L294", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/ConfigurationManager.java", "func_name": "ConfigurationManager.loadPropertiesFromConfiguration", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load properties from the specified configuration into system wide configuration", "docstring_tokens": ["Load", "properties", "from", "the", "specified", "configuration", "into", "system", "wide", "configuration"], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/ConfigurationManager.java#L341-L351", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/ConfigurationManager.java", "func_name": "ConfigurationManager.loadProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load the specified properties into system wide configuration", "docstring_tokens": ["Load", "the", "specified", "properties", "into", "system", "wide", "configuration"], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/ConfigurationManager.java#L356-L361", "partition": "valid"} +{"repo": "Netflix/archaius", "path": "archaius-core/src/main/java/com/netflix/config/sources/URLConfigurationSource.java", "func_name": "URLConfigurationSource.poll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve the content of the property files. For each poll, it always\nreturns the complete union of properties defined in all URLs. If one\nproperty is defined in content of more than one URL, the value in file later on the\nlist will override the value in the previous one.\n\n@param initial this parameter is ignored by the implementation\n@param checkPoint this parameter is ignored by the implementation\n@throws IOException IOException occurred in file operation", "docstring_tokens": ["Retrieve", "the", "content", "of", "the", "property", "files", ".", "For", "each", "poll", "it", "always", "returns", "the", "complete", "union", "of", "properties", "defined", "in", "all", "URLs", ".", "If", "one", "property", "is", "defined", "in", "content", "of", "more", "than", "one", "URL", "the", "value", "in", "file", "later", "on", "the", "list", "will", "override", "the", "value", "in", "the", "previous", "one", "."], "sha": "2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd", "url": "https://github.com/Netflix/archaius/blob/2c4b0006fdea3b65ad98f6d9dd354a09c8c4ffdd/archaius-core/src/main/java/com/netflix/config/sources/URLConfigurationSource.java#L179-L194", "partition": "valid"} +{"repo": "kiegroup/optaplanner", "path": "optaplanner-examples/src/main/java/org/optaplanner/examples/vehiclerouting/domain/location/Location.java", "func_name": "Location.getAngle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The angle relative to the direction EAST.\n@param location never null\n@return in Cartesian coordinates", "docstring_tokens": ["The", "angle", "relative", "to", "the", "direction", "EAST", "."], "sha": "b8f1459b4e6b0f7aafe941fd165bff640c11d7d5", "url": "https://github.com/kiegroup/optaplanner/blob/b8f1459b4e6b0f7aafe941fd165bff640c11d7d5/optaplanner-examples/src/main/java/org/optaplanner/examples/vehiclerouting/domain/location/Location.java#L94-L99", "partition": "valid"} +{"repo": "kiegroup/optaplanner", "path": "optaplanner-core/src/main/java/org/optaplanner/core/impl/domain/common/ConcurrentMemoization.java", "func_name": "ConcurrentMemoization.computeIfAbsent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "An overridden implementation that heavily favors read access over write access speed.\nThis is thread-safe.\n\n{@inheritDoc}", "docstring_tokens": ["An", "overridden", "implementation", "that", "heavily", "favors", "read", "access", "over", "write", "access", "speed", ".", "This", "is", "thread", "-", "safe", "."], "sha": "b8f1459b4e6b0f7aafe941fd165bff640c11d7d5", "url": "https://github.com/kiegroup/optaplanner/blob/b8f1459b4e6b0f7aafe941fd165bff640c11d7d5/optaplanner-core/src/main/java/org/optaplanner/core/impl/domain/common/ConcurrentMemoization.java#L36-L45", "partition": "valid"} +{"repo": "kiegroup/optaplanner", "path": "optaplanner-examples/src/main/java/org/optaplanner/examples/cloudbalancing/persistence/CloudBalancingGenerator.java", "func_name": "CloudBalancingGenerator.main", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "in gigabyte per hour", "docstring_tokens": ["in", "gigabyte", "per", "hour"], "sha": "b8f1459b4e6b0f7aafe941fd165bff640c11d7d5", "url": "https://github.com/kiegroup/optaplanner/blob/b8f1459b4e6b0f7aafe941fd165bff640c11d7d5/optaplanner-examples/src/main/java/org/optaplanner/examples/cloudbalancing/persistence/CloudBalancingGenerator.java#L94-L120", "partition": "valid"} +{"repo": "kiegroup/optaplanner", "path": "optaplanner-core/src/main/java/org/optaplanner/core/impl/domain/common/ReflectionHelper.java", "func_name": "ReflectionHelper.getGetterPropertyName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the JavaBeans property name of the given member.\n@param member never null\n@return null if the member is neither a field nor a getter method according to the JavaBeans standard", "docstring_tokens": ["Returns", "the", "JavaBeans", "property", "name", "of", "the", "given", "member", "."], "sha": "b8f1459b4e6b0f7aafe941fd165bff640c11d7d5", "url": "https://github.com/kiegroup/optaplanner/blob/b8f1459b4e6b0f7aafe941fd165bff640c11d7d5/optaplanner-core/src/main/java/org/optaplanner/core/impl/domain/common/ReflectionHelper.java#L52-L64", "partition": "valid"} +{"repo": "kiegroup/optaplanner", "path": "optaplanner-core/src/main/java/org/optaplanner/core/impl/domain/common/ReflectionHelper.java", "func_name": "ReflectionHelper.isGetterMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether the given method is a valid getter method according to the JavaBeans standard.\n@param method never null\n@return true if the given method is a getter method", "docstring_tokens": ["Checks", "whether", "the", "given", "method", "is", "a", "valid", "getter", "method", "according", "to", "the", "JavaBeans", "standard", "."], "sha": "b8f1459b4e6b0f7aafe941fd165bff640c11d7d5", "url": "https://github.com/kiegroup/optaplanner/blob/b8f1459b4e6b0f7aafe941fd165bff640c11d7d5/optaplanner-core/src/main/java/org/optaplanner/core/impl/domain/common/ReflectionHelper.java#L85-L96", "partition": "valid"} +{"repo": "kiegroup/optaplanner", "path": "optaplanner-core/src/main/java/org/optaplanner/core/api/score/buildin/hardmediumsoftbigdecimal/HardMediumSoftBigDecimalScoreHolder.java", "func_name": "HardMediumSoftBigDecimalScoreHolder.addHardConstraintMatch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a hard constraint of specified weighting.\n\nThis is typically used in Drools scoring to add a hard constraint match (negative value to indicate an infeasible\nsolution).\n\n@param kcontext never null, the magic variable in DRL\n@param hardWeight never null, higher is better, negative for a penalty, positive for a reward", "docstring_tokens": ["Add", "a", "hard", "constraint", "of", "specified", "weighting", "."], "sha": "b8f1459b4e6b0f7aafe941fd165bff640c11d7d5", "url": "https://github.com/kiegroup/optaplanner/blob/b8f1459b4e6b0f7aafe941fd165bff640c11d7d5/optaplanner-core/src/main/java/org/optaplanner/core/api/score/buildin/hardmediumsoftbigdecimal/HardMediumSoftBigDecimalScoreHolder.java#L181-L186", "partition": "valid"} +{"repo": "kiegroup/optaplanner", "path": "optaplanner-core/src/main/java/org/optaplanner/core/api/score/buildin/hardmediumsoftbigdecimal/HardMediumSoftBigDecimalScoreHolder.java", "func_name": "HardMediumSoftBigDecimalScoreHolder.addMediumConstraintMatch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a medium level constraint of specified weighting.\n\nThis is typically used in Drools scoring to add a medium priority constraint match.\n\n@param kcontext never null, the magic variable in DRL\n@param mediumWeight never null, higher is better, negative for a penalty, positive for a reward", "docstring_tokens": ["Add", "a", "medium", "level", "constraint", "of", "specified", "weighting", "."], "sha": "b8f1459b4e6b0f7aafe941fd165bff640c11d7d5", "url": "https://github.com/kiegroup/optaplanner/blob/b8f1459b4e6b0f7aafe941fd165bff640c11d7d5/optaplanner-core/src/main/java/org/optaplanner/core/api/score/buildin/hardmediumsoftbigdecimal/HardMediumSoftBigDecimalScoreHolder.java#L196-L201", "partition": "valid"} +{"repo": "kiegroup/optaplanner", "path": "optaplanner-core/src/main/java/org/optaplanner/core/api/score/buildin/hardmediumsoftbigdecimal/HardMediumSoftBigDecimalScoreHolder.java", "func_name": "HardMediumSoftBigDecimalScoreHolder.addSoftConstraintMatch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a soft constraint match of specified weighting.\n\nThis is typically used in Drools scoring to add a low priority constraint match.\n\n@param kcontext never null, the magic variable in DRL\n@param softWeight never null, higher is better, negative for a penalty, positive for a reward", "docstring_tokens": ["Add", "a", "soft", "constraint", "match", "of", "specified", "weighting", "."], "sha": "b8f1459b4e6b0f7aafe941fd165bff640c11d7d5", "url": "https://github.com/kiegroup/optaplanner/blob/b8f1459b4e6b0f7aafe941fd165bff640c11d7d5/optaplanner-core/src/main/java/org/optaplanner/core/api/score/buildin/hardmediumsoftbigdecimal/HardMediumSoftBigDecimalScoreHolder.java#L211-L216", "partition": "valid"} +{"repo": "kiegroup/optaplanner", "path": "optaplanner-core/src/main/java/org/optaplanner/core/config/domain/ReflectionsWorkaroundClasspathHelper.java", "func_name": "ReflectionsWorkaroundClasspathHelper.cleanPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Cleans the URL.\n\n@param url the URL to clean, not null\n@return the path, not null", "docstring_tokens": ["Cleans", "the", "URL", "."], "sha": "b8f1459b4e6b0f7aafe941fd165bff640c11d7d5", "url": "https://github.com/kiegroup/optaplanner/blob/b8f1459b4e6b0f7aafe941fd165bff640c11d7d5/optaplanner-core/src/main/java/org/optaplanner/core/config/domain/ReflectionsWorkaroundClasspathHelper.java#L249-L264", "partition": "valid"} +{"repo": "kiegroup/optaplanner", "path": "optaplanner-examples/src/main/java/org/optaplanner/examples/investment/domain/InvestmentSolution.java", "func_name": "InvestmentSolution.calculateStandardDeviationSquaredFemtos", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Not incremental.", "docstring_tokens": ["Not", "incremental", "."], "sha": "b8f1459b4e6b0f7aafe941fd165bff640c11d7d5", "url": "https://github.com/kiegroup/optaplanner/blob/b8f1459b4e6b0f7aafe941fd165bff640c11d7d5/optaplanner-examples/src/main/java/org/optaplanner/examples/investment/domain/InvestmentSolution.java#L137-L153", "partition": "valid"} +{"repo": "kiegroup/optaplanner", "path": "optaplanner-core/src/main/java/org/optaplanner/core/impl/domain/solution/descriptor/SolutionDescriptor.java", "func_name": "SolutionDescriptor.checkIfProblemFactsExist", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Only called if Drools score calculation is used.", "docstring_tokens": ["Only", "called", "if", "Drools", "score", "calculation", "is", "used", "."], "sha": "b8f1459b4e6b0f7aafe941fd165bff640c11d7d5", "url": "https://github.com/kiegroup/optaplanner/blob/b8f1459b4e6b0f7aafe941fd165bff640c11d7d5/optaplanner-core/src/main/java/org/optaplanner/core/impl/domain/solution/descriptor/SolutionDescriptor.java#L303-L311", "partition": "valid"} +{"repo": "kiegroup/optaplanner", "path": "optaplanner-core/src/main/java/org/optaplanner/core/impl/domain/solution/descriptor/SolutionDescriptor.java", "func_name": "SolutionDescriptor.getProblemScale", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates an indication on how big this problem instance is.\nThis is intentionally very loosely defined for now.\n@param solution never null\n@return {@code >= 0}", "docstring_tokens": ["Calculates", "an", "indication", "on", "how", "big", "this", "problem", "instance", "is", ".", "This", "is", "intentionally", "very", "loosely", "defined", "for", "now", "."], "sha": "b8f1459b4e6b0f7aafe941fd165bff640c11d7d5", "url": "https://github.com/kiegroup/optaplanner/blob/b8f1459b4e6b0f7aafe941fd165bff640c11d7d5/optaplanner-core/src/main/java/org/optaplanner/core/impl/domain/solution/descriptor/SolutionDescriptor.java#L1057-L1065", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-restli-client/src/main/java/com/linkedin/restli/client/ParSeqRestClient.java", "func_name": "ParSeqRestClient.generateTaskName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates a task name for the request.\n@param request\n@return a task name", "docstring_tokens": ["Generates", "a", "task", "name", "for", "the", "request", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-restli-client/src/main/java/com/linkedin/restli/client/ParSeqRestClient.java#L185-L188", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-restli-client/src/main/java/com/linkedin/restli/client/ParSeqRestClient.java", "func_name": "ParSeqRestClient.hasRequestContextTimeout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check whether per-request timeout is specified in the given request context.", "docstring_tokens": ["Check", "whether", "per", "-", "request", "timeout", "is", "specified", "in", "the", "given", "request", "context", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-restli-client/src/main/java/com/linkedin/restli/client/ParSeqRestClient.java#L209-L212", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-restli-client/src/main/java/com/linkedin/restli/client/ParSeqRestClient.java", "func_name": "ParSeqRestClient.needApplyTaskTimeout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "check whether we need to apply timeout to a rest.li request task.", "docstring_tokens": ["check", "whether", "we", "need", "to", "apply", "timeout", "to", "a", "rest", ".", "li", "request", "task", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-restli-client/src/main/java/com/linkedin/restli/client/ParSeqRestClient.java#L215-L218", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-restli-client/src/main/java/com/linkedin/restli/client/ParSeqRestClient.java", "func_name": "ParSeqRestClient.createTaskWithTimeout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Apply timeout to a ParSeq rest.li request task through parseq timer task.", "docstring_tokens": ["Apply", "timeout", "to", "a", "ParSeq", "rest", ".", "li", "request", "task", "through", "parseq", "timer", "task", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-restli-client/src/main/java/com/linkedin/restli/client/ParSeqRestClient.java#L221-L235", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-tracevis-server/src/main/java/com/linkedin/parseq/GraphvizEngine.java", "func_name": "GraphvizEngine.build", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return task that has general HTTP status and body information based on the build task's result.", "docstring_tokens": ["Return", "task", "that", "has", "general", "HTTP", "status", "and", "body", "information", "based", "on", "the", "build", "task", "s", "result", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-tracevis-server/src/main/java/com/linkedin/parseq/GraphvizEngine.java#L50-L111", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-tracevis-server/src/main/java/com/linkedin/parseq/GraphvizEngine.java", "func_name": "GraphvizEngine.getBuildTask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns task that builds graph using graphviz. Returned task might be shared with other concurrent requests.", "docstring_tokens": ["Returns", "task", "that", "builds", "graph", "using", "graphviz", ".", "Returned", "task", "might", "be", "shared", "with", "other", "concurrent", "requests", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-tracevis-server/src/main/java/com/linkedin/parseq/GraphvizEngine.java#L116-L131", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-tracevis-server/src/main/java/com/linkedin/parseq/GraphvizEngine.java", "func_name": "GraphvizEngine.createNewBuildTask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns new task that builds graph using graphviz.", "docstring_tokens": ["Returns", "new", "task", "that", "builds", "graph", "using", "graphviz", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-tracevis-server/src/main/java/com/linkedin/parseq/GraphvizEngine.java#L136-L157", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-tracevis-server/src/main/java/com/linkedin/parseq/GraphvizEngine.java", "func_name": "GraphvizEngine.writeGenericFailureInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes error info to a String.", "docstring_tokens": ["Writes", "error", "info", "to", "a", "String", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-tracevis-server/src/main/java/com/linkedin/parseq/GraphvizEngine.java#L175-L183", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/trace/Trace.java", "func_name": "Trace.single", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Need to fix in the next major version release.", "docstring_tokens": ["Need", "to", "fix", "in", "the", "next", "major", "version", "release", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/trace/Trace.java#L39-L41", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-batching/src/main/java/com/linkedin/parseq/batching/BatchingStrategy.java", "func_name": "BatchingStrategy.batchable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method returns Task that returns value for a single key allowing this strategy to batch operations.\n@param desc description of the task\n@param key key\n@return Task that returns value for a single key allowing this strategy to batch operations", "docstring_tokens": ["This", "method", "returns", "Task", "that", "returns", "value", "for", "a", "single", "key", "allowing", "this", "strategy", "to", "batch", "operations", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-batching/src/main/java/com/linkedin/parseq/batching/BatchingStrategy.java#L113-L133", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-batching/src/main/java/com/linkedin/parseq/batching/BatchingStrategy.java", "func_name": "BatchingStrategy.getBatchName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Overriding this method allows providing custom name for a batch. Name will appear in the\nParSeq trace as a description of the task that executes the batch.\n@param batch batch to be described\n@param group group to be described\n@return name for the batch and group", "docstring_tokens": ["Overriding", "this", "method", "allows", "providing", "custom", "name", "for", "a", "batch", ".", "Name", "will", "appear", "in", "the", "ParSeq", "trace", "as", "a", "description", "of", "the", "task", "that", "executes", "the", "batch", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-batching/src/main/java/com/linkedin/parseq/batching/BatchingStrategy.java#L273-L275", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-batching/src/main/java/com/linkedin/parseq/batching/BatchAggregationTimeMetric.java", "func_name": "BatchAggregationTimeMetric.harvest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Allows consuming histogram and returning a result.\nHistogram passed to the consumer includes stable, consistent view\nof all values accumulated since last harvest.\nThis method is thread safe.\n@param consumer consumer for a harvested histogram\n@param return type of a passed in function\n@return a result of a passed in function", "docstring_tokens": ["Allows", "consuming", "histogram", "and", "returning", "a", "result", ".", "Histogram", "passed", "to", "the", "consumer", "includes", "stable", "consistent", "view", "of", "all", "values", "accumulated", "since", "last", "harvest", ".", "This", "method", "is", "thread", "safe", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-batching/src/main/java/com/linkedin/parseq/batching/BatchAggregationTimeMetric.java#L64-L68", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-restli-client/src/main/java/com/linkedin/restli/client/config/RequestConfigProviderImpl.java", "func_name": "RequestConfigProviderImpl.createDefaultConfig", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Default configuration map must specify default values for all properties.", "docstring_tokens": ["Default", "configuration", "map", "must", "specify", "default", "values", "for", "all", "properties", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-restli-client/src/main/java/com/linkedin/restli/client/config/RequestConfigProviderImpl.java#L107-L113", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/FusionTask.java", "func_name": "FusionTask.compose", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Composes transformation with the transformation of the predecessor.", "docstring_tokens": ["Composes", "transformation", "with", "the", "transformation", "of", "the", "predecessor", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/FusionTask.java#L121-L160", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/FusionTask.java", "func_name": "FusionTask.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create new FusionTask with an async predecessor.", "docstring_tokens": ["Create", "new", "FusionTask", "with", "an", "async", "predecessor", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/FusionTask.java#L281-L283", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/EngineBuilder.java", "func_name": "EngineBuilder.setEngineProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets an engine related property on the engine.\nThat property can then be accessed by tasks via the Context.\n\n@param key\n@param value\n@return this builder", "docstring_tokens": ["Sets", "an", "engine", "related", "property", "on", "the", "engine", ".", "That", "property", "can", "then", "be", "accessed", "by", "tasks", "via", "the", "Context", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/EngineBuilder.java#L158-L161", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/promise/Promises.java", "func_name": "Promises.value", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new promise that is already resolved with the given value.\n\n@param value the value for the new promise\n@param the type of the value for the promise\n@return the promise", "docstring_tokens": ["Creates", "a", "new", "promise", "that", "is", "already", "resolved", "with", "the", "given", "value", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/promise/Promises.java#L44-L54", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/promise/Promises.java", "func_name": "Promises.propagateResult", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copies the value or error from the source promise to the destination\npromise.\n\n@param source the source promise\n@param dest the destination promise\n@param the value type for both promises", "docstring_tokens": ["Copies", "the", "value", "or", "error", "from", "the", "source", "promise", "to", "the", "destination", "promise", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/promise/Promises.java#L85-L87", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-examples/src/main/java/com/linkedin/parseq/example/domain/Examples.java", "func_name": "Examples.createResilientSummary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "handles failures delivering degraded experience", "docstring_tokens": ["handles", "failures", "delivering", "degraded", "experience"], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-examples/src/main/java/com/linkedin/parseq/example/domain/Examples.java#L43-L45", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-examples/src/main/java/com/linkedin/parseq/example/domain/Examples.java", "func_name": "Examples.createResponsiveSummary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "handles failures delivering degraded experience in timely fashion", "docstring_tokens": ["handles", "failures", "delivering", "degraded", "experience", "in", "timely", "fashion"], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-examples/src/main/java/com/linkedin/parseq/example/domain/Examples.java#L50-L52", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-examples/src/main/java/com/linkedin/parseq/example/domain/Examples.java", "func_name": "Examples.createConnectionsSummaries", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "create list of summaries, one per each connection", "docstring_tokens": ["create", "list", "of", "summaries", "one", "per", "each", "connection"], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-examples/src/main/java/com/linkedin/parseq/example/domain/Examples.java#L78-L80", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/Tasks.java", "func_name": "Tasks.withSideEffect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a task that will run another task as a side effect once the primary task\ncompletes successfully. The side effect will not be run if the primary task fails or\nis canceled. The entire task is marked done once the base task completes, even if\nthe side effect has not been run.\n\n@param parent the primary task.\n@param sideEffect the side effect of the primary task.\n@param the result value of the parent task, and the resulting task.\n@return a new task that will be done once parent completes, but has the given side effect.\n@deprecated As of 2.0.0, replaced by {@link Task#withSideEffect(String, com.linkedin.parseq.function.Function1) Task.withSideEffect}\n@see Task#withSideEffect(String, com.linkedin.parseq.function.Function1) Task.withSideEffect", "docstring_tokens": ["Creates", "a", "task", "that", "will", "run", "another", "task", "as", "a", "side", "effect", "once", "the", "primary", "task", "completes", "successfully", ".", "The", "side", "effect", "will", "not", "be", "run", "if", "the", "primary", "task", "fails", "or", "is", "canceled", ".", "The", "entire", "task", "is", "marked", "done", "once", "the", "base", "task", "completes", "even", "if", "the", "side", "effect", "has", "not", "been", "run", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/Tasks.java#L250-L253", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/Tasks.java", "func_name": "Tasks.timeoutWithError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new task that wraps the given task. If the given task finishes\nbefore the timeout occurs then this task takes on the value of the task.\nIf the task does not complete in the given time then this task will\nhave a TimeoutException. The wrapped task may be cancelled when a timeout\noccurs.\n\n@param time the time to wait before timing out\n@param unit the units for the time\n@param task the task to wrap\n@param the value type for the task\n@return the new timeout task\n@deprecated As of 2.0.0, replaced by {@link Task#withTimeout(long, TimeUnit) Task.withTimeout}.\n@see Task#withTimeout(long, TimeUnit) Task.withTimeout", "docstring_tokens": ["Creates", "a", "new", "task", "that", "wraps", "the", "given", "task", ".", "If", "the", "given", "task", "finishes", "before", "the", "timeout", "occurs", "then", "this", "task", "takes", "on", "the", "value", "of", "the", "task", ".", "If", "the", "task", "does", "not", "complete", "in", "the", "given", "time", "then", "this", "task", "will", "have", "a", "TimeoutException", ".", "The", "wrapped", "task", "may", "be", "cancelled", "when", "a", "timeout", "occurs", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/Tasks.java#L379-L382", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-zk-client/src/main/java/com/linkedin/parseq/zk/client/ZKUtil.java", "func_name": "ZKUtil.findNodeWithNextLowestSN", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds node with next lowest sequence number than the given node within\nthe given list of nodes.\n\n@param children list of children\n@param node the given node to compare sequence number with\n@return the node with next lowest sequence number", "docstring_tokens": ["Finds", "node", "with", "next", "lowest", "sequence", "number", "than", "the", "given", "node", "within", "the", "given", "list", "of", "nodes", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-zk-client/src/main/java/com/linkedin/parseq/zk/client/ZKUtil.java#L78-L92", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/BaseTask.java", "func_name": "BaseTask.appendTaskStackTrace", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Concatenate stack traces if kept the original stack trace from the task creation", "docstring_tokens": ["Concatenate", "stack", "traces", "if", "kept", "the", "original", "stack", "trace", "from", "the", "task", "creation"], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/BaseTask.java#L331-L390", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/internal/ExecutionMonitor.java", "func_name": "ExecutionMonitor.monitor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Main loop of monitoring thread.", "docstring_tokens": ["Main", "loop", "of", "monitoring", "thread", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/internal/ExecutionMonitor.java#L159-L170", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/internal/ExecutionMonitor.java", "func_name": "ExecutionMonitor.checkForStall", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check how much we missed scheduled wake up and if it is larger than _minStallNano\nthen consider it a stall and remember it.", "docstring_tokens": ["Check", "how", "much", "we", "missed", "scheduled", "wake", "up", "and", "if", "it", "is", "larger", "than", "_minStallNano", "then", "consider", "it", "a", "stall", "and", "remember", "it", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/internal/ExecutionMonitor.java#L228-L240", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/retry/RetriableTask.java", "func_name": "RetriableTask.withRetryPolicy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A helper for creating task wrapper with associated retry policy.\n\n@param name A name of the task that needs to be retried.\n@param policy Retry policy that will control this task's behavior.\n@param taskFunction A task generator function. It will receive a zero-based attempt number as a parameter.\n@param Type of a task result.", "docstring_tokens": ["A", "helper", "for", "creating", "task", "wrapper", "with", "associated", "retry", "policy", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/retry/RetriableTask.java#L66-L71", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/retry/RetriableTask.java", "func_name": "RetriableTask.wrap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a wrapped task with associated recovery task that will retry if necessary.", "docstring_tokens": ["Create", "a", "wrapped", "task", "with", "associated", "recovery", "task", "that", "will", "retry", "if", "necessary", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/retry/RetriableTask.java#L74-L105", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/retry/RetriableTask.java", "func_name": "RetriableTask.retry", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Invoke event monitors and schedule a retry if policy allows.", "docstring_tokens": ["Invoke", "event", "monitors", "and", "schedule", "a", "retry", "if", "policy", "allows", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/retry/RetriableTask.java#L108-L126", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/retry/RetriableTask.java", "func_name": "RetriableTask.run", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Starts a retriable task", "docstring_tokens": ["Starts", "a", "retriable", "task"], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/retry/RetriableTask.java#L129-L134", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-restli-client/src/main/java/com/linkedin/restli/client/config/ConfigValueCoercers.java", "func_name": "ConfigValueCoercers.failCoercion", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates a consistent exception that can be used if coercion fails.", "docstring_tokens": ["Generates", "a", "consistent", "exception", "that", "can", "be", "used", "if", "coercion", "fails", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-restli-client/src/main/java/com/linkedin/restli/client/config/ConfigValueCoercers.java#L114-L118", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-restli-client/src/main/java/com/linkedin/restli/client/ParSeqRestliClientBuilder.java", "func_name": "ParSeqRestliClientBuilder.setRestClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the underlying Rest.li client implementation.\n\n@param client The underlying Rest.li client\n@deprecated Use #setClient instead\n@return The builder itself", "docstring_tokens": ["Sets", "the", "underlying", "Rest", ".", "li", "client", "implementation", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-restli-client/src/main/java/com/linkedin/restli/client/ParSeqRestliClientBuilder.java#L101-L106", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-zk-client/src/main/java/com/linkedin/parseq/zk/recipes/ZKLock.java", "func_name": "ZKLock.acquire", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Try to acquire the lock within the given deadline.", "docstring_tokens": ["Try", "to", "acquire", "the", "lock", "within", "the", "given", "deadline", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-zk-client/src/main/java/com/linkedin/parseq/zk/recipes/ZKLock.java#L99-L110", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-zk-client/src/main/java/com/linkedin/parseq/zk/recipes/ZKLock.java", "func_name": "ZKLock.release", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Try to release the lock.", "docstring_tokens": ["Try", "to", "release", "the", "lock", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-zk-client/src/main/java/com/linkedin/parseq/zk/recipes/ZKLock.java#L115-L136", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq/src/main/java/com/linkedin/parseq/Engine.java", "func_name": "Engine.tryAcquirePermit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "rate limiter and then from plan class level rate limit if specified.", "docstring_tokens": ["rate", "limiter", "and", "then", "from", "plan", "class", "level", "rate", "limit", "if", "specified", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq/src/main/java/com/linkedin/parseq/Engine.java#L471-L474", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-http-client/src/main/java/com/linkedin/parseq/httpclient/HttpClient.java", "func_name": "HttpClient.getNingClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns raw http client. If client has not been initialized yet\nthen new client is created with default configuration.\n@return raw http client", "docstring_tokens": ["Returns", "raw", "http", "client", ".", "If", "client", "has", "not", "been", "initialized", "yet", "then", "new", "client", "is", "created", "with", "default", "configuration", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-http-client/src/main/java/com/linkedin/parseq/httpclient/HttpClient.java#L18-L23", "partition": "valid"} +{"repo": "linkedin/parseq", "path": "subprojects/parseq-http-client/src/main/java/com/linkedin/parseq/httpclient/HttpClient.java", "func_name": "HttpClient.initialize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initializes HttpClient with custom configuration.\n@param cfg client configuration\n@see AsyncHttpClientConfig", "docstring_tokens": ["Initializes", "HttpClient", "with", "custom", "configuration", "."], "sha": "35b194c2837ad45c36e80c2333c5feeb561ca24e", "url": "https://github.com/linkedin/parseq/blob/35b194c2837ad45c36e80c2333c5feeb561ca24e/subprojects/parseq-http-client/src/main/java/com/linkedin/parseq/httpclient/HttpClient.java#L30-L35", "partition": "valid"} +{"repo": "noties/Markwon", "path": "markwon-html/src/main/java/ru/noties/markwon/html/jsoup/parser/CharacterReader.java", "func_name": "CharacterReader.consumeToAny", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read characters until the first of any delimiters is found.\n\n@param chars delimiters to scan for\n@return characters read up to the matched delimiter.", "docstring_tokens": ["Read", "characters", "until", "the", "first", "of", "any", "delimiters", "is", "found", "."], "sha": "77b34552b93da3b6e2a23ec16a7993c9970a0d62", "url": "https://github.com/noties/Markwon/blob/77b34552b93da3b6e2a23ec16a7993c9970a0d62/markwon-html/src/main/java/ru/noties/markwon/html/jsoup/parser/CharacterReader.java#L210-L226", "partition": "valid"} +{"repo": "noties/Markwon", "path": "markwon-html/src/main/java/ru/noties/markwon/html/jsoup/helper/Validate.java", "func_name": "Validate.noNullElements", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validates that the array contains no null elements\n@param objects the array to test\n@param msg message to output if validation fails", "docstring_tokens": ["Validates", "that", "the", "array", "contains", "no", "null", "elements"], "sha": "77b34552b93da3b6e2a23ec16a7993c9970a0d62", "url": "https://github.com/noties/Markwon/blob/77b34552b93da3b6e2a23ec16a7993c9970a0d62/markwon-html/src/main/java/ru/noties/markwon/html/jsoup/helper/Validate.java#L80-L84", "partition": "valid"} +{"repo": "noties/Markwon", "path": "markwon-html/src/main/java/ru/noties/markwon/html/jsoup/helper/Validate.java", "func_name": "Validate.notEmpty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validates that the string is not empty\n@param string the string to test\n@param msg message to output if validation fails", "docstring_tokens": ["Validates", "that", "the", "string", "is", "not", "empty"], "sha": "77b34552b93da3b6e2a23ec16a7993c9970a0d62", "url": "https://github.com/noties/Markwon/blob/77b34552b93da3b6e2a23ec16a7993c9970a0d62/markwon-html/src/main/java/ru/noties/markwon/html/jsoup/helper/Validate.java#L100-L103", "partition": "valid"} +{"repo": "siyamed/android-shape-imageview", "path": "library/src/main/java/com/github/siyamed/shapeimageview/path/parser/TransformParser.java", "func_name": "TransformParser.parseTransform", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "delims are whitespace or ,'s", "docstring_tokens": ["delims", "are", "whitespace", "or", "s"], "sha": "e38e701b228e97229216d145f524deeb12152bfe", "url": "https://github.com/siyamed/android-shape-imageview/blob/e38e701b228e97229216d145f524deeb12152bfe/library/src/main/java/com/github/siyamed/shapeimageview/path/parser/TransformParser.java#L12-L25", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/gridfs/GridFS.java", "func_name": "GridFS.getFileList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a sorted, filtered list of files stored in this gridfs.\n\n@param query filter to apply\n@param sort sorting to apply\n@return cursor of file objects", "docstring_tokens": ["Gets", "a", "sorted", "filtered", "list", "of", "files", "stored", "in", "this", "gridfs", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/gridfs/GridFS.java#L148-L150", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/gridfs/GridFS.java", "func_name": "GridFS.find", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds a list of files matching the given filename.\n\n@param filename the filename to look for\n@param sort the fields to sort with\n@return list of gridfs files\n@throws com.mongodb.MongoException if the operation fails", "docstring_tokens": ["Finds", "a", "list", "of", "files", "matching", "the", "given", "filename", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/gridfs/GridFS.java#L215-L217", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/gridfs/GridFS.java", "func_name": "GridFS.find", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds a list of files matching the given query.\n\n@param query the filter to apply\n@param sort the fields to sort with\n@return list of gridfs files\n@throws com.mongodb.MongoException if the operation fails", "docstring_tokens": ["Finds", "a", "list", "of", "files", "matching", "the", "given", "query", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/gridfs/GridFS.java#L238-L254", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/gridfs/GridFS.java", "func_name": "GridFS.remove", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the file matching the given id.\n\n@param id the id of the file to be removed\n@throws com.mongodb.MongoException if the operation fails", "docstring_tokens": ["Removes", "the", "file", "matching", "the", "given", "id", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/gridfs/GridFS.java#L276-L283", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/gridfs/GridFS.java", "func_name": "GridFS.remove", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes all files matching the given query.\n\n@param query filter to apply\n@throws com.mongodb.MongoException if the operation fails", "docstring_tokens": ["Removes", "all", "files", "matching", "the", "given", "query", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/gridfs/GridFS.java#L305-L313", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/types/BasicBSONList.java", "func_name": "BasicBSONList.put", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Puts a value at an index. For interface compatibility. Must be passed a String that is parsable to an int.\n\n@param key the index at which to insert the value\n@param v the value to insert\n@return the value\n@throws IllegalArgumentException if {@code key} cannot be parsed into an {@code int}", "docstring_tokens": ["Puts", "a", "value", "at", "an", "index", ".", "For", "interface", "compatibility", ".", "Must", "be", "passed", "a", "String", "that", "is", "parsable", "to", "an", "int", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/types/BasicBSONList.java#L62-L65", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/types/BasicBSONList.java", "func_name": "BasicBSONList.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a value at an index. For interface compatibility. Must be passed a String that is parsable to an int.\n\n@param key the index\n@return the value, if found, or null\n@throws IllegalArgumentException if {@code key} cannot be parsed into an {@code int}", "docstring_tokens": ["Gets", "a", "value", "at", "an", "index", ".", "For", "interface", "compatibility", ".", "Must", "be", "passed", "a", "String", "that", "is", "parsable", "to", "an", "int", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/types/BasicBSONList.java#L104-L113", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/codecs/pojo/TypeData.java", "func_name": "TypeData.builder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new builder for ClassTypeData\n\n@param type the class for the type\n@param the type\n@return the builder", "docstring_tokens": ["Creates", "a", "new", "builder", "for", "ClassTypeData"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/codecs/pojo/TypeData.java#L46-L48", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/operation/ListIndexesOperation.java", "func_name": "ListIndexesOperation.getMaxTime", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the maximum execution time on the server for this operation. The default is 0, which places no limit on the execution time.\n\n@param timeUnit the time unit to return the result in\n@return the maximum execution time in the given time unit\n@mongodb.driver.manual reference/operator/meta/maxTimeMS/ Max Time", "docstring_tokens": ["Gets", "the", "maximum", "execution", "time", "on", "the", "server", "for", "this", "operation", ".", "The", "default", "is", "0", "which", "places", "no", "limit", "on", "the", "execution", "time", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/operation/ListIndexesOperation.java#L123-L126", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/MongoCompressor.java", "func_name": "MongoCompressor.withProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new compressor from this compressor with the given property added to it.\n\n@param key the property key\n@param value the property value\n@param the property value type\n@return the new compressor", "docstring_tokens": ["Creates", "a", "new", "compressor", "from", "this", "compressor", "with", "the", "given", "property", "added", "to", "it", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/MongoCompressor.java#L126-L128", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/ReplicaSetStatus.java", "func_name": "ReplicaSetStatus.getName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the name of the replica set.\n\n@return the name of the replica set.", "docstring_tokens": ["Get", "the", "name", "of", "the", "replica", "set", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/ReplicaSetStatus.java#L47-L52", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/ReplicaSetStatus.java", "func_name": "ReplicaSetStatus.getMaster", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the ServerAddress of the master server in this replica set.\n\n@return master or null if don't have one\n@throws MongoException if there's a failure", "docstring_tokens": ["Gets", "the", "ServerAddress", "of", "the", "master", "server", "in", "this", "replica", "set", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/ReplicaSetStatus.java#L60-L65", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/ReplicaSetStatus.java", "func_name": "ReplicaSetStatus.isMaster", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks to see if a given server is the primary server in this replica set.\n\n@param serverAddress the server to compare\n@return true if the given ServerAddress is the current Master/Primary", "docstring_tokens": ["Checks", "to", "see", "if", "a", "given", "server", "is", "the", "primary", "server", "in", "this", "replica", "set", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/ReplicaSetStatus.java#L73-L76", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/ReplicaSetStatus.java", "func_name": "ReplicaSetStatus.getMaxBsonObjectSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the maximum size for a BSON object supported by the current master server. Note that this value may change over time depending\non which server is master.\n\n@return the maximum size, or 0 if not obtained from servers yet.\n@throws MongoException if there's a failure", "docstring_tokens": ["Gets", "the", "maximum", "size", "for", "a", "BSON", "object", "supported", "by", "the", "current", "master", "server", ".", "Note", "that", "this", "value", "may", "change", "over", "time", "depending", "on", "which", "server", "is", "master", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/ReplicaSetStatus.java#L85-L89", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/QueryBuilder.java", "func_name": "QueryBuilder.put", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a new key to the query if not present yet. Sets this key as the current key.\n\n@param key MongoDB document key\n@return {@code this}", "docstring_tokens": ["Adds", "a", "new", "key", "to", "the", "query", "if", "not", "present", "yet", ".", "Sets", "this", "key", "as", "the", "current", "key", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/QueryBuilder.java#L69-L75", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-sync/src/main/com/mongodb/client/internal/ClientSessionImpl.java", "func_name": "ClientSessionImpl.applyMajorityWriteConcernToTransactionOptions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Apply majority write concern if the commit is to be retried.", "docstring_tokens": ["Apply", "majority", "write", "concern", "if", "the", "commit", "is", "to", "be", "retried", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-sync/src/main/com/mongodb/client/internal/ClientSessionImpl.java#L227-L240", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/CommandResult.java", "func_name": "CommandResult.ok", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the \"ok\" field, which is whether this command executed correctly or not.\n\n@return true if the command executed without error.", "docstring_tokens": ["Gets", "the", "ok", "field", "which", "is", "whether", "this", "command", "executed", "correctly", "or", "not", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/CommandResult.java#L50-L59", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/CommandResult.java", "func_name": "CommandResult.getErrorMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the error message associated with a failed command.\n\n@return The error message or null", "docstring_tokens": ["Gets", "the", "error", "message", "associated", "with", "a", "failed", "command", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/CommandResult.java#L66-L73", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/codecs/pojo/PropertyModelBuilder.java", "func_name": "PropertyModelBuilder.readAnnotations", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the read annotations, to be applied when serializing to BSON\n\n@param annotations the read annotations\n@return this", "docstring_tokens": ["Sets", "the", "read", "annotations", "to", "be", "applied", "when", "serializing", "to", "BSON"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/codecs/pojo/PropertyModelBuilder.java#L150-L153", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/operation/IndexHelper.java", "func_name": "IndexHelper.getIndexNames", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a list of index names for the given list of index models\n\n@param indexes the index models\n@param codecRegistry the codec registry to convert each Bson key to a BsonDocument\n@return the list of index names", "docstring_tokens": ["Get", "a", "list", "of", "index", "names", "for", "the", "given", "list", "of", "index", "models"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/operation/IndexHelper.java#L41-L52", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/operation/IndexHelper.java", "func_name": "IndexHelper.generateIndexName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convenience method to generate an index name from the set of fields it is over.\n\n@return a string representation of this index's fields", "docstring_tokens": ["Convenience", "method", "to", "generate", "an", "index", "name", "from", "the", "set", "of", "fields", "it", "is", "over", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/operation/IndexHelper.java#L59-L74", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/gridfs/GridFSFile.java", "func_name": "GridFSFile.validate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the MD5 matches between the database and the local file. This should be called after transferring a file.\n\n@throws MongoException if there's a failure\n@deprecated there is no replacement for this method", "docstring_tokens": ["Verifies", "that", "the", "MD5", "matches", "between", "the", "database", "and", "the", "local", "file", ".", "This", "should", "be", "called", "after", "transferring", "a", "file", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/gridfs/GridFSFile.java#L78-L101", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/codecs/BsonTypeCodecMap.java", "func_name": "BsonTypeCodecMap.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the Codec mapped to the given bson type.\n\n@param bsonType the non-null BsonType\n@return the non-null Codec", "docstring_tokens": ["Gets", "the", "Codec", "mapped", "to", "the", "given", "bson", "type", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/codecs/BsonTypeCodecMap.java#L61-L72", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-async/src/main/com/mongodb/async/client/MongoIterableSubscription.java", "func_name": "MongoIterableSubscription.calculateBatchSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the batchSize to be used with the cursor.\n\n

If the batch size has been set on the MongoIterable that is used, otherwise the requested demand is used. When using requested\ndemand, values less than 2 would close the cursor so that is the minimum batchSize and `Integer.MAX_VALUE` is the maximum.

\n\n@return the batchSize to use", "docstring_tokens": ["Returns", "the", "batchSize", "to", "be", "used", "with", "the", "cursor", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-async/src/main/com/mongodb/async/client/MongoIterableSubscription.java#L116-L129", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/internal/UnsignedLongs.java", "func_name": "UnsignedLongs.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Equivalent to Long.parseUnsignedLong in Java 8.\n\n@param string the string representation of an unsigned long\n@return the unsigned long", "docstring_tokens": ["Equivalent", "to", "Long", ".", "parseUnsignedLong", "in", "Java", "8", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/internal/UnsignedLongs.java#L71-L90", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/codecs/DecoderContext.java", "func_name": "DecoderContext.decodeWithChildContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a child context and then deserializes using the reader.\n\n@param decoder the decoder to decode with\n@param reader the reader to decode to\n@param the type of the decoder\n@return the decoded value\n@since 3.5", "docstring_tokens": ["Creates", "a", "child", "context", "and", "then", "deserializes", "using", "the", "reader", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/codecs/DecoderContext.java#L92-L94", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/AbstractBsonWriter.java", "func_name": "AbstractBsonWriter.checkState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if this writer's current state is in the list of given states.\n\n@param validStates an array of {@code State}s to compare this writer's state to.\n@return true if this writer's state is in the given list.", "docstring_tokens": ["Checks", "if", "this", "writer", "s", "current", "state", "is", "in", "the", "list", "of", "given", "states", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/AbstractBsonWriter.java#L675-L682", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/AbstractBsonWriter.java", "func_name": "AbstractBsonWriter.pipe", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads a single document from the given BsonReader and writes it to this, appending the given extra elements to the document.\n\n@param reader the source of the document\n@param extraElements the extra elements to append to the document\n@since 3.6", "docstring_tokens": ["Reads", "a", "single", "document", "from", "the", "given", "BsonReader", "and", "writes", "it", "to", "this", "appending", "the", "given", "extra", "elements", "to", "the", "document", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/AbstractBsonWriter.java#L766-L770", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/AbstractBsonWriter.java", "func_name": "AbstractBsonWriter.pipeExtraElements", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Pipe a list of extra element to this writer\n\n@param extraElements the extra elements", "docstring_tokens": ["Pipe", "a", "list", "of", "extra", "element", "to", "this", "writer"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/AbstractBsonWriter.java#L777-L783", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/types/ObjectId.java", "func_name": "ObjectId.toByteArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert to a byte array. Note that the numbers are stored in big-endian order.\n\n@return the byte array", "docstring_tokens": ["Convert", "to", "a", "byte", "array", ".", "Note", "that", "the", "numbers", "are", "stored", "in", "big", "-", "endian", "order", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/types/ObjectId.java#L270-L274", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/types/ObjectId.java", "func_name": "ObjectId.putToByteBuffer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert to bytes and put those bytes to the provided ByteBuffer.\nNote that the numbers are stored in big-endian order.\n\n@param buffer the ByteBuffer\n@throws IllegalArgumentException if the buffer is null or does not have at least 12 bytes remaining\n@since 3.4", "docstring_tokens": ["Convert", "to", "bytes", "and", "put", "those", "bytes", "to", "the", "provided", "ByteBuffer", ".", "Note", "that", "the", "numbers", "are", "stored", "in", "big", "-", "endian", "order", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/types/ObjectId.java#L284-L300", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/types/ObjectId.java", "func_name": "ObjectId.toHexString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts this instance into a 24-byte hexadecimal string representation.\n\n@return a string representation of the ObjectId in hexadecimal format", "docstring_tokens": ["Converts", "this", "instance", "into", "a", "24", "-", "byte", "hexadecimal", "string", "representation", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/types/ObjectId.java#L325-L333", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/ServerDescription.java", "func_name": "ServerDescription.getShortDescription", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a short, pretty description for this ServerDescription.\n\n@return a String containing the most pertinent information about this ServerDescription", "docstring_tokens": ["Returns", "a", "short", "pretty", "description", "for", "this", "ServerDescription", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/ServerDescription.java#L923-L932", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/BasicDBObjectBuilder.java", "func_name": "BasicDBObjectBuilder.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an object builder from an existing map of key value pairs.\n\n@param documentAsMap a document in Map form.\n@return the new builder", "docstring_tokens": ["Creates", "an", "object", "builder", "from", "an", "existing", "map", "of", "key", "value", "pairs", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/BasicDBObjectBuilder.java#L66-L75", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/BasicDBObjectBuilder.java", "func_name": "BasicDBObjectBuilder.push", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an new empty object and inserts it into the current object with the given key. The new child object becomes the active one.\n\n@param key the field name\n@return {@code this} so calls can be chained", "docstring_tokens": ["Creates", "an", "new", "empty", "object", "and", "inserts", "it", "into", "the", "current", "object", "with", "the", "given", "key", ".", "The", "new", "child", "object", "becomes", "the", "active", "one", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/BasicDBObjectBuilder.java#L107-L112", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/BulkWriteBatchCombiner.java", "func_name": "BulkWriteBatchCombiner.addResult", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a result\n\n@param result the result\n@param indexMap the index map", "docstring_tokens": ["Add", "a", "result"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/BulkWriteBatchCombiner.java#L83-L89", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/BulkWriteBatchCombiner.java", "func_name": "BulkWriteBatchCombiner.addErrorResult", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add an error result\n\n@param exception the exception\n@param indexMap the index map", "docstring_tokens": ["Add", "an", "error", "result"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/BulkWriteBatchCombiner.java#L97-L101", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/BulkWriteBatchCombiner.java", "func_name": "BulkWriteBatchCombiner.addWriteErrorResult", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a write error result\n\n@param writeError the write error\n@param indexMap the index map", "docstring_tokens": ["Add", "a", "write", "error", "result"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/BulkWriteBatchCombiner.java#L109-L112", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/BulkWriteBatchCombiner.java", "func_name": "BulkWriteBatchCombiner.addErrorResult", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a list of error results and a write concern error\n\n@param writeErrors the errors\n@param writeConcernError the write concern error\n@param indexMap the index map", "docstring_tokens": ["Add", "a", "list", "of", "error", "results", "and", "a", "write", "concern", "error"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/BulkWriteBatchCombiner.java#L131-L135", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/BulkWriteBatchCombiner.java", "func_name": "BulkWriteBatchCombiner.getError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the combined errors as an exception\n@return the bulk write exception, or null if there were no errors", "docstring_tokens": ["Gets", "the", "combined", "errors", "as", "an", "exception"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/BulkWriteBatchCombiner.java#L169-L175", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java", "func_name": "Node.casNext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "compareAndSet next link", "docstring_tokens": ["compareAndSet", "next", "link"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java#L181-L183", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java", "func_name": "Node.nextNonmarker", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns next node, ignoring deletion marker.", "docstring_tokens": ["Returns", "next", "node", "ignoring", "deletion", "marker", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java#L242-L245", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java", "func_name": "Node.successor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the next non-deleted node, swinging next pointer\naround any encountered deleted nodes, and also patching up\nsuccessor's prev link to point back to this. Returns\nnull if this node is trailer so has no successor.\n\n@return successor, or null if no such", "docstring_tokens": ["Returns", "the", "next", "non", "-", "deleted", "node", "swinging", "next", "pointer", "around", "any", "encountered", "deleted", "nodes", "and", "also", "patching", "up", "successor", "s", "prev", "link", "to", "point", "back", "to", "this", ".", "Returns", "null", "if", "this", "node", "is", "trailer", "so", "has", "no", "successor", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java#L255-L270", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java", "func_name": "Node.predecessor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the previous non-deleted node, patching up pointers\nas needed. Returns null if this node is header so has no\nsuccessor. May also return null if this node is deleted,\nso doesn't have a distinct predecessor.\n\n@return predecessor, or null if not found", "docstring_tokens": ["Returns", "the", "previous", "non", "-", "deleted", "node", "patching", "up", "pointers", "as", "needed", ".", "Returns", "null", "if", "this", "node", "is", "header", "so", "has", "no", "successor", ".", "May", "also", "return", "null", "if", "this", "node", "is", "deleted", "so", "doesn", "t", "have", "a", "distinct", "predecessor", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java#L299-L315", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java", "func_name": "Node.forward", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the next node containing a nondeleted user element.\nUse for forward list traversal.\n\n@return successor, or null if no such", "docstring_tokens": ["Returns", "the", "next", "node", "containing", "a", "nondeleted", "user", "element", ".", "Use", "for", "forward", "list", "traversal", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java#L323-L326", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java", "func_name": "Node.back", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns previous node containing a nondeleted user element, if\npossible. Use for backward list traversal, but beware that\nif this method is called from a deleted node, it might not\nbe able to determine a usable predecessor.\n\n@return predecessor, or null if no such could be found", "docstring_tokens": ["Returns", "previous", "node", "containing", "a", "nondeleted", "user", "element", "if", "possible", ".", "Use", "for", "backward", "list", "traversal", "but", "beware", "that", "if", "this", "method", "is", "called", "from", "a", "deleted", "node", "it", "might", "not", "be", "able", "to", "determine", "a", "usable", "predecessor", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java#L336-L339", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java", "func_name": "Node.append", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tries to insert a node holding element as successor, failing\nif this node is deleted.\n\n@param element the element\n@return the new node, or null on failure", "docstring_tokens": ["Tries", "to", "insert", "a", "node", "holding", "element", "as", "successor", "failing", "if", "this", "node", "is", "deleted", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java#L348-L359", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java", "func_name": "Node.prepend", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tries to insert a node holding element as predecessor, failing\nif no live predecessor can be found to link to.\n\n@param element the element\n@return the new node, or null on failure", "docstring_tokens": ["Tries", "to", "insert", "a", "node", "holding", "element", "as", "predecessor", "failing", "if", "no", "live", "predecessor", "can", "be", "found", "to", "link", "to", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java#L368-L379", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java", "func_name": "Node.delete", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tries to mark this node as deleted, failing if already\ndeleted or if this node is header or trailer.\n\n@return true if successful", "docstring_tokens": ["Tries", "to", "mark", "this", "node", "as", "deleted", "failing", "if", "already", "deleted", "or", "if", "this", "node", "is", "header", "or", "trailer", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java#L387-L397", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java", "func_name": "Node.replace", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tries to insert a node holding element to replace this node.\nfailing if already deleted. A currently unused proof of\nconcept that demonstrates atomic node content replacement.\n\nAlthough this implementation ensures that exactly one\nversion of this Node is alive at a given time, it fails to\nmaintain atomicity in the sense that iterators may\nencounter both the old and new versions of the element.\n\n@param newElement the new element\n@return the new node, or null on failure", "docstring_tokens": ["Tries", "to", "insert", "a", "node", "holding", "element", "to", "replace", "this", "node", ".", "failing", "if", "already", "deleted", ".", "A", "currently", "unused", "proof", "of", "concept", "that", "demonstrates", "atomic", "node", "content", "replacement", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/ConcurrentLinkedDeque.java#L412-L425", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/operation/FsyncUnlockOperation.java", "func_name": "FsyncUnlockOperation.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unlocks the MongoDB server, allowing write operations to go through.\n\n@param binding the binding to execute in the context of\n@return the result of the operation\n@deprecated use {@link #execute(ReadBinding)} instead.", "docstring_tokens": ["Unlocks", "the", "MongoDB", "server", "allowing", "write", "operations", "to", "go", "through", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/operation/FsyncUnlockOperation.java#L53-L66", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ReadPreference.java", "func_name": "ReadPreference.choose", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Chooses the servers from the given cluster than match this read preference.\n\n@param clusterDescription the cluster description\n@return a list of matching server descriptions, which may be empty but may not be null", "docstring_tokens": ["Chooses", "the", "servers", "from", "the", "given", "cluster", "than", "match", "this", "read", "preference", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ReadPreference.java#L76-L88", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ReadPreference.java", "func_name": "ReadPreference.primaryPreferred", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a read preference that forces reads to the primary if available, otherwise to a secondary.\n\n@param maxStaleness the max allowable staleness of secondaries. The minimum value is either 90 seconds, or the heartbeat frequency\nplus 10 seconds, whichever is greatest.\n@param timeUnit the time unit of maxStaleness\n@return ReadPreference which reads primary if available.\n@since 3.4\n@see TaggableReadPreference#getMaxStaleness(TimeUnit)", "docstring_tokens": ["Gets", "a", "read", "preference", "that", "forces", "reads", "to", "the", "primary", "if", "available", "otherwise", "to", "a", "secondary", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ReadPreference.java#L149-L151", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ReadPreference.java", "func_name": "ReadPreference.secondary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a read preference that forces reads to a secondary that is less stale than the given maximum.\n\n

\nThe driver estimates the staleness of each secondary, based on lastWriteDate values provided in server isMaster responses,\nand selects only those secondaries whose staleness is less than or equal to maxStaleness.\n

\n\n@param maxStaleness the max allowable staleness of secondaries. The minimum value is either 90 seconds, or the heartbeat frequency\nplus 10 seconds, whichever is greatest.\n@param timeUnit the time unit of maxStaleness\n@return ReadPreference which reads secondary.\n@since 3.4\n@see TaggableReadPreference#getMaxStaleness(TimeUnit)", "docstring_tokens": ["Gets", "a", "read", "preference", "that", "forces", "reads", "to", "a", "secondary", "that", "is", "less", "stale", "than", "the", "given", "maximum", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ReadPreference.java#L168-L170", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ReadPreference.java", "func_name": "ReadPreference.secondaryPreferred", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a read preference that forces reads to a secondary that is less stale than the given maximumm if one is available,\notherwise to the primary.\n\n

\nThe driver estimates the staleness of each secondary, based on lastWriteDate values provided in server isMaster responses,\nand selects only those secondaries whose staleness is less than or equal to maxStaleness.\n

*\n@param maxStaleness the max allowable staleness of secondaries. The minimum value is either 90 seconds, or the heartbeat frequency\nplus 10 seconds, whichever is greatest.\n@param timeUnit the time unit of maxStaleness\n@return ReadPreference which reads secondary if available, otherwise from primary.\n@since 3.4\n@see TaggableReadPreference#getMaxStaleness(TimeUnit)", "docstring_tokens": ["Gets", "a", "read", "preference", "that", "forces", "reads", "to", "a", "secondary", "that", "is", "less", "stale", "than", "the", "given", "maximumm", "if", "one", "is", "available", "otherwise", "to", "the", "primary", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ReadPreference.java#L187-L189", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ReadPreference.java", "func_name": "ReadPreference.nearest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a read preference that forces reads to a primary or a secondary that is less stale than the given maximum.\n\n

\nThe driver estimates the staleness of each secondary, based on lastWriteDate values provided in server isMaster responses,\nand selects only those secondaries whose staleness is less than or equal to maxStaleness.\n

\n\n@param maxStaleness the max allowable staleness of secondaries. The minimum value is either 90 seconds, or the heartbeat frequency\nplus 10 seconds, whichever is greatest.\n@param timeUnit the time unit of maxStaleness\n@return ReadPreference which reads nearest\n@since 3.4\n@see TaggableReadPreference#getMaxStaleness(TimeUnit)", "docstring_tokens": ["Gets", "a", "read", "preference", "that", "forces", "reads", "to", "a", "primary", "or", "a", "secondary", "that", "is", "less", "stale", "than", "the", "given", "maximum", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ReadPreference.java#L206-L208", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ReadPreference.java", "func_name": "ReadPreference.primaryPreferred", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a read preference that forces reads to the primary if available, otherwise to a secondary with the given set of tags\nthat is less stale than the given maximum.\n\n

\nThe driver estimates the staleness of each secondary, based on lastWriteDate values provided in server isMaster responses,\nand selects only those secondaries whose staleness is less than or equal to maxStaleness.\n

\n\n@param tagSet the set of tags to limit the list of secondaries to.\n@param maxStaleness the max allowable staleness of secondaries. The minimum value is either 90 seconds, or the heartbeat frequency\nplus 10 seconds, whichever is greatest.\n@param timeUnit the time unit of maxStaleness\n@return ReadPreference which reads primary if available, otherwise a secondary respective of tags.\\\n@since 3.4\n@see TaggableReadPreference#getMaxStaleness(TimeUnit)", "docstring_tokens": ["Gets", "a", "read", "preference", "that", "forces", "reads", "to", "the", "primary", "if", "available", "otherwise", "to", "a", "secondary", "with", "the", "given", "set", "of", "tags", "that", "is", "less", "stale", "than", "the", "given", "maximum", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ReadPreference.java#L271-L274", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ReadPreference.java", "func_name": "ReadPreference.secondary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a read preference that forces reads to a secondary with the given set of tags that is less stale than the given maximum.\n\n

\nThe driver estimates the staleness of each secondary, based on lastWriteDate values provided in server isMaster responses,\nand selects only those secondaries whose staleness is less than or equal to maxStaleness.\n

\n\n@param tagSet the set of tags to limit the list of secondaries to\n@param maxStaleness the max allowable staleness of secondaries. The minimum value is either 90 seconds, or the heartbeat frequency\nplus 10 seconds, whichever is greatest.\n@param timeUnit the time unit of maxStaleness\n@return ReadPreference which reads secondary respective of tags.\n@since 3.4\n@see TaggableReadPreference#getMaxStaleness(TimeUnit)", "docstring_tokens": ["Gets", "a", "read", "preference", "that", "forces", "reads", "to", "a", "secondary", "with", "the", "given", "set", "of", "tags", "that", "is", "less", "stale", "than", "the", "given", "maximum", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ReadPreference.java#L292-L295", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ReadPreference.java", "func_name": "ReadPreference.secondaryPreferred", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a read preference that forces reads to a secondary with the given set of tags that is less stale than the given maximum,\nor the primary is none are available.\n\n

\nThe driver estimates the staleness of each secondary, based on lastWriteDate values provided in server isMaster responses,\nand selects only those secondaries whose staleness is less than or equal to maxStaleness.\n

*\n@param tagSet the set of tags to limit the list of secondaries to\n@param maxStaleness the max allowable staleness of secondaries. The minimum value is either 90 seconds, or the heartbeat frequency\nplus 10 seconds, whichever is greatest.\n@param timeUnit the time unit of maxStaleness\n@return ReadPreference which reads secondary if available respective of tags, otherwise from primary irrespective of tags.\n@since 3.4\n@see TaggableReadPreference#getMaxStaleness(TimeUnit)", "docstring_tokens": ["Gets", "a", "read", "preference", "that", "forces", "reads", "to", "a", "secondary", "with", "the", "given", "set", "of", "tags", "that", "is", "less", "stale", "than", "the", "given", "maximum", "or", "the", "primary", "is", "none", "are", "available", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ReadPreference.java#L313-L316", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ReadPreference.java", "func_name": "ReadPreference.nearest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a read preference that forces reads to the primary or a secondary with the given set of tags that is less stale than the\ngiven maximum.\n\n

\nThe driver estimates the staleness of each secondary, based on lastWriteDate values provided in server isMaster responses,\nand selects only those secondaries whose staleness is less than or equal to maxStaleness.\n

\n\n@param tagSet the set of tags to limit the list of secondaries to\n@param maxStaleness the max allowable staleness of secondaries. The minimum value is either 90 seconds, or the heartbeat frequency\nplus 10 seconds, whichever is greatest.\n@param timeUnit the time unit of maxStaleness\n@return ReadPreference which reads nearest node respective of tags.\n@since 3.4\n@see TaggableReadPreference#getMaxStaleness(TimeUnit)", "docstring_tokens": ["Gets", "a", "read", "preference", "that", "forces", "reads", "to", "the", "primary", "or", "a", "secondary", "with", "the", "given", "set", "of", "tags", "that", "is", "less", "stale", "than", "the", "given", "maximum", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ReadPreference.java#L335-L338", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ReadPreference.java", "func_name": "ReadPreference.primaryPreferred", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a read preference that forces reads to the primary if available, otherwise to a secondary with one of the given sets of tags\nthat is less stale than the given maximum.\n\n

\nThe driver will look for a secondary with each tag set in the given list, stopping after one is found,\nor failing if no secondary can be found that matches any of the tag sets in the list.\n

\n\n

\nThe driver estimates the staleness of each secondary, based on lastWriteDate values provided in server isMaster responses,\nand selects only those secondaries whose staleness is less than or equal to maxStaleness.\n

\n\n@param tagSetList the list of tag sets to limit the list of secondaries to\n@param maxStaleness the max allowable staleness of secondaries. The minimum value is either 90 seconds, or the heartbeat frequency\nplus 10 seconds, whichever is greatest.\n@param timeUnit the time unit of maxStaleness\n@return ReadPreference which reads primary if available, otherwise a secondary respective of tags.\n@since 3.4\n@see TaggableReadPreference#getMaxStaleness(TimeUnit)", "docstring_tokens": ["Gets", "a", "read", "preference", "that", "forces", "reads", "to", "the", "primary", "if", "available", "otherwise", "to", "a", "secondary", "with", "one", "of", "the", "given", "sets", "of", "tags", "that", "is", "less", "stale", "than", "the", "given", "maximum", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ReadPreference.java#L415-L418", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ReadPreference.java", "func_name": "ReadPreference.nearest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a read preference that forces reads to the primary or a secondary with one of the given sets of tags that is less stale than\nthe given maximum.\n\n

\nThe driver will look for a secondary with each tag set in the given list, stopping after one is found,\nor the primary if none are available.\n

\n\n

\nThe driver estimates the staleness of each secondary, based on lastWriteDate values provided in server isMaster responses,\nand selects only those secondaries whose staleness is less than or equal to maxStaleness.\n

\n\n@param tagSetList the list of tag sets to limit the list of secondaries to\n@param maxStaleness the max allowable staleness of secondaries. The minimum value is either 90 seconds, or the heartbeat frequency\nplus 10 seconds, whichever is greatest.\n@param timeUnit the time unit of maxStaleness\n@return ReadPreference which reads nearest node respective of tags.\n@since 3.4\n@see TaggableReadPreference#getMaxStaleness(TimeUnit)", "docstring_tokens": ["Gets", "a", "read", "preference", "that", "forces", "reads", "to", "the", "primary", "or", "a", "secondary", "with", "one", "of", "the", "given", "sets", "of", "tags", "that", "is", "less", "stale", "than", "the", "given", "maximum", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ReadPreference.java#L496-L499", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ReadPreference.java", "func_name": "ReadPreference.valueOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a read preference from the given read preference name.\n\n@param name the name of the read preference\n@return the read preference", "docstring_tokens": ["Creates", "a", "read", "preference", "from", "the", "given", "read", "preference", "name", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ReadPreference.java#L507-L529", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ReadPreference.java", "func_name": "ReadPreference.valueOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a taggable read preference from the given read preference name and list of tag sets.\n\n@param name the name of the read preference\n@param tagSetList the list of tag sets\n@return the taggable read preference\n@since 2.13", "docstring_tokens": ["Creates", "a", "taggable", "read", "preference", "from", "the", "given", "read", "preference", "name", "and", "list", "of", "tag", "sets", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ReadPreference.java#L539-L541", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ReadPreference.java", "func_name": "ReadPreference.valueOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a taggable read preference from the given read preference name, list of tag sets, and max allowable staleness of secondaries.\n\n

\nThe driver estimates the staleness of each secondary, based on lastWriteDate values provided in server isMaster responses,\nand selects only those secondaries whose staleness is less than or equal to maxStaleness.\n

\n\n@param name the name of the read preference\n@param tagSetList the list of tag sets\n@param maxStaleness the max allowable staleness of secondaries. The minimum value is either 90 seconds, or the heartbeat frequency\nplus 10 seconds, whichever is greatest.\n@param timeUnit the time unit of maxStaleness\n@return the taggable read preference\n@since 3.4\n@see TaggableReadPreference#getMaxStaleness(TimeUnit)", "docstring_tokens": ["Creates", "a", "taggable", "read", "preference", "from", "the", "given", "read", "preference", "name", "list", "of", "tag", "sets", "and", "max", "allowable", "staleness", "of", "secondaries", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ReadPreference.java#L560-L563", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/io/Bits.java", "func_name": "Bits.readFully", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads bytes from the input stream and puts them into the given byte buffer.\n\n@param inputStream the input stream to read from\n@param buffer the buffer into which the data is read.\n@param offset the start offset in array {@code buffer} at which the data is written.\n@param length the maximum number of bytes to read.\n@throws IOException if there's an error reading from the {@code inputStream}\n@see java.io.InputStream#read(byte[], int, int)", "docstring_tokens": ["Reads", "bytes", "from", "the", "input", "stream", "and", "puts", "them", "into", "the", "given", "byte", "buffer", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/io/Bits.java#L67-L83", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/io/Bits.java", "func_name": "Bits.readInt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads and returns a single integer value from the input stream.\n\n@param inputStream the input stream to read from\n@param buffer the buffer to write the input stream bytes into\n@return the integer value\n@throws IOException if there's an error reading from the {@code inputStream}", "docstring_tokens": ["Reads", "and", "returns", "a", "single", "integer", "value", "from", "the", "input", "stream", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/io/Bits.java#L104-L107", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/io/Bits.java", "func_name": "Bits.readInt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads and returns a single integer value from the buffer.\n\n@param buffer the buffer to read from\n@param offset the position to start reading from the buffer\n@return the integer value", "docstring_tokens": ["Reads", "and", "returns", "a", "single", "integer", "value", "from", "the", "buffer", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/io/Bits.java#L127-L134", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/io/Bits.java", "func_name": "Bits.readIntBE", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads and returns a single big-endian integer value\n\n@param buffer the buffer to read from\n@param offset the position to start reading from the buffer\n@return the integer value", "docstring_tokens": ["Reads", "and", "returns", "a", "single", "big", "-", "endian", "integer", "value"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/io/Bits.java#L143-L150", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/io/Bits.java", "func_name": "Bits.readLong", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads and returns a single long value from the input stream.\n\n@param inputStream the input stream to read from\n@param buffer the buffer to write the input stream bytes into\n@return the long value\n@throws IOException if there's an error reading from the {@code inputStream}", "docstring_tokens": ["Reads", "and", "returns", "a", "single", "long", "value", "from", "the", "input", "stream", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/io/Bits.java#L171-L174", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ConnectionString.java", "func_name": "ConnectionString.getCredentialList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the credentials in an immutable list. The list will be empty if no credentials were specified in the connection string.\n\n@return the credentials in an immutable list\n@deprecated Prefer {@link #getCredential()}", "docstring_tokens": ["Gets", "the", "credentials", "in", "an", "immutable", "list", ".", "The", "list", "will", "be", "empty", "if", "no", "credentials", "were", "specified", "in", "the", "connection", "string", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ConnectionString.java#L1107-L1110", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/BaseCluster.java", "func_name": "BaseCluster.getRandomServer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "gets a random server that still exists in the cluster. Returns null if there are none.", "docstring_tokens": ["gets", "a", "random", "server", "that", "still", "exists", "in", "the", "cluster", ".", "Returns", "null", "if", "there", "are", "none", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/BaseCluster.java#L354-L365", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-async/src/main/com/mongodb/async/client/MongoClients.java", "func_name": "MongoClients.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new client with the given connection string.\n\n

Note: Intended for driver and library authors to associate extra driver metadata with the connections.

\n\n@param connectionString the settings\n@param mongoDriverInformation any driver information to associate with the MongoClient\n@return the client\n@throws IllegalArgumentException if the connection string's stream type is not one of \"netty\" or \"nio2\"\n@see MongoClients#create(ConnectionString)", "docstring_tokens": ["Create", "a", "new", "client", "with", "the", "given", "connection", "string", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-async/src/main/com/mongodb/async/client/MongoClients.java#L133-L138", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/BasicDBList.java", "func_name": "BasicDBList.copy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copies this instance into a new Object.\n\n@return a new BasicDBList with the same values as this instance", "docstring_tokens": ["Copies", "this", "instance", "into", "a", "new", "Object", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/BasicDBList.java#L45-L59", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/codecs/pojo/ClassModel.java", "func_name": "ClassModel.builder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new Class Model builder instance using reflection.\n\n@param type the POJO class to reflect and configure the builder with.\n@param the type of the class\n@return a new Class Model builder instance using reflection on the {@code clazz}.", "docstring_tokens": ["Creates", "a", "new", "Class", "Model", "builder", "instance", "using", "reflection", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/codecs/pojo/ClassModel.java#L63-L65", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DB.java", "func_name": "DB.getCollection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a collection with a given name.\n\n@param name the name of the collection to return\n@return the collection\n@throws IllegalArgumentException if the name is invalid\n@see MongoNamespace#checkCollectionNameValidity(String)", "docstring_tokens": ["Gets", "a", "collection", "with", "a", "given", "name", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DB.java#L223-L238", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DB.java", "func_name": "DB.dropDatabase", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Drops this database. Removes all data on disk. Use with caution.\n\n@throws MongoException if the operation failed\n@mongodb.driver.manual reference/command/dropDatabase/ Drop Database", "docstring_tokens": ["Drops", "this", "database", ".", "Removes", "all", "data", "on", "disk", ".", "Use", "with", "caution", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DB.java#L246-L252", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DB.java", "func_name": "DB.getCollectionNames", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a set containing the names of all collections in this database.\n\n@return the names of collections in this database\n@throws MongoException if the operation failed\n@mongodb.driver.manual reference/method/db.getCollectionNames/ getCollectionNames()", "docstring_tokens": ["Returns", "a", "set", "containing", "the", "names", "of", "all", "collections", "in", "this", "database", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DB.java#L282-L299", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DB.java", "func_name": "DB.command", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes a database command with the selected readPreference, and encodes the command using the given encoder.\n\n@param command The {@code DBObject} representation the command to be executed\n@param readPreference Where to execute the command - this will only be applied for a subset of commands\n@param encoder The DBEncoder that knows how to serialise the command\n@return The result of executing the command, success or failure\n@mongodb.driver.manual tutorial/use-database-commands Commands\n@since 2.12", "docstring_tokens": ["Executes", "a", "database", "command", "with", "the", "selected", "readPreference", "and", "encodes", "the", "command", "using", "the", "given", "encoder", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DB.java#L519-L525", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DB.java", "func_name": "DB.command", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes the command against the database with the given read preference.\n\n@param command The {@code DBObject} representation the command to be executed\n@param readPreference Where to execute the command - this will only be applied for a subset of commands\n@return The result of executing the command, success or failure\n@mongodb.driver.manual tutorial/use-database-commands Commands\n@since 2.12", "docstring_tokens": ["Executes", "the", "command", "against", "the", "database", "with", "the", "given", "read", "preference", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DB.java#L536-L538", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DB.java", "func_name": "DB.collectionExists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks to see if a collection with a given name exists on a server.\n\n@param collectionName a name of the collection to test for existence\n@return {@code false} if no collection by that name exists, {@code true} if a match to an existing collection was found\n@throws MongoException if the operation failed", "docstring_tokens": ["Checks", "to", "see", "if", "a", "collection", "with", "a", "given", "name", "exists", "on", "a", "server", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DB.java#L573-L581", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DB.java", "func_name": "DB.doEval", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Evaluates JavaScript functions on the database server. This is useful if you need to touch a lot of data lightly, in which case\nnetwork transfer could be a bottleneck.\n\n@param code {@code String} representation of JavaScript function\n@param args arguments to pass to the JavaScript function\n@return result of the command execution\n@throws MongoException if the operation failed\n@mongodb.driver.manual reference/method/db.eval/ db.eval()\n@deprecated The eval command was deprecated in MongoDB 3.0", "docstring_tokens": ["Evaluates", "JavaScript", "functions", "on", "the", "database", "server", ".", "This", "is", "useful", "if", "you", "need", "to", "touch", "a", "lot", "of", "data", "lightly", "in", "which", "case", "network", "transfer", "could", "be", "a", "bottleneck", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DB.java#L594-L598", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DB.java", "func_name": "DB.getStats", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method for calling a 'dbStats' command. It returns storage statistics for a given database.\n\n@return result of the execution\n@throws MongoException if the operation failed\n@mongodb.driver.manual reference/command/dbStats/ Database Stats\n@deprecated Prefer {@link #command(DBObject)} to run the dbStats command", "docstring_tokens": ["Helper", "method", "for", "calling", "a", "dbStats", "command", ".", "It", "returns", "storage", "statistics", "for", "a", "given", "database", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DB.java#L626-L630", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DB.java", "func_name": "DB.removeUser", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the specified user from the database.\n\n@param userName user to be removed\n@return the result of executing this operation\n@throws MongoException if the operation failed\n@mongodb.driver.manual administration/security-access-control/ Access Control\n@deprecated Use {@code DB.command} to call the dropUser command", "docstring_tokens": ["Removes", "the", "specified", "user", "from", "the", "database", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DB.java#L697-L705", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DB.java", "func_name": "DB.getCommandReadPreference", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines the read preference that should be used for the given command.\n\n@param command the {@link DBObject} representing the command\n@param requestedPreference the preference requested by the client.\n@return the read preference to use for the given command. It will never return {@code null}.\n@see com.mongodb.ReadPreference", "docstring_tokens": ["Determines", "the", "read", "preference", "that", "should", "be", "used", "for", "the", "given", "command", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DB.java#L812-L823", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/codecs/configuration/ChildCodecRegistry.java", "func_name": "ChildCodecRegistry.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a Codec, but if it detects a cyclic dependency, return a LazyCodec which breaks the chain.", "docstring_tokens": ["Gets", "a", "Codec", "but", "if", "it", "detects", "a", "cyclic", "dependency", "return", "a", "LazyCodec", "which", "breaks", "the", "chain", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/codecs/configuration/ChildCodecRegistry.java#L47-L53", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.insert", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Insert a document into a collection. If the collection does not exists on the server, then it will be created. If the new document\ndoes not contain an '_id' field, it will be added.\n\n@param document {@code DBObject} to be inserted\n@param writeConcern {@code WriteConcern} to be used during operation\n@return the result of the operation\n@throws com.mongodb.DuplicateKeyException if the write failed to a duplicate unique key\n@throws com.mongodb.WriteConcernException if the write failed due some other failure specific to the insert command\n@throws MongoException if the operation failed for some other reason\n@mongodb.driver.manual tutorial/insert-documents/ Insert Documents", "docstring_tokens": ["Insert", "a", "document", "into", "a", "collection", ".", "If", "the", "collection", "does", "not", "exists", "on", "the", "server", "then", "it", "will", "be", "created", ".", "If", "the", "new", "document", "does", "not", "contain", "an", "_id", "field", "it", "will", "be", "added", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L191-L193", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.update", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Modify an existing document or documents in collection.\n\n@param query the selection criteria for the update\n@param update the modifications to apply\n@param options the options to apply to the update operation\n@return the result of the operation\n@throws com.mongodb.DuplicateKeyException if the write failed to a duplicate unique key\n@throws com.mongodb.WriteConcernException if the write failed due some other failure specific to the update command\n@throws MongoException if the operation failed for some other reason\n@mongodb.driver.manual tutorial/modify-documents/ Modify\n@since 3.4", "docstring_tokens": ["Modify", "an", "existing", "document", "or", "documents", "in", "collection", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L560-L574", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.findOne", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a single document from collection by '_id'.\n\n@param id value of '_id' field of a document we are looking for\n@param projection specifies which projection MongoDB will return from the documents in the result set.\n@return A document that satisfies the query specified as the argument to this method.\n@mongodb.driver.manual tutorial/query-documents/ Querying", "docstring_tokens": ["Get", "a", "single", "document", "from", "collection", "by", "_id", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L831-L834", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.rename", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Change the name of an existing collection.\n\n@param newName specifies the new name of the collection\n@param dropTarget If {@code true}, mongod will drop the collection with the target name if it exists\n@return the collection with new name\n@throws MongoException if target is the name of an existing collection and {@code dropTarget=false}.\n@mongodb.driver.manual reference/command/renameCollection/ Rename Collection", "docstring_tokens": ["Change", "the", "name", "of", "an", "existing", "collection", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L1059-L1068", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.mapReduce", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Allows you to run map-reduce aggregation operations over a collection and saves to a named collection.\n\n@param map a JavaScript function that associates or \"maps\" a value with a key and emits the key and value pair.\n@param reduce a JavaScript function that \"reduces\" to a single object all the values associated with a particular key.\n@param outputTarget specifies the location of the result of the map-reduce operation.\n@param outputType specifies the type of job output\n@param query specifies the selection criteria using query operators for determining the documents input to the map\nfunction.\n@param readPreference the read preference specifying where to run the query. Only applied for Inline output type\n@return a MapReduceOutput which contains the results of this map reduce operation\n@mongodb.driver.manual core/map-reduce/ Map-Reduce", "docstring_tokens": ["Allows", "you", "to", "run", "map", "-", "reduce", "aggregation", "operations", "over", "a", "collection", "and", "saves", "to", "a", "named", "collection", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L1286-L1292", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.explainAggregate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the explain plan for the aggregation pipeline.\n\n@param pipeline the aggregation pipeline to explain\n@param options the options to apply to the aggregation\n@return the command result. The explain output may change from release to release, so best to simply log this.\n@mongodb.driver.manual core/aggregation-pipeline/ Aggregation\n@mongodb.driver.manual reference/operator/meta/explain/ Explain query\n@mongodb.server.release 2.6", "docstring_tokens": ["Return", "the", "explain", "plan", "for", "the", "aggregation", "pipeline", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L1524-L1533", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.createIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Forces creation of an index on a set of fields, if one does not already exist.\n\n@param keys a document that contains pairs with the name of the field or fields to index and order of the index\n@param name an identifier for the index. If null or empty, the default name will be used.\n@param unique if the index should be unique\n@throws MongoException if the operation failed\n@mongodb.driver.manual /administration/indexes-creation/ Index Creation Tutorials", "docstring_tokens": ["Forces", "creation", "of", "an", "index", "on", "a", "set", "of", "fields", "if", "one", "does", "not", "already", "exist", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L1644-L1653", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.createIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an index on the field specified, if that index does not already exist.\n\n

Prior to MongoDB 3.0 the dropDups option could be used with unique indexes allowing documents with duplicate values to be dropped\nwhen building the index. Later versions of MongoDB will silently ignore this setting.

\n\n@param keys a document that contains pairs with the name of the field or fields to index and order of the index\n@param options a document that controls the creation of the index.\n@mongodb.driver.manual /administration/indexes-creation/ Index Creation Tutorials", "docstring_tokens": ["Creates", "an", "index", "on", "the", "field", "specified", "if", "that", "index", "does", "not", "already", "exist", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L1675-L1681", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.findAndRemove", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Atomically remove and return a single document. The returned document is the original document before removal.\n\n@param query specifies the selection criteria for the modification\n@return the document as it was before the modifications\n@throws WriteConcernException if the write failed due some other failure specific to the update command\n@throws MongoException if the operation failed for some other reason\n@mongodb.driver.manual reference/command/findAndModify/ Find and Modify", "docstring_tokens": ["Atomically", "remove", "and", "return", "a", "single", "document", ".", "The", "returned", "document", "is", "the", "original", "document", "before", "removal", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L1750-L1753", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.setDBDecoderFactory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set a custom decoder factory for this collection. Set to null to use the default from MongoOptions.\n\n@param factory the factory to set.", "docstring_tokens": ["Set", "a", "custom", "decoder", "factory", "for", "this", "collection", ".", "Set", "to", "null", "to", "use", "the", "default", "from", "MongoOptions", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L2181-L2190", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.setDBEncoderFactory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set a custom encoder factory for this collection. Set to null to use the default from MongoOptions.\n\n@param factory the factory to set.", "docstring_tokens": ["Set", "a", "custom", "encoder", "factory", "for", "this", "collection", ".", "Set", "to", "null", "to", "use", "the", "default", "from", "MongoOptions", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L2206-L2215", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.getIndexInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return a list of the indexes for this collection. Each object in the list is the \"info document\" from MongoDB\n\n@return list of index documents\n@throws MongoException if the operation failed\n@mongodb.driver.manual core/indexes/ Indexes", "docstring_tokens": ["Return", "a", "list", "of", "the", "indexes", "for", "this", "collection", ".", "Each", "object", "in", "the", "list", "is", "the", "info", "document", "from", "MongoDB"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L2224-L2231", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.dropIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Drops an index from this collection. The DBObject index parameter must match the specification of the index to drop, i.e. correct\nkey name and type must be specified.\n\n@param index the specification of the index to drop\n@throws MongoException if the index does not exist\n@mongodb.driver.manual core/indexes/ Indexes", "docstring_tokens": ["Drops", "an", "index", "from", "this", "collection", ".", "The", "DBObject", "index", "parameter", "must", "match", "the", "specification", "of", "the", "index", "to", "drop", "i", ".", "e", ".", "correct", "key", "name", "and", "type", "must", "be", "specified", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L2241-L2247", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.dropIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Drops the index with the given name from this collection.\n\n@param indexName name of index to drop\n@throws MongoException if the index does not exist\n@mongodb.driver.manual core/indexes/ Indexes", "docstring_tokens": ["Drops", "the", "index", "with", "the", "given", "name", "from", "this", "collection", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L2256-L2262", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.isCapped", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether this collection is capped\n\n@return true if this is a capped collection\n@mongodb.driver.manual /core/capped-collections/#check-if-a-collection-is-capped Capped Collections", "docstring_tokens": ["Checks", "whether", "this", "collection", "is", "capped"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L2299-L2303", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.setInternalClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the internal class for the given path in the document hierarchy\n\n@param path the path to map the given Class to\n@param aClass the Class to map the given path to", "docstring_tokens": ["Sets", "the", "internal", "class", "for", "the", "given", "path", "in", "the", "document", "hierarchy"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L2329-L2331", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCollection.java", "func_name": "DBCollection.getInternalClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the internal class for the given path in the document hierarchy\n\n@param path the path to map the given Class to\n@return the class for a given path in the hierarchy", "docstring_tokens": ["Gets", "the", "internal", "class", "for", "the", "given", "path", "in", "the", "document", "hierarchy"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCollection.java#L2339-L2341", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Updates.java", "func_name": "Updates.set", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an update that sets the value of the field with the given name to the given value.\n\n@param fieldName the non-null field name\n@param value the value, which may be null\n@param the value type\n@return the update\n@mongodb.driver.manual reference/operator/update/set/ $set", "docstring_tokens": ["Creates", "an", "update", "that", "sets", "the", "value", "of", "the", "field", "with", "the", "given", "name", "to", "the", "given", "value", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Updates.java#L77-L79", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Updates.java", "func_name": "Updates.setOnInsert", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an update that sets the value of the field with the given name to the given value, but only if the update is an upsert that\nresults in an insert of a document.\n\n@param fieldName the non-null field name\n@param value the value, which may be null\n@param the value type\n@return the update\n@mongodb.driver.manual reference/operator/update/setOnInsert/ $setOnInsert\n@see UpdateOptions#upsert(boolean)", "docstring_tokens": ["Creates", "an", "update", "that", "sets", "the", "value", "of", "the", "field", "with", "the", "given", "name", "to", "the", "given", "value", "but", "only", "if", "the", "update", "is", "an", "upsert", "that", "results", "in", "an", "insert", "of", "a", "document", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Updates.java#L116-L118", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Updates.java", "func_name": "Updates.rename", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an update that renames a field.\n\n@param fieldName the non-null field name\n@param newFieldName the non-null new field name\n@return the update\n@mongodb.driver.manual reference/operator/update/rename/ $rename", "docstring_tokens": ["Creates", "an", "update", "that", "renames", "a", "field", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Updates.java#L128-L131", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Updates.java", "func_name": "Updates.inc", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an update that increments the value of the field with the given name by the given value.\n\n@param fieldName the non-null field name\n@param number the value\n@return the update\n@mongodb.driver.manual reference/operator/update/inc/ $inc", "docstring_tokens": ["Creates", "an", "update", "that", "increments", "the", "value", "of", "the", "field", "with", "the", "given", "name", "by", "the", "given", "value", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Updates.java#L141-L144", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Updates.java", "func_name": "Updates.mul", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an update that multiplies the value of the field with the given name by the given number.\n\n@param fieldName the non-null field name\n@param number the non-null number\n@return the update\n@mongodb.driver.manual reference/operator/update/mul/ $mul", "docstring_tokens": ["Creates", "an", "update", "that", "multiplies", "the", "value", "of", "the", "field", "with", "the", "given", "name", "by", "the", "given", "number", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Updates.java#L154-L157", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Updates.java", "func_name": "Updates.min", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an update that sets the value of the field to the given value if the given value is less than the current value of the\nfield.\n\n@param fieldName the non-null field name\n@param value the value\n@param the value type\n@return the update\n@mongodb.driver.manual reference/operator/update/min/ $min", "docstring_tokens": ["Creates", "an", "update", "that", "sets", "the", "value", "of", "the", "field", "to", "the", "given", "value", "if", "the", "given", "value", "is", "less", "than", "the", "current", "value", "of", "the", "field", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Updates.java#L170-L172", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Updates.java", "func_name": "Updates.max", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an update that sets the value of the field to the given value if the given value is greater than the current value of the\nfield.\n\n@param fieldName the non-null field name\n@param value the value\n@param the value type\n@return the update\n@mongodb.driver.manual reference/operator/update/min/ $min", "docstring_tokens": ["Creates", "an", "update", "that", "sets", "the", "value", "of", "the", "field", "to", "the", "given", "value", "if", "the", "given", "value", "is", "greater", "than", "the", "current", "value", "of", "the", "field", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Updates.java#L184-L186", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Updates.java", "func_name": "Updates.addToSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an update that adds the given value to the array value of the field with the given name, unless the value is\nalready present, in which case it does nothing\n\n@param fieldName the non-null field name\n@param value the value, which may be null\n@param the value type\n@return the update\n@mongodb.driver.manual reference/operator/update/addToSet/ $addToSet", "docstring_tokens": ["Creates", "an", "update", "that", "adds", "the", "given", "value", "to", "the", "array", "value", "of", "the", "field", "with", "the", "given", "name", "unless", "the", "value", "is", "already", "present", "in", "which", "case", "it", "does", "nothing"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Updates.java#L222-L224", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Updates.java", "func_name": "Updates.addEachToSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an update that adds each of the given values to the array value of the field with the given name, unless the value is\nalready present, in which case it does nothing\n\n@param fieldName the non-null field name\n@param values the values\n@param the value type\n@return the update\n@mongodb.driver.manual reference/operator/update/addToSet/ $addToSet", "docstring_tokens": ["Creates", "an", "update", "that", "adds", "each", "of", "the", "given", "values", "to", "the", "array", "value", "of", "the", "field", "with", "the", "given", "name", "unless", "the", "value", "is", "already", "present", "in", "which", "case", "it", "does", "nothing"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Updates.java#L236-L238", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Updates.java", "func_name": "Updates.push", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an update that adds the given value to the array value of the field with the given name.\n\n@param fieldName the non-null field name\n@param value the value, which may be null\n@param the value type\n@return the update\n@mongodb.driver.manual reference/operator/update/push/ $push", "docstring_tokens": ["Creates", "an", "update", "that", "adds", "the", "given", "value", "to", "the", "array", "value", "of", "the", "field", "with", "the", "given", "name", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Updates.java#L249-L251", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Updates.java", "func_name": "Updates.pushEach", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an update that adds each of the given values to the array value of the field with the given name.\n\n@param fieldName the non-null field name\n@param values the values\n@param the value type\n@return the update\n@mongodb.driver.manual reference/operator/update/push/ $push", "docstring_tokens": ["Creates", "an", "update", "that", "adds", "each", "of", "the", "given", "values", "to", "the", "array", "value", "of", "the", "field", "with", "the", "given", "name", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Updates.java#L262-L264", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Updates.java", "func_name": "Updates.pull", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an update that removes all instances of the given value from the array value of the field with the given name.\n\n@param fieldName the non-null field name\n@param value the value, which may be null\n@param the value type\n@return the update\n@mongodb.driver.manual reference/operator/update/pull/ $pull", "docstring_tokens": ["Creates", "an", "update", "that", "removes", "all", "instances", "of", "the", "given", "value", "from", "the", "array", "value", "of", "the", "field", "with", "the", "given", "name", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Updates.java#L290-L292", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Updates.java", "func_name": "Updates.pullByFilter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an update that removes from an array all elements that match the given filter.\n\n@param filter the query filter\n@return the update\n@mongodb.driver.manual reference/operator/update/pull/ $pull", "docstring_tokens": ["Creates", "an", "update", "that", "removes", "from", "an", "array", "all", "elements", "that", "match", "the", "given", "filter", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Updates.java#L301-L317", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Updates.java", "func_name": "Updates.pullAll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an update that removes all instances of the given values from the array value of the field with the given name.\n\n@param fieldName the non-null field name\n@param values the values\n@param the value type\n@return the update\n@mongodb.driver.manual reference/operator/update/pull/ $pull", "docstring_tokens": ["Creates", "an", "update", "that", "removes", "all", "instances", "of", "the", "given", "values", "from", "the", "array", "value", "of", "the", "field", "with", "the", "given", "name", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Updates.java#L328-L330", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/BaseQueryMessage.java", "func_name": "BaseQueryMessage.writeQueryPrologue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write the query prologue to the given BSON output.\n\n@param bsonOutput the BSON output", "docstring_tokens": ["Write", "the", "query", "prologue", "to", "the", "given", "BSON", "output", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/BaseQueryMessage.java#L218-L223", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java", "func_name": "DefaultConnectionPool.incrementGenerationOnSocketException", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If there was a socket exception that wasn't some form of interrupted read, increment the generation count so that any connections\ncreated prior will be discarded.\n\n@param connection the connection that generated the exception\n@param t the exception", "docstring_tokens": ["If", "there", "was", "a", "socket", "exception", "that", "wasn", "t", "some", "form", "of", "interrupted", "read", "increment", "the", "generation", "count", "so", "that", "any", "connections", "created", "prior", "will", "be", "discarded", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java#L373-L381", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/util/ClassMap.java", "func_name": "ClassMap.getAncestry", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method that walks superclass and interface graph, superclasses first, then interfaces, to compute an ancestry list. Super\ntypes are visited left to right. Duplicates are removed such that no Class will appear in the list before one of its subtypes.\n\n@param clazz the class to get the ancestors for\n@param the type of the class modeled by this {@code Class} object.\n@return a list of all the super classes of {@code clazz}, starting with the class, and ending with {@code java.lang.Object}.", "docstring_tokens": ["Helper", "method", "that", "walks", "superclass", "and", "interface", "graph", "superclasses", "first", "then", "interfaces", "to", "compute", "an", "ancestry", "list", ".", "Super", "types", "are", "visited", "left", "to", "right", ".", "Duplicates", "are", "removed", "such", "that", "no", "Class", "will", "appear", "in", "the", "list", "before", "one", "of", "its", "subtypes", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/util/ClassMap.java#L53-L55", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/ReplaceOptions.java", "func_name": "ReplaceOptions.createReplaceOptions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates replace options from updateOptions.\n\n@param updateOptions the updateOptions\n@return replace options\n@deprecated there is no replacement for this method", "docstring_tokens": ["Creates", "replace", "options", "from", "updateOptions", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/ReplaceOptions.java#L47-L58", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/internal/Base64.java", "func_name": "Base64.decode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Decodes the given Base64-encoded string.\n\n@param s the Base64-encoded string\n@return the decoded byte array", "docstring_tokens": ["Decodes", "the", "given", "Base64", "-", "encoded", "string", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/internal/Base64.java#L67-L88", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/internal/Base64.java", "func_name": "Base64.encode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encodes the given byte array into a Base64-encoded string.\n\n\n@param in the byte array\n@return the Base64-encoded string", "docstring_tokens": ["Encodes", "the", "given", "byte", "array", "into", "a", "Base64", "-", "encoded", "string", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/internal/Base64.java#L97-L142", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/Mongo.java", "func_name": "Mongo.getAddress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the address of the current master\n\n@return the address", "docstring_tokens": ["Gets", "the", "address", "of", "the", "current", "master"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/Mongo.java#L419-L428", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/Mongo.java", "func_name": "Mongo.getReplicaSetStatus", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the status of the replica set cluster.\n\n@return replica set status information", "docstring_tokens": ["Get", "the", "status", "of", "the", "replica", "set", "cluster", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/Mongo.java#L450-L457", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/Mongo.java", "func_name": "Mongo.getDatabaseNames", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a list of the names of all databases on the connected server.\n\n@return list of database names\n@throws MongoException if the operation fails\n@deprecated Replaced with {@link com.mongodb.MongoClient#listDatabaseNames()}", "docstring_tokens": ["Gets", "a", "list", "of", "the", "names", "of", "all", "databases", "on", "the", "connected", "server", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/Mongo.java#L467-L481", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/Mongo.java", "func_name": "Mongo.fsync", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Forces the master server to fsync the RAM data to disk This is done automatically by the server at intervals, but can be forced for\nbetter reliability.\n\n@param async if true, the fsync will be done asynchronously on the server.\n@return result of the command execution\n@throws MongoException if there's a failure\n@mongodb.driver.manual reference/command/fsync/ fsync command", "docstring_tokens": ["Forces", "the", "master", "server", "to", "fsync", "the", "RAM", "data", "to", "disk", "This", "is", "done", "automatically", "by", "the", "server", "at", "intervals", "but", "can", "be", "forced", "for", "better", "reliability", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/Mongo.java#L627-L634", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/Mongo.java", "func_name": "Mongo.fsyncAndLock", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Forces the master server to fsync the RAM data to disk, then lock all writes. The database will be read-only after this command\nreturns.\n\n@return result of the command execution\n@throws MongoException if there's a failure\n@mongodb.driver.manual reference/command/fsync/ fsync command", "docstring_tokens": ["Forces", "the", "master", "server", "to", "fsync", "the", "RAM", "data", "to", "disk", "then", "lock", "all", "writes", ".", "The", "database", "will", "be", "read", "-", "only", "after", "this", "command", "returns", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/Mongo.java#L644-L649", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/Mongo.java", "func_name": "Mongo.unlock", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unlocks the database, allowing the write operations to go through. This command may be asynchronous on the server, which means there\nmay be a small delay before the database becomes writable.\n\n@return {@code DBObject} in the following form {@code {\"ok\": 1,\"info\": \"unlock completed\"}}\n@throws MongoException if there's a failure\n@mongodb.driver.manual reference/command/fsync/ fsync command", "docstring_tokens": ["Unlocks", "the", "database", "allowing", "the", "write", "operations", "to", "go", "through", ".", "This", "command", "may", "be", "asynchronous", "on", "the", "server", "which", "means", "there", "may", "be", "a", "small", "delay", "before", "the", "database", "becomes", "writable", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/Mongo.java#L659-L662", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonValue.java", "func_name": "BsonValue.asNumber", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets this value as a BsonNumber if it is one, otherwise throws exception\n\n@return a BsonNumber\n@throws org.bson.BsonInvalidOperationException if this value is not of the expected type", "docstring_tokens": ["Gets", "this", "value", "as", "a", "BsonNumber", "if", "it", "is", "one", "otherwise", "throws", "exception"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonValue.java#L79-L85", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/ConnectionId.java", "func_name": "ConnectionId.withServerValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new connectionId with the set server value\n\n@param serverValue the server value\n@return the new connection id\n@since 3.8", "docstring_tokens": ["Creates", "a", "new", "connectionId", "with", "the", "set", "server", "value"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/ConnectionId.java#L84-L87", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/util/ClassAncestry.java", "func_name": "ClassAncestry.computeAncestry", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Starting with children and going back to parents", "docstring_tokens": ["Starting", "with", "children", "and", "going", "back", "to", "parents"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/util/ClassAncestry.java#L50-L56", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/geojson/Geometry.java", "func_name": "Geometry.toJson", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts to GeoJSON representation\n\n@return the GeoJSON representation", "docstring_tokens": ["Converts", "to", "GeoJSON", "representation"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/geojson/Geometry.java#L70-L77", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/operation/MapReduceWithInlineResultsOperation.java", "func_name": "MapReduceWithInlineResultsOperation.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executing this will return a cursor with your results and the statistics in.\n\n@param binding the binding\n@return a MapReduceCursor that can be iterated over to find all the results of the Map Reduce operation.", "docstring_tokens": ["Executing", "this", "will", "return", "a", "cursor", "with", "your", "results", "and", "the", "statistics", "in", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/operation/MapReduceWithInlineResultsOperation.java#L357-L362", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/IndexOptions.java", "func_name": "IndexOptions.getExpireAfter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the time to live for documents in the collection\n\n@return the time to live for documents in the collection\n@param timeUnit the time unit\n@mongodb.driver.manual tutorial/expire-data TTL", "docstring_tokens": ["Gets", "the", "time", "to", "live", "for", "documents", "in", "the", "collection"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/IndexOptions.java#L139-L145", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/GroupCommand.java", "func_name": "GroupCommand.toDBObject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Turns this group command into the DBObject format of the command.\n\n@return a DBObject containing the group command as a MongoDB document", "docstring_tokens": ["Turns", "this", "group", "command", "into", "the", "DBObject", "format", "of", "the", "command", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/GroupCommand.java#L133-L150", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/ClusterDescription.java", "func_name": "ClusterDescription.getLogicalSessionTimeoutMinutes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the logical session timeout in minutes, or null if at least one of the known servers does not support logical sessions.\n\n@return the logical session timeout in minutes, which may be null\n@mongodb.server.release 3.6\n@since 3.6", "docstring_tokens": ["Gets", "the", "logical", "session", "timeout", "in", "minutes", "or", "null", "if", "at", "least", "one", "of", "the", "known", "servers", "does", "not", "support", "logical", "sessions", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/ClusterDescription.java#L238-L256", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/ClusterDescription.java", "func_name": "ClusterDescription.getAll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the Set of all server descriptions in this cluster, sorted by the String value of the ServerAddress of each one.\n\n@return the set of server descriptions\n@deprecated Use {@link #getServerDescriptions()} instead", "docstring_tokens": ["Returns", "the", "Set", "of", "all", "server", "descriptions", "in", "this", "cluster", "sorted", "by", "the", "String", "value", "of", "the", "ServerAddress", "of", "each", "one", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/ClusterDescription.java#L264-L282", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/ClusterDescription.java", "func_name": "ClusterDescription.getByServerAddress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the ServerDescription for the server at the given address\n\n@param serverAddress the ServerAddress for a server in this cluster\n@return the ServerDescription for this server\n@deprecated Replace with a filter on ServerDescription in the caller", "docstring_tokens": ["Returns", "the", "ServerDescription", "for", "the", "server", "at", "the", "given", "address"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/ClusterDescription.java#L291-L299", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/ClusterDescription.java", "func_name": "ClusterDescription.getPrimaries", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "While it may seem counter-intuitive that a MongoDB cluster can have more than one primary, it can in the case where the client's view\nof the cluster is a set of mongos servers, any of which can serve as the primary.\n\n@return a list of servers that can act as primaries\n@deprecated Replace with a filter on ServerDescription in the caller", "docstring_tokens": ["While", "it", "may", "seem", "counter", "-", "intuitive", "that", "a", "MongoDB", "cluster", "can", "have", "more", "than", "one", "primary", "it", "can", "in", "the", "case", "where", "the", "client", "s", "view", "of", "the", "cluster", "is", "a", "set", "of", "mongos", "servers", "any", "of", "which", "can", "serve", "as", "the", "primary", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/ClusterDescription.java#L308-L315", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/ClusterDescription.java", "func_name": "ClusterDescription.getSecondaries", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a list of all the secondaries in this cluster\n\n@return a List of ServerDescriptions of all the secondaries this cluster is currently aware of\n@deprecated Replace with a filter on ServerDescription in the caller", "docstring_tokens": ["Get", "a", "list", "of", "all", "the", "secondaries", "in", "this", "cluster"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/ClusterDescription.java#L323-L330", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/ClusterDescription.java", "func_name": "ClusterDescription.getSecondaries", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a list of all the secondaries in this cluster that match a given TagSet\n\n@param tagSet a Set of replica set tags\n@return a List of ServerDescriptions of all the secondaries this cluster that match all of the given tags\n@deprecated Replace with a filter on ServerDescription in the caller", "docstring_tokens": ["Get", "a", "list", "of", "all", "the", "secondaries", "in", "this", "cluster", "that", "match", "a", "given", "TagSet"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/ClusterDescription.java#L339-L346", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/ClusterDescription.java", "func_name": "ClusterDescription.getAny", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a list of ServerDescriptions for all the servers in this cluster which are currently accessible.\n\n@return a List of ServerDescriptions for all servers that have a status of OK\n@deprecated Replace with a filter on ServerDescription in the caller", "docstring_tokens": ["Gets", "a", "list", "of", "ServerDescriptions", "for", "all", "the", "servers", "in", "this", "cluster", "which", "are", "currently", "accessible", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/ClusterDescription.java#L354-L361", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/ClusterDescription.java", "func_name": "ClusterDescription.getAnyPrimaryOrSecondary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a list of all the primaries and secondaries in this cluster.\n\n@return a list of ServerDescriptions for all primary and secondary servers\n@deprecated Replace with a filter on ServerDescription in the caller", "docstring_tokens": ["Gets", "a", "list", "of", "all", "the", "primaries", "and", "secondaries", "in", "this", "cluster", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/ClusterDescription.java#L369-L376", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/ClusterDescription.java", "func_name": "ClusterDescription.getAnyPrimaryOrSecondary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a list of all the primaries and secondaries in this cluster that match the given replica set tags.\n\n@param tagSet a Set of replica set tags\n@return a list of ServerDescriptions for all primary and secondary servers that contain all of the given tags\n@deprecated Replace with a filter on ServerDescription in the caller", "docstring_tokens": ["Gets", "a", "list", "of", "all", "the", "primaries", "and", "secondaries", "in", "this", "cluster", "that", "match", "the", "given", "replica", "set", "tags", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/ClusterDescription.java#L385-L392", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/ClusterDescription.java", "func_name": "ClusterDescription.getShortDescription", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a short, pretty description for this ClusterDescription.\n\n@return a String describing this cluster.", "docstring_tokens": ["Returns", "a", "short", "pretty", "description", "for", "this", "ClusterDescription", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/ClusterDescription.java#L459-L471", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/MongoCredential.java", "func_name": "MongoCredential.createCredential", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a MongoCredential instance with an unspecified mechanism. The client will negotiate the best mechanism based on the\nversion of the server that the client is authenticating to.\n\n

If the server version is 4.0 or higher, the driver will negotiate with the server preferring the SCRAM-SHA-256 mechanism. 3.x\nservers will authenticate using SCRAM-SHA-1, older servers will authenticate using the MONGODB_CR mechanism.

\n\n@param userName the user name\n@param database the database where the user is defined\n@param password the user's password\n@return the credential\n\n@since 2.13\n@mongodb.driver.manual core/authentication/#authentication-scram-sha-256 SCRAM-SHA-256\n@mongodb.driver.manual core/authentication/#authentication-scram-sha-1 SCRAM-SHA-1\n@mongodb.driver.manual core/authentication/#mongodb-cr-authentication MONGODB-CR", "docstring_tokens": ["Creates", "a", "MongoCredential", "instance", "with", "an", "unspecified", "mechanism", ".", "The", "client", "will", "negotiate", "the", "best", "mechanism", "based", "on", "the", "version", "of", "the", "server", "that", "the", "client", "is", "authenticating", "to", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/MongoCredential.java#L168-L170", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/MongoCredential.java", "func_name": "MongoCredential.createScramSha256Credential", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a MongoCredential instance for the SCRAM-SHA-256 SASL mechanism.\n\n@param userName the non-null user name\n@param source the source where the user is defined.\n@param password the non-null user password\n@return the credential\n@see #createCredential(String, String, char[])\n\n@since 3.8\n@mongodb.server.release 4.0\n@mongodb.driver.manual core/authentication/#authentication-scram-sha-256 SCRAM-SHA-256", "docstring_tokens": ["Creates", "a", "MongoCredential", "instance", "for", "the", "SCRAM", "-", "SHA", "-", "256", "SASL", "mechanism", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/MongoCredential.java#L206-L208", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/MongoCredential.java", "func_name": "MongoCredential.createPlainCredential", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a MongoCredential instance for the PLAIN SASL mechanism.\n\n@param userName the non-null user name\n@param source the source where the user is defined. This can be either {@code \"$external\"} or the name of a database.\n@param password the non-null user password\n@return the credential\n\n@since 2.12\n@mongodb.server.release 2.6\n@mongodb.driver.manual core/authentication/#ldap-proxy-authority-authentication PLAIN", "docstring_tokens": ["Creates", "a", "MongoCredential", "instance", "for", "the", "PLAIN", "SASL", "mechanism", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/MongoCredential.java#L273-L275", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/MongoCredential.java", "func_name": "MongoCredential.withMechanismProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new MongoCredential as a copy of this instance, with the specified mechanism property added.\n\n@param key the key to the property, which is treated as case-insensitive\n@param value the value of the property\n@param the property type\n@return the credential\n@since 2.12", "docstring_tokens": ["Creates", "a", "new", "MongoCredential", "as", "a", "copy", "of", "this", "instance", "with", "the", "specified", "mechanism", "property", "added", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/MongoCredential.java#L316-L318", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/MongoCredential.java", "func_name": "MongoCredential.withMechanism", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new MongoCredential with the set mechanism. The existing mechanism must be null.\n\n@param mechanism the mechanism to set\n@return the credential\n@since 3.8", "docstring_tokens": ["Creates", "a", "new", "MongoCredential", "with", "the", "set", "mechanism", ".", "The", "existing", "mechanism", "must", "be", "null", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/MongoCredential.java#L327-L332", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/MongoCredential.java", "func_name": "MongoCredential.getMechanismProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the value of the given key to a mechanism property, or defaultValue if there is no mapping.\n\n@param key the mechanism property key, which is treated as case-insensitive\n@param defaultValue the default value, if no mapping exists\n@param the value type\n@return the mechanism property value\n@since 2.12", "docstring_tokens": ["Get", "the", "value", "of", "the", "given", "key", "to", "a", "mechanism", "property", "or", "defaultValue", "if", "there", "is", "no", "mapping", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/MongoCredential.java#L460-L468", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/io/OutputBuffer.java", "func_name": "OutputBuffer.toByteArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a copy of the buffered bytes.\n\n@return the byte array\n@see org.bson.io.OutputBuffer#pipe(java.io.OutputStream)", "docstring_tokens": ["Gets", "a", "copy", "of", "the", "buffered", "bytes", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/io/OutputBuffer.java#L138-L146", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/util/ClassMapBasedObjectSerializer.java", "func_name": "ClassMapBasedObjectSerializer.addObjectSerializer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Assign a ObjectSerializer to perform a type specific serialization scheme\n\n@param c this object's type serves as a key in the serialization map. ClassMapBasedObjectSerializer uses\norg.bson.util.ClassMap and not only checks if 'c' is a key in the Map, but also walks the up superclass and\ninterface graph of 'c' to find matches. This means that it is only necessary assign ObjectSerializers to base\nclasses. @see org.bson.util.ClassMap\n@param serializer performs the serialization mapping specific to the @param key type", "docstring_tokens": ["Assign", "a", "ObjectSerializer", "to", "perform", "a", "type", "specific", "serialization", "scheme"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/util/ClassMapBasedObjectSerializer.java#L40-L43", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/bulk/UpdateRequest.java", "func_name": "UpdateRequest.multi", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets whether this will update all documents matching the query filter.\n\n@param isMulti whether this will update all documents matching the query filter\n@return this", "docstring_tokens": ["Sets", "whether", "this", "will", "update", "all", "documents", "matching", "the", "query", "filter", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/bulk/UpdateRequest.java#L96-L102", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/RequestMessage.java", "func_name": "RequestMessage.encode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encoded the message to the given output.\n\n@param bsonOutput the output\n@param sessionContext the session context", "docstring_tokens": ["Encoded", "the", "message", "to", "the", "given", "output", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/RequestMessage.java#L134-L141", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/RequestMessage.java", "func_name": "RequestMessage.writeMessagePrologue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the message prologue to the given output.\n\n@param bsonOutput the output", "docstring_tokens": ["Writes", "the", "message", "prologue", "to", "the", "given", "output", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/RequestMessage.java#L157-L162", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/RequestMessage.java", "func_name": "RequestMessage.addDocument", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Appends a document to the message.\n\n@param document the document\n@param bsonOutput the output\n@param validator the field name validator", "docstring_tokens": ["Appends", "a", "document", "to", "the", "message", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/RequestMessage.java#L180-L184", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/RequestMessage.java", "func_name": "RequestMessage.addCollectibleDocument", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Appends a document to the message that is intended for storage in a collection.\n\n@param document the document\n@param bsonOutput the output\n@param validator the field name validator", "docstring_tokens": ["Appends", "a", "document", "to", "the", "message", "that", "is", "intended", "for", "storage", "in", "a", "collection", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/RequestMessage.java#L199-L202", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/RequestMessage.java", "func_name": "RequestMessage.backpatchMessageLength", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Backpatches the message length into the beginning of the message.\n\n@param startPosition the start position of the message\n@param bsonOutput the output", "docstring_tokens": ["Backpatches", "the", "message", "length", "into", "the", "beginning", "of", "the", "message", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/RequestMessage.java#L210-L213", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/gridfs/GridFSInputFile.java", "func_name": "GridFSInputFile.createChunk", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new chunk of this file. Can be over-ridden, if input files need to be split into chunks using a different mechanism.\n\n@param id the file ID\n@param currentChunkNumber the unique id for this chunk\n@param writeBuffer the byte array containing the data for this chunk\n@return a DBObject representing this chunk.", "docstring_tokens": ["Creates", "a", "new", "chunk", "of", "this", "file", ".", "Can", "be", "over", "-", "ridden", "if", "input", "files", "need", "to", "be", "split", "into", "chunks", "using", "a", "different", "mechanism", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/gridfs/GridFSInputFile.java#L292-L296", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCursor.java", "func_name": "DBCursor.copy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a copy of an existing database cursor. The new cursor is an iterator, even if the original was an array.\n\n@return the new cursor", "docstring_tokens": ["Creates", "a", "copy", "of", "an", "existing", "database", "cursor", ".", "The", "new", "cursor", "is", "an", "iterator", "even", "if", "the", "original", "was", "an", "array", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCursor.java#L148-L150", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCursor.java", "func_name": "DBCursor.hasNext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if there is another object available.\n\n

Note: Automatically adds the {@link Bytes#QUERYOPTION_AWAITDATA} option to any cursors with the\n{@link Bytes#QUERYOPTION_TAILABLE} option set. For non blocking tailable cursors see {@link #tryNext }.

\n\n@return true if there is another object available\n@mongodb.driver.manual /core/cursors/#cursor-batches Cursor Batches", "docstring_tokens": ["Checks", "if", "there", "is", "another", "object", "available", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCursor.java#L161-L178", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCursor.java", "func_name": "DBCursor.tryNext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Non blocking check for tailable cursors to see if another object is available.\n\n

Returns the object the cursor is at and moves the cursor ahead by one or\nreturn null if no documents is available.

\n\n@return the next element or null\n@throws MongoException if failed\n@throws IllegalArgumentException if the cursor is not tailable\n@mongodb.driver.manual /core/cursors/#cursor-batches Cursor Batches", "docstring_tokens": ["Non", "blocking", "check", "for", "tailable", "cursors", "to", "see", "if", "another", "object", "is", "available", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCursor.java#L210-L222", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCursor.java", "func_name": "DBCursor.toArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts this cursor to an array.\n\n@param max the maximum number of objects to return\n@return an array of objects\n@throws MongoException if failed", "docstring_tokens": ["Converts", "this", "cursor", "to", "an", "array", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCursor.java#L759-L763", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCursor.java", "func_name": "DBCursor.one", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the first document that matches the query.\n\n@return the first matching document\n@since 2.12", "docstring_tokens": ["Returns", "the", "first", "document", "that", "matches", "the", "query", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCursor.java#L784-L792", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCursor.java", "func_name": "DBCursor.getReadPreference", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the default read preference.\n\n@return the readPreference used by this cursor", "docstring_tokens": ["Gets", "the", "default", "read", "preference", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCursor.java#L890-L896", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBCursor.java", "func_name": "DBCursor.getReadConcern", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the read concern for this collection.\n\n@return the {@link com.mongodb.ReadConcern}\n@since 3.2\n@mongodb.server.release 3.2\n@mongodb.driver.manual reference/readConcern/ Read Concern", "docstring_tokens": ["Get", "the", "read", "concern", "for", "this", "collection", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBCursor.java#L920-L926", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BasicBSONCallback.java", "func_name": "BasicBSONCallback._put", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Puts a new value into the document.\n\n@param name the name of the field\n@param value the value", "docstring_tokens": ["Puts", "a", "new", "value", "into", "the", "document", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BasicBSONCallback.java#L258-L260", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DefaultDBEncoder.java", "func_name": "DefaultDBEncoder.putDBRef", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deals with encoding database references.\n\n@param name the name of the field in the document\n@param ref the database reference object", "docstring_tokens": ["Deals", "with", "encoding", "database", "references", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DefaultDBEncoder.java#L52-L59", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/bulk/BulkWriteResult.java", "func_name": "BulkWriteResult.unacknowledged", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create an unacknowledged BulkWriteResult\n\n@return an unacknowledged BulkWriteResult", "docstring_tokens": ["Create", "an", "unacknowledged", "BulkWriteResult"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/bulk/BulkWriteResult.java#L239-L304", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ServerAddress.java", "func_name": "ServerAddress.getSocketAddress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the underlying socket address\n\n@return socket address", "docstring_tokens": ["Gets", "the", "underlying", "socket", "address"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ServerAddress.java#L186-L192", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ServerAddress.java", "func_name": "ServerAddress.getSocketAddresses", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets all underlying socket addresses\n\n@return array of socket addresses\n\n@since 3.9", "docstring_tokens": ["Gets", "all", "underlying", "socket", "addresses"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ServerAddress.java#L201-L213", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.ne", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that matches all documents where the value of the field name does not equal the specified value.\n\n@param fieldName the field name\n@param value the value, which may be null\n@param the value type\n@return the filter\n@mongodb.driver.manual reference/operator/query/ne $ne", "docstring_tokens": ["Creates", "a", "filter", "that", "matches", "all", "documents", "where", "the", "value", "of", "the", "field", "name", "does", "not", "equal", "the", "specified", "value", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L98-L100", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.gt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that matches all documents where the value of the given field is greater than the specified value.\n\n@param fieldName the field name\n@param value the value\n@param the value type\n@return the filter\n@mongodb.driver.manual reference/operator/query/gt $gt", "docstring_tokens": ["Creates", "a", "filter", "that", "matches", "all", "documents", "where", "the", "value", "of", "the", "given", "field", "is", "greater", "than", "the", "specified", "value", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L111-L113", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.lt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that matches all documents where the value of the given field is less than the specified value.\n\n@param fieldName the field name\n@param value the value\n@param the value type\n@return the filter\n@mongodb.driver.manual reference/operator/query/lt $lt", "docstring_tokens": ["Creates", "a", "filter", "that", "matches", "all", "documents", "where", "the", "value", "of", "the", "given", "field", "is", "less", "than", "the", "specified", "value", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L124-L126", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.gte", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that matches all documents where the value of the given field is greater than or equal to the specified value.\n\n@param fieldName the field name\n@param value the value\n@param the value type\n@return the filter\n@mongodb.driver.manual reference/operator/query/gte $gte", "docstring_tokens": ["Creates", "a", "filter", "that", "matches", "all", "documents", "where", "the", "value", "of", "the", "given", "field", "is", "greater", "than", "or", "equal", "to", "the", "specified", "value", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L137-L139", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.lte", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that matches all documents where the value of the given field is less than or equal to the specified value.\n\n@param fieldName the field name\n@param value the value\n@param the value type\n@return the filter\n@mongodb.driver.manual reference/operator/query/lte $lte", "docstring_tokens": ["Creates", "a", "filter", "that", "matches", "all", "documents", "where", "the", "value", "of", "the", "given", "field", "is", "less", "than", "or", "equal", "to", "the", "specified", "value", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L150-L152", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.or", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that preforms a logical OR of the provided list of filters.\n\n@param filters the list of filters to and together\n@return the filter\n@mongodb.driver.manual reference/operator/query/or $or", "docstring_tokens": ["Creates", "a", "filter", "that", "preforms", "a", "logical", "OR", "of", "the", "provided", "list", "of", "filters", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L258-L260", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.nor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that performs a logical NOR operation on all the specified filters.\n\n@param filters the list of values\n@return the filter\n@mongodb.driver.manual reference/operator/query/nor $nor", "docstring_tokens": ["Creates", "a", "filter", "that", "performs", "a", "logical", "NOR", "operation", "on", "all", "the", "specified", "filters", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L312-L314", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.exists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that matches all documents that either contain or do not contain the given field, depending on the value of the\nexists parameter.\n\n@param fieldName the field name\n@param exists true to check for existence, false to check for absence\n@return the filter\n@mongodb.driver.manual reference/operator/query/exists $exists", "docstring_tokens": ["Creates", "a", "filter", "that", "matches", "all", "documents", "that", "either", "contain", "or", "do", "not", "contain", "the", "given", "field", "depending", "on", "the", "value", "of", "the", "exists", "parameter", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L337-L339", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.text", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that matches all documents matching the given search term using the given language.\n\n@param search the search term\n@param language the language to use for stop words\n@return the filter\n@mongodb.driver.manual reference/operator/query/text $text\n@deprecated use {@link Filters#text(String, TextSearchOptions)}", "docstring_tokens": ["Creates", "a", "filter", "that", "matches", "all", "documents", "matching", "the", "given", "search", "term", "using", "the", "given", "language", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L442-L446", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.text", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that matches all documents matching the given the search term with the given text search options.\n\n@param search the search term\n@param textSearchOptions the text search options to use\n@return the filter\n@mongodb.driver.manual reference/operator/query/text $text\n@since 3.2", "docstring_tokens": ["Creates", "a", "filter", "that", "matches", "all", "documents", "matching", "the", "given", "the", "search", "term", "with", "the", "given", "text", "search", "options", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L457-L461", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.elemMatch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that matches all documents containing a field that is an array where at least one member of the array matches the\ngiven filter.\n\n@param fieldName the field name\n@param filter the filter to apply to each element\n@return the filter\n@mongodb.driver.manual reference/operator/query/elemMatch $elemMatch", "docstring_tokens": ["Creates", "a", "filter", "that", "matches", "all", "documents", "containing", "a", "field", "that", "is", "an", "array", "where", "at", "least", "one", "member", "of", "the", "array", "matches", "the", "given", "filter", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L524-L531", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.geoWithinBox", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified\nbox.\n\n@param fieldName the field name\n@param lowerLeftX the lower left x coordinate of the box\n@param lowerLeftY the lower left y coordinate of the box\n@param upperRightX the upper left x coordinate of the box\n@param upperRightY the upper left y coordinate of the box\n@return the filter\n@mongodb.driver.manual reference/operator/query/geoWithin/ $geoWithin\n@mongodb.driver.manual reference/operator/query/box/#op._S_box $box\n@mongodb.server.release 2.4\n@since 3.1", "docstring_tokens": ["Creates", "a", "filter", "that", "matches", "all", "documents", "containing", "a", "field", "with", "grid", "coordinates", "data", "that", "exist", "entirely", "within", "the", "specified", "box", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L644-L652", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.geoWithinPolygon", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified\npolygon.\n\n@param fieldName the field name\n@param points a list of pairs of x, y coordinates. Any extra dimensions are ignored\n@return the filter\n@mongodb.driver.manual reference/operator/query/geoWithin/ $geoWithin\n@mongodb.driver.manual reference/operator/query/polygon/#op._S_polygon $polygon\n@mongodb.server.release 2.4\n@since 3.1", "docstring_tokens": ["Creates", "a", "filter", "that", "matches", "all", "documents", "containing", "a", "field", "with", "grid", "coordinates", "data", "that", "exist", "entirely", "within", "the", "specified", "polygon", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L666-L673", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.geoWithinCenter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that matches all documents containing a field with grid coordinates data that exist entirely within the specified\ncircle.\n\n@param fieldName the field name\n@param x the x coordinate of the circle\n@param y the y coordinate of the circle\n@param radius the radius of the circle, as measured in the units used by the coordinate system\n@return the filter\n@mongodb.driver.manual reference/operator/query/geoWithin/ $geoWithin\n@mongodb.driver.manual reference/operator/query/center/#op._S_center $center\n@mongodb.server.release 2.4\n@since 3.1", "docstring_tokens": ["Creates", "a", "filter", "that", "matches", "all", "documents", "containing", "a", "field", "with", "grid", "coordinates", "data", "that", "exist", "entirely", "within", "the", "specified", "circle", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L689-L695", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.near", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that matches all documents containing a field with geospatial data that is near the specified GeoJSON point.\n\n@param fieldName the field name\n@param geometry the bounding GeoJSON geometry object\n@param maxDistance the maximum distance from the point, in meters. It may be null.\n@param minDistance the minimum distance from the point, in meters. It may be null.\n@return the filter\n@since 3.1\n@mongodb.driver.manual reference/operator/query/near/ $near\n@mongodb.server.release 2.4", "docstring_tokens": ["Creates", "a", "filter", "that", "matches", "all", "documents", "containing", "a", "field", "with", "geospatial", "data", "that", "is", "near", "the", "specified", "GeoJSON", "point", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L759-L762", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Filters.java", "func_name": "Filters.near", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter that matches all documents containing a field with geospatial data that is near the specified point.\n\n@param fieldName the field name\n@param x the x coordinate\n@param y the y coordinate\n@param maxDistance the maximum distance from the point, in radians. It may be null.\n@param minDistance the minimum distance from the point, in radians. It may be null.\n@return the filter\n@since 3.1\n@mongodb.driver.manual reference/operator/query/near/ $near\n@mongodb.server.release 2.4", "docstring_tokens": ["Creates", "a", "filter", "that", "matches", "all", "documents", "containing", "a", "field", "with", "geospatial", "data", "that", "is", "near", "the", "specified", "point", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Filters.java#L794-L797", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BSON.java", "func_name": "BSON.regexFlags", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts a sequence of regular expression modifiers from the database into Java regular expression flags.\n\n@param s regular expression modifiers\n@return the Java flags\n@throws IllegalArgumentException If sequence contains invalid flags.", "docstring_tokens": ["Converts", "a", "sequence", "of", "regular", "expression", "modifiers", "from", "the", "database", "into", "Java", "regular", "expression", "flags", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BSON.java#L297-L309", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BSON.java", "func_name": "BSON.regexFlag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts a regular expression modifier from the database into Java regular expression flags.\n\n@param c regular expression modifier\n@return the Java flags\n@throws IllegalArgumentException If sequence contains invalid flags.", "docstring_tokens": ["Converts", "a", "regular", "expression", "modifier", "from", "the", "database", "into", "Java", "regular", "expression", "flags", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BSON.java#L318-L327", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BSON.java", "func_name": "BSON.regexFlags", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts Java regular expression flags into regular expression modifiers from the database.\n\n@param flags the Java flags\n@return the Java flags\n@throws IllegalArgumentException if some flags couldn't be recognized.", "docstring_tokens": ["Converts", "Java", "regular", "expression", "flags", "into", "regular", "expression", "modifiers", "from", "the", "database", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BSON.java#L336-L352", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/bulk/IndexRequest.java", "func_name": "IndexRequest.textVersion", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the text index version number.\n\n@param textVersion the text index version number.\n@return this", "docstring_tokens": ["Set", "the", "text", "index", "version", "number", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/bulk/IndexRequest.java#L303-L309", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/bulk/IndexRequest.java", "func_name": "IndexRequest.sphereVersion", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the 2dsphere index version number.\n\n@param sphereVersion the 2dsphere index version number.\n@return this", "docstring_tokens": ["Sets", "the", "2dsphere", "index", "version", "number", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/bulk/IndexRequest.java#L326-L332", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/client/model/DBCollectionFindOptions.java", "func_name": "DBCollectionFindOptions.copy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copy this DBCollectionFindOptions instance into a new instance.\n\n@return the new DBCollectionFindOptions with the same settings as this instance.", "docstring_tokens": ["Copy", "this", "DBCollectionFindOptions", "instance", "into", "a", "new", "instance", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/client/model/DBCollectionFindOptions.java#L72-L96", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/assertions/Assertions.java", "func_name": "Assertions.convertToType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Cast an object to the given class and return it, or throw IllegalArgumentException if it's not assignable to that class.\n\n@param clazz the class to cast to\n@param value the value to cast\n@param errorMessage the error message to include in the exception\n@param the Class type\n@return value cast to clazz\n@throws IllegalArgumentException if value is not assignable to clazz", "docstring_tokens": ["Cast", "an", "object", "to", "the", "given", "class", "and", "return", "it", "or", "throw", "IllegalArgumentException", "if", "it", "s", "not", "assignable", "to", "that", "class", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/assertions/Assertions.java#L95-L101", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/DBEncoderAdapter.java", "func_name": "DBEncoderAdapter.encode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "over an array of ByteBuffer instances from a PooledByteBufferOutputBuffer", "docstring_tokens": ["over", "an", "array", "of", "ByteBuffer", "instances", "from", "a", "PooledByteBufferOutputBuffer"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/DBEncoderAdapter.java#L40-L54", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/operation/MixedBulkWriteOperation.java", "func_name": "MixedBulkWriteOperation.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes a bulk write operation.\n\n@param binding the WriteBinding for the operation\n@return the bulk write result.\n@throws MongoBulkWriteException if a failure to complete the bulk write is detected based on the server response", "docstring_tokens": ["Executes", "a", "bulk", "write", "operation", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/operation/MixedBulkWriteOperation.java#L192-L209", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/BulkWriteRequestBuilder.java", "func_name": "BulkWriteRequestBuilder.upsert", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Specifies that the request being built should be an upsert.\n\n@return a new builder that allows only update and replace, since upsert does not apply to remove.\n@mongodb.driver.manual tutorial/modify-documents/#upsert-option Upsert", "docstring_tokens": ["Specifies", "that", "the", "request", "being", "built", "should", "be", "an", "upsert", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/BulkWriteRequestBuilder.java#L123-L125", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/BulkWriteRequestBuilder.java", "func_name": "BulkWriteRequestBuilder.arrayFilters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Specifies that the request being built should use the given array filters for an update. Note that this option only applies to\nupdate operations and will be ignored for replace operations\n\n@param arrayFilters the array filters to apply to the update operation\n@return a new builder that allows only update and replace, since upsert does not apply to remove.\n@since 3.6\n@mongodb.server.release 3.6", "docstring_tokens": ["Specifies", "that", "the", "request", "being", "built", "should", "use", "the", "given", "array", "filters", "for", "an", "update", ".", "Note", "that", "this", "option", "only", "applies", "to", "update", "operations", "and", "will", "be", "ignored", "for", "replace", "operations"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/BulkWriteRequestBuilder.java#L136-L138", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/operation/MapReduceToCollectionOperation.java", "func_name": "MapReduceToCollectionOperation.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executing this will return a cursor with your results in.\n\n@param binding the binding\n@return a MongoCursor that can be iterated over to find all the results of the Map Reduce operation.", "docstring_tokens": ["Executing", "this", "will", "return", "a", "cursor", "with", "your", "results", "in", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/operation/MapReduceToCollectionOperation.java#L508-L518", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-embedded/src/main/com/mongodb/embedded/client/MongoClients.java", "func_name": "MongoClients.init", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initializes the mongod library for use.\n\n

The library must be called at most once per process before calling {@link #create(MongoClientSettings)}.

\n@param mongoEmbeddedSettings the settings for the embedded driver.", "docstring_tokens": ["Initializes", "the", "mongod", "library", "for", "use", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-embedded/src/main/com/mongodb/embedded/client/MongoClients.java#L43-L55", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-embedded/src/main/com/mongodb/embedded/client/MongoClients.java", "func_name": "MongoClients.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new client.\n\n@param mongoClientSettings the mongoClientSettings\n@return the client", "docstring_tokens": ["Creates", "a", "new", "client", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-embedded/src/main/com/mongodb/embedded/client/MongoClients.java#L63-L75", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-embedded/src/main/com/mongodb/embedded/client/MongoClients.java", "func_name": "MongoClients.close", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Closes down the mongod library", "docstring_tokens": ["Closes", "down", "the", "mongod", "library"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-embedded/src/main/com/mongodb/embedded/client/MongoClients.java#L80-L92", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/SslHelper.java", "func_name": "SslHelper.enableSni", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enable SNI if running on Java 8 or later. Otherwise fail silently to enable SNI.\n\n@param host the server host\n@param sslParameters the SSL parameters", "docstring_tokens": ["Enable", "SNI", "if", "running", "on", "Java", "8", "or", "later", ".", "Otherwise", "fail", "silently", "to", "enable", "SNI", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/SslHelper.java#L73-L77", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/Bytes.java", "func_name": "Bytes.getType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the type byte for a given object.\n\n@param object the object\n@return the byte value associated with the type, or -1 if no type is matched", "docstring_tokens": ["Gets", "the", "type", "byte", "for", "a", "given", "object", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/Bytes.java#L145-L211", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/MapReduceCommand.java", "func_name": "MapReduceCommand.toDBObject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Turns this command into a DBObject representation of this map reduce command.\n\n@return a DBObject that contains the MongoDB document representation of this command.", "docstring_tokens": ["Turns", "this", "command", "into", "a", "DBObject", "representation", "of", "this", "map", "reduce", "command", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/MapReduceCommand.java#L320-L382", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/ClusterSettings.java", "func_name": "ClusterSettings.getShortDescription", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a short, pretty description for these ClusterSettings.\n\n@return a String description of the relevant settings.", "docstring_tokens": ["Returns", "a", "short", "pretty", "description", "for", "these", "ClusterSettings", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/ClusterSettings.java#L581-L592", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/result/UpdateResult.java", "func_name": "UpdateResult.acknowledged", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create an acknowledged UpdateResult\n\n@param matchedCount the number of documents matched\n@param modifiedCount the number of documents modified\n@param upsertedId if the replace resulted in an inserted document, the id of the inserted document\n@return an acknowledged UpdateResult", "docstring_tokens": ["Create", "an", "acknowledged", "UpdateResult"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/result/UpdateResult.java#L79-L82", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/gridfs/model/GridFSFile.java", "func_name": "GridFSFile.getContentType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The content type of the file\n\n@return the content type of the file\n@deprecated content type information should be stored the metadata document instead.", "docstring_tokens": ["The", "content", "type", "of", "the", "file"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/gridfs/model/GridFSFile.java#L194-L201", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/gridfs/model/GridFSFile.java", "func_name": "GridFSFile.getAliases", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The aliases for the file\n\n@return the aliases of the file\n@deprecated any aliases should be stored in the metadata document instead.", "docstring_tokens": ["The", "aliases", "for", "the", "file"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/gridfs/model/GridFSFile.java#L209-L217", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/AbstractByteBufBsonDocument.java", "func_name": "AbstractByteBufBsonDocument.getFirstKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the first key in this document, or null if the document is empty.\n\n@return the first key in this document, or null if the document is empty", "docstring_tokens": ["Gets", "the", "first", "key", "in", "this", "document", "or", "null", "if", "the", "document", "is", "empty", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/AbstractByteBufBsonDocument.java#L185-L197", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/codecs/EncoderContext.java", "func_name": "EncoderContext.encodeWithChildContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a child context based on this and serializes the value with it to the writer.\n\n@param encoder the encoder to encode value with\n@param writer the writer to encode to\n@param value the value to encode\n@param the type of the value", "docstring_tokens": ["Creates", "a", "child", "context", "based", "on", "this", "and", "serializes", "the", "value", "with", "it", "to", "the", "writer", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/codecs/EncoderContext.java#L90-L92", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ReadConcern.java", "func_name": "ReadConcern.asDocument", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets this read concern as a document.\n\n@return The read concern as a BsonDocument", "docstring_tokens": ["Gets", "this", "read", "concern", "as", "a", "document", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ReadConcern.java#L110-L116", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/SnappyCompressor.java", "func_name": "SnappyCompressor.compress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "be copied into a single byte array. For that reason the compress method defined in the base class can't be used.", "docstring_tokens": ["be", "copied", "into", "a", "single", "byte", "array", ".", "For", "that", "reason", "the", "compress", "method", "defined", "in", "the", "base", "class", "can", "t", "be", "used", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/SnappyCompressor.java#L42-L56", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BasicBSONObject.java", "func_name": "BasicBSONObject.getString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the value of a field as a string\n\n@param key the field to look up\n@return the value of the field, converted to a string", "docstring_tokens": ["Returns", "the", "value", "of", "a", "field", "as", "a", "string"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BasicBSONObject.java#L211-L217", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BasicBSONObject.java", "func_name": "BasicBSONObject.getBoolean", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the value of a field as a boolean\n\n@param key the field to look up\n@param def the default value in case the field is not found\n@return the value of the field, converted to a string", "docstring_tokens": ["Returns", "the", "value", "of", "a", "field", "as", "a", "boolean"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BasicBSONObject.java#L252-L264", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BasicBSONObject.java", "func_name": "BasicBSONObject.getObjectId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the object id or def if not set.\n\n@param field The field to return\n@param def the default value in case the field is not found\n@return The field object value or def if not set.", "docstring_tokens": ["Returns", "the", "object", "id", "or", "def", "if", "not", "set", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BasicBSONObject.java#L283-L286", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BasicBSONObject.java", "func_name": "BasicBSONObject.getDate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the date or def if not set.\n\n@param field The field to return\n@param def the default value in case the field is not found\n@return The field object value or def if not set.", "docstring_tokens": ["Returns", "the", "date", "or", "def", "if", "not", "set", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BasicBSONObject.java#L305-L308", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BasicBSONObject.java", "func_name": "BasicBSONObject.canonicalize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "create a copy of \"from\", but with keys ordered alphabetically", "docstring_tokens": ["create", "a", "copy", "of", "from", "but", "with", "keys", "ordered", "alphabetically"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BasicBSONObject.java#L377-L388", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/MongoClient.java", "func_name": "MongoClient.getCredential", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the credential that this client authenticates all connections with\n\n@return the credential, which may be null in unsecured deployments\n@since 3.9", "docstring_tokens": ["Gets", "the", "credential", "that", "this", "client", "authenticates", "all", "connections", "with"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/MongoClient.java#L433-L442", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/MongoClient.java", "func_name": "MongoClient.startSession", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a client session.\n\n@param options the options for the client session\n@return the client session\n@throws MongoClientException if the MongoDB cluster to which this client is connected does not support sessions\n@mongodb.server.release 3.6\n@since 3.6", "docstring_tokens": ["Creates", "a", "client", "session", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/MongoClient.java#L578-L584", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/WriteConcern.java", "func_name": "WriteConcern.getWTimeout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the wTimeout in the given time unit.\n\n@param timeUnit the non-null time unit for the result\n@return the WTimeout, which may be null if a wTimeout has not been specified\n@since 3.2\n@mongodb.driver.manual core/write-concern/#timeouts wTimeout", "docstring_tokens": ["Gets", "the", "wTimeout", "in", "the", "given", "time", "unit", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/WriteConcern.java#L372-L376", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/WriteConcern.java", "func_name": "WriteConcern.asDocument", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets this write concern as a document.\n\n@return The write concern as a BsonDocument, even if {@code w <= 0}", "docstring_tokens": ["Gets", "this", "write", "concern", "as", "a", "document", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/WriteConcern.java#L461-L471", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/WriteConcern.java", "func_name": "WriteConcern.isAcknowledged", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if this write concern indicates that write operations must be acknowledged.\n\n@return true w != null or w > 0 or journal is true or fsync is true\n@mongodb.driver.manual core/write-concern/#acknowledged Acknowledged", "docstring_tokens": ["Returns", "true", "if", "this", "write", "concern", "indicates", "that", "write", "operations", "must", "be", "acknowledged", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/WriteConcern.java#L479-L484", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/WriteConcern.java", "func_name": "WriteConcern.withW", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a new WriteConcern from the current one and the specified integer-based value for w\n\n@param w number of servers to ensure write propagation to before acknowledgment, which must be {@code >= 0}\n@return the new WriteConcern\n@mongodb.driver.manual core/write-concern/#replica-acknowledged Replica Acknowledged", "docstring_tokens": ["Constructs", "a", "new", "WriteConcern", "from", "the", "current", "one", "and", "the", "specified", "integer", "-", "based", "value", "for", "w"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/WriteConcern.java#L546-L548", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/WriteConcern.java", "func_name": "WriteConcern.withW", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a new WriteConcern from the current one and the specified tag-set based value for w\n\n@param w tag set, or \"majority\", representing the servers to ensure write propagation to before acknowledgment. Do not use string\nrepresentation of integer values for w\n@return the new WriteConcern\n@see #withW(int)\n@mongodb.driver.manual tutorial/configure-replica-set-tag-sets/#replica-set-configuration-tag-sets Tag Sets", "docstring_tokens": ["Constructs", "a", "new", "WriteConcern", "from", "the", "current", "one", "and", "the", "specified", "tag", "-", "set", "based", "value", "for", "w"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/WriteConcern.java#L559-L562", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/WriteConcern.java", "func_name": "WriteConcern.withWTimeout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a new WriteConcern from the current one and the specified wTimeout in the given time unit.\n\n@param wTimeout the wTimeout, which must be >= 0 and <= Integer.MAX_VALUE after conversion to milliseconds\n@param timeUnit the non-null time unit to apply to wTimeout\n@return the WriteConcern with the given wTimeout\n@since 3.2\n@mongodb.driver.manual reference/write-concern/#wtimeout wtimeout option", "docstring_tokens": ["Constructs", "a", "new", "WriteConcern", "from", "the", "current", "one", "and", "the", "specified", "wTimeout", "in", "the", "given", "time", "unit", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/WriteConcern.java#L610-L616", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/WriteConcern.java", "func_name": "WriteConcern.majorityWriteConcern", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a Majority Write Concern that requires a majority of servers to acknowledge the write.\n\n@param wtimeout timeout for write operation\n@param fsync whether or not to fsync\n@param j whether writes should wait for a journal group commit\n@return Majority, a subclass of WriteConcern that represents the write concern requiring most servers to acknowledge the write\n@deprecated Prefer {@link #MAJORITY}, {@link #withWTimeout(long, TimeUnit)}, {@link #withJournal(Boolean)}", "docstring_tokens": ["Create", "a", "Majority", "Write", "Concern", "that", "requires", "a", "majority", "of", "servers", "to", "acknowledge", "the", "write", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/WriteConcern.java#L653-L656", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/BulkWriteOperation.java", "func_name": "BulkWriteOperation.insert", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add an insert request to the bulk operation\n\n@param document the document to insert", "docstring_tokens": ["Add", "an", "insert", "request", "to", "the", "bulk", "operation"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/BulkWriteOperation.java#L90-L96", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/BulkWriteOperation.java", "func_name": "BulkWriteOperation.find", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Start building a write request to add to the bulk write operation. The returned builder can be used to create an update, replace,\nor remove request with the given query.\n\n@param query the query for an update, replace or remove request\n@return a builder for a single write request", "docstring_tokens": ["Start", "building", "a", "write", "request", "to", "add", "to", "the", "bulk", "write", "operation", ".", "The", "returned", "builder", "can", "be", "used", "to", "create", "an", "update", "replace", "or", "remove", "request", "with", "the", "given", "query", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/BulkWriteOperation.java#L105-L108", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/BulkWriteOperation.java", "func_name": "BulkWriteOperation.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute the bulk write operation with the default write concern of the collection from which this came. Note that the\ncontinueOnError property of the write concern is ignored.\n\n@return the result of the bulk write operation.\n@throws com.mongodb.BulkWriteException if the write failed due some other failure specific to the write command\n@throws MongoException if the operation failed for some other reason", "docstring_tokens": ["Execute", "the", "bulk", "write", "operation", "with", "the", "default", "write", "concern", "of", "the", "collection", "from", "which", "this", "came", ".", "Note", "that", "the", "continueOnError", "property", "of", "the", "write", "concern", "is", "ignored", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/BulkWriteOperation.java#L118-L122", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/BasicDBObject.java", "func_name": "BasicDBObject.copy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new instance which is a copy of this BasicDBObject.\n\n@return a BasicDBObject with exactly the same values as this instance.", "docstring_tokens": ["Creates", "a", "new", "instance", "which", "is", "a", "copy", "of", "this", "BasicDBObject", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/BasicDBObject.java#L254-L267", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Indexes.java", "func_name": "Indexes.geoHaystack", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create an index key for a geohaystack index on the given field.\n\n

\nNote: For queries that use spherical geometry, a 2dsphere index is a better option than a haystack index.\n2dsphere indexes allow field reordering; geoHaystack indexes require the first field to be the location field. Also, geoHaystack\nindexes are only usable via commands and so always return all results at once..\n

\n\n@param fieldName the field to create a geoHaystack index on\n@param additional the additional field that forms the geoHaystack index key\n@return the index specification\n@mongodb.driver.manual core/geohaystack geoHaystack index", "docstring_tokens": ["Create", "an", "index", "key", "for", "a", "geohaystack", "index", "on", "the", "given", "field", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Indexes.java#L144-L147", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/operation/CreateIndexesOperation.java", "func_name": "CreateIndexesOperation.getIndexNames", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the index names.\n\n@return a list of index names", "docstring_tokens": ["Gets", "the", "index", "names", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/operation/CreateIndexesOperation.java#L130-L140", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocument.java", "func_name": "BsonDocument.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the document does not contain the given key, return the given default value. Otherwise, gets the value of the key.\n\n@param key the key\n@param defaultValue the default value\n@return the value of the key as a BsonValue", "docstring_tokens": ["If", "the", "document", "does", "not", "contain", "the", "given", "key", "return", "the", "given", "default", "value", ".", "Otherwise", "gets", "the", "value", "of", "the", "key", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocument.java#L488-L491", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocument.java", "func_name": "BsonDocument.getDocument", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the document does not contain the given key, return the given default value. Otherwise, gets the value of the key as a\nBsonDocument.\n\n@param key the key\n@param defaultValue the default value\n@return the value of the key as a BsonDocument\n@throws org.bson.BsonInvalidOperationException if the document contains the key but the value is not of the expected type", "docstring_tokens": ["If", "the", "document", "does", "not", "contain", "the", "given", "key", "return", "the", "given", "default", "value", ".", "Otherwise", "gets", "the", "value", "of", "the", "key", "as", "a", "BsonDocument", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocument.java#L502-L507", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocument.java", "func_name": "BsonDocument.getArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the document does not contain the given key, return the given default value. Otherwise, gets the value of the key as a\nBsonArray.\n\n@param key the key\n@param defaultValue the default value\n@return the value of the key as a BsonArray\n@throws org.bson.BsonInvalidOperationException if the document contains the key but the value is not of the expected type", "docstring_tokens": ["If", "the", "document", "does", "not", "contain", "the", "given", "key", "return", "the", "given", "default", "value", ".", "Otherwise", "gets", "the", "value", "of", "the", "key", "as", "a", "BsonArray", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocument.java#L518-L523", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocument.java", "func_name": "BsonDocument.getNumber", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the document does not contain the given key, return the given default value. Otherwise, gets the value of the key as a\nBsonNumber.\n\n@param key the key\n@param defaultValue the default value\n@return the value of the key as a BsonNumber\n@throws org.bson.BsonInvalidOperationException if the document contains the key but the value is not of the expected type", "docstring_tokens": ["If", "the", "document", "does", "not", "contain", "the", "given", "key", "return", "the", "given", "default", "value", ".", "Otherwise", "gets", "the", "value", "of", "the", "key", "as", "a", "BsonNumber", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocument.java#L534-L539", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocument.java", "func_name": "BsonDocument.getInt32", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the document does not contain the given key, return the given default value. Otherwise, gets the value of the key as a\nBsonInt32.\n\n@param key the key\n@param defaultValue the default value\n@return the value of the key as a BsonInt32\n@throws org.bson.BsonInvalidOperationException if the document contains the key but the value is not of the expected type", "docstring_tokens": ["If", "the", "document", "does", "not", "contain", "the", "given", "key", "return", "the", "given", "default", "value", ".", "Otherwise", "gets", "the", "value", "of", "the", "key", "as", "a", "BsonInt32", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocument.java#L550-L555", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocument.java", "func_name": "BsonDocument.getInt64", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the document does not contain the given key, return the given default value. Otherwise, gets the value of the key as a\nBsonInt64.\n\n@param key the key\n@param defaultValue the default value\n@return the value of the key as a BsonInt64\n@throws org.bson.BsonInvalidOperationException if the document contains the key but the value is not of the expected type", "docstring_tokens": ["If", "the", "document", "does", "not", "contain", "the", "given", "key", "return", "the", "given", "default", "value", ".", "Otherwise", "gets", "the", "value", "of", "the", "key", "as", "a", "BsonInt64", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocument.java#L566-L571", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocument.java", "func_name": "BsonDocument.getDecimal128", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the document does not contain the given key, return the given default value. Otherwise, gets the value of the key as a\nBsonDecimal128.\n\n@param key the key\n@param defaultValue the default value\n@return the value of the key as a BsonDecimal128\n@throws org.bson.BsonInvalidOperationException if the document contains the key but the value is not of the expected type\n@since 3.4", "docstring_tokens": ["If", "the", "document", "does", "not", "contain", "the", "given", "key", "return", "the", "given", "default", "value", ".", "Otherwise", "gets", "the", "value", "of", "the", "key", "as", "a", "BsonDecimal128", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocument.java#L583-L588", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocument.java", "func_name": "BsonDocument.getDouble", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the document does not contain the given key, return the given default value. Otherwise, gets the value of the key as a\nBsonDouble.\n\n@param key the key\n@param defaultValue the default value\n@return the value of the key as a BsonDouble\n@throws org.bson.BsonInvalidOperationException if the document contains the key but the value is not of the expected type", "docstring_tokens": ["If", "the", "document", "does", "not", "contain", "the", "given", "key", "return", "the", "given", "default", "value", ".", "Otherwise", "gets", "the", "value", "of", "the", "key", "as", "a", "BsonDouble", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocument.java#L599-L604", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocument.java", "func_name": "BsonDocument.getBoolean", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the document does not contain the given key, return the given default value. Otherwise, gets the value of the key as a\nBsonBoolean.\n\n@param key the key\n@param defaultValue the default value\n@return the value of the key as a BsonBoolean\n@throws org.bson.BsonInvalidOperationException if the document contains the key but the value is not of the expected type", "docstring_tokens": ["If", "the", "document", "does", "not", "contain", "the", "given", "key", "return", "the", "given", "default", "value", ".", "Otherwise", "gets", "the", "value", "of", "the", "key", "as", "a", "BsonBoolean", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocument.java#L615-L620", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocument.java", "func_name": "BsonDocument.getString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the document does not contain the given key, return the given default value. Otherwise, gets the value of the key as a\nBsonString.\n\n@param key the key\n@param defaultValue the default value\n@return the value of the key as a BsonString\n@throws org.bson.BsonInvalidOperationException if the document contains the key but the value is not of the expected type", "docstring_tokens": ["If", "the", "document", "does", "not", "contain", "the", "given", "key", "return", "the", "given", "default", "value", ".", "Otherwise", "gets", "the", "value", "of", "the", "key", "as", "a", "BsonString", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocument.java#L631-L636", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocument.java", "func_name": "BsonDocument.getDateTime", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the document does not contain the given key, return the given default value. Otherwise, gets the value of the key as a\nBsonDateTime.\n\n@param key the key\n@param defaultValue the default value\n@return the value of the key as a BsonDateTime\n@throws org.bson.BsonInvalidOperationException if the document contains the key but the value is not of the expected type", "docstring_tokens": ["If", "the", "document", "does", "not", "contain", "the", "given", "key", "return", "the", "given", "default", "value", ".", "Otherwise", "gets", "the", "value", "of", "the", "key", "as", "a", "BsonDateTime", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocument.java#L647-L652", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocument.java", "func_name": "BsonDocument.getTimestamp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the document does not contain the given key, return the given default value. Otherwise, gets the value of the key as a\nBsonTimestamp.\n\n@param key the key\n@param defaultValue the default value\n@return the value of the key as a BsonTimestamp\n@throws org.bson.BsonInvalidOperationException if the document contains the key but the value is not of the expected type", "docstring_tokens": ["If", "the", "document", "does", "not", "contain", "the", "given", "key", "return", "the", "given", "default", "value", ".", "Otherwise", "gets", "the", "value", "of", "the", "key", "as", "a", "BsonTimestamp", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocument.java#L663-L668", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocument.java", "func_name": "BsonDocument.getObjectId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the document does not contain the given key, return the given default value. Otherwise, gets the value of the key as a\nBsonObjectId.\n\n@param key the key\n@param defaultValue the default value\n@return the value of the key as a BsonObjectId\n@throws org.bson.BsonInvalidOperationException if the document contains the key but the value is not of the expected type", "docstring_tokens": ["If", "the", "document", "does", "not", "contain", "the", "given", "key", "return", "the", "given", "default", "value", ".", "Otherwise", "gets", "the", "value", "of", "the", "key", "as", "a", "BsonObjectId", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocument.java#L679-L684", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocument.java", "func_name": "BsonDocument.getBinary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the document does not contain the given key, return the given default value. Otherwise, gets the value of the key as a\nBsonBinary.\n\n@param key the key\n@param defaultValue the default value\n@return the value of the key as a BsonBinary\n@throws org.bson.BsonInvalidOperationException if the document contains the key but the value is not of the expected type", "docstring_tokens": ["If", "the", "document", "does", "not", "contain", "the", "given", "key", "return", "the", "given", "default", "value", ".", "Otherwise", "gets", "the", "value", "of", "the", "key", "as", "a", "BsonBinary", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocument.java#L695-L700", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocument.java", "func_name": "BsonDocument.getRegularExpression", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the document does not contain the given key, return the given default value. Otherwise, gets the value of the key as a\nBsonRegularExpression.\n\n@param key the key\n@param defaultValue the default value\n@return the value of the key as a BsonRegularExpression\n@throws org.bson.BsonInvalidOperationException if the document contains the key but the value is not of the expected type", "docstring_tokens": ["If", "the", "document", "does", "not", "contain", "the", "given", "key", "return", "the", "given", "default", "value", ".", "Otherwise", "gets", "the", "value", "of", "the", "key", "as", "a", "BsonRegularExpression", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocument.java#L711-L716", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/tlschannel/async/AsynchronousTlsChannelGroup.java", "func_name": "AsynchronousTlsChannelGroup.writeHandlingTasks", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Intended use of the channel group is with sockets that run tasks internally, but out of tolerance, run tasks in\nthread in case the socket does not.", "docstring_tokens": ["Intended", "use", "of", "the", "channel", "group", "is", "with", "sockets", "that", "run", "tasks", "internally", "but", "out", "of", "tolerance", "run", "tasks", "in", "thread", "in", "case", "the", "socket", "does", "not", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/tlschannel/async/AsynchronousTlsChannelGroup.java#L550-L560", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonDocumentWrapper.java", "func_name": "BsonDocumentWrapper.asBsonDocument", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A helper to convert an document of type Object to a BsonDocument\n\n

If not already a BsonDocument it looks up the documents' class in the codecRegistry and wraps it into a BsonDocumentWrapper

\n\n@param document the document to convert\n@param codecRegistry the codecRegistry that can be used in the conversion of the Object\n@return a BsonDocument", "docstring_tokens": ["A", "helper", "to", "convert", "an", "document", "of", "type", "Object", "to", "a", "BsonDocument"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonDocumentWrapper.java#L55-L65", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/assertions/Assertions.java", "func_name": "Assertions.notNull", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Throw IllegalArgumentException if the value is null.\n\n@param name the parameter name\n@param value the value that should not be null\n@param callback the callback that also is passed the exception if the value is null\n@param the value type\n@return the value\n@throws java.lang.IllegalArgumentException if value is null", "docstring_tokens": ["Throw", "IllegalArgumentException", "if", "the", "value", "is", "null", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/assertions/Assertions.java#L52-L59", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/assertions/Assertions.java", "func_name": "Assertions.isTrue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Throw IllegalStateException if the condition if false.\n\n@param name the name of the state that is being checked\n@param condition the condition about the parameter to check\n@param callback the callback that also is passed the exception if the condition is not true\n@throws java.lang.IllegalStateException if the condition is false", "docstring_tokens": ["Throw", "IllegalStateException", "if", "the", "condition", "if", "false", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/assertions/Assertions.java#L82-L88", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/codecs/pojo/ClassModelBuilder.java", "func_name": "ClassModelBuilder.getProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a property by the property name.\n\n@param propertyName the name of the property to find.\n@return the property or null if the property is not found", "docstring_tokens": ["Gets", "a", "property", "by", "the", "property", "name", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/codecs/pojo/ClassModelBuilder.java#L245-L253", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/codecs/pojo/ClassModelBuilder.java", "func_name": "ClassModelBuilder.build", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new ClassModel instance based on the mapping data provided.\n\n@return the new instance", "docstring_tokens": ["Creates", "a", "new", "ClassModel", "instance", "based", "on", "the", "mapping", "data", "provided", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/codecs/pojo/ClassModelBuilder.java#L267-L297", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/ReplaceOneModel.java", "func_name": "ReplaceOneModel.getOptions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the options to apply.\n\n@return the update options\n@deprecated use {@link #getReplaceOptions()} instead", "docstring_tokens": ["Gets", "the", "options", "to", "apply", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/ReplaceOneModel.java#L97-L103", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/ReflectionDBObject.java", "func_name": "ReflectionDBObject.getWrapperIfReflectionObject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the wrapper if this object can be assigned from this class.\n\n@param c the class to be wrapped\n@return the wrapper", "docstring_tokens": ["Returns", "the", "wrapper", "if", "this", "object", "can", "be", "assigned", "from", "this", "class", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/ReflectionDBObject.java#L312-L318", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/ReflectionDBObject.java", "func_name": "ReflectionDBObject.getWrapper", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an existing Wrapper instance associated with a class, or creates a new one.\n\n@param c the class to be wrapped\n@return the wrapped", "docstring_tokens": ["Returns", "an", "existing", "Wrapper", "instance", "associated", "with", "a", "class", "or", "creates", "a", "new", "one", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/ReflectionDBObject.java#L326-L333", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonBinary.java", "func_name": "BsonBinary.asUuid", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the binary as a UUID. The binary type must be 4.\n\n@return the uuid\n@since 3.9", "docstring_tokens": ["Returns", "the", "binary", "as", "a", "UUID", ".", "The", "binary", "type", "must", "be", "4", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonBinary.java#L118-L128", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/BsonBinary.java", "func_name": "BsonBinary.asUuid", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the binary as a UUID.\n\n@param uuidRepresentation the UUID representation\n@return the uuid\n@since 3.9", "docstring_tokens": ["Returns", "the", "binary", "as", "a", "UUID", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/BsonBinary.java#L137-L149", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/util/JSON.java", "func_name": "JSONParser.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse an unknown type.\n\n@return Object the next item\n@throws JSONParseException if invalid JSON is found", "docstring_tokens": ["Parse", "an", "unknown", "type", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/util/JSON.java#L166-L235", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/util/JSON.java", "func_name": "JSONParser.readHex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read the current character, making sure that it is a hexidecimal character.\n\n@throws JSONParseException if the current character is not a hexidecimal character", "docstring_tokens": ["Read", "the", "current", "character", "making", "sure", "that", "it", "is", "a", "hexidecimal", "character", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/util/JSON.java#L320-L329", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/util/JSON.java", "func_name": "JSONParser.skipWS", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Advances the position in the string past any whitespace.", "docstring_tokens": ["Advances", "the", "position", "in", "the", "string", "past", "any", "whitespace", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/util/JSON.java#L344-L348", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/util/JSON.java", "func_name": "JSONParser.parseString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses a string.\n\n@return the next string.\n@throws JSONParseException if invalid JSON is found", "docstring_tokens": ["Parses", "a", "string", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/util/JSON.java#L369-L460", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/util/JSON.java", "func_name": "JSONParser.parseNumber", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses a number.\n\n@return the next number (int or double).\n@throws JSONParseException if invalid JSON is found", "docstring_tokens": ["Parses", "a", "number", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/util/JSON.java#L468-L520", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/util/JSON.java", "func_name": "JSONParser.parseExponent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Advances the pointer through the exponent.", "docstring_tokens": ["Advances", "the", "pointer", "through", "the", "exponent", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/util/JSON.java#L557-L584", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/util/JSON.java", "func_name": "JSONParser.parseArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses the next array.\n\n@return the array\n@throws JSONParseException if invalid JSON is found", "docstring_tokens": ["Parses", "the", "next", "array", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/util/JSON.java#L602-L630", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/BulkUpdateRequestBuilder.java", "func_name": "BulkUpdateRequestBuilder.updateOne", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a request to update one document in the collection that matches the query with which this builder was created.\n\n@param update the update criteria", "docstring_tokens": ["Adds", "a", "request", "to", "update", "one", "document", "in", "the", "collection", "that", "matches", "the", "query", "with", "which", "this", "builder", "was", "created", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/BulkUpdateRequestBuilder.java#L114-L116", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/connection/ConnectionDescription.java", "func_name": "ConnectionDescription.withConnectionId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new connection description with the set connection id\n\n@param connectionId the connection id\n@return the new connection description\n@since 3.8", "docstring_tokens": ["Creates", "a", "new", "connection", "description", "with", "the", "set", "connection", "id"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/connection/ConnectionDescription.java#L150-L154", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/WriteConcernResult.java", "func_name": "WriteConcernResult.acknowledged", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create an acknowledged WriteConcernResult\n\n@param count the count of matched documents\n@param isUpdateOfExisting whether an existing document was updated\n@param upsertedId if an upsert resulted in an inserted document, this is the _id of that document. This may be null\n@return an acknowledged WriteConcernResult", "docstring_tokens": ["Create", "an", "acknowledged", "WriteConcernResult"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/WriteConcernResult.java#L71-L138", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/WriteConcernResult.java", "func_name": "WriteConcernResult.unacknowledged", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create an unacknowledged WriteConcernResult\n\n@return an unacknowledged WriteConcernResult", "docstring_tokens": ["Create", "an", "unacknowledged", "WriteConcernResult"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/WriteConcernResult.java#L145-L194", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/Document.java", "func_name": "Document.getEmbeddedValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Throws ClassCastException if any of the intermediate embedded values is not a Document.", "docstring_tokens": ["Throws", "ClassCastException", "if", "any", "of", "the", "intermediate", "embedded", "values", "is", "not", "a", "Document", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/Document.java#L216-L233", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/Document.java", "func_name": "Document.constructValuesList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A ClassCastException will be thrown if an element in the list is not of type T.", "docstring_tokens": ["A", "ClassCastException", "will", "be", "thrown", "if", "an", "element", "in", "the", "list", "is", "not", "of", "type", "T", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/Document.java#L373-L386", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/TransactionOptions.java", "func_name": "TransactionOptions.merge", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Merge the two provided transaction options, with the first taking precedence over the second.\n\n@param options the transaction options, which take precedence for any property that is non-null\n@param defaultOptions the default transaction options\n@return the merged transaction options", "docstring_tokens": ["Merge", "the", "two", "provided", "transaction", "options", "with", "the", "first", "taking", "precedence", "over", "the", "second", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/TransactionOptions.java#L86-L97", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/ConcurrentPool.java", "func_name": "ConcurrentPool.release", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "call done when you are done with an object from the pool if there is room and the object is ok will get added\n\n@param t item to return to the pool\n@param prune true if the item should be closed, false if it should be put back in the pool", "docstring_tokens": ["call", "done", "when", "you", "are", "done", "with", "an", "object", "from", "the", "pool", "if", "there", "is", "room", "and", "the", "object", "is", "ok", "will", "get", "added"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/ConcurrentPool.java#L97-L114", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/ConcurrentPool.java", "func_name": "ConcurrentPool.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets an object from the pool - will block if none are available\n\n@param timeout negative - forever 0 - return immediately no matter what positive ms to wait\n@param timeUnit the time unit of the timeout\n@return An object from the pool, or null if can't get one in the given waitTime\n@throws MongoTimeoutException if the timeout has been exceeded", "docstring_tokens": ["Gets", "an", "object", "from", "the", "pool", "-", "will", "block", "if", "none", "are", "available"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/ConcurrentPool.java#L134-L150", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/internal/connection/ConcurrentPool.java", "func_name": "ConcurrentPool.close", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Clears the pool of all objects.", "docstring_tokens": ["Clears", "the", "pool", "of", "all", "objects", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/internal/connection/ConcurrentPool.java#L214-L223", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/LazyBSONObject.java", "func_name": "LazyBSONObject.pipe", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Pipe the raw bytes into the given output stream.\n\n@param os the output stream\n@return the number of bytes written\n@throws IOException any IOException thrown by the output stream", "docstring_tokens": ["Pipe", "the", "raw", "bytes", "into", "the", "given", "output", "stream", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/LazyBSONObject.java#L296-L299", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/AbstractBsonReader.java", "func_name": "AbstractBsonReader.throwInvalidContextType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Throws an InvalidOperationException when the method called is not valid for the current ContextType.\n\n@param methodName The name of the method.\n@param actualContextType The actual ContextType.\n@param validContextTypes The valid ContextTypes.\n@throws BsonInvalidOperationException when the method called is not valid for the current ContextType.", "docstring_tokens": ["Throws", "an", "InvalidOperationException", "when", "the", "method", "called", "is", "not", "valid", "for", "the", "current", "ContextType", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/AbstractBsonReader.java#L650-L656", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/AbstractBsonReader.java", "func_name": "AbstractBsonReader.throwInvalidState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Throws an InvalidOperationException when the method called is not valid for the current state.\n\n@param methodName The name of the method.\n@param validStates The valid states.\n@throws BsonInvalidOperationException when the method called is not valid for the current state.", "docstring_tokens": ["Throws", "an", "InvalidOperationException", "when", "the", "method", "called", "is", "not", "valid", "for", "the", "current", "state", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/AbstractBsonReader.java#L665-L670", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/AbstractBsonReader.java", "func_name": "AbstractBsonReader.verifyBSONType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies the current state and BSONType of the reader.\n\n@param methodName The name of the method calling this one.\n@param requiredBsonType The required BSON type.", "docstring_tokens": ["Verifies", "the", "current", "state", "and", "BSONType", "of", "the", "reader", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/AbstractBsonReader.java#L678-L694", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/AbstractBsonReader.java", "func_name": "AbstractBsonReader.verifyName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies the name of the current element.\n\n@param expectedName The expected name.\n@throws BsonSerializationException when the name read is not the expected name", "docstring_tokens": ["Verifies", "the", "name", "of", "the", "current", "element", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/AbstractBsonReader.java#L702-L709", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/AbstractBsonReader.java", "func_name": "AbstractBsonReader.checkPreconditions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Ensures any conditions are met before reading commences. Throws exceptions if the conditions are not met.\n\n@param methodName the name of the current method, which will indicate the field being read\n@param type the type of this field", "docstring_tokens": ["Ensures", "any", "conditions", "are", "met", "before", "reading", "commences", ".", "Throws", "exceptions", "if", "the", "conditions", "are", "not", "met", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/AbstractBsonReader.java#L717-L723", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/types/Decimal128.java", "func_name": "Decimal128.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a Decimal128 value representing the given String.\n\n@param value the Decimal128 value represented as a String\n@return the Decimal128 value representing the given String\n@throws NumberFormatException if the value is out of the Decimal128 range\n@see\n\nFrom-String Specification", "docstring_tokens": ["Returns", "a", "Decimal128", "value", "representing", "the", "given", "String", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/types/Decimal128.java#L110-L126", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/types/Decimal128.java", "func_name": "Decimal128.bigDecimalValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a BigDecimal that is equivalent to this Decimal128.\n\n@return a BigDecimal that is equivalent to this Decimal128\n@throws ArithmeticException if the Decimal128 value is NaN, Infinity, -Infinity, or -0, none of which can be represented as a\nBigDecimal", "docstring_tokens": ["Gets", "a", "BigDecimal", "that", "is", "equivalent", "to", "this", "Decimal128", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/types/Decimal128.java#L277-L295", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "bson/src/main/org/bson/types/Decimal128.java", "func_name": "Decimal128.getBytes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "May have leading zeros. Strip them before considering making this method public", "docstring_tokens": ["May", "have", "leading", "zeros", ".", "Strip", "them", "before", "considering", "making", "this", "method", "public"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/bson/src/main/org/bson/types/Decimal128.java#L317-L335", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/operation/AggregateExplainOperation.java", "func_name": "AggregateExplainOperation.hint", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the hint for which index to use. A null value means no hint is set.\n\n@param hint the hint\n@return this\n@since 3.6\n@mongodb.server.release 3.6", "docstring_tokens": ["Sets", "the", "hint", "for", "which", "index", "to", "use", ".", "A", "null", "value", "means", "no", "hint", "is", "set", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/operation/AggregateExplainOperation.java#L166-L170", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Collation.java", "func_name": "Collation.asDocument", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets this collation options as a document.\n\n@return The collation options as a BsonDocument", "docstring_tokens": ["Gets", "this", "collation", "options", "as", "a", "document", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/Collation.java#L309-L339", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/gridfs/GridFSDBFile.java", "func_name": "GridFSDBFile.writeTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the file's data to a file on disk.\n\n@param file the File object\n@return number of bytes written\n@throws IOException if there are problems writing to the {@code file}", "docstring_tokens": ["Writes", "the", "file", "s", "data", "to", "a", "file", "on", "disk", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/gridfs/GridFSDBFile.java#L66-L76", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/gridfs/GridFSDBFile.java", "func_name": "GridFSDBFile.writeTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the file's data to an OutputStream.\n\n@param out the OutputStream\n@return number of bytes written\n@throws IOException if there are problems writing to {@code out}", "docstring_tokens": ["Writes", "the", "file", "s", "data", "to", "an", "OutputStream", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/gridfs/GridFSDBFile.java#L85-L91", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/gridfs/GridFSDBFile.java", "func_name": "GridFSDBFile.remove", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes file from GridFS i.e. removes documents from files and chunks collections.", "docstring_tokens": ["Removes", "file", "from", "GridFS", "i", ".", "e", ".", "removes", "documents", "from", "files", "and", "chunks", "collections", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/gridfs/GridFSDBFile.java#L109-L112", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/PushOptions.java", "func_name": "PushOptions.sort", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the sort direction for sorting array elements that are not documents.\n\n@param sort the sort direction\n@return this\n@throws IllegalStateException if sortDocument property is already set\n@mongodb.driver.manual reference/operator/update/sort/ $sort\n@mongodb.driver.manual reference/operator/update/sort/#sort-array-elements-that-are-not-documents", "docstring_tokens": ["Sets", "the", "sort", "direction", "for", "sorting", "array", "elements", "that", "are", "not", "documents", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/PushOptions.java#L102-L108", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/PushOptions.java", "func_name": "PushOptions.sortDocument", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the sort direction for sorting array elements that are documents.\n\n@param sortDocument the sort document\n@return this\n@throws IllegalStateException if sort property is already set\n@mongodb.driver.manual reference/operator/update/sort/ $sort", "docstring_tokens": ["Sets", "the", "sort", "direction", "for", "sorting", "array", "elements", "that", "are", "documents", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/PushOptions.java#L129-L135", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/changestream/ChangeStreamDocument.java", "func_name": "ChangeStreamDocument.getNamespace", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the namespace\n\nThe invalidate operation type does include a MongoNamespace in the ChangeStreamDocument response. The\ndropDatabase operation type includes a MongoNamespace, but does not include a collection name as part\nof the namespace.\n\n@return the namespace. If the namespaceDocument is null or if it is missing either the 'db' or 'coll' keys,\nthen this will return null.", "docstring_tokens": ["Returns", "the", "namespace"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/changestream/ChangeStreamDocument.java#L152-L162", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/changestream/ChangeStreamDocument.java", "func_name": "ChangeStreamDocument.getDatabaseName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the database name\n\n@return the databaseName. If the namespaceDocument is null or if it is missing the 'db' key, then this will\nreturn null.\n@since 3.8", "docstring_tokens": ["Returns", "the", "database", "name"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/changestream/ChangeStreamDocument.java#L185-L194", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/changestream/ChangeStreamDocument.java", "func_name": "ChangeStreamDocument.createCodec", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the codec for the specific ChangeStreamOutput type\n\n@param fullDocumentClass the class to use to represent the fullDocument\n@param codecRegistry the codec registry\n@param the fullDocument type\n@return the codec", "docstring_tokens": ["Creates", "the", "codec", "for", "the", "specific", "ChangeStreamOutput", "type"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/client/model/changestream/ChangeStreamDocument.java#L259-L262", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/ClientSessionOptions.java", "func_name": "ClientSessionOptions.builder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets an instance of a builder initialized with the given options\n\n@param options the options with which to initialize the builder\n@return a builder instance\n@since 3.8", "docstring_tokens": ["Gets", "an", "instance", "of", "a", "builder", "initialized", "with", "the", "given", "options"], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-core/src/main/com/mongodb/ClientSessionOptions.java#L116-L122", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/MongoOptions.java", "func_name": "MongoOptions.reset", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reset all settings to the default.", "docstring_tokens": ["Reset", "all", "settings", "to", "the", "default", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/MongoOptions.java#L196-L217", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/MongoOptions.java", "func_name": "MongoOptions.copy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copy this MongoOptions instance into a new instance.\n\n@return the new MongoOptions with the same settings as this instance.", "docstring_tokens": ["Copy", "this", "MongoOptions", "instance", "into", "a", "new", "instance", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/MongoOptions.java#L224-L247", "partition": "valid"} +{"repo": "mongodb/mongo-java-driver", "path": "driver-legacy/src/main/com/mongodb/MongoOptions.java", "func_name": "MongoOptions.getWriteConcern", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method to return the appropriate WriteConcern instance based on the current related options settings.\n\n@return a WriteConcern for the current MongoOptions.", "docstring_tokens": ["Helper", "method", "to", "return", "the", "appropriate", "WriteConcern", "instance", "based", "on", "the", "current", "related", "options", "settings", "."], "sha": "a92d47e2e9f2fca55d09229a0a2e2cdc714db085", "url": "https://github.com/mongodb/mongo-java-driver/blob/a92d47e2e9f2fca55d09229a0a2e2cdc714db085/driver-legacy/src/main/com/mongodb/MongoOptions.java#L279-L305", "partition": "valid"} +{"repo": "Microsoft/azure-spring-boot", "path": "azure-spring-boot/src/main/java/com/microsoft/azure/spring/support/UserAgent.java", "func_name": "UserAgent.getUserAgent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate UserAgent string for given service.\n\n@param serviceName Name of the service from which called this method.\n@param allowTelemetry Whether allows telemtry\n@return generated UserAgent string", "docstring_tokens": ["Generate", "UserAgent", "string", "for", "given", "service", "."], "sha": "53d69d44587b483247a5108452145cd426fcf78c", "url": "https://github.com/Microsoft/azure-spring-boot/blob/53d69d44587b483247a5108452145cd426fcf78c/azure-spring-boot/src/main/java/com/microsoft/azure/spring/support/UserAgent.java#L17-L24", "partition": "valid"} +{"repo": "Microsoft/azure-spring-boot", "path": "azure-spring-boot/src/main/java/com/microsoft/azure/spring/cloundfoundry/environment/VcapResult.java", "func_name": "VcapResult.populateProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Populates default properties during @EnvironmentPostProcessor processing.\n

\nNote that this class gets invoked before Spring creates the logging\nsubsystem, so we just use System.out.println instead.", "docstring_tokens": ["Populates", "default", "properties", "during"], "sha": "53d69d44587b483247a5108452145cd426fcf78c", "url": "https://github.com/Microsoft/azure-spring-boot/blob/53d69d44587b483247a5108452145cd426fcf78c/azure-spring-boot/src/main/java/com/microsoft/azure/spring/cloundfoundry/environment/VcapResult.java#L53-L63", "partition": "valid"} +{"repo": "Microsoft/azure-spring-boot", "path": "azure-spring-boot/src/main/java/com/microsoft/azure/spring/autoconfigure/aad/AzureADGraphClient.java", "func_name": "AzureADGraphClient.isMatchingUserGroupKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks that the JSON Node is a valid User Group to extract User Groups from\n\n@param node - json node to look for a key/value to equate against the {@link UserGroupProperties}\n\n@return true if the json node contains the correct key, and expected value to identify a user group.", "docstring_tokens": ["Checks", "that", "the", "JSON", "Node", "is", "a", "valid", "User", "Group", "to", "extract", "User", "Groups", "from"], "sha": "53d69d44587b483247a5108452145cd426fcf78c", "url": "https://github.com/Microsoft/azure-spring-boot/blob/53d69d44587b483247a5108452145cd426fcf78c/azure-spring-boot/src/main/java/com/microsoft/azure/spring/autoconfigure/aad/AzureADGraphClient.java#L118-L121", "partition": "valid"} +{"repo": "Microsoft/azure-spring-boot", "path": "azure-spring-boot/src/main/java/com/microsoft/azure/spring/autoconfigure/aad/AzureADGraphClient.java", "func_name": "AzureADGraphClient.convertGroupsToGrantedAuthorities", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts UserGroup list to Set of GrantedAutorities\n@param groups\n@return", "docstring_tokens": ["Converts", "UserGroup", "list", "to", "Set", "of", "GrantedAutorities"], "sha": "53d69d44587b483247a5108452145cd426fcf78c", "url": "https://github.com/Microsoft/azure-spring-boot/blob/53d69d44587b483247a5108452145cd426fcf78c/azure-spring-boot/src/main/java/com/microsoft/azure/spring/autoconfigure/aad/AzureADGraphClient.java#L137-L147", "partition": "valid"} +{"repo": "Microsoft/azure-spring-boot", "path": "azure-spring-boot/src/main/java/com/microsoft/azure/spring/autoconfigure/aad/ServiceEndpointsProperties.java", "func_name": "ServiceEndpointsProperties.getServiceEndpoints", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get ServiceEndpoints data for the given environment.\n\n@param environment the environment of the cloud service\n@return The ServiceEndpoints data for the given azure service environment", "docstring_tokens": ["Get", "ServiceEndpoints", "data", "for", "the", "given", "environment", "."], "sha": "53d69d44587b483247a5108452145cd426fcf78c", "url": "https://github.com/Microsoft/azure-spring-boot/blob/53d69d44587b483247a5108452145cd426fcf78c/azure-spring-boot/src/main/java/com/microsoft/azure/spring/autoconfigure/aad/ServiceEndpointsProperties.java#L30-L39", "partition": "valid"} +{"repo": "Microsoft/azure-spring-boot", "path": "azure-spring-boot/src/main/java/com/microsoft/azure/spring/autoconfigure/aad/AADAuthenticationFilterAutoConfiguration.java", "func_name": "AADAuthenticationFilterAutoConfiguration.azureADJwtTokenFilter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Declare AADAuthenticationFilter bean.\n\n@return AADAuthenticationFilter bean", "docstring_tokens": ["Declare", "AADAuthenticationFilter", "bean", "."], "sha": "53d69d44587b483247a5108452145cd426fcf78c", "url": "https://github.com/Microsoft/azure-spring-boot/blob/53d69d44587b483247a5108452145cd426fcf78c/azure-spring-boot/src/main/java/com/microsoft/azure/spring/autoconfigure/aad/AADAuthenticationFilterAutoConfiguration.java#L54-L60", "partition": "valid"} +{"repo": "Microsoft/azure-spring-boot", "path": "azure-spring-boot-samples/azure-active-directory-spring-boot-sample/src/main/java/sample/aad/controller/TodolistController.java", "func_name": "TodolistController.getAllTodoItems", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "HTTP GET ALL", "docstring_tokens": ["HTTP", "GET", "ALL"], "sha": "53d69d44587b483247a5108452145cd426fcf78c", "url": "https://github.com/Microsoft/azure-spring-boot/blob/53d69d44587b483247a5108452145cd426fcf78c/azure-spring-boot-samples/azure-active-directory-spring-boot-sample/src/main/java/sample/aad/controller/TodolistController.java#L52-L55", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-livereload/src/main/java/org/jooby/livereload/LiveReload.java", "func_name": "LiveReload.register", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the given path to the watcher.\n\n@param path Path to watch.\n@param includes Glob pattern of matching files.\n@return This module.", "docstring_tokens": ["Add", "the", "given", "path", "to", "the", "watcher", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-livereload/src/main/java/org/jooby/livereload/LiveReload.java#L339-L344", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-assets/src/main/java/org/jooby/assets/AssetCompiler.java", "func_name": "AssetCompiler.build", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Build assets using the given distribution and write output to the provided directory.\n\nBuild process is defined as follow:\n\n1. First, it runs all the aggregators (if any)\n2. Then iterates each fileset and per each file in the fileset it apply the processor pipeline.\n3. Finally, it merge all the files into one file and compressed/optimized if need it.\n\n@param dist Distribution's name (usually dev or dist).\n@param dir Output directory.\n@return Map with fileset name as key and list of generated assets.\n@throws Exception If something goes wrong.", "docstring_tokens": ["Build", "assets", "using", "the", "given", "distribution", "and", "write", "output", "to", "the", "provided", "directory", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-assets/src/main/java/org/jooby/assets/AssetCompiler.java#L452-L457", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-assets/src/main/java/org/jooby/assets/AssetCompiler.java", "func_name": "AssetCompiler.summary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Print a summary of the given results.\n\n@param result Compilation result.\n@param outDir Output directory.\n@param dist Distribution (dev or prod).\n@param duration Execution time in millis.\n@param extraInfo Additional information.\n@return Summary.", "docstring_tokens": ["Print", "a", "summary", "of", "the", "given", "results", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-assets/src/main/java/org/jooby/assets/AssetCompiler.java#L546-L579", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-assets/src/main/java/org/jooby/internal/assets/Watcher.java", "func_name": "Watcher.register", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Register the given directory with the WatchService", "docstring_tokens": ["Register", "the", "given", "directory", "with", "the", "WatchService"], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-assets/src/main/java/org/jooby/internal/assets/Watcher.java#L269-L272", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlType.java", "func_name": "RamlType.newProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Defines a new property.\n\n@param name Property name.\n@param type Property type.\n@param required True for required.\n@param values Enum values.\n@return This type.", "docstring_tokens": ["Defines", "a", "new", "property", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlType.java#L288-L298", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlType.java", "func_name": "RamlType.valueOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a RAML type from string.\n\n@param name String name.\n@return RAML type.", "docstring_tokens": ["Get", "a", "RAML", "type", "from", "string", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlType.java#L388-L416", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-filewatcher/src/main/java/org/jooby/filewatcher/FileEventOptions.java", "func_name": "FileEventOptions.kind", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Append a kind filter.\n\nThe default filter is: {@link StandardWatchEventKinds#ENTRY_CREATE},\n{@link StandardWatchEventKinds#ENTRY_DELETE} and {@link StandardWatchEventKinds#ENTRY_MODIFY}.\n\n@param kind Filter type.\n@return This options.", "docstring_tokens": ["Append", "a", "kind", "filter", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-filewatcher/src/main/java/org/jooby/filewatcher/FileEventOptions.java#L295-L299", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-hbs/src/main/java/org/jooby/hbs/Hbs.java", "func_name": "Hbs.doWith", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set a handlebars callback.\n\n

{@code\n{\nuse(new Hbs().doWith((hbs, conf) -> {\n...\n});\n}\n}
\n@param callback Configurer callback.\n@return This module.", "docstring_tokens": ["Set", "a", "handlebars", "callback", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-hbs/src/main/java/org/jooby/hbs/Hbs.java#L429-L432", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-micrometer/src/main/java/org/jooby/micrometer/Micrometer.java", "func_name": "Micrometer.doWith", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Advanced configuration of main registry.\n\n@param configurer Configurer callback.\n@return This module.", "docstring_tokens": ["Advanced", "configuration", "of", "main", "registry", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-micrometer/src/main/java/org/jooby/micrometer/Micrometer.java#L428-L430", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-thymeleaf/src/main/java/org/jooby/thymeleaf/Thl.java", "func_name": "Thl.doWith", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set a configuration callback.\n\n
{@code\n{\nuse(new Thl().doWith(engine -> {\n...\n}));\n}\n}
\n\n@param callback Callback.\n@return This module.", "docstring_tokens": ["Set", "a", "configuration", "callback", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-thymeleaf/src/main/java/org/jooby/thymeleaf/Thl.java#L371-L374", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-pac4j/src/main/java/org/jooby/pac4j/Auth.java", "func_name": "Auth.form", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a form auth client.\n\n@param pattern URL pattern to protect.\n@param authenticator Authenticator to use.\n@return This module.", "docstring_tokens": ["Add", "a", "form", "auth", "client", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-pac4j/src/main/java/org/jooby/pac4j/Auth.java#L586-L603", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-pac4j/src/main/java/org/jooby/pac4j/Auth.java", "func_name": "Auth.basic", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a basic auth client.\n\n@param pattern URL pattern to protect.\n@param authenticator Authenticator to use.\n@return This module.", "docstring_tokens": ["Add", "a", "basic", "auth", "client", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-pac4j/src/main/java/org/jooby/pac4j/Auth.java#L633-L648", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "jooby/src/main/java/org/jooby/Deferred.java", "func_name": "Deferred.resolve", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resolve the deferred value and handle it. This method will send the response to a client and\ncleanup and close all the resources.\n\n@param value A value for this deferred.", "docstring_tokens": ["Resolve", "the", "deferred", "value", "and", "handle", "it", ".", "This", "method", "will", "send", "the", "response", "to", "a", "client", "and", "cleanup", "and", "close", "all", "the", "resources", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/jooby/src/main/java/org/jooby/Deferred.java#L474-L488", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/Raml.java", "func_name": "Raml.path", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a path for the given pattern. If the path doesn't exist, a new path will be created.\n\n@param pattern Pattern.\n@return Path for the given pattern.", "docstring_tokens": ["Get", "a", "path", "for", "the", "given", "pattern", ".", "If", "the", "path", "doesn", "t", "exist", "a", "new", "path", "will", "be", "created", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/Raml.java#L383-L390", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/Raml.java", "func_name": "Raml.define", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Register a Java type and produces an equivalent RAML type. It returns an existing RAML type if\nthe Java type was registered already.\n\n@param type Java type.\n@return RAML type.", "docstring_tokens": ["Register", "a", "Java", "type", "and", "produces", "an", "equivalent", "RAML", "type", ".", "It", "returns", "an", "existing", "RAML", "type", "if", "the", "Java", "type", "was", "registered", "already", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/Raml.java#L423-L448", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/Raml.java", "func_name": "Raml.toYaml", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert this RAML object to Yaml.\n\n@return Yaml string.\n@throws IOException If something goes wrong.", "docstring_tokens": ["Convert", "this", "RAML", "object", "to", "Yaml", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/Raml.java#L526-L532", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/RouteResponse.java", "func_name": "RouteResponse.status", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get status codes.\n\n@return Status codes.", "docstring_tokens": ["Get", "status", "codes", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/RouteResponse.java#L284-L286", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/RouteResponse.java", "func_name": "RouteResponse.statusCode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Status code.\n\n@return Status code.", "docstring_tokens": ["Status", "code", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/RouteResponse.java#L293-L299", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/RouteResponse.java", "func_name": "RouteResponse.status", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set status code map.\n\n@param status Status code map.\n@return This response.", "docstring_tokens": ["Set", "status", "code", "map", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/RouteResponse.java#L307-L315", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlResponse.java", "func_name": "RamlResponse.setMediaType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set media type.\n\n@param mediaType Media type.\n@param body RAML type.", "docstring_tokens": ["Set", "media", "type", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlResponse.java#L267-L272", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-ebean/src/main/java/org/jooby/ebean/Ebeanby.java", "func_name": "Ebeanby.runEnhancer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "package for test.\n\n@return An enhancer task. It runs once per classloader instance.", "docstring_tokens": ["package", "for", "test", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-ebean/src/main/java/org/jooby/ebean/Ebeanby.java#L458-L465", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlMethod.java", "func_name": "RamlMethod.setMediaType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set media types.\n\n@param mediaType Media types.", "docstring_tokens": ["Set", "media", "types", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlMethod.java#L369-L371", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlMethod.java", "func_name": "RamlMethod.queryParameter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get or create a query parameter using the giving name.\n\n@param name Parameter name.\n@return Query parameter.", "docstring_tokens": ["Get", "or", "create", "a", "query", "parameter", "using", "the", "giving", "name", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlMethod.java#L399-L409", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlMethod.java", "func_name": "RamlMethod.formParameter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get or create a form parameter using the giving name.\n\n@param name Parameter name.\n@return Form parameter.", "docstring_tokens": ["Get", "or", "create", "a", "form", "parameter", "using", "the", "giving", "name", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlMethod.java#L417-L427", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlMethod.java", "func_name": "RamlMethod.headerParameter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get or create a header parameter using the giving name.\n\n@param name Parameter name.\n@return Header parameter.", "docstring_tokens": ["Get", "or", "create", "a", "header", "parameter", "using", "the", "giving", "name", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlMethod.java#L435-L445", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlMethod.java", "func_name": "RamlMethod.response", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get or create a response using the given status code.\n\n@param status Status code.\n@return RAML response.", "docstring_tokens": ["Get", "or", "create", "a", "response", "using", "the", "given", "status", "code", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/raml/RamlMethod.java#L453-L463", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-hbv/src/main/java/org/jooby/hbv/Hbv.java", "func_name": "Hbv.doWith", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Setup a configurer callback.\n\n@param configurer Configurer callback.\n@return This module.", "docstring_tokens": ["Setup", "a", "configurer", "callback", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-hbv/src/main/java/org/jooby/hbv/Hbv.java#L388-L392", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "jooby/src/main/java/org/jooby/internal/ReaderInputStream.java", "func_name": "ReaderInputStream.read", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read the specified number of bytes into an array.\n\n@param b the byte array to read into\n@param off the offset to start reading bytes into\n@param len the number of bytes to read\n@return the number of bytes read or -1 if the end of the stream has been reached\n@throws IOException if an I/O error occurs", "docstring_tokens": ["Read", "the", "specified", "number", "of", "bytes", "into", "an", "array", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/jooby/src/main/java/org/jooby/internal/ReaderInputStream.java#L321-L355", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-requery/src/main/java/org/jooby/requery/Requery.java", "func_name": "Requery.reactive", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a Requery module with RxJava data store.\n\n
{@code\n{\nuse(Requery.reactive(Models.DEFAULT));\n\nget(\"/\", () -> {\nReactiveEntityStore store = require(ReactiveEntityStore.class);\n// work with reactive store\n});\n}\n}
\n\n@param name Database name.\n@param model Entity model.\n@return A new {@link Requery} module.", "docstring_tokens": ["Creates", "a", "Requery", "module", "with", "RxJava", "data", "store", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-requery/src/main/java/org/jooby/requery/Requery.java#L641-L644", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-requery/src/main/java/org/jooby/requery/Requery.java", "func_name": "Requery.reactor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a Requery module with Reactor data store.\n\n
{@code\n{\nuse(Requery.reactor(Models.DEFAULT));\n\nget(\"/\", () -> {\nReactorEntityStore store = require(ReactorEntityStore.class);\n// work with reactive store\n});\n}\n}
\n\n@param name Database name.\n@param model Entity model.\n@return A new {@link Requery} module.", "docstring_tokens": ["Creates", "a", "Requery", "module", "with", "Reactor", "data", "store", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-requery/src/main/java/org/jooby/requery/Requery.java#L685-L688", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-requery/src/main/java/org/jooby/requery/Requery.java", "func_name": "Requery.completionStage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an async Requery module with Java 8 data store.\n\n
{@code\n{\nuse(Requery.completionStage(Models.DEFAULT));\n\nget(\"/\", () -> {\nCompletionStageEntityStore store = require(CompletionStageEntityStore.class);\n// work with reactive store\n});\n}\n}
\n\n@param name Database name.\n@param model Entity model.\n@return A new {@link Requery} module.", "docstring_tokens": ["Creates", "an", "async", "Requery", "module", "with", "Java", "8", "data", "store", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-requery/src/main/java/org/jooby/requery/Requery.java#L729-L732", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-requery/src/main/java/org/jooby/requery/Requery.java", "func_name": "Requery.kotlin", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a Kotlin Requery module.\n\n
{@code\n{\nuse(Requery.kotlin(Models.DEFAULT));\n\nget(\"/\", () -> {\nKotlinEntityDataStore store = require(KotlinEntityDataStore.class);\n// work with kotlin store\n});\n}\n}
\n\n@param name Database name.\n@param model Entity model.\n@return A new {@link Requery} module.", "docstring_tokens": ["Creates", "a", "Kotlin", "Requery", "module", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-requery/src/main/java/org/jooby/requery/Requery.java#L773-L776", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-unbescape/src/main/java/org/jooby/unbescape/XSS.java", "func_name": "XSS.js", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set JavaScript escape type and level.\n\n@param type Type.\n@param level Level.\n@return This module.", "docstring_tokens": ["Set", "JavaScript", "escape", "type", "and", "level", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-unbescape/src/main/java/org/jooby/unbescape/XSS.java#L299-L303", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-unbescape/src/main/java/org/jooby/unbescape/XSS.java", "func_name": "XSS.html", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set HTML escape type and level.\n\n@param type Type.\n@param level Level.\n@return This module.", "docstring_tokens": ["Set", "HTML", "escape", "type", "and", "level", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-unbescape/src/main/java/org/jooby/unbescape/XSS.java#L312-L316", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-unbescape/src/main/java/org/jooby/unbescape/XSS.java", "func_name": "XSS.json", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set JSON escape type and level.\n\n@param type Type.\n@param level Level.\n@return This module.", "docstring_tokens": ["Set", "JSON", "escape", "type", "and", "level", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-unbescape/src/main/java/org/jooby/unbescape/XSS.java#L325-L329", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-unbescape/src/main/java/org/jooby/unbescape/XSS.java", "func_name": "XSS.css", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set CSS escape type and level.\n\n@param type Type.\n@param level Level.\n@return This module.", "docstring_tokens": ["Set", "CSS", "escape", "type", "and", "level", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-unbescape/src/main/java/org/jooby/unbescape/XSS.java#L338-L342", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-assets-svg-symbol/src/main/java/org/jooby/assets/SvgSymbol.java", "func_name": "SvgSymbol.attrs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read an object path and optionally filter some child paths.\n\n@param path Path to read.\n@param without Properties to filter.\n@return Properties.", "docstring_tokens": ["Read", "an", "object", "path", "and", "optionally", "filter", "some", "child", "paths", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-assets-svg-symbol/src/main/java/org/jooby/assets/SvgSymbol.java#L470-L474", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-assets-svg-symbol/src/main/java/org/jooby/assets/SvgSymbol.java", "func_name": "SvgSymbol.css", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate a CSS rule, it reads the width and height attributes of the svg element or fallback to\nviewBox attribute.\n\n@param id ID to use.\n@param svg Svg element to convert.\n@return A css rule.", "docstring_tokens": ["Generate", "a", "CSS", "rule", "it", "reads", "the", "width", "and", "height", "attributes", "of", "the", "svg", "element", "or", "fallback", "to", "viewBox", "attribute", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-assets-svg-symbol/src/main/java/org/jooby/assets/SvgSymbol.java#L502-L520", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-assets-svg-symbol/src/main/java/org/jooby/assets/SvgSymbol.java", "func_name": "SvgSymbol.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse a css size unit value, like 10px or 18.919px and optionally round the value to the\nclosest integer.\n\n@param value Value to parse.\n@return A tuple with a number and unit(px, em, etc...)", "docstring_tokens": ["Parse", "a", "css", "size", "unit", "value", "like", "10px", "or", "18", ".", "919px", "and", "optionally", "round", "the", "value", "to", "the", "closest", "integer", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-assets-svg-symbol/src/main/java/org/jooby/assets/SvgSymbol.java#L529-L539", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-assets-svg-symbol/src/main/java/org/jooby/assets/SvgSymbol.java", "func_name": "SvgSymbol.write", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write content to file.\n\n@param path Target file.\n@param sequence File content.\n@throws IOException If something goes wrong.", "docstring_tokens": ["Write", "content", "to", "file", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-assets-svg-symbol/src/main/java/org/jooby/assets/SvgSymbol.java#L548-L552", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-jdbi3/src/main/java/org/jooby/jdbi/TransactionalRequest.java", "func_name": "TransactionalRequest.handle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Use a named key for accessing to the request scoped Handle.\n\n@param name Name of request scoped Handle.\n@return This object.", "docstring_tokens": ["Use", "a", "named", "key", "for", "accessing", "to", "the", "request", "scoped", "Handle", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-jdbi3/src/main/java/org/jooby/jdbi/TransactionalRequest.java#L299-L302", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/internal/apitool/SwaggerBuilder.java", "func_name": "SwaggerBuilder.doModel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Mostly for kotlin null safe operator and immutable properties.\n\n@param type Target type.\n@param model Model.\n@return Input model.", "docstring_tokens": ["Mostly", "for", "kotlin", "null", "safe", "operator", "and", "immutable", "properties", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/internal/apitool/SwaggerBuilder.java#L787-L800", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "jooby/src/main/java/org/jooby/Sse.java", "func_name": "Sse.lastEventId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Server sent event will send a Last-Event-ID header if the server goes down.\n\n@param type Last event id type.\n@param Event id type.\n@return Last event id.", "docstring_tokens": ["Server", "sent", "event", "will", "send", "a", "Last", "-", "Event", "-", "ID", "header", "if", "the", "server", "goes", "down", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/jooby/src/main/java/org/jooby/Sse.java#L763-L766", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "jooby/src/main/java/org/jooby/Sse.java", "func_name": "Sse.send", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Send an event.\n\n
{@code\nsse.send(new MyObject());\n}
\n\n
{@code\nsse.send(new MyObject(), \"json\").whenComplete((id, x) -> {\nif (x == null) {\nhandleSuccess();\n} else {\nhandleError(x);\n}\n});\n}
\n\nThe id of the success callback correspond to the {@link Event#id()}.\n\n@param data Event data.\n@return A future. The success callback contains the {@link Event#id()}.", "docstring_tokens": ["Send", "an", "event", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/jooby/src/main/java/org/jooby/Sse.java#L859-L862", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "jooby/src/main/java/org/jooby/View.java", "func_name": "View.put", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set a model attribute and override existing attribute.\n\n@param name Attribute's name.\n@param value Attribute's value.\n@return This view.", "docstring_tokens": ["Set", "a", "model", "attribute", "and", "override", "existing", "attribute", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/jooby/src/main/java/org/jooby/View.java#L289-L294", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "jooby/src/main/java/org/jooby/View.java", "func_name": "View.put", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set model attributes and override existing values.\n\n@param values Attribute's value.\n@return This view.", "docstring_tokens": ["Set", "model", "attributes", "and", "override", "existing", "values", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/jooby/src/main/java/org/jooby/View.java#L302-L306", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-assets/src/main/java/org/jooby/assets/AssetClassLoader.java", "func_name": "AssetClassLoader.classLoader", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a new AssetClassLoader that includes the 'public' dir if present in the current working dir\n\n@param parent parent classloader\n@return classloader that includes the public dir if present\n@throws IOException if an exception occurred", "docstring_tokens": ["Constructs", "a", "new", "AssetClassLoader", "that", "includes", "the", "public", "dir", "if", "present", "in", "the", "current", "working", "dir"], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-assets/src/main/java/org/jooby/assets/AssetClassLoader.java#L222-L224", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-assets/src/main/java/org/jooby/assets/AssetClassLoader.java", "func_name": "AssetClassLoader.classLoader", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a new AssetClassLoader that includes the 'public' dir if present in the provided working dir\n\n@param parent parent classloader\n@param projectDir working dir to use\n@return classloader that includes the public dir if present\n@throws IOException if an exception occurred", "docstring_tokens": ["Constructs", "a", "new", "AssetClassLoader", "that", "includes", "the", "public", "dir", "if", "present", "in", "the", "provided", "working", "dir"], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-assets/src/main/java/org/jooby/assets/AssetClassLoader.java#L234-L241", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/RouteMethod.java", "func_name": "RouteMethod.attributes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set route attributes.\n\n@param attributes Attributes.\n@return This method.", "docstring_tokens": ["Set", "route", "attributes", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/RouteMethod.java#L456-L464", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/RouteMethod.java", "func_name": "RouteMethod.attribute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set route attribute.\n\n@param name Attribute name.\n@param value Attribute value.\n@return This method.", "docstring_tokens": ["Set", "route", "attribute", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/RouteMethod.java#L473-L479", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/RouteMethod.java", "func_name": "RouteMethod.param", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find a parameter by name and invoke the given callback.\n\n@param name Parameter name.\n@param customizer Success callback.\n@return This method.", "docstring_tokens": ["Find", "a", "parameter", "by", "name", "and", "invoke", "the", "given", "callback", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/RouteMethod.java#L488-L494", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "jooby/src/main/java/org/jooby/Status.java", "func_name": "Status.valueOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the enum constant of this type with the specified numeric value.\n\n@param statusCode the numeric value of the enum to be returned\n@return the enum constant with the specified numeric value\n@throws IllegalArgumentException if this enum has no constant for the specified numeric value", "docstring_tokens": ["Return", "the", "enum", "constant", "of", "this", "type", "with", "the", "specified", "numeric", "value", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/jooby/src/main/java/org/jooby/Status.java#L650-L654", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-jdbi3/src/main/java/org/jooby/jdbi/Jdbi3.java", "func_name": "Jdbi3.doWith", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configurer a jdbi instance.\n\n@param configurer Configurer callback.\n@return This module.", "docstring_tokens": ["Configurer", "a", "jdbi", "instance", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-jdbi3/src/main/java/org/jooby/jdbi/Jdbi3.java#L416-L418", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-jdbi/src/main/java/org/skife/jdbi/v2/ExpandedStmtRewriter.java", "func_name": "ExpandedStmtRewriter.rewrite", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Munge up the SQL as desired. Responsible for figuring out ow to bind any\narguments in to the resultant prepared statement.\n\n@param sql The SQL to rewrite\n@param params contains the arguments which have been bound to this statement.\n@param ctx The statement context for the statement being executed\n@return somethign which can provde the actual SQL to prepare a statement from\nand which can bind the correct arguments to that prepared statement", "docstring_tokens": ["Munge", "up", "the", "SQL", "as", "desired", ".", "Responsible", "for", "figuring", "out", "ow", "to", "bind", "any", "arguments", "in", "to", "the", "resultant", "prepared", "statement", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-jdbi/src/main/java/org/skife/jdbi/v2/ExpandedStmtRewriter.java#L254-L267", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "jooby/src/main/java/org/jooby/handlers/AssetHandler.java", "func_name": "AssetHandler.send", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Send an asset to the client.\n\n@param req Request.\n@param rsp Response.\n@param asset Resolve asset.\n@throws Exception If send fails.", "docstring_tokens": ["Send", "an", "asset", "to", "the", "client", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/jooby/src/main/java/org/jooby/handlers/AssetHandler.java#L534-L536", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-jdbi/src/main/java/org/jooby/jdbi/Jdbi.java", "func_name": "Jdbi.doWith", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure DBI instance.\n\n@param configurer Configurer.\n@return This module.", "docstring_tokens": ["Configure", "DBI", "instance", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-jdbi/src/main/java/org/jooby/jdbi/Jdbi.java#L404-L406", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-jooq/src/main/java/org/jooby/jooq/jOOQ.java", "func_name": "jOOQ.doWith", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configuration callback.\n\n@param configurer Callback.\n@return This module.", "docstring_tokens": ["Configuration", "callback", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-jooq/src/main/java/org/jooby/jooq/jOOQ.java#L351-L353", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-quartz/src/main/java/org/jooby/quartz/Quartz.java", "func_name": "Quartz.with", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Schedule the provided job and trigger.\n\n@param job A job to schedule.\n@param trigger A trigger for provided job.\n@return This quartz instance.", "docstring_tokens": ["Schedule", "the", "provided", "job", "and", "trigger", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-quartz/src/main/java/org/jooby/quartz/Quartz.java#L509-L514", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-quartz/src/main/java/org/jooby/quartz/Quartz.java", "func_name": "Quartz.with", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Schedule the provided job and trigger. This method will setup a default name and group for\nboth.\n\n@param jobClass A jobClass to setup and schedule.\n@param configurer A callback to setup the job and trigger.\n@return This quartz instance.", "docstring_tokens": ["Schedule", "the", "provided", "job", "and", "trigger", ".", "This", "method", "will", "setup", "a", "default", "name", "and", "group", "for", "both", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-quartz/src/main/java/org/jooby/quartz/Quartz.java#L536-L549", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-netty/src/main/java/org/jooby/internal/netty/NettyServer.java", "func_name": "NettyServer.shutdownGracefully", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shutdown executor in order.\n\n@param iterator Executors to shutdown.", "docstring_tokens": ["Shutdown", "executor", "in", "order", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-netty/src/main/java/org/jooby/internal/netty/NettyServer.java#L384-L396", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-cassandra/src/main/java/org/jooby/cassandra/Cassandra.java", "func_name": "Cassandra.doWithCluster", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure a cluster after creation.\n\n@param configurer Configurer callback.\n@return This module.", "docstring_tokens": ["Configure", "a", "cluster", "after", "creation", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-cassandra/src/main/java/org/jooby/cassandra/Cassandra.java#L602-L605", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "jooby/src/main/java/org/jooby/Results.java", "func_name": "Results.with", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the response status.\n\n@param status A status!\n@return A new result.", "docstring_tokens": ["Set", "the", "response", "status", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/jooby/src/main/java/org/jooby/Results.java#L260-L264", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-jackson/src/main/java/org/jooby/json/Jackson.java", "func_name": "Jackson.module", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Register the provided module.\n\n@param module A module instance.\n@return This module.", "docstring_tokens": ["Register", "the", "provided", "module", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-jackson/src/main/java/org/jooby/json/Jackson.java#L398-L402", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-pac4j2/src/main/java/org/jooby/pac4j/Pac4j.java", "func_name": "Pac4j.unauthenticated", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set a default action which is execute when no user is logged in.\n\n
{@code\n{\nuse(new Pac4j()\n.unauthenticated(() -> {\nUserProfile anonymous = ...\nreturn anonymous;\n})\n);\n\nget(\"/\", () -> {\n// might or might not be anonymous\nUserProfile profile = require(UserProfile.class);\nreturn ...;\n}\n}\n}
\n\nThe default action throws a 403 error.\n\n\n@param provider Unauthenticated user provider.\n@return This module.", "docstring_tokens": ["Set", "a", "default", "action", "which", "is", "execute", "when", "no", "user", "is", "logged", "in", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-pac4j2/src/main/java/org/jooby/pac4j/Pac4j.java#L677-L680", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-pac4j2/src/main/java/org/jooby/pac4j/Pac4j.java", "func_name": "Pac4j.form", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a simple login form. Useful for development and quick startup.\n\n@param pattern Pattern to protect.ver\n@return This module.", "docstring_tokens": ["Add", "a", "simple", "login", "form", ".", "Useful", "for", "development", "and", "quick", "startup", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-pac4j2/src/main/java/org/jooby/pac4j/Pac4j.java#L729-L734", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/ApiParser.java", "func_name": "ApiParser.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse application bytecode and build route methods from it.\n\n@param application Application to parse.\n@return List of route methods.\n@throws Exception If something goes wrong.", "docstring_tokens": ["Parse", "application", "bytecode", "and", "build", "route", "methods", "from", "it", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/ApiParser.java#L294-L298", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-scanner/src/main/java/org/jooby/scanner/Scanner.java", "func_name": "Scanner.scan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a scan criteria like an annotation, interface or class.\n\n@param type A scan criteria/type.\n@return This module.", "docstring_tokens": ["Add", "a", "scan", "criteria", "like", "an", "annotation", "interface", "or", "class", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-scanner/src/main/java/org/jooby/scanner/Scanner.java#L518-L530", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/ApiTool.java", "func_name": "ApiTool.swagger", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Mount Swagger at the given path and customize Swagger objects.\n\n@param path Path to mount swagger.\n@param swagger Customizer.\n@return This tool.", "docstring_tokens": ["Mount", "Swagger", "at", "the", "given", "path", "and", "customize", "Swagger", "objects", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/ApiTool.java#L904-L906", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/ApiTool.java", "func_name": "ApiTool.swagger", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Mount Swagger using the given options.\n\n@param options Swagger options.\n@param swagger Customizer.\n@return This tool.", "docstring_tokens": ["Mount", "Swagger", "using", "the", "given", "options", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/ApiTool.java#L925-L929", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/ApiTool.java", "func_name": "ApiTool.raml", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Mount RAML at the given path and customize RAML objects.\n\n@param path Path to mount raml.\n@param raml RAML customizer.\n@return This tool.", "docstring_tokens": ["Mount", "RAML", "at", "the", "given", "path", "and", "customize", "RAML", "objects", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/ApiTool.java#L957-L959", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-apitool/src/main/java/org/jooby/apitool/ApiTool.java", "func_name": "ApiTool.raml", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Mount RAML using the given options.\n\n@param options RAML options.\n@param raml RAML customizer.\n@return This tool.", "docstring_tokens": ["Mount", "RAML", "using", "the", "given", "options", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-apitool/src/main/java/org/jooby/apitool/ApiTool.java#L978-L982", "partition": "valid"} +{"repo": "jooby-project/jooby", "path": "modules/jooby-assets/src/main/java/org/jooby/assets/AssetProcessor.java", "func_name": "AssetProcessor.process", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method that processes the provided source and returns the processed contents.\n\n@param filename name of the file\n@param source contents of the file\n@param conf application configuration\n@return the processed file contents\n@throws Exception if any error occurred", "docstring_tokens": ["Method", "that", "processes", "the", "provided", "source", "and", "returns", "the", "processed", "contents", "."], "sha": "9795b65ccea63c630592f0a320aca2000ca19a8b", "url": "https://github.com/jooby-project/jooby/blob/9795b65ccea63c630592f0a320aca2000ca19a8b/modules/jooby-assets/src/main/java/org/jooby/assets/AssetProcessor.java#L353-L355", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/cte300/webservices/recepcaoOS/CteRecepcaoOSCallbackHandler.java", "func_name": "CteRecepcaoOSCallbackHandler.receiveResultcteRecepcaoOS", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "auto generated Axis2 call back method for cteRecepcaoOS method\noverride this method for handling normal response from cteRecepcaoOS operation", "docstring_tokens": ["auto", "generated", "Axis2", "call", "back", "method", "for", "cteRecepcaoOS", "method", "override", "this", "method", "for", "handling", "normal", "response", "from", "cteRecepcaoOS", "operation"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/cte300/webservices/recepcaoOS/CteRecepcaoOSCallbackHandler.java#L41-L44", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/recepcao/MDFeRecepcaoCallbackHandler.java", "func_name": "MDFeRecepcaoCallbackHandler.receiveResultmdfeRecepcaoLote", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "auto generated Axis2 call back method for mdfeRecepcaoLote method\noverride this method for handling normal response from mdfeRecepcaoLote operation", "docstring_tokens": ["auto", "generated", "Axis2", "call", "back", "method", "for", "mdfeRecepcaoLote", "method", "override", "this", "method", "for", "handling", "normal", "response", "from", "mdfeRecepcaoLote", "operation"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/recepcao/MDFeRecepcaoCallbackHandler.java#L48-L51", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/cte300/webservices/inutilizacao/CteInutilizacaoCallbackHandler.java", "func_name": "CteInutilizacaoCallbackHandler.receiveResultcteInutilizacaoCT", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "auto generated Axis2 call back method for cteInutilizacaoCT method\noverride this method for handling normal response from cteInutilizacaoCT operation", "docstring_tokens": ["auto", "generated", "Axis2", "call", "back", "method", "for", "cteInutilizacaoCT", "method", "override", "this", "method", "for", "handling", "normal", "response", "from", "cteInutilizacaoCT", "operation"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/cte300/webservices/inutilizacao/CteInutilizacaoCallbackHandler.java#L41-L44", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/recepcaoevento/MDFeRecepcaoEventoCallbackHandler.java", "func_name": "MDFeRecepcaoEventoCallbackHandler.receiveResultmdfeRecepcaoEvento", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "auto generated Axis2 call back method for mdfeRecepcaoEvento method\noverride this method for handling normal response from mdfeRecepcaoEvento operation", "docstring_tokens": ["auto", "generated", "Axis2", "call", "back", "method", "for", "mdfeRecepcaoEvento", "method", "override", "this", "method", "for", "handling", "normal", "response", "from", "mdfeRecepcaoEvento", "operation"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/recepcaoevento/MDFeRecepcaoEventoCallbackHandler.java#L48-L51", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/cte300/webservices/consulta/CteConsultaCallbackHandler.java", "func_name": "CteConsultaCallbackHandler.receiveResultcteConsultaCT", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "auto generated Axis2 call back method for cteConsultaCT method\noverride this method for handling normal response from cteConsultaCT operation", "docstring_tokens": ["auto", "generated", "Axis2", "call", "back", "method", "for", "cteConsultaCT", "method", "override", "this", "method", "for", "handling", "normal", "response", "from", "cteConsultaCT", "operation"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/cte300/webservices/consulta/CteConsultaCallbackHandler.java#L41-L44", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/consultanaoencerrado/MDFeConsNaoEncCallbackHandler.java", "func_name": "MDFeConsNaoEncCallbackHandler.receiveResultmdfeConsNaoEnc", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "auto generated Axis2 call back method for mdfeConsNaoEnc method\noverride this method for handling normal response from mdfeConsNaoEnc operation", "docstring_tokens": ["auto", "generated", "Axis2", "call", "back", "method", "for", "mdfeConsNaoEnc", "method", "override", "this", "method", "for", "handling", "normal", "response", "from", "mdfeConsNaoEnc", "operation"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/consultanaoencerrado/MDFeConsNaoEncCallbackHandler.java#L48-L51", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/recepcao/MDFeRecepcaoStub.java", "func_name": "MDFeRecepcaoStub.toEnvelope", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "get the default envelope", "docstring_tokens": ["get", "the", "default", "envelope"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/recepcao/MDFeRecepcaoStub.java#L1669-L1672", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/cte300/webservices/recepcaoevento/RecepcaoEventoStub.java", "func_name": "RecepcaoEventoStub.getEnvelopeNamespaces", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A utility method that copies the namepaces from the SOAPEnvelope", "docstring_tokens": ["A", "utility", "method", "that", "copies", "the", "namepaces", "from", "the", "SOAPEnvelope"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/cte300/webservices/recepcaoevento/RecepcaoEventoStub.java#L263-L271", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/nfe310/webservices/nota/consulta/NfeConsultaCallbackHandler.java", "func_name": "NfeConsultaCallbackHandler.receiveResultnfeConsultaNF", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "auto generated Axis2 call back method for nfeConsultaNF method\noverride this method for handling normal response from nfeConsultaNF operation", "docstring_tokens": ["auto", "generated", "Axis2", "call", "back", "method", "for", "nfeConsultaNF", "method", "override", "this", "method", "for", "handling", "normal", "response", "from", "nfeConsultaNF", "operation"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/nfe310/webservices/nota/consulta/NfeConsultaCallbackHandler.java#L45-L47", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/nfe310/webservices/WSLoteEnvio.java", "func_name": "WSLoteEnvio.getLoteAssinado", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retorna o Lote assinado.\n@param lote\n@return\n@throws Exception", "docstring_tokens": ["Retorna", "o", "Lote", "assinado", "."], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/nfe310/webservices/WSLoteEnvio.java#L61-L95", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/nfe400/webservices/WSFacade.java", "func_name": "WSFacade.enviaLote", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Faz o envio de lote para a Sefaz\n@param lote o lote a ser enviado para a Sefaz\n@return dados do lote retornado pelo webservice, alem do lote assinado\n@throws Exception caso nao consiga gerar o xml ou problema de conexao com o sefaz", "docstring_tokens": ["Faz", "o", "envio", "de", "lote", "para", "a", "Sefaz"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/nfe400/webservices/WSFacade.java#L67-L74", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/nfe400/webservices/WSFacade.java", "func_name": "WSFacade.consultaStatus", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Faz a consulta de status responsavel pela UF\n@param uf uf UF que deseja consultar o status do sefaz responsavel\n@param modelo modelo da nota (NF-e ou NFC-e)\n@return dados da consulta de status retornado pelo webservice\n@throws Exception caso nao consiga gerar o xml ou problema de conexao com o sefaz", "docstring_tokens": ["Faz", "a", "consulta", "de", "status", "responsavel", "pela", "UF"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/nfe400/webservices/WSFacade.java#L109-L111", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/nfe400/webservices/WSFacade.java", "func_name": "WSFacade.corrigeNota", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Faz a correcao da nota\n@param chaveDeAcesso chave de acesso da nota\n@param textoCorrecao texto de correcao\n@param numeroSequencialEvento numero sequencial de evento, esse numero nao pode ser repetido!\n@return dados da correcao da nota retornado pelo webservice\n@throws Exception caso nao consiga gerar o xml ou problema de conexao com o sefaz", "docstring_tokens": ["Faz", "a", "correcao", "da", "nota"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/nfe400/webservices/WSFacade.java#L131-L133", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/nfe400/webservices/WSFacade.java", "func_name": "WSFacade.cancelaNota", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Faz o cancelamento da nota\n@param chave chave de acesso da nota\n@param numeroProtocolo numero do protocolo da nota\n@param motivo motivo do cancelamento\n@return dados do cancelamento da nota retornado pelo webservice\n@throws Exception caso nao consiga gerar o xml ou problema de conexao com o sefaz", "docstring_tokens": ["Faz", "o", "cancelamento", "da", "nota"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/nfe400/webservices/WSFacade.java#L178-L180", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/nfe400/webservices/WSFacade.java", "func_name": "WSFacade.inutilizaNota", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inutiliza a nota\n@param anoInutilizacaoNumeracao ano de inutilizacao\n@param cnpjEmitente CNPJ emitente da nota\n@param serie serie da nota\n@param numeroInicial numero inicial da nota\n@param numeroFinal numero final da nota\n@param justificativa justificativa da inutilizacao\n@param modelo modelo da nota (NF-e ou NFC-e)\n@return dados da inutilizacao da nota retornado pelo webservice\n@throws Exception caso nao consiga gerar o xml ou problema de conexao com o sefaz", "docstring_tokens": ["Inutiliza", "a", "nota"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/nfe400/webservices/WSFacade.java#L216-L218", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/nfe400/webservices/WSFacade.java", "func_name": "WSFacade.consultaCadastro", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Realiza a consulta de cadastro de pessoa juridica com inscricao estadual\n@param cnpj CNPJ da pessoa juridica\n@param uf UF da pessoa juridica\n@return dados da consulta da pessoa juridica retornado pelo webservice\n@throws Exception caso nao consiga gerar o xml ou problema de conexao com o sefaz", "docstring_tokens": ["Realiza", "a", "consulta", "de", "cadastro", "de", "pessoa", "juridica", "com", "inscricao", "estadual"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/nfe400/webservices/WSFacade.java#L227-L229", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/cte300/webservices/recepcao/CteRecepcaoCallbackHandler.java", "func_name": "CteRecepcaoCallbackHandler.receiveResultcteRecepcaoLote", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "auto generated Axis2 call back method for cteRecepcaoLote method\noverride this method for handling normal response from cteRecepcaoLote operation", "docstring_tokens": ["auto", "generated", "Axis2", "call", "back", "method", "for", "cteRecepcaoLote", "method", "override", "this", "method", "for", "handling", "normal", "response", "from", "cteRecepcaoLote", "operation"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/cte300/webservices/recepcao/CteRecepcaoCallbackHandler.java#L41-L44", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/cte300/webservices/retrecepcao/CteRetRecepcaoCallbackHandler.java", "func_name": "CteRetRecepcaoCallbackHandler.receiveResultcteRetRecepcao", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "auto generated Axis2 call back method for cteRetRecepcao method\noverride this method for handling normal response from cteRetRecepcao operation", "docstring_tokens": ["auto", "generated", "Axis2", "call", "back", "method", "for", "cteRetRecepcao", "method", "override", "this", "method", "for", "handling", "normal", "response", "from", "cteRetRecepcao", "operation"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/cte300/webservices/retrecepcao/CteRetRecepcaoCallbackHandler.java#L41-L44", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/nfe400/webservices/WSCartaCorrecao.java", "func_name": "WSCartaCorrecao.getXmlAssinado", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retorna XML assinado para uso externo.\n@param chaveAcesso\n@param textoCorrecao\n@param numeroSequencialEvento\n@return\n@throws Exception", "docstring_tokens": ["Retorna", "XML", "assinado", "para", "uso", "externo", "."], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/nfe400/webservices/WSCartaCorrecao.java#L100-L103", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/cte300/webservices/recepcaoevento/RecepcaoEventoCallbackHandler.java", "func_name": "RecepcaoEventoCallbackHandler.receiveResultcteRecepcaoEvento", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "auto generated Axis2 call back method for cteRecepcaoEvento method\noverride this method for handling normal response from cteRecepcaoEvento operation", "docstring_tokens": ["auto", "generated", "Axis2", "call", "back", "method", "for", "cteRecepcaoEvento", "method", "override", "this", "method", "for", "handling", "normal", "response", "from", "cteRecepcaoEvento", "operation"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/cte300/webservices/recepcaoevento/RecepcaoEventoCallbackHandler.java#L41-L44", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/cte300/webservices/WSFacade.java", "func_name": "WSFacade.cancelaNota", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Faz o cancelamento do CTe\n\n@param chave chave de acesso da nota\n@param numeroProtocolo numero do protocolo da nota\n@param motivo motivo do cancelamento\n@return dados do cancelamento da nota retornado pelo webservice\n@throws Exception caso nao consiga gerar o xml ou problema de conexao com o sefaz", "docstring_tokens": ["Faz", "o", "cancelamento", "do", "CTe"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/cte300/webservices/WSFacade.java#L93-L95", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/consulta/MDFeConsultaCallbackHandler.java", "func_name": "MDFeConsultaCallbackHandler.receiveResultmdfeConsultaMDF", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "auto generated Axis2 call back method for mdfeConsultaMDF method\noverride this method for handling normal response from mdfeConsultaMDF operation", "docstring_tokens": ["auto", "generated", "Axis2", "call", "back", "method", "for", "mdfeConsultaMDF", "method", "override", "this", "method", "for", "handling", "normal", "response", "from", "mdfeConsultaMDF", "operation"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/consulta/MDFeConsultaCallbackHandler.java#L48-L51", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/retornorecepcao/MDFeRetRecepcaoCallbackHandler.java", "func_name": "MDFeRetRecepcaoCallbackHandler.receiveResultmdfeRetRecepcao", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "auto generated Axis2 call back method for mdfeRetRecepcao method\noverride this method for handling normal response from mdfeRetRecepcao operation", "docstring_tokens": ["auto", "generated", "Axis2", "call", "back", "method", "for", "mdfeRetRecepcao", "method", "override", "this", "method", "for", "handling", "normal", "response", "from", "mdfeRetRecepcao", "operation"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/retornorecepcao/MDFeRetRecepcaoCallbackHandler.java#L48-L51", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/WSFacade.java", "func_name": "WSFacade.cancelaMdfe", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Faz o cancelamento do MDFe\n\n@param chave chave de acesso da nota\n@param numeroProtocolo numero do protocolo da nota\n@param motivo motivo do cancelamento\n@return dados do cancelamento da nota retornado pelo webservice\n@throws Exception caso nao consiga gerar o xml ou problema de conexao com o sefaz", "docstring_tokens": ["Faz", "o", "cancelamento", "do", "MDFe"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/WSFacade.java#L100-L102", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/WSFacade.java", "func_name": "WSFacade.encerramento", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Faz o encerramento do MDFe\n\n@param chaveAcesso chave de acesso da nota\n@param numeroProtocolo numero do protocolo da nota\n@param codigoMunicipio Informar o c\u00f3digo do munic\u00edpio do encerramento do manifesto\n@param dataEncerramento Data em que o manifesto foi encerrado.\n@param unidadeFederativa Informar a UF de encerramento do manifesto\n@return dados do encerramento da nota retornado pelo webservice\n@throws Exception caso nao consiga gerar o xml ou problema de conexao com o sefaz", "docstring_tokens": ["Faz", "o", "encerramento", "do", "MDFe"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/WSFacade.java#L128-L131", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/WSFacade.java", "func_name": "WSFacade.encerramentoAssinado", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Faz o encerramento do MDFe assinado\n\n@param chaveAcesso\n@param eventoAssinadoXml\n@return\n@throws Exception", "docstring_tokens": ["Faz", "o", "encerramento", "do", "MDFe", "assinado"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/WSFacade.java#L141-L143", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/statusservico/MDFeStatusServicoCallbackHandler.java", "func_name": "MDFeStatusServicoCallbackHandler.receiveResultmdfeStatusServicoMDF", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "auto generated Axis2 call back method for mdfeStatusServicoMDF method\noverride this method for handling normal response from mdfeStatusServicoMDF operation", "docstring_tokens": ["auto", "generated", "Axis2", "call", "back", "method", "for", "mdfeStatusServicoMDF", "method", "override", "this", "method", "for", "handling", "normal", "response", "from", "mdfeStatusServicoMDF", "operation"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/mdfe3/webservices/statusservico/MDFeStatusServicoCallbackHandler.java#L48-L51", "partition": "valid"} +{"repo": "wmixvideo/nfe", "path": "src/main/java/com/fincatto/documentofiscal/nfe310/webservices/WSStatusConsulta.java", "func_name": "WSStatusConsulta.efetuaConsultaStatusBahia", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "este metodo teve que ser implementado pois a Bahia trata de forma diferente", "docstring_tokens": ["este", "metodo", "teve", "que", "ser", "implementado", "pois", "a", "Bahia", "trata", "de", "forma", "diferente"], "sha": "75c4545321d40527be8e0797faf7a5b40f43c951", "url": "https://github.com/wmixvideo/nfe/blob/75c4545321d40527be8e0797faf7a5b40f43c951/src/main/java/com/fincatto/documentofiscal/nfe310/webservices/WSStatusConsulta.java#L71-L89", "partition": "valid"} +{"repo": "OryxProject/oryx", "path": "app/oryx-app-common/src/main/java/com/cloudera/oryx/app/als/ALSUtils.java", "func_name": "ALSUtils.computeUpdatedXu", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Computes how a user vector Xu changes in response to interaction with an item vector Yi.\nThis can also be used to compute how an item vector changes in response to a user interaction,\neven though the code naming follows the former convention.\n\n@param solver solver helping solve for Xu in Qu*Y = Xu * (Yt * Y)\n@param value strength of interaction\n@param Xu current user vector (null if no existing user vector)\n@param Yi current item vector\n@param implicit whether the model is implicit feedback\n@return new user vector Xu, or {@code null} if no update should be made (i.e. there was no\nitem vector; the update would push the new Qui farther out of range)", "docstring_tokens": ["Computes", "how", "a", "user", "vector", "Xu", "changes", "in", "response", "to", "interaction", "with", "an", "item", "vector", "Yi", ".", "This", "can", "also", "be", "used", "to", "compute", "how", "an", "item", "vector", "changes", "in", "response", "to", "a", "user", "interaction", "even", "though", "the", "code", "naming", "follows", "the", "former", "convention", "."], "sha": "684bac0af002d2619ced652b5339e239da48df93", "url": "https://github.com/OryxProject/oryx/blob/684bac0af002d2619ced652b5339e239da48df93/app/oryx-app-common/src/main/java/com/cloudera/oryx/app/als/ALSUtils.java#L74-L104", "partition": "valid"} +{"repo": "OryxProject/oryx", "path": "framework/oryx-common/src/main/java/com/cloudera/oryx/common/math/VectorMath.java", "func_name": "VectorMath.cosineSimilarity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Computes cosine similarity of values in two given arrays, when the norm of one array is\nknown in advance, which is a not-uncommon case.\n\n@param x one array\n@param y the other array\n@param normY norm of y\n@return cosine similarity = dot(x,y) / (norm(x) * norm(y))", "docstring_tokens": ["Computes", "cosine", "similarity", "of", "values", "in", "two", "given", "arrays", "when", "the", "norm", "of", "one", "array", "is", "known", "in", "advance", "which", "is", "a", "not", "-", "uncommon", "case", "."], "sha": "684bac0af002d2619ced652b5339e239da48df93", "url": "https://github.com/OryxProject/oryx/blob/684bac0af002d2619ced652b5339e239da48df93/framework/oryx-common/src/main/java/com/cloudera/oryx/common/math/VectorMath.java#L79-L89", "partition": "valid"} +{"repo": "OryxProject/oryx", "path": "app/oryx-app-common/src/main/java/com/cloudera/oryx/app/als/SolverCache.java", "func_name": "SolverCache.compute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Proactively try to compute the solver asynchronously, if not already computed.\nDoes not block.", "docstring_tokens": ["Proactively", "try", "to", "compute", "the", "solver", "asynchronously", "if", "not", "already", "computed", ".", "Does", "not", "block", "."], "sha": "684bac0af002d2619ced652b5339e239da48df93", "url": "https://github.com/OryxProject/oryx/blob/684bac0af002d2619ced652b5339e239da48df93/app/oryx-app-common/src/main/java/com/cloudera/oryx/app/als/SolverCache.java#L73-L94", "partition": "valid"} +{"repo": "OryxProject/oryx", "path": "framework/oryx-common/src/main/java/com/cloudera/oryx/common/io/IOUtils.java", "func_name": "IOUtils.deleteRecursively", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes the given path, and if it is a directory, all files and subdirectories within it.\n\n@param rootDir directory to delete\n@throws IOException if any error occurs while deleting files or directories", "docstring_tokens": ["Deletes", "the", "given", "path", "and", "if", "it", "is", "a", "directory", "all", "files", "and", "subdirectories", "within", "it", "."], "sha": "684bac0af002d2619ced652b5339e239da48df93", "url": "https://github.com/OryxProject/oryx/blob/684bac0af002d2619ced652b5339e239da48df93/framework/oryx-common/src/main/java/com/cloudera/oryx/common/io/IOUtils.java#L51-L67", "partition": "valid"} +{"repo": "OryxProject/oryx", "path": "framework/oryx-common/src/main/java/com/cloudera/oryx/common/lang/ClassUtils.java", "func_name": "ClassUtils.loadInstanceOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads and instantiates a named implementation class, a subclass of a given supertype,\nwhose constructor takes the given arguments.\n\n@param implClassName implementation class name\n@param superClass superclass or interface that the implementation extends\n@param constructorTypes argument types of constructor to use\n@param constructorArgs actual constructor arguments\n@param type of returned instance\n@return instance of {@code implClassName}", "docstring_tokens": ["Loads", "and", "instantiates", "a", "named", "implementation", "class", "a", "subclass", "of", "a", "given", "supertype", "whose", "constructor", "takes", "the", "given", "arguments", "."], "sha": "684bac0af002d2619ced652b5339e239da48df93", "url": "https://github.com/OryxProject/oryx/blob/684bac0af002d2619ced652b5339e239da48df93/framework/oryx-common/src/main/java/com/cloudera/oryx/common/lang/ClassUtils.java#L116-L130", "partition": "valid"} +{"repo": "OryxProject/oryx", "path": "framework/oryx-ml/src/main/java/com/cloudera/oryx/ml/MLUpdate.java", "func_name": "MLUpdate.publishAdditionalModelData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Optionally, publish additional model-related information to the update topic,\nafter the model has been written. This is needed only in specific cases, like the\nALS algorithm, where the model serialization in PMML can't contain all of the info.\n\n@param sparkContext active Spark Context\n@param pmml model for which extra data should be written\n@param newData data that has arrived in current interval\n@param pastData all previously-known data (may be {@code null})\n@param modelParentPath directory containing model files, if applicable\n@param modelUpdateTopic message topic to write to", "docstring_tokens": ["Optionally", "publish", "additional", "model", "-", "related", "information", "to", "the", "update", "topic", "after", "the", "model", "has", "been", "written", ".", "This", "is", "needed", "only", "in", "specific", "cases", "like", "the", "ALS", "algorithm", "where", "the", "model", "serialization", "in", "PMML", "can", "t", "contain", "all", "of", "the", "info", "."], "sha": "684bac0af002d2619ced652b5339e239da48df93", "url": "https://github.com/OryxProject/oryx/blob/684bac0af002d2619ced652b5339e239da48df93/framework/oryx-ml/src/main/java/com/cloudera/oryx/ml/MLUpdate.java#L137-L144", "partition": "valid"} +{"repo": "uber/rides-android-sdk", "path": "core-android/src/main/java/com/uber/sdk/android/core/utils/CustomTabsHelper.java", "func_name": "CustomTabsHelper.openCustomTab", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Opens the URL on a Custom Tab if possible. Otherwise fallsback to opening it on a WebView.\n\n@param context The host context.\n@param customTabsIntent a CustomTabsIntent to be used if Custom Tabs is available.\n@param uri the Uri to be opened.\n@param fallback a CustomTabFallback to be used if Custom Tabs is not available.", "docstring_tokens": ["Opens", "the", "URL", "on", "a", "Custom", "Tab", "if", "possible", ".", "Otherwise", "fallsback", "to", "opening", "it", "on", "a", "WebView", "."], "sha": "594b15fa0a4e926b8084f8ee31e38ffa870914f8", "url": "https://github.com/uber/rides-android-sdk/blob/594b15fa0a4e926b8084f8ee31e38ffa870914f8/core-android/src/main/java/com/uber/sdk/android/core/utils/CustomTabsHelper.java#L64-L91", "partition": "valid"} +{"repo": "uber/rides-android-sdk", "path": "core-android/src/main/java/com/uber/sdk/android/core/utils/CustomTabsHelper.java", "func_name": "CustomTabsHelper.getPackageNameToUse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Goes through all apps that handle VIEW intents and have a warmup service. Picks\nthe one chosen by the user if there is one, otherwise makes a best effort to return a\nvalid package name.\n\nThis is not threadsafe.\n\n@param context {@link Context} to use for accessing {@link PackageManager}.\n@return The package name recommended to use for connecting to custom tabs related components.", "docstring_tokens": ["Goes", "through", "all", "apps", "that", "handle", "VIEW", "intents", "and", "have", "a", "warmup", "service", ".", "Picks", "the", "one", "chosen", "by", "the", "user", "if", "there", "is", "one", "otherwise", "makes", "a", "best", "effort", "to", "return", "a", "valid", "package", "name", "."], "sha": "594b15fa0a4e926b8084f8ee31e38ffa870914f8", "url": "https://github.com/uber/rides-android-sdk/blob/594b15fa0a4e926b8084f8ee31e38ffa870914f8/core-android/src/main/java/com/uber/sdk/android/core/utils/CustomTabsHelper.java#L103-L148", "partition": "valid"} +{"repo": "uber/rides-android-sdk", "path": "core-android/src/main/java/com/uber/sdk/android/core/utils/CustomTabsHelper.java", "func_name": "CustomTabsHelper.hasSpecializedHandlerIntents", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Used to check whether there is a specialized handler for a given intent.\n@param intent The intent to check with.\n@return Whether there is a specialized handler for the given intent.", "docstring_tokens": ["Used", "to", "check", "whether", "there", "is", "a", "specialized", "handler", "for", "a", "given", "intent", "."], "sha": "594b15fa0a4e926b8084f8ee31e38ffa870914f8", "url": "https://github.com/uber/rides-android-sdk/blob/594b15fa0a4e926b8084f8ee31e38ffa870914f8/core-android/src/main/java/com/uber/sdk/android/core/utils/CustomTabsHelper.java#L155-L175", "partition": "valid"} +{"repo": "uber/rides-android-sdk", "path": "rides-android/src/main/java/com/uber/sdk/android/rides/RideRequestActivity.java", "func_name": "RideRequestActivity.load", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads the appropriate view in the activity based on whether user is successfully authorized or not.", "docstring_tokens": ["Loads", "the", "appropriate", "view", "in", "the", "activity", "based", "on", "whether", "user", "is", "successfully", "authorized", "or", "not", "."], "sha": "594b15fa0a4e926b8084f8ee31e38ffa870914f8", "url": "https://github.com/uber/rides-android-sdk/blob/594b15fa0a4e926b8084f8ee31e38ffa870914f8/rides-android/src/main/java/com/uber/sdk/android/rides/RideRequestActivity.java#L241-L253", "partition": "valid"} +{"repo": "uber/rides-android-sdk", "path": "rides-android/src/main/java/com/uber/sdk/android/rides/RideRequestDeeplink.java", "func_name": "RideRequestDeeplink.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes the deeplink to launch the Uber app. If the app is not installed redirects to the play store.", "docstring_tokens": ["Executes", "the", "deeplink", "to", "launch", "the", "Uber", "app", ".", "If", "the", "app", "is", "not", "installed", "redirects", "to", "the", "play", "store", "."], "sha": "594b15fa0a4e926b8084f8ee31e38ffa870914f8", "url": "https://github.com/uber/rides-android-sdk/blob/594b15fa0a4e926b8084f8ee31e38ffa870914f8/rides-android/src/main/java/com/uber/sdk/android/rides/RideRequestDeeplink.java#L73-L76", "partition": "valid"} +{"repo": "uber/rides-android-sdk", "path": "samples/login-sample/src/main/java/com/uber/sdk/android/samples/LoginSampleActivity.java", "func_name": "LoginSampleActivity.validateConfiguration", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validates the local variables needed by the Uber SDK used in the sample project\n@param configuration", "docstring_tokens": ["Validates", "the", "local", "variables", "needed", "by", "the", "Uber", "SDK", "used", "in", "the", "sample", "project"], "sha": "594b15fa0a4e926b8084f8ee31e38ffa870914f8", "url": "https://github.com/uber/rides-android-sdk/blob/594b15fa0a4e926b8084f8ee31e38ffa870914f8/samples/login-sample/src/main/java/com/uber/sdk/android/samples/LoginSampleActivity.java#L245-L258", "partition": "valid"} +{"repo": "uber/rides-android-sdk", "path": "core-android/src/main/java/com/uber/sdk/android/core/auth/LoginActivity.java", "func_name": "LoginActivity.newResponseIntent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Used to handle Redirect URI response from customtab or browser\n\n@param context\n@param responseUri\n@return", "docstring_tokens": ["Used", "to", "handle", "Redirect", "URI", "response", "from", "customtab", "or", "browser"], "sha": "594b15fa0a4e926b8084f8ee31e38ffa870914f8", "url": "https://github.com/uber/rides-android-sdk/blob/594b15fa0a4e926b8084f8ee31e38ffa870914f8/core-android/src/main/java/com/uber/sdk/android/core/auth/LoginActivity.java#L159-L164", "partition": "valid"} +{"repo": "epam/JDI", "path": "Java/JDI/jdi-mock-rest/src/main/java/com/epam/mock/service/ConfigurationHandlerService.java", "func_name": "ConfigurationHandlerService.editMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Edit representation for method specified in sent parameter after controller calls for it.\n@param configurationHandler Our representation of response.\n@return True if mock-service contains sent method, false otherwise.", "docstring_tokens": ["Edit", "representation", "for", "method", "specified", "in", "sent", "parameter", "after", "controller", "calls", "for", "it", "."], "sha": "abc01be4b1c07bf545bbea1eee51c98051b05357", "url": "https://github.com/epam/JDI/blob/abc01be4b1c07bf545bbea1eee51c98051b05357/Java/JDI/jdi-mock-rest/src/main/java/com/epam/mock/service/ConfigurationHandlerService.java#L89-L99", "partition": "valid"} +{"repo": "Netflix/Fenzo", "path": "fenzo-core/src/main/java/com/netflix/fenzo/samples/TaskGenerator.java", "func_name": "TaskGenerator.main", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Main method to run the task generator.\n@param args Arguments to the program. Provide as the only argument, the mesos connection string.", "docstring_tokens": ["Main", "method", "to", "run", "the", "task", "generator", "."], "sha": "3c1d8fc84027900231756e5072f0e1de303772cf", "url": "https://github.com/Netflix/Fenzo/blob/3c1d8fc84027900231756e5072f0e1de303772cf/fenzo-core/src/main/java/com/netflix/fenzo/samples/TaskGenerator.java#L142-L179", "partition": "valid"} +{"repo": "Netflix/Fenzo", "path": "fenzo-core/src/main/java/com/netflix/fenzo/samples/SampleFramework.java", "func_name": "SampleFramework.shutdown", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shuts down the Mesos driver.", "docstring_tokens": ["Shuts", "down", "the", "Mesos", "driver", "."], "sha": "3c1d8fc84027900231756e5072f0e1de303772cf", "url": "https://github.com/Netflix/Fenzo/blob/3c1d8fc84027900231756e5072f0e1de303772cf/fenzo-core/src/main/java/com/netflix/fenzo/samples/SampleFramework.java#L204-L208", "partition": "valid"} +{"repo": "Netflix/Fenzo", "path": "fenzo-core/src/main/java/com/netflix/fenzo/plugins/ExclusiveHostConstraint.java", "func_name": "ExclusiveHostConstraint.evaluate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines whether the prospective host already has tasks either running on it or assigned to be run on\nit, and returns a false Result if either of those things is the case.\n\n@param taskRequest describes the task to be considered for assignment to the host\n@param targetVM describes the host to be considered for accepting the task\n@param taskTrackerState describes the state of tasks assigned to or running on hosts throughout the\nsystem\n@return an unsuccessful Result if the target already has running tasks or assigned tasks, or a successful\nResult otherwise", "docstring_tokens": ["Determines", "whether", "the", "prospective", "host", "already", "has", "tasks", "either", "running", "on", "it", "or", "assigned", "to", "be", "run", "on", "it", "and", "returns", "a", "false", "Result", "if", "either", "of", "those", "things", "is", "the", "case", "."], "sha": "3c1d8fc84027900231756e5072f0e1de303772cf", "url": "https://github.com/Netflix/Fenzo/blob/3c1d8fc84027900231756e5072f0e1de303772cf/fenzo-core/src/main/java/com/netflix/fenzo/plugins/ExclusiveHostConstraint.java#L57-L66", "partition": "valid"} +{"repo": "Netflix/Fenzo", "path": "fenzo-core/src/main/java/com/netflix/fenzo/plugins/HostAttrValueConstraint.java", "func_name": "HostAttrValueConstraint.evaluate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tests a host to determine whether it has an attribute of the required value for this task request.\n\n@param taskRequest describes the task being evaluated for assignment to the host\n@param targetVM describes the host being evaluated as a target for the task\n@param taskTrackerState describes the state of tasks already assigned or running on hosts throughout the\nsystem\n@return a successful Result if the host has an attribute with the required value, or an unsuccessful\nResult otherwise", "docstring_tokens": ["Tests", "a", "host", "to", "determine", "whether", "it", "has", "an", "attribute", "of", "the", "required", "value", "for", "this", "task", "request", "."], "sha": "3c1d8fc84027900231756e5072f0e1de303772cf", "url": "https://github.com/Netflix/Fenzo/blob/3c1d8fc84027900231756e5072f0e1de303772cf/fenzo-core/src/main/java/com/netflix/fenzo/plugins/HostAttrValueConstraint.java#L63-L73", "partition": "valid"} +{"repo": "Netflix/Fenzo", "path": "fenzo-core/src/main/java/com/netflix/fenzo/plugins/UniqueHostAttrConstraint.java", "func_name": "UniqueHostAttrConstraint.evaluate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines whether a particular target host is appropriate for a particular task request by rejecting any\nhost that has the same value for the unique constraint attribute as another host that is already assigned\na co-task of the specified task request.\n\n@param taskRequest describes the task being considered for assignment to the host\n@param targetVM describes the host being considered as a target for the task\n@param taskTrackerState describes the state of tasks previously assigned or already running throughout\nthe system\n@return a successful Result if the target does not have the same value for its unique constraint\nattribute as another host that has already been assigned a co-task of {@code taskRequest}, or an\nunsuccessful Result otherwise", "docstring_tokens": ["Determines", "whether", "a", "particular", "target", "host", "is", "appropriate", "for", "a", "particular", "task", "request", "by", "rejecting", "any", "host", "that", "has", "the", "same", "value", "for", "the", "unique", "constraint", "attribute", "as", "another", "host", "that", "is", "already", "assigned", "a", "co", "-", "task", "of", "the", "specified", "task", "request", "."], "sha": "3c1d8fc84027900231756e5072f0e1de303772cf", "url": "https://github.com/Netflix/Fenzo/blob/3c1d8fc84027900231756e5072f0e1de303772cf/fenzo-core/src/main/java/com/netflix/fenzo/plugins/UniqueHostAttrConstraint.java#L96-L118", "partition": "valid"} +{"repo": "Netflix/Fenzo", "path": "fenzo-core/src/main/java/com/netflix/fenzo/TaskScheduler.java", "func_name": "TaskScheduler.setAutoscalerCallback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the autoscale call back action. The callback you pass to this method receives an indication when an\nautoscale action is to be performed, telling it which autoscale rule prompted the action and whether the\naction is to scale up or scale down the autoscale group. The callback then initiates the appropriate\nscaling actions.\n\n@param callback the callback to invoke for autoscale actions\n@throws IllegalStateException if no autoscaler was established\n@see Autoscaling", "docstring_tokens": ["Set", "the", "autoscale", "call", "back", "action", ".", "The", "callback", "you", "pass", "to", "this", "method", "receives", "an", "indication", "when", "an", "autoscale", "action", "is", "to", "be", "performed", "telling", "it", "which", "autoscale", "rule", "prompted", "the", "action", "and", "whether", "the", "action", "is", "to", "scale", "up", "or", "scale", "down", "the", "autoscale", "group", ".", "The", "callback", "then", "initiates", "the", "appropriate", "scaling", "actions", "."], "sha": "3c1d8fc84027900231756e5072f0e1de303772cf", "url": "https://github.com/Netflix/Fenzo/blob/3c1d8fc84027900231756e5072f0e1de303772cf/fenzo-core/src/main/java/com/netflix/fenzo/TaskScheduler.java#L600-L606", "partition": "valid"} +{"repo": "Netflix/Fenzo", "path": "fenzo-core/src/main/java/com/netflix/fenzo/TaskScheduler.java", "func_name": "TaskScheduler.disableVM", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Disable the virtual machine with the specified hostname. The scheduler will not use disabled hosts for\nallocating resources to tasks.\n\n@param hostname the name of the host to disable\n@param durationMillis the length of time, starting from now, in milliseconds, during which the host will\nbe disabled\n@throws IllegalStateException if the scheduler is shutdown via the {@link #isShutdown} method.", "docstring_tokens": ["Disable", "the", "virtual", "machine", "with", "the", "specified", "hostname", ".", "The", "scheduler", "will", "not", "use", "disabled", "hosts", "for", "allocating", "resources", "to", "tasks", "."], "sha": "3c1d8fc84027900231756e5072f0e1de303772cf", "url": "https://github.com/Netflix/Fenzo/blob/3c1d8fc84027900231756e5072f0e1de303772cf/fenzo-core/src/main/java/com/netflix/fenzo/TaskScheduler.java#L1247-L1250", "partition": "valid"} +{"repo": "Netflix/Fenzo", "path": "fenzo-core/src/main/java/com/netflix/fenzo/TaskScheduler.java", "func_name": "TaskScheduler.disableVMByVMId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Disable the virtual machine with the specified ID. The scheduler will not use disabled hosts for allocating\nresources to tasks.\n\n@param vmID the ID of the host to disable\n@param durationMillis the length of time, starting from now, in milliseconds, during which the host will\nbe disabled\n@return {@code true} if the ID matches a known VM, {@code false} otherwise.\n@throws IllegalStateException if the scheduler is shutdown via the {@link #isShutdown} method.", "docstring_tokens": ["Disable", "the", "virtual", "machine", "with", "the", "specified", "ID", ".", "The", "scheduler", "will", "not", "use", "disabled", "hosts", "for", "allocating", "resources", "to", "tasks", "."], "sha": "3c1d8fc84027900231756e5072f0e1de303772cf", "url": "https://github.com/Netflix/Fenzo/blob/3c1d8fc84027900231756e5072f0e1de303772cf/fenzo-core/src/main/java/com/netflix/fenzo/TaskScheduler.java#L1262-L1269", "partition": "valid"} +{"repo": "Netflix/Fenzo", "path": "fenzo-core/src/main/java/com/netflix/fenzo/TaskScheduler.java", "func_name": "TaskScheduler.enableVM", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enable the VM with the specified host name. Hosts start in an enabled state, so you only need to call\nthis method if you have previously explicitly disabled the host.\n\n@param hostname the name of the host to enable\n@throws IllegalStateException if the scheduler is shutdown via the {@link #isShutdown} method.", "docstring_tokens": ["Enable", "the", "VM", "with", "the", "specified", "host", "name", ".", "Hosts", "start", "in", "an", "enabled", "state", "so", "you", "only", "need", "to", "call", "this", "method", "if", "you", "have", "previously", "explicitly", "disabled", "the", "host", "."], "sha": "3c1d8fc84027900231756e5072f0e1de303772cf", "url": "https://github.com/Netflix/Fenzo/blob/3c1d8fc84027900231756e5072f0e1de303772cf/fenzo-core/src/main/java/com/netflix/fenzo/TaskScheduler.java#L1278-L1281", "partition": "valid"} +{"repo": "Netflix/Fenzo", "path": "fenzo-core/src/main/java/com/netflix/fenzo/TaskScheduler.java", "func_name": "TaskScheduler.shutdown", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Mark task scheduler as shutdown and shutdown any thread pool executors created.", "docstring_tokens": ["Mark", "task", "scheduler", "as", "shutdown", "and", "shutdown", "any", "thread", "pool", "executors", "created", "."], "sha": "3c1d8fc84027900231756e5072f0e1de303772cf", "url": "https://github.com/Netflix/Fenzo/blob/3c1d8fc84027900231756e5072f0e1de303772cf/fenzo-core/src/main/java/com/netflix/fenzo/TaskScheduler.java#L1310-L1317", "partition": "valid"} +{"repo": "skadistats/clarity", "path": "src/main/java/skadistats/clarity/model/Entity.java", "func_name": "Entity.hasProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if this entity contains all of the given properties.\n\n@param properties Names of the properties\n@return True, if and only if the given properties are present in this entity", "docstring_tokens": ["Check", "if", "this", "entity", "contains", "all", "of", "the", "given", "properties", "."], "sha": "735aa842029f646dcb7acd97372daae734694e19", "url": "https://github.com/skadistats/clarity/blob/735aa842029f646dcb7acd97372daae734694e19/src/main/java/skadistats/clarity/model/Entity.java#L65-L72", "partition": "valid"} +{"repo": "skadistats/clarity", "path": "src/main/java/skadistats/clarity/Clarity.java", "func_name": "Clarity.infoForSource", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves summary-data from the given input source\n\n@param source the {@code Source} providing the replay data\n@return the {@code CDemoFileInfo} protobuf message\n@throws IOException if the given source is invalid\n@see Source", "docstring_tokens": ["Retrieves", "summary", "-", "data", "from", "the", "given", "input", "source"], "sha": "735aa842029f646dcb7acd97372daae734694e19", "url": "https://github.com/skadistats/clarity/blob/735aa842029f646dcb7acd97372daae734694e19/src/main/java/skadistats/clarity/Clarity.java#L50-L55", "partition": "valid"} +{"repo": "skadistats/clarity", "path": "src/main/java/skadistats/clarity/Clarity.java", "func_name": "Clarity.metadataForStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "reads a metadata stream and returns it's contents\n\n@param stream an {@code InputStream}, containing replay data, positioned at the beginning\n@return the {@code CDOTAMatchMetadataFile} protobuf message\n@throws IOException if the given stream is invalid", "docstring_tokens": ["reads", "a", "metadata", "stream", "and", "returns", "it", "s", "contents"], "sha": "735aa842029f646dcb7acd97372daae734694e19", "url": "https://github.com/skadistats/clarity/blob/735aa842029f646dcb7acd97372daae734694e19/src/main/java/skadistats/clarity/Clarity.java#L75-L77", "partition": "valid"} +{"repo": "skadistats/clarity", "path": "src/main/java/skadistats/clarity/model/engine/CsGoEngineType.java", "func_name": "CsGoEngineType.readPacket", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "alternative to 6? Similar to dota?", "docstring_tokens": ["alternative", "to", "6?", "Similar", "to", "dota?"], "sha": "735aa842029f646dcb7acd97372daae734694e19", "url": "https://github.com/skadistats/clarity/blob/735aa842029f646dcb7acd97372daae734694e19/src/main/java/skadistats/clarity/model/engine/CsGoEngineType.java#L181-L184", "partition": "valid"} +{"repo": "skadistats/clarity", "path": "src/main/java/skadistats/clarity/source/Source.java", "func_name": "Source.readVarInt32", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "reads a variable int32 from the current position\n\n@return the int\n@throws IOException if the data cannot be read, or is not a valid variable int32", "docstring_tokens": ["reads", "a", "variable", "int32", "from", "the", "current", "position"], "sha": "735aa842029f646dcb7acd97372daae734694e19", "url": "https://github.com/skadistats/clarity/blob/735aa842029f646dcb7acd97372daae734694e19/src/main/java/skadistats/clarity/source/Source.java#L90-L116", "partition": "valid"} +{"repo": "skadistats/clarity", "path": "src/main/java/skadistats/clarity/source/Source.java", "func_name": "Source.readFixedInt32", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "reads a fixed int32 from the current position\n\n@return the int\n@throws IOException if the data cannot be read", "docstring_tokens": ["reads", "a", "fixed", "int32", "from", "the", "current", "position"], "sha": "735aa842029f646dcb7acd97372daae734694e19", "url": "https://github.com/skadistats/clarity/blob/735aa842029f646dcb7acd97372daae734694e19/src/main/java/skadistats/clarity/source/Source.java#L124-L126", "partition": "valid"} +{"repo": "skadistats/clarity", "path": "src/main/java/skadistats/clarity/source/Source.java", "func_name": "Source.readEngineType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "reads the magic of a demo file, identifying the engine type\n\n@throws IOException if there is not enough data or the if no valid magic was found", "docstring_tokens": ["reads", "the", "magic", "of", "a", "demo", "file", "identifying", "the", "engine", "type"], "sha": "735aa842029f646dcb7acd97372daae734694e19", "url": "https://github.com/skadistats/clarity/blob/735aa842029f646dcb7acd97372daae734694e19/src/main/java/skadistats/clarity/source/Source.java#L157-L167", "partition": "valid"} +{"repo": "tipsy/j2html", "path": "src/main/java/j2html/tags/ContainerTag.java", "func_name": "ContainerTag.with", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Appends a DomContent-object to the end of this element\n\n@param child DomContent-object to be appended\n@return itself for easy chaining", "docstring_tokens": ["Appends", "a", "DomContent", "-", "object", "to", "the", "end", "of", "this", "element"], "sha": "dae578a5231865d9269c0948615b8280bbb6a213", "url": "https://github.com/tipsy/j2html/blob/dae578a5231865d9269c0948615b8280bbb6a213/src/main/java/j2html/tags/ContainerTag.java#L25-L34", "partition": "valid"} +{"repo": "tipsy/j2html", "path": "src/main/java/j2html/tags/ContainerTag.java", "func_name": "ContainerTag.with", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Appends a list of DomContent-objects to the end of this element\n\n@param children DomContent-objects to be appended\n@return itself for easy chaining", "docstring_tokens": ["Appends", "a", "list", "of", "DomContent", "-", "objects", "to", "the", "end", "of", "this", "element"], "sha": "dae578a5231865d9269c0948615b8280bbb6a213", "url": "https://github.com/tipsy/j2html/blob/dae578a5231865d9269c0948615b8280bbb6a213/src/main/java/j2html/tags/ContainerTag.java#L56-L63", "partition": "valid"} +{"repo": "tipsy/j2html", "path": "src/main/java/j2html/TagCreator.java", "func_name": "TagCreator.iff", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generic if-expression to if'ing inside method calls\n\n@param optional The item that may be present\n@param ifFunction The function that will be called if that optional is present\n@param The derived generic parameter type\n@param The supplying generic parameter type\n@return transformed value if condition is true, null otherwise", "docstring_tokens": ["Generic", "if", "-", "expression", "to", "if", "ing", "inside", "method", "calls"], "sha": "dae578a5231865d9269c0948615b8280bbb6a213", "url": "https://github.com/tipsy/j2html/blob/dae578a5231865d9269c0948615b8280bbb6a213/src/main/java/j2html/TagCreator.java#L49-L55", "partition": "valid"} +{"repo": "tipsy/j2html", "path": "src/main/java/j2html/TagCreator.java", "func_name": "TagCreator.document", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return a complete html document string\n\n@param htmlTag the html content of a website\n@return document declaration and rendered html content", "docstring_tokens": ["Return", "a", "complete", "html", "document", "string"], "sha": "dae578a5231865d9269c0948615b8280bbb6a213", "url": "https://github.com/tipsy/j2html/blob/dae578a5231865d9269c0948615b8280bbb6a213/src/main/java/j2html/TagCreator.java#L168-L173", "partition": "valid"} +{"repo": "tipsy/j2html", "path": "src/main/java/j2html/tags/Tag.java", "func_name": "Tag.setAttribute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets an attribute on an element\n\n@param name the attribute\n@param value the attribute value", "docstring_tokens": ["Sets", "an", "attribute", "on", "an", "element"], "sha": "dae578a5231865d9269c0948615b8280bbb6a213", "url": "https://github.com/tipsy/j2html/blob/dae578a5231865d9269c0948615b8280bbb6a213/src/main/java/j2html/tags/Tag.java#L68-L79", "partition": "valid"} +{"repo": "tipsy/j2html", "path": "src/main/java/j2html/tags/Tag.java", "func_name": "Tag.attr", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets a custom attribute\n\n@param attribute the attribute name\n@param value the attribute value\n@return itself for easy chaining", "docstring_tokens": ["Sets", "a", "custom", "attribute"], "sha": "dae578a5231865d9269c0948615b8280bbb6a213", "url": "https://github.com/tipsy/j2html/blob/dae578a5231865d9269c0948615b8280bbb6a213/src/main/java/j2html/tags/Tag.java#L88-L91", "partition": "valid"} +{"repo": "tipsy/j2html", "path": "src/main/java/j2html/tags/Tag.java", "func_name": "Tag.attr", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the specified attribute. If the Tag previously contained an attribute with the same name, the old attribute is replaced by the specified attribute.\n\n@param attribute the attribute\n@return itself for easy chaining", "docstring_tokens": ["Adds", "the", "specified", "attribute", ".", "If", "the", "Tag", "previously", "contained", "an", "attribute", "with", "the", "same", "name", "the", "old", "attribute", "is", "replaced", "by", "the", "specified", "attribute", "."], "sha": "dae578a5231865d9269c0948615b8280bbb6a213", "url": "https://github.com/tipsy/j2html/blob/dae578a5231865d9269c0948615b8280bbb6a213/src/main/java/j2html/tags/Tag.java#L99-L113", "partition": "valid"} +{"repo": "tipsy/j2html", "path": "src/main/java/j2html/tags/Tag.java", "func_name": "Tag.withClasses", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convenience methods that call attr with predefined attributes\n\n@return itself for easy chaining", "docstring_tokens": ["Convenience", "methods", "that", "call", "attr", "with", "predefined", "attributes"], "sha": "dae578a5231865d9269c0948615b8280bbb6a213", "url": "https://github.com/tipsy/j2html/blob/dae578a5231865d9269c0948615b8280bbb6a213/src/main/java/j2html/tags/Tag.java#L152-L158", "partition": "valid"} +{"repo": "tipsy/j2html", "path": "src/main/java/j2html/utils/JSMin.java", "func_name": "JSMin.compressJs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Compress a JS-string\n\n@param code the js-code you want to compress\n@return the compressed code", "docstring_tokens": ["Compress", "a", "JS", "-", "string"], "sha": "dae578a5231865d9269c0948615b8280bbb6a213", "url": "https://github.com/tipsy/j2html/blob/dae578a5231865d9269c0948615b8280bbb6a213/src/main/java/j2html/utils/JSMin.java#L66-L77", "partition": "valid"} +{"repo": "tipsy/j2html", "path": "src/main/java/j2html/utils/CSSMin.java", "func_name": "Selector.parseProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses out the properties of a selector's body.\n\n@param contents The body; for example, \"border: solid 1px red; color: blue;\"\n@return An array of properties parsed from this selector.", "docstring_tokens": ["Parses", "out", "the", "properties", "of", "a", "selector", "s", "body", "."], "sha": "dae578a5231865d9269c0948615b8280bbb6a213", "url": "https://github.com/tipsy/j2html/blob/dae578a5231865d9269c0948615b8280bbb6a213/src/main/java/j2html/utils/CSSMin.java#L265-L305", "partition": "valid"} +{"repo": "tipsy/j2html", "path": "src/main/java/j2html/utils/CSSMin.java", "func_name": "Property.parseValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse the values out of a property.\n\n@param contents The property to parse\n@return An array of Parts", "docstring_tokens": ["Parse", "the", "values", "out", "of", "a", "property", "."], "sha": "dae578a5231865d9269c0948615b8280bbb6a213", "url": "https://github.com/tipsy/j2html/blob/dae578a5231865d9269c0948615b8280bbb6a213/src/main/java/j2html/utils/CSSMin.java#L417-L431", "partition": "valid"} +{"repo": "arimorty/floatingsearchview", "path": "library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java", "func_name": "FloatingSearchView.handleOnVisibleMenuItemsWidthChanged", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "ensures that the end margin of the search input is according to Material specs", "docstring_tokens": ["ensures", "that", "the", "end", "margin", "of", "the", "search", "input", "is", "according", "to", "Material", "specs"], "sha": "a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e", "url": "https://github.com/arimorty/floatingsearchview/blob/a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e/library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java#L711-L729", "partition": "valid"} +{"repo": "arimorty/floatingsearchview", "path": "library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java", "func_name": "FloatingSearchView.setLeftActionIconColor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the menu button's color.\n\n@param color the color to be applied to the\nleft menu button.", "docstring_tokens": ["Sets", "the", "menu", "button", "s", "color", "."], "sha": "a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e", "url": "https://github.com/arimorty/floatingsearchview/blob/a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e/library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java#L737-L742", "partition": "valid"} +{"repo": "arimorty/floatingsearchview", "path": "library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java", "func_name": "FloatingSearchView.setBackgroundColor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the background color of the search\nview including the suggestions section.\n\n@param color the color to be applied to the search bar and\nthe suggestion section background.", "docstring_tokens": ["Sets", "the", "background", "color", "of", "the", "search", "view", "including", "the", "suggestions", "section", "."], "sha": "a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e", "url": "https://github.com/arimorty/floatingsearchview/blob/a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e/library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java#L807-L813", "partition": "valid"} +{"repo": "arimorty/floatingsearchview", "path": "library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java", "func_name": "FloatingSearchView.openMenu", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Mimics a menu click that opens the menu. Useful for navigation\ndrawers when they open as a result of dragging.", "docstring_tokens": ["Mimics", "a", "menu", "click", "that", "opens", "the", "menu", ".", "Useful", "for", "navigation", "drawers", "when", "they", "open", "as", "a", "result", "of", "dragging", "."], "sha": "a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e", "url": "https://github.com/arimorty/floatingsearchview/blob/a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e/library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java#L996-L1002", "partition": "valid"} +{"repo": "arimorty/floatingsearchview", "path": "library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java", "func_name": "FloatingSearchView.closeMenu", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Mimics a menu click that closes. Useful when fo navigation\ndrawers when they close as a result of selecting and item.\n\n@param withAnim true, will close the menu button with\nthe Material animation", "docstring_tokens": ["Mimics", "a", "menu", "click", "that", "closes", ".", "Useful", "when", "fo", "navigation", "drawers", "when", "they", "close", "as", "a", "result", "of", "selecting", "and", "item", "."], "sha": "a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e", "url": "https://github.com/arimorty/floatingsearchview/blob/a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e/library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java#L1011-L1017", "partition": "valid"} +{"repo": "arimorty/floatingsearchview", "path": "library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java", "func_name": "FloatingSearchView.inflateOverflowMenu", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inflates the menu items from\nan xml resource.\n\n@param menuId a menu xml resource reference", "docstring_tokens": ["Inflates", "the", "menu", "items", "from", "an", "xml", "resource", "."], "sha": "a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e", "url": "https://github.com/arimorty/floatingsearchview/blob/a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e/library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java#L1062-L1068", "partition": "valid"} +{"repo": "arimorty/floatingsearchview", "path": "library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java", "func_name": "FloatingSearchView.setShowSearchKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets whether the the button with the search icon\nwill appear in the soft-keyboard or not.\n\n@param show to show the search button in\nthe soft-keyboard.", "docstring_tokens": ["Sets", "whether", "the", "the", "button", "with", "the", "search", "icon", "will", "appear", "in", "the", "soft", "-", "keyboard", "or", "not", "."], "sha": "a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e", "url": "https://github.com/arimorty/floatingsearchview/blob/a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e/library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java#L1096-L1103", "partition": "valid"} +{"repo": "arimorty/floatingsearchview", "path": "library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java", "func_name": "FloatingSearchView.setDismissOnOutsideClick", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set whether a touch outside of the\nsearch bar's bounds will cause the search bar to\nloos focus.\n\n@param enable true to dismiss on outside touch, false otherwise.", "docstring_tokens": ["Set", "whether", "a", "touch", "outside", "of", "the", "search", "bar", "s", "bounds", "will", "cause", "the", "search", "bar", "to", "loos", "focus", "."], "sha": "a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e", "url": "https://github.com/arimorty/floatingsearchview/blob/a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e/library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java#L1123-L1138", "partition": "valid"} +{"repo": "arimorty/floatingsearchview", "path": "library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java", "func_name": "FloatingSearchView.setSearchFocused", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets whether the search is focused or not.\n\n@param focused true, to set the search to be active/focused.\n@return true if the search was focused and will now become not focused. Useful for\ncalling supper.onBackPress() in the hosting activity only if this method returns false", "docstring_tokens": ["Sets", "whether", "the", "search", "is", "focused", "or", "not", "."], "sha": "a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e", "url": "https://github.com/arimorty/floatingsearchview/blob/a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e/library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java#L1237-L1255", "partition": "valid"} +{"repo": "arimorty/floatingsearchview", "path": "library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java", "func_name": "FloatingSearchView.updateSuggestionsSectionHeight", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "returns true if the suggestion items occupy the full RecyclerView's height, false otherwise", "docstring_tokens": ["returns", "true", "if", "the", "suggestion", "items", "occupy", "the", "full", "RecyclerView", "s", "height", "false", "otherwise"], "sha": "a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e", "url": "https://github.com/arimorty/floatingsearchview/blob/a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e/library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java#L1374-L1423", "partition": "valid"} +{"repo": "arimorty/floatingsearchview", "path": "library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java", "func_name": "FloatingSearchView.calculateSuggestionItemsHeight", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "results is >= max. The max option allows us to avoid doing unnecessary and potentially long calculations.", "docstring_tokens": ["results", "is", ">", "=", "max", ".", "The", "max", "option", "allows", "us", "to", "avoid", "doing", "unnecessary", "and", "potentially", "long", "calculations", "."], "sha": "a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e", "url": "https://github.com/arimorty/floatingsearchview/blob/a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e/library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java#L1427-L1440", "partition": "valid"} +{"repo": "arimorty/floatingsearchview", "path": "library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java", "func_name": "FloatingSearchView.setOnBindSuggestionCallback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set a callback that will be called after each suggestion view in the suggestions recycler\nlist is bound. This allows for customized binding for specific items in the list.\n\n@param callback A callback to be called after a suggestion is bound by the suggestions list's\nadapter.", "docstring_tokens": ["Set", "a", "callback", "that", "will", "be", "called", "after", "each", "suggestion", "view", "in", "the", "suggestions", "recycler", "list", "is", "bound", ".", "This", "allows", "for", "customized", "binding", "for", "specific", "items", "in", "the", "list", "."], "sha": "a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e", "url": "https://github.com/arimorty/floatingsearchview/blob/a0f8fbc90d98eb1b629c6295dd2d3577412e7b1e/library/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java#L1449-L1454", "partition": "valid"} +{"repo": "biezhi/wechat-api", "path": "src/main/java/io/github/biezhi/wechat/utils/MD5Checksum.java", "func_name": "MD5Checksum.getMD5Checksum", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "a byte array to a HEX string", "docstring_tokens": ["a", "byte", "array", "to", "a", "HEX", "string"], "sha": "4d7458a766752673cec956ea7afd956c3cbe7010", "url": "https://github.com/biezhi/wechat-api/blob/4d7458a766752673cec956ea7afd956c3cbe7010/src/main/java/io/github/biezhi/wechat/utils/MD5Checksum.java#L28-L40", "partition": "valid"} +{"repo": "biezhi/wechat-api", "path": "src/main/java/io/github/biezhi/wechat/utils/OkHttpUtils.java", "func_name": "OkHttpUtils.configureToIgnoreCertificate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Setting testMode configuration. If set as testMode, the connection will skip certification check\n\n@param builder\n@return", "docstring_tokens": ["Setting", "testMode", "configuration", ".", "If", "set", "as", "testMode", "the", "connection", "will", "skip", "certification", "check"], "sha": "4d7458a766752673cec956ea7afd956c3cbe7010", "url": "https://github.com/biezhi/wechat-api/blob/4d7458a766752673cec956ea7afd956c3cbe7010/src/main/java/io/github/biezhi/wechat/utils/OkHttpUtils.java#L20-L58", "partition": "valid"} +{"repo": "immutables/immutables", "path": "gson/src/org/immutables/gson/adapter/ExpectedSubtypesAdapter.java", "func_name": "ExpectedSubtypesAdapter.read", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "enforced by constructor parameters.", "docstring_tokens": ["enforced", "by", "constructor", "parameters", "."], "sha": "909fd91fe6065e785f88a31a506554cec2ad7ee4", "url": "https://github.com/immutables/immutables/blob/909fd91fe6065e785f88a31a506554cec2ad7ee4/gson/src/org/immutables/gson/adapter/ExpectedSubtypesAdapter.java#L122-L143", "partition": "valid"} +{"repo": "immutables/immutables", "path": "value-processor/src/org/immutables/value/processor/meta/Constitution.java", "func_name": "Constitution.typeAbstract", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Actual abstract value type that is definitive model for the value type.\n@return abstract value type name forms", "docstring_tokens": ["Actual", "abstract", "value", "type", "that", "is", "definitive", "model", "for", "the", "value", "type", "."], "sha": "909fd91fe6065e785f88a31a506554cec2ad7ee4", "url": "https://github.com/immutables/immutables/blob/909fd91fe6065e785f88a31a506554cec2ad7ee4/value-processor/src/org/immutables/value/processor/meta/Constitution.java#L244-L271", "partition": "valid"} +{"repo": "immutables/immutables", "path": "value-processor/src/org/immutables/value/processor/meta/Constitution.java", "func_name": "Constitution.inPackage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Package relative path\n@param topLevel\n@param nested\n@return", "docstring_tokens": ["Package", "relative", "path"], "sha": "909fd91fe6065e785f88a31a506554cec2ad7ee4", "url": "https://github.com/immutables/immutables/blob/909fd91fe6065e785f88a31a506554cec2ad7ee4/value-processor/src/org/immutables/value/processor/meta/Constitution.java#L283-L285", "partition": "valid"} +{"repo": "immutables/immutables", "path": "value-processor/src/org/immutables/value/processor/meta/Constitution.java", "func_name": "Constitution.typeImmutable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Actual immutable value type generated implementation.\n@return immutable implementation type name forms", "docstring_tokens": ["Actual", "immutable", "value", "type", "generated", "implementation", "."], "sha": "909fd91fe6065e785f88a31a506554cec2ad7ee4", "url": "https://github.com/immutables/immutables/blob/909fd91fe6065e785f88a31a506554cec2ad7ee4/value-processor/src/org/immutables/value/processor/meta/Constitution.java#L291-L314", "partition": "valid"} +{"repo": "immutables/immutables", "path": "mongo/src/org/immutables/mongo/types/TypeAdapters.java", "func_name": "TypeAdapters.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "safe unchecked, typecheck performed by type token equality", "docstring_tokens": ["safe", "unchecked", "typecheck", "performed", "by", "type", "token", "equality"], "sha": "909fd91fe6065e785f88a31a506554cec2ad7ee4", "url": "https://github.com/immutables/immutables/blob/909fd91fe6065e785f88a31a506554cec2ad7ee4/mongo/src/org/immutables/mongo/types/TypeAdapters.java#L62-L82", "partition": "valid"} +{"repo": "immutables/immutables", "path": "ordinal/src/org/immutables/ordinal/ImmutableOrdinalSet.java", "func_name": "ImmutableOrdinalSet.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns singleton empty immutable ordinal set\n@param element type\n@return empty set", "docstring_tokens": ["Returns", "singleton", "empty", "immutable", "ordinal", "set"], "sha": "909fd91fe6065e785f88a31a506554cec2ad7ee4", "url": "https://github.com/immutables/immutables/blob/909fd91fe6065e785f88a31a506554cec2ad7ee4/ordinal/src/org/immutables/ordinal/ImmutableOrdinalSet.java#L51-L55", "partition": "valid"} +{"repo": "immutables/immutables", "path": "ordinal/src/org/immutables/ordinal/OrdinalDomain.java", "func_name": "OrdinalDomain.iterator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Iterator over all present inhabitants of ordinal domain.\n@return snapshot iterator of elements in ordinal domain.", "docstring_tokens": ["Iterator", "over", "all", "present", "inhabitants", "of", "ordinal", "domain", "."], "sha": "909fd91fe6065e785f88a31a506554cec2ad7ee4", "url": "https://github.com/immutables/immutables/blob/909fd91fe6065e785f88a31a506554cec2ad7ee4/ordinal/src/org/immutables/ordinal/OrdinalDomain.java#L54-L69", "partition": "valid"} +{"repo": "immutables/immutables", "path": "value-processor/src/org/immutables/value/processor/meta/AttributeBuilderReflection.java", "func_name": "AttributeBuilderReflection.cachingKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The same class included in two parents, may or may not be nested builders based on that discovery pattern", "docstring_tokens": ["The", "same", "class", "included", "in", "two", "parents", "may", "or", "may", "not", "be", "nested", "builders", "based", "on", "that", "discovery", "pattern"], "sha": "909fd91fe6065e785f88a31a506554cec2ad7ee4", "url": "https://github.com/immutables/immutables/blob/909fd91fe6065e785f88a31a506554cec2ad7ee4/value-processor/src/org/immutables/value/processor/meta/AttributeBuilderReflection.java#L35-L39", "partition": "valid"} +{"repo": "immutables/immutables", "path": "value-processor/src/org/immutables/value/processor/meta/ValueAttribute.java", "func_name": "ValueAttribute.getSerializedName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Serialized name, actully specified via annotation\n@return name for JSON as overriden.", "docstring_tokens": ["Serialized", "name", "actully", "specified", "via", "annotation"], "sha": "909fd91fe6065e785f88a31a506554cec2ad7ee4", "url": "https://github.com/immutables/immutables/blob/909fd91fe6065e785f88a31a506554cec2ad7ee4/value-processor/src/org/immutables/value/processor/meta/ValueAttribute.java#L264-L297", "partition": "valid"} +{"repo": "immutables/immutables", "path": "value-processor/src/org/immutables/value/processor/meta/ValueAttribute.java", "func_name": "ValueAttribute.getMarshaledName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Marshaled name for compatibility with repository.\n@return get JSON name either specified or default.", "docstring_tokens": ["Marshaled", "name", "for", "compatibility", "with", "repository", "."], "sha": "909fd91fe6065e785f88a31a506554cec2ad7ee4", "url": "https://github.com/immutables/immutables/blob/909fd91fe6065e785f88a31a506554cec2ad7ee4/value-processor/src/org/immutables/value/processor/meta/ValueAttribute.java#L303-L309", "partition": "valid"} +{"repo": "immutables/immutables", "path": "criteria/common/src/org/immutables/criteria/InMemoryExpressionEvaluator.java", "func_name": "InMemoryExpressionEvaluator.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Factory method to create evaluator instance", "docstring_tokens": ["Factory", "method", "to", "create", "evaluator", "instance"], "sha": "909fd91fe6065e785f88a31a506554cec2ad7ee4", "url": "https://github.com/immutables/immutables/blob/909fd91fe6065e785f88a31a506554cec2ad7ee4/criteria/common/src/org/immutables/criteria/InMemoryExpressionEvaluator.java#L44-L51", "partition": "valid"} +{"repo": "immutables/immutables", "path": "mongo/src/org/immutables/mongo/concurrent/FluentFutures.java", "func_name": "FluentFutures.from", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wraps listenable future with a fluent future.\n@param value type\n@param future future\n@return fluent instance", "docstring_tokens": ["Wraps", "listenable", "future", "with", "a", "fluent", "future", "."], "sha": "909fd91fe6065e785f88a31a506554cec2ad7ee4", "url": "https://github.com/immutables/immutables/blob/909fd91fe6065e785f88a31a506554cec2ad7ee4/mongo/src/org/immutables/mongo/concurrent/FluentFutures.java#L143-L148", "partition": "valid"} +{"repo": "immutables/immutables", "path": "value-fixture/src/org/immutables/fixture/encoding/defs/OptionalMap.java", "func_name": "OptionalMap.getImmutable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "alternatively it can be exposed as Optional of ImmutableMap", "docstring_tokens": ["alternatively", "it", "can", "be", "exposed", "as", "Optional", "of", "ImmutableMap"], "sha": "909fd91fe6065e785f88a31a506554cec2ad7ee4", "url": "https://github.com/immutables/immutables/blob/909fd91fe6065e785f88a31a506554cec2ad7ee4/value-fixture/src/org/immutables/fixture/encoding/defs/OptionalMap.java#L38-L41", "partition": "valid"} +{"repo": "immutables/immutables", "path": "generator/src/org/immutables/generator/TypeHierarchyCollector.java", "func_name": "TypeHierarchyCollector.stringify", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "overridable stringify.\n@param input the input\n@param context the context\n@return the string", "docstring_tokens": ["overridable", "stringify", "."], "sha": "909fd91fe6065e785f88a31a506554cec2ad7ee4", "url": "https://github.com/immutables/immutables/blob/909fd91fe6065e785f88a31a506554cec2ad7ee4/generator/src/org/immutables/generator/TypeHierarchyCollector.java#L41-L43", "partition": "valid"} +{"repo": "immutables/immutables", "path": "gson/src/org/immutables/gson/stream/JsonParserReader.java", "func_name": "JsonParserReader.nextTokenBuffer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads current value including objects and array as effiecient token buffer.\nUse of Jackson's own mechanisms is important to preserve custom elements\nsuch as special embedded objects in BSON or other data formats.\n@return {@link TokenBuffer}\n@throws IOException if error occured", "docstring_tokens": ["Reads", "current", "value", "including", "objects", "and", "array", "as", "effiecient", "token", "buffer", ".", "Use", "of", "Jackson", "s", "own", "mechanisms", "is", "important", "to", "preserve", "custom", "elements", "such", "as", "special", "embedded", "objects", "in", "BSON", "or", "other", "data", "formats", "."], "sha": "909fd91fe6065e785f88a31a506554cec2ad7ee4", "url": "https://github.com/immutables/immutables/blob/909fd91fe6065e785f88a31a506554cec2ad7ee4/gson/src/org/immutables/gson/stream/JsonParserReader.java#L247-L255", "partition": "valid"} +{"repo": "SeleniumHQ/htmlunit-driver", "path": "src/main/java/org/openqa/selenium/htmlunit/HtmlUnitAlert.java", "func_name": "HtmlUnitAlert.close", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Closes the current window.", "docstring_tokens": ["Closes", "the", "current", "window", "."], "sha": "fe5e2dcb577fcc483b97f9f0710893a17dd5a9d9", "url": "https://github.com/SeleniumHQ/htmlunit-driver/blob/fe5e2dcb577fcc483b97f9f0710893a17dd5a9d9/src/main/java/org/openqa/selenium/htmlunit/HtmlUnitAlert.java#L154-L160", "partition": "valid"} +{"repo": "SeleniumHQ/htmlunit-driver", "path": "src/main/java/org/openqa/selenium/htmlunit/AsyncScriptExecutor.java", "func_name": "AsyncScriptExecutor.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Injects an asynchronous script for execution and waits for its result.\n\n@param scriptBody The script body.\n@param parameters The script parameters, which can be referenced using the {@code arguments}\nJavaScript object.\n@return The script result.", "docstring_tokens": ["Injects", "an", "asynchronous", "script", "for", "execution", "and", "waits", "for", "its", "result", "."], "sha": "fe5e2dcb577fcc483b97f9f0710893a17dd5a9d9", "url": "https://github.com/SeleniumHQ/htmlunit-driver/blob/fe5e2dcb577fcc483b97f9f0710893a17dd5a9d9/src/main/java/org/openqa/selenium/htmlunit/AsyncScriptExecutor.java#L68-L89", "partition": "valid"} +{"repo": "SeleniumHQ/htmlunit-driver", "path": "src/main/java/org/openqa/selenium/htmlunit/HtmlUnitDriver.java", "func_name": "HtmlUnitDriver.setProxySettings", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set proxy for WebClient using Proxy.\n\n@param proxy The proxy preferences.", "docstring_tokens": ["Set", "proxy", "for", "WebClient", "using", "Proxy", "."], "sha": "fe5e2dcb577fcc483b97f9f0710893a17dd5a9d9", "url": "https://github.com/SeleniumHQ/htmlunit-driver/blob/fe5e2dcb577fcc483b97f9f0710893a17dd5a9d9/src/main/java/org/openqa/selenium/htmlunit/HtmlUnitDriver.java#L516-L577", "partition": "valid"} +{"repo": "SeleniumHQ/htmlunit-driver", "path": "src/main/java/org/openqa/selenium/htmlunit/HtmlUnitDriver.java", "func_name": "HtmlUnitDriver.setHTTPProxy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets HTTP proxy for WebClient with bypass proxy hosts\n\n@param host The hostname of HTTP proxy\n@param port The port of HTTP proxy, 0 means HTTP proxy w/o port\n@param noProxyHosts The list of hosts which need to bypass HTTP proxy", "docstring_tokens": ["Sets", "HTTP", "proxy", "for", "WebClient", "with", "bypass", "proxy", "hosts"], "sha": "fe5e2dcb577fcc483b97f9f0710893a17dd5a9d9", "url": "https://github.com/SeleniumHQ/htmlunit-driver/blob/fe5e2dcb577fcc483b97f9f0710893a17dd5a9d9/src/main/java/org/openqa/selenium/htmlunit/HtmlUnitDriver.java#L596-L606", "partition": "valid"} +{"repo": "SeleniumHQ/htmlunit-driver", "path": "src/main/java/org/openqa/selenium/htmlunit/HtmlUnitDriver.java", "func_name": "HtmlUnitDriver.setAutoProxy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets Proxy Autoconfiguration URL for WebClient\n\n@param autoProxyUrl The Proxy Autoconfiguration URL", "docstring_tokens": ["Sets", "Proxy", "Autoconfiguration", "URL", "for", "WebClient"], "sha": "fe5e2dcb577fcc483b97f9f0710893a17dd5a9d9", "url": "https://github.com/SeleniumHQ/htmlunit-driver/blob/fe5e2dcb577fcc483b97f9f0710893a17dd5a9d9/src/main/java/org/openqa/selenium/htmlunit/HtmlUnitDriver.java#L654-L658", "partition": "valid"} +{"repo": "camunda-consulting/code", "path": "snippets/ecm-integrations/invoice-box/src/main/java/org/camunda/bpm/example/box/BoxHelper.java", "func_name": "BoxHelper.userClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a BoxDeveloperEditionAPIConnection that can be used by an App user to access Box.\n\n@param userId The UserId of a valid Box App User\n@return BoxDeveloperEditionAPIConnection new Box Developer Edition connection with App User token", "docstring_tokens": ["Get", "a", "BoxDeveloperEditionAPIConnection", "that", "can", "be", "used", "by", "an", "App", "user", "to", "access", "Box", "."], "sha": "11f89fbfcca7c8847fefc724cc65ee4de048f61d", "url": "https://github.com/camunda-consulting/code/blob/11f89fbfcca7c8847fefc724cc65ee4de048f61d/snippets/ecm-integrations/invoice-box/src/main/java/org/camunda/bpm/example/box/BoxHelper.java#L57-L70", "partition": "valid"} +{"repo": "camunda-consulting/code", "path": "snippets/migrate-third-party-to-camunda/src/main/java/org/camunda/bpm/engine/impl/persistence/entity/ProcessDefinitionEntity.java", "func_name": "ProcessDefinitionEntity.updateModifiedFieldsFromEntity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Updates all modifiable fields from another process definition entity.\n@param updatingProcessDefinition", "docstring_tokens": ["Updates", "all", "modifiable", "fields", "from", "another", "process", "definition", "entity", "."], "sha": "11f89fbfcca7c8847fefc724cc65ee4de048f61d", "url": "https://github.com/camunda-consulting/code/blob/11f89fbfcca7c8847fefc724cc65ee4de048f61d/snippets/migrate-third-party-to-camunda/src/main/java/org/camunda/bpm/engine/impl/persistence/entity/ProcessDefinitionEntity.java#L182-L191", "partition": "valid"} +{"repo": "camunda-consulting/code", "path": "snippets/four-eyes-advanced/four-eyes-advanced-process-engine-plugin/src/main/java/org/camunda/bpm/examples/FourEyesExtensionsParseListener.java", "func_name": "FourEyesExtensionsParseListener.addFourEyesTaskListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add TaskListener on \"complete\" event generically every time, so we don't\nhave to add it in the XML.", "docstring_tokens": ["Add", "TaskListener", "on", "complete", "event", "generically", "every", "time", "so", "we", "don", "t", "have", "to", "add", "it", "in", "the", "XML", "."], "sha": "11f89fbfcca7c8847fefc724cc65ee4de048f61d", "url": "https://github.com/camunda-consulting/code/blob/11f89fbfcca7c8847fefc724cc65ee4de048f61d/snippets/four-eyes-advanced/four-eyes-advanced-process-engine-plugin/src/main/java/org/camunda/bpm/examples/FourEyesExtensionsParseListener.java#L48-L70", "partition": "valid"} +{"repo": "camunda-consulting/code", "path": "snippets/dynamic-multi-tenancy/tenantdemo-process-application/src/main/java/com/camunda/demo/tenant/pa/ExampleTenantAwareProcessApplication.java", "func_name": "ExampleTenantAwareProcessApplication.deployProcessesToTenantEngines", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "private static final String PROCESS_DEFINITION_KEY = \"tenantdemo-process-application\";", "docstring_tokens": ["private", "static", "final", "String", "PROCESS_DEFINITION_KEY", "=", "tenantdemo", "-", "process", "-", "application", ";"], "sha": "11f89fbfcca7c8847fefc724cc65ee4de048f61d", "url": "https://github.com/camunda-consulting/code/blob/11f89fbfcca7c8847fefc724cc65ee4de048f61d/snippets/dynamic-multi-tenancy/tenantdemo-process-application/src/main/java/com/camunda/demo/tenant/pa/ExampleTenantAwareProcessApplication.java#L19-L27", "partition": "valid"} +{"repo": "camunda-consulting/code", "path": "snippets/liferay/camunda-bpm-liferay-process-application/src/main/java/org/camunda/bpm/engine/cdi/impl/context/PortalContextAssociationManager.java", "func_name": "PortalContextAssociationManager.checkTaskSelectedViaBridge", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "\"lazy\" load task if bridge state has changed in the meantime", "docstring_tokens": ["lazy", "load", "task", "if", "bridge", "state", "has", "changed", "in", "the", "meantime"], "sha": "11f89fbfcca7c8847fefc724cc65ee4de048f61d", "url": "https://github.com/camunda-consulting/code/blob/11f89fbfcca7c8847fefc724cc65ee4de048f61d/snippets/liferay/camunda-bpm-liferay-process-application/src/main/java/org/camunda/bpm/engine/cdi/impl/context/PortalContextAssociationManager.java#L173-L184", "partition": "valid"} +{"repo": "camunda-consulting/code", "path": "snippets/get-servlet-context-by-process-definition/src/main/java/org/example/get_servlet_context_by_process_definition/ProcessApplicationHelper.java", "func_name": "ProcessApplicationHelper.getServletContextPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve the servlet context path of a process definition from a known process engine.", "docstring_tokens": ["Retrieve", "the", "servlet", "context", "path", "of", "a", "process", "definition", "from", "a", "known", "process", "engine", "."], "sha": "11f89fbfcca7c8847fefc724cc65ee4de048f61d", "url": "https://github.com/camunda-consulting/code/blob/11f89fbfcca7c8847fefc724cc65ee4de048f61d/snippets/get-servlet-context-by-process-definition/src/main/java/org/example/get_servlet_context_by_process_definition/ProcessApplicationHelper.java#L21-L25", "partition": "valid"} +{"repo": "camunda-consulting/code", "path": "snippets/get-servlet-context-by-process-definition/src/main/java/org/example/get_servlet_context_by_process_definition/ProcessApplicationHelper.java", "func_name": "ProcessApplicationHelper.getServletContextPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve the servlet context path of a process definition from any process engine.", "docstring_tokens": ["Retrieve", "the", "servlet", "context", "path", "of", "a", "process", "definition", "from", "any", "process", "engine", "."], "sha": "11f89fbfcca7c8847fefc724cc65ee4de048f61d", "url": "https://github.com/camunda-consulting/code/blob/11f89fbfcca7c8847fefc724cc65ee4de048f61d/snippets/get-servlet-context-by-process-definition/src/main/java/org/example/get_servlet_context_by_process_definition/ProcessApplicationHelper.java#L30-L37", "partition": "valid"} +{"repo": "camunda-consulting/code", "path": "snippets/get-servlet-context-by-process-definition/src/main/java/org/example/get_servlet_context_by_process_definition/ProcessApplicationHelper.java", "func_name": "ProcessApplicationHelper.getProcessApplicationInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve the application info of a process definition from a known process engine.", "docstring_tokens": ["Retrieve", "the", "application", "info", "of", "a", "process", "definition", "from", "a", "known", "process", "engine", "."], "sha": "11f89fbfcca7c8847fefc724cc65ee4de048f61d", "url": "https://github.com/camunda-consulting/code/blob/11f89fbfcca7c8847fefc724cc65ee4de048f61d/snippets/get-servlet-context-by-process-definition/src/main/java/org/example/get_servlet_context_by_process_definition/ProcessApplicationHelper.java#L52-L67", "partition": "valid"} +{"repo": "camunda-consulting/code", "path": "snippets/get-servlet-context-by-process-definition/src/main/java/org/example/get_servlet_context_by_process_definition/ProcessApplicationHelper.java", "func_name": "ProcessApplicationHelper.getProcessApplicationInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve the application info path of a process definition from any process engine.", "docstring_tokens": ["Retrieve", "the", "application", "info", "path", "of", "a", "process", "definition", "from", "any", "process", "engine", "."], "sha": "11f89fbfcca7c8847fefc724cc65ee4de048f61d", "url": "https://github.com/camunda-consulting/code/blob/11f89fbfcca7c8847fefc724cc65ee4de048f61d/snippets/get-servlet-context-by-process-definition/src/main/java/org/example/get_servlet_context_by_process_definition/ProcessApplicationHelper.java#L72-L93", "partition": "valid"} +{"repo": "camunda-consulting/code", "path": "snippets/springboot-security-sso/src/main/java/com/camunda/demo/config/SecurityConfig.java", "func_name": "SecurityConfig.userDetailsService", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "In real world scenarios, this would be replaced by the actual IAM solution", "docstring_tokens": ["In", "real", "world", "scenarios", "this", "would", "be", "replaced", "by", "the", "actual", "IAM", "solution"], "sha": "11f89fbfcca7c8847fefc724cc65ee4de048f61d", "url": "https://github.com/camunda-consulting/code/blob/11f89fbfcca7c8847fefc724cc65ee4de048f61d/snippets/springboot-security-sso/src/main/java/com/camunda/demo/config/SecurityConfig.java#L14-L21", "partition": "valid"} +{"repo": "camunda-consulting/code", "path": "snippets/data-in-processes/src/main/java/org/camunda/consulting/patterns/data/adapter/AbstractProcessVariableAdapter.java", "func_name": "AbstractProcessVariableAdapter.castValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Type- and null-safe cast of variable-value.", "docstring_tokens": ["Type", "-", "and", "null", "-", "safe", "cast", "of", "variable", "-", "value", "."], "sha": "11f89fbfcca7c8847fefc724cc65ee4de048f61d", "url": "https://github.com/camunda-consulting/code/blob/11f89fbfcca7c8847fefc724cc65ee4de048f61d/snippets/data-in-processes/src/main/java/org/camunda/consulting/patterns/data/adapter/AbstractProcessVariableAdapter.java#L16-L19", "partition": "valid"} +{"repo": "camunda-consulting/code", "path": "one-time-examples/bank-account-opening-camel/src/main/java/org/camunda/demo/camel/CamelBootStrap.java", "func_name": "CamelBootStrap.init", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "private QueueConnectionFactory queueConnectionFactory;", "docstring_tokens": ["private", "QueueConnectionFactory", "queueConnectionFactory", ";"], "sha": "11f89fbfcca7c8847fefc724cc65ee4de048f61d", "url": "https://github.com/camunda-consulting/code/blob/11f89fbfcca7c8847fefc724cc65ee4de048f61d/one-time-examples/bank-account-opening-camel/src/main/java/org/camunda/demo/camel/CamelBootStrap.java#L43-L77", "partition": "valid"} +{"repo": "camunda-consulting/code", "path": "snippets/data-in-processes/src/main/java/org/camunda/consulting/patterns/guard/Guards.java", "func_name": "Guards.checkIsSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if a variable is set.\n\n@param execution\ncurrent process execution\n@param variableName\nname of the variable.", "docstring_tokens": ["Checks", "if", "a", "variable", "is", "set", "."], "sha": "11f89fbfcca7c8847fefc724cc65ee4de048f61d", "url": "https://github.com/camunda-consulting/code/blob/11f89fbfcca7c8847fefc724cc65ee4de048f61d/snippets/data-in-processes/src/main/java/org/camunda/consulting/patterns/guard/Guards.java#L113-L121", "partition": "valid"} +{"repo": "camunda-consulting/code", "path": "snippets/data-in-processes/src/main/java/org/camunda/consulting/patterns/guard/Guards.java", "func_name": "Guards.checkIsSetGlobal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if a global variable is set.\n\n@param execution\ncurrent process execution\n@param variableName\nname of the variable.", "docstring_tokens": ["Checks", "if", "a", "global", "variable", "is", "set", "."], "sha": "11f89fbfcca7c8847fefc724cc65ee4de048f61d", "url": "https://github.com/camunda-consulting/code/blob/11f89fbfcca7c8847fefc724cc65ee4de048f61d/snippets/data-in-processes/src/main/java/org/camunda/consulting/patterns/guard/Guards.java#L131-L136", "partition": "valid"} +{"repo": "oguzbilgener/CircularFloatingActionMenu", "path": "library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java", "func_name": "FloatingActionMenu.open", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Simply opens the menu by doing necessary calculations.\n@param animated if true, this action is executed by the current {@link MenuAnimationHandler}", "docstring_tokens": ["Simply", "opens", "the", "menu", "by", "doing", "necessary", "calculations", "."], "sha": "7614a063f326cbd153ead6b06ba979c6cf40796e", "url": "https://github.com/oguzbilgener/CircularFloatingActionMenu/blob/7614a063f326cbd153ead6b06ba979c6cf40796e/library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java#L152-L224", "partition": "valid"} +{"repo": "oguzbilgener/CircularFloatingActionMenu", "path": "library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java", "func_name": "FloatingActionMenu.close", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Closes the menu.\n@param animated if true, this action is executed by the current {@link MenuAnimationHandler}", "docstring_tokens": ["Closes", "the", "menu", "."], "sha": "7614a063f326cbd153ead6b06ba979c6cf40796e", "url": "https://github.com/oguzbilgener/CircularFloatingActionMenu/blob/7614a063f326cbd153ead6b06ba979c6cf40796e/library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java#L230-L252", "partition": "valid"} +{"repo": "oguzbilgener/CircularFloatingActionMenu", "path": "library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java", "func_name": "FloatingActionMenu.updateItemPositions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recalculates the positions of each sub action item on demand.", "docstring_tokens": ["Recalculates", "the", "positions", "of", "each", "sub", "action", "item", "on", "demand", "."], "sha": "7614a063f326cbd153ead6b06ba979c6cf40796e", "url": "https://github.com/oguzbilgener/CircularFloatingActionMenu/blob/7614a063f326cbd153ead6b06ba979c6cf40796e/library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java#L288-L303", "partition": "valid"} +{"repo": "oguzbilgener/CircularFloatingActionMenu", "path": "library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java", "func_name": "FloatingActionMenu.getActionViewCoordinates", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the coordinates of the main action view\nThis method should only be called after the main layout of the Activity is drawn,\nsuch as when a user clicks the action button.\n@return a Point containing x and y coordinates of the top left corner of action view", "docstring_tokens": ["Gets", "the", "coordinates", "of", "the", "main", "action", "view", "This", "method", "should", "only", "be", "called", "after", "the", "main", "layout", "of", "the", "Activity", "is", "drawn", "such", "as", "when", "a", "user", "clicks", "the", "action", "button", "."], "sha": "7614a063f326cbd153ead6b06ba979c6cf40796e", "url": "https://github.com/oguzbilgener/CircularFloatingActionMenu/blob/7614a063f326cbd153ead6b06ba979c6cf40796e/library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java#L311-L327", "partition": "valid"} +{"repo": "oguzbilgener/CircularFloatingActionMenu", "path": "library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java", "func_name": "FloatingActionMenu.getActionViewCenter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the center point of the main action view\n@return the action view center point", "docstring_tokens": ["Returns", "the", "center", "point", "of", "the", "main", "action", "view"], "sha": "7614a063f326cbd153ead6b06ba979c6cf40796e", "url": "https://github.com/oguzbilgener/CircularFloatingActionMenu/blob/7614a063f326cbd153ead6b06ba979c6cf40796e/library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java#L333-L338", "partition": "valid"} +{"repo": "oguzbilgener/CircularFloatingActionMenu", "path": "library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java", "func_name": "FloatingActionMenu.calculateItemPositions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates the desired positions of all items.\n@return getActionViewCenter()", "docstring_tokens": ["Calculates", "the", "desired", "positions", "of", "all", "items", "."], "sha": "7614a063f326cbd153ead6b06ba979c6cf40796e", "url": "https://github.com/oguzbilgener/CircularFloatingActionMenu/blob/7614a063f326cbd153ead6b06ba979c6cf40796e/library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java#L344-L373", "partition": "valid"} +{"repo": "oguzbilgener/CircularFloatingActionMenu", "path": "library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java", "func_name": "FloatingActionMenu.getActivityContentView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds and returns the main content view from the Activity context.\n@return the main content view", "docstring_tokens": ["Finds", "and", "returns", "the", "main", "content", "view", "from", "the", "Activity", "context", "."], "sha": "7614a063f326cbd153ead6b06ba979c6cf40796e", "url": "https://github.com/oguzbilgener/CircularFloatingActionMenu/blob/7614a063f326cbd153ead6b06ba979c6cf40796e/library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java#L393-L400", "partition": "valid"} +{"repo": "oguzbilgener/CircularFloatingActionMenu", "path": "library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java", "func_name": "FloatingActionMenu.getScreenSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves the screen size from the Activity context\n@return the screen size as a Point object", "docstring_tokens": ["Retrieves", "the", "screen", "size", "from", "the", "Activity", "context"], "sha": "7614a063f326cbd153ead6b06ba979c6cf40796e", "url": "https://github.com/oguzbilgener/CircularFloatingActionMenu/blob/7614a063f326cbd153ead6b06ba979c6cf40796e/library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionMenu.java#L506-L510", "partition": "valid"} +{"repo": "oguzbilgener/CircularFloatingActionMenu", "path": "library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/animation/MenuAnimationHandler.java", "func_name": "MenuAnimationHandler.restoreSubActionViewAfterAnimation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Restores the specified sub action view to its final state, according to the current actionType\nShould be called after an animation finishes.\n@param subActionItem\n@param actionType", "docstring_tokens": ["Restores", "the", "specified", "sub", "action", "view", "to", "its", "final", "state", "according", "to", "the", "current", "actionType", "Should", "be", "called", "after", "an", "animation", "finishes", "."], "sha": "7614a063f326cbd153ead6b06ba979c6cf40796e", "url": "https://github.com/oguzbilgener/CircularFloatingActionMenu/blob/7614a063f326cbd153ead6b06ba979c6cf40796e/library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/animation/MenuAnimationHandler.java#L60-L100", "partition": "valid"} +{"repo": "oguzbilgener/CircularFloatingActionMenu", "path": "library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/SubActionButton.java", "func_name": "SubActionButton.setContentView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets a content view with custom LayoutParams that will be displayed inside this SubActionButton.\n@param contentView\n@param params", "docstring_tokens": ["Sets", "a", "content", "view", "with", "custom", "LayoutParams", "that", "will", "be", "displayed", "inside", "this", "SubActionButton", "."], "sha": "7614a063f326cbd153ead6b06ba979c6cf40796e", "url": "https://github.com/oguzbilgener/CircularFloatingActionMenu/blob/7614a063f326cbd153ead6b06ba979c6cf40796e/library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/SubActionButton.java#L60-L69", "partition": "valid"} +{"repo": "oguzbilgener/CircularFloatingActionMenu", "path": "library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionButton.java", "func_name": "FloatingActionButton.setPosition", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the position of the button by calculating its Gravity from the position parameter\n@param position one of 8 specified positions.\n@param layoutParams should be either FrameLayout.LayoutParams or WindowManager.LayoutParams", "docstring_tokens": ["Sets", "the", "position", "of", "the", "button", "by", "calculating", "its", "Gravity", "from", "the", "position", "parameter"], "sha": "7614a063f326cbd153ead6b06ba979c6cf40796e", "url": "https://github.com/oguzbilgener/CircularFloatingActionMenu/blob/7614a063f326cbd153ead6b06ba979c6cf40796e/library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionButton.java#L84-L142", "partition": "valid"} +{"repo": "oguzbilgener/CircularFloatingActionMenu", "path": "library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionButton.java", "func_name": "FloatingActionButton.attach", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Attaches it to the content view with specified LayoutParams.\n@param layoutParams", "docstring_tokens": ["Attaches", "it", "to", "the", "content", "view", "with", "specified", "LayoutParams", "."], "sha": "7614a063f326cbd153ead6b06ba979c6cf40796e", "url": "https://github.com/oguzbilgener/CircularFloatingActionMenu/blob/7614a063f326cbd153ead6b06ba979c6cf40796e/library/src/main/java/com/oguzdev/circularfloatingactionmenu/library/FloatingActionButton.java#L169-L182", "partition": "valid"} +{"repo": "oxo42/stateless4j", "path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "func_name": "StateConfiguration.permit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Accept the specified trigger and transition to the destination state\n\n@param trigger The accepted trigger\n@param destinationState The state that the trigger will cause a transition to\n@return The receiver", "docstring_tokens": ["Accept", "the", "specified", "trigger", "and", "transition", "to", "the", "destination", "state"], "sha": "3dd512049f7920f492838f1e09fb7c5abfc6bbcf", "url": "https://github.com/oxo42/stateless4j/blob/3dd512049f7920f492838f1e09fb7c5abfc6bbcf/src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java#L45-L48", "partition": "valid"} +{"repo": "oxo42/stateless4j", "path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "func_name": "StateConfiguration.permitIf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Accept the specified trigger and transition to the destination state if guard is true\n\n@param trigger The accepted trigger\n@param destinationState The state that the trigger will cause a transition to\n@param guard Function that must return true in order for the trigger to be accepted\n@return The receiver", "docstring_tokens": ["Accept", "the", "specified", "trigger", "and", "transition", "to", "the", "destination", "state", "if", "guard", "is", "true"], "sha": "3dd512049f7920f492838f1e09fb7c5abfc6bbcf", "url": "https://github.com/oxo42/stateless4j/blob/3dd512049f7920f492838f1e09fb7c5abfc6bbcf/src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java#L75-L78", "partition": "valid"} +{"repo": "oxo42/stateless4j", "path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "func_name": "StateConfiguration.permitIfOtherwiseIgnore", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Accept the specified trigger and transition to the destination state if guard true, otherwise ignore\n\n@param trigger The accepted trigger\n@param destinationState The state that the trigger will cause a transition to\n@param guard Function that must return true in order for the trigger to be accepted\n@return The receiver", "docstring_tokens": ["Accept", "the", "specified", "trigger", "and", "transition", "to", "the", "destination", "state", "if", "guard", "true", "otherwise", "ignore"], "sha": "3dd512049f7920f492838f1e09fb7c5abfc6bbcf", "url": "https://github.com/oxo42/stateless4j/blob/3dd512049f7920f492838f1e09fb7c5abfc6bbcf/src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java#L106-L115", "partition": "valid"} +{"repo": "oxo42/stateless4j", "path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "func_name": "StateConfiguration.ignoreIf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "ignore the specified trigger when in the configured state, if the guard returns true\n\n@param trigger The trigger to ignore\n@param guard Function that must return true in order for the trigger to be ignored\n@return The receiver", "docstring_tokens": ["ignore", "the", "specified", "trigger", "when", "in", "the", "configured", "state", "if", "the", "guard", "returns", "true"], "sha": "3dd512049f7920f492838f1e09fb7c5abfc6bbcf", "url": "https://github.com/oxo42/stateless4j/blob/3dd512049f7920f492838f1e09fb7c5abfc6bbcf/src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java#L262-L266", "partition": "valid"} +{"repo": "oxo42/stateless4j", "path": "src/main/java/com/github/oxo42/stateless4j/StateMachineConfig.java", "func_name": "StateMachineConfig.getOrCreateRepresentation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return StateRepresentation for the specified state. Creates representation if it does not exist.\n\n@param state The state\n@return StateRepresentation for the specified state.", "docstring_tokens": ["Return", "StateRepresentation", "for", "the", "specified", "state", ".", "Creates", "representation", "if", "it", "does", "not", "exist", "."], "sha": "3dd512049f7920f492838f1e09fb7c5abfc6bbcf", "url": "https://github.com/oxo42/stateless4j/blob/3dd512049f7920f492838f1e09fb7c5abfc6bbcf/src/main/java/com/github/oxo42/stateless4j/StateMachineConfig.java#L77-L85", "partition": "valid"} +{"repo": "airlift/airlift", "path": "bootstrap/src/main/java/io/airlift/bootstrap/LifeCycleManager.java", "func_name": "LifeCycleManager.addInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add an additional managed instance\n\n@param instance instance to add\n@throws Exception errors", "docstring_tokens": ["Add", "an", "additional", "managed", "instance"], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/bootstrap/src/main/java/io/airlift/bootstrap/LifeCycleManager.java#L156-L169", "partition": "valid"} +{"repo": "airlift/airlift", "path": "stats/src/main/java/io/airlift/stats/cardinality/DenseHll.java", "func_name": "DenseHll.setOverflow", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns false if not overflow bucket matching the given bucket id was found", "docstring_tokens": ["Returns", "false", "if", "not", "overflow", "bucket", "matching", "the", "given", "bucket", "id", "was", "found"], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/stats/src/main/java/io/airlift/stats/cardinality/DenseHll.java#L288-L297", "partition": "valid"} +{"repo": "airlift/airlift", "path": "stats/src/main/java/io/airlift/stats/cardinality/DenseHll.java", "func_name": "DenseHll.mergeWith", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns \"this\" for chaining", "docstring_tokens": ["Returns", "this", "for", "chaining"], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/stats/src/main/java/io/airlift/stats/cardinality/DenseHll.java#L442-L493", "partition": "valid"} +{"repo": "airlift/airlift", "path": "security/src/main/java/io/airlift/security/der/DerUtils.java", "func_name": "DerUtils.encodeSequence", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encodes a sequence of encoded values.", "docstring_tokens": ["Encodes", "a", "sequence", "of", "encoded", "values", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/security/src/main/java/io/airlift/security/der/DerUtils.java#L47-L62", "partition": "valid"} +{"repo": "airlift/airlift", "path": "security/src/main/java/io/airlift/security/der/DerUtils.java", "func_name": "DerUtils.decodeSequence", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Decodes a sequence of encoded values.", "docstring_tokens": ["Decodes", "a", "sequence", "of", "encoded", "values", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/security/src/main/java/io/airlift/security/der/DerUtils.java#L67-L97", "partition": "valid"} +{"repo": "airlift/airlift", "path": "security/src/main/java/io/airlift/security/der/DerUtils.java", "func_name": "DerUtils.decodeSequenceOptionalElement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Decodes a optional element of a sequence.", "docstring_tokens": ["Decodes", "a", "optional", "element", "of", "a", "sequence", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/security/src/main/java/io/airlift/security/der/DerUtils.java#L102-L116", "partition": "valid"} +{"repo": "airlift/airlift", "path": "security/src/main/java/io/airlift/security/der/DerUtils.java", "func_name": "DerUtils.encodeBitString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encodes a bit string padded with the specified number of bits.\nThe encoding is a byte containing the padBits followed by the value bytes.", "docstring_tokens": ["Encodes", "a", "bit", "string", "padded", "with", "the", "specified", "number", "of", "bits", ".", "The", "encoding", "is", "a", "byte", "containing", "the", "padBits", "followed", "by", "the", "value", "bytes", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/security/src/main/java/io/airlift/security/der/DerUtils.java#L122-L133", "partition": "valid"} +{"repo": "airlift/airlift", "path": "security/src/main/java/io/airlift/security/der/DerUtils.java", "func_name": "DerUtils.encodeOctetString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encodes an octet string.", "docstring_tokens": ["Encodes", "an", "octet", "string", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/security/src/main/java/io/airlift/security/der/DerUtils.java#L138-L146", "partition": "valid"} +{"repo": "airlift/airlift", "path": "security/src/main/java/io/airlift/security/der/DerUtils.java", "func_name": "DerUtils.encodeLength", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encodes the length of a DER value. The encoding of a 7bit value is simply the value. Values needing more than 7bits\nare encoded as a lead byte with the high bit set and containing the number of value bytes. Then the following bytes\nencode the length using the least number of bytes possible.", "docstring_tokens": ["Encodes", "the", "length", "of", "a", "DER", "value", ".", "The", "encoding", "of", "a", "7bit", "value", "is", "simply", "the", "value", ".", "Values", "needing", "more", "than", "7bits", "are", "encoded", "as", "a", "lead", "byte", "with", "the", "high", "bit", "set", "and", "containing", "the", "number", "of", "value", "bytes", ".", "Then", "the", "following", "bytes", "encode", "the", "length", "using", "the", "least", "number", "of", "bytes", "possible", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/security/src/main/java/io/airlift/security/der/DerUtils.java#L153-L168", "partition": "valid"} +{"repo": "airlift/airlift", "path": "log/src/main/java/io/airlift/log/Logger.java", "func_name": "Logger.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a named logger\n\n@param name the name of the logger\n@return the named logger", "docstring_tokens": ["Gets", "a", "named", "logger"], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/log/src/main/java/io/airlift/log/Logger.java#L53-L57", "partition": "valid"} +{"repo": "airlift/airlift", "path": "log/src/main/java/io/airlift/log/Logger.java", "func_name": "Logger.debug", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Logs a message at DEBUG level.\n\n@param exception an exception associated with the debug message being logged\n@param message a literal message to log", "docstring_tokens": ["Logs", "a", "message", "at", "DEBUG", "level", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/log/src/main/java/io/airlift/log/Logger.java#L65-L68", "partition": "valid"} +{"repo": "airlift/airlift", "path": "log/src/main/java/io/airlift/log/Logger.java", "func_name": "Logger.warn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Logs a message at WARN level.\n\n@param exception an exception associated with the warning being logged\n@param message a literal message to log", "docstring_tokens": ["Logs", "a", "message", "at", "WARN", "level", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/log/src/main/java/io/airlift/log/Logger.java#L181-L184", "partition": "valid"} +{"repo": "airlift/airlift", "path": "log/src/main/java/io/airlift/log/Logger.java", "func_name": "Logger.error", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Logs a message at ERROR level.\n\n@param exception an exception associated with the error being logged\n@param message a literal message to log", "docstring_tokens": ["Logs", "a", "message", "at", "ERROR", "level", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/log/src/main/java/io/airlift/log/Logger.java#L249-L252", "partition": "valid"} +{"repo": "airlift/airlift", "path": "http-client/src/main/java/io/airlift/http/client/HttpUriBuilder.java", "func_name": "HttpUriBuilder.replacePath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Replace the current path with the given unencoded path", "docstring_tokens": ["Replace", "the", "current", "path", "with", "the", "given", "unencoded", "path"], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/http-client/src/main/java/io/airlift/http/client/HttpUriBuilder.java#L118-L128", "partition": "valid"} +{"repo": "airlift/airlift", "path": "http-client/src/main/java/io/airlift/http/client/HttpUriBuilder.java", "func_name": "HttpUriBuilder.percentDecode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "input must be an ASCII string representing a percent-encoded UTF-8 byte sequence", "docstring_tokens": ["input", "must", "be", "an", "ASCII", "string", "representing", "a", "percent", "-", "encoded", "UTF", "-", "8", "byte", "sequence"], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/http-client/src/main/java/io/airlift/http/client/HttpUriBuilder.java#L281-L315", "partition": "valid"} +{"repo": "airlift/airlift", "path": "http-server/src/main/java/io/airlift/http/server/HttpServerChannelListener.java", "func_name": "HttpServerChannelListener.processContentTimestamps", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculate the summary statistics for the interarrival time of the onResponseContent callbacks.", "docstring_tokens": ["Calculate", "the", "summary", "statistics", "for", "the", "interarrival", "time", "of", "the", "onResponseContent", "callbacks", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/http-server/src/main/java/io/airlift/http/server/HttpServerChannelListener.java#L105-L123", "partition": "valid"} +{"repo": "airlift/airlift", "path": "configuration/src/main/java/io/airlift/configuration/ConfigurationFactory.java", "func_name": "ConfigurationFactory.build", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This is used by the configuration provider", "docstring_tokens": ["This", "is", "used", "by", "the", "configuration", "provider"], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/configuration/src/main/java/io/airlift/configuration/ConfigurationFactory.java#L305-L335", "partition": "valid"} +{"repo": "airlift/airlift", "path": "stats/src/main/java/io/airlift/stats/ExponentiallyDecayingSample.java", "func_name": "ExponentiallyDecayingSample.update", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds an old value with a fixed timestamp to the sample.\n\n@param value the value to be added\n@param timestamp the epoch timestamp of {@code value} in seconds", "docstring_tokens": ["Adds", "an", "old", "value", "with", "a", "fixed", "timestamp", "to", "the", "sample", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/stats/src/main/java/io/airlift/stats/ExponentiallyDecayingSample.java#L115-L145", "partition": "valid"} +{"repo": "airlift/airlift", "path": "jmx-http-rpc/src/main/java/io/airlift/jmx/http/rpc/HttpMBeanServerRpc.java", "func_name": "HttpMBeanServerRpc.base64Encode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encodes the specified data into a base64 string.\n\n@param bytes The unencoded raw data.", "docstring_tokens": ["Encodes", "the", "specified", "data", "into", "a", "base64", "string", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/jmx-http-rpc/src/main/java/io/airlift/jmx/http/rpc/HttpMBeanServerRpc.java#L142-L176", "partition": "valid"} +{"repo": "airlift/airlift", "path": "jmx-http-rpc/src/main/java/io/airlift/jmx/http/rpc/HttpMBeanServerRpc.java", "func_name": "HttpMBeanServerRpc.base64Decode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Decodes the specified base64 string back into its raw data.\n\n@param encoded The base64 encoded string.", "docstring_tokens": ["Decodes", "the", "specified", "base64", "string", "back", "into", "its", "raw", "data", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/jmx-http-rpc/src/main/java/io/airlift/jmx/http/rpc/HttpMBeanServerRpc.java#L183-L208", "partition": "valid"} +{"repo": "airlift/airlift", "path": "log-manager/src/main/java/io/airlift/log/LoggingOutputStream.java", "func_name": "LoggingOutputStream.flush", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "write the current buffer contents to the underlying logger.", "docstring_tokens": ["write", "the", "current", "buffer", "contents", "to", "the", "underlying", "logger", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/log-manager/src/main/java/io/airlift/log/LoggingOutputStream.java#L39-L53", "partition": "valid"} +{"repo": "airlift/airlift", "path": "http-client/src/main/java/io/airlift/http/client/jetty/JettyHttpClient.java", "func_name": "JettyHttpClient.dumpDestination", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "todo this should be @Managed but operations with parameters are broken in jmx utils https://github.com/martint/jmxutils/issues/27", "docstring_tokens": ["todo", "this", "should", "be"], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/http-client/src/main/java/io/airlift/http/client/jetty/JettyHttpClient.java#L782-L791", "partition": "valid"} +{"repo": "airlift/airlift", "path": "stats/src/main/java/io/airlift/stats/ExponentialDecay.java", "func_name": "ExponentialDecay.computeAlpha", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Compute the alpha decay factor such that the weight of an entry with age 'targetAgeInSeconds' is targetWeight'", "docstring_tokens": ["Compute", "the", "alpha", "decay", "factor", "such", "that", "the", "weight", "of", "an", "entry", "with", "age", "targetAgeInSeconds", "is", "targetWeight"], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/stats/src/main/java/io/airlift/stats/ExponentialDecay.java#L40-L46", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.propagateCancellation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Cancels the destination Future if the source Future is cancelled.", "docstring_tokens": ["Cancels", "the", "destination", "Future", "if", "the", "source", "Future", "is", "cancelled", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L50-L57", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.unmodifiableFuture", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a future that can not be completed or canceled.", "docstring_tokens": ["Returns", "a", "future", "that", "can", "not", "be", "completed", "or", "canceled", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L98-L102", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.unmodifiableFuture", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a future that can not be completed or optionally canceled.", "docstring_tokens": ["Returns", "a", "future", "that", "can", "not", "be", "completed", "or", "optionally", "canceled", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L107-L130", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.failedFuture", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a failed future containing the specified throwable.", "docstring_tokens": ["Returns", "a", "failed", "future", "containing", "the", "specified", "throwable", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L135-L142", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.getFutureValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Waits for the value from the future. If the future is failed, the exception\nis thrown directly if it is an instance of the specified exception type or\nunchecked, or it is wrapped in a RuntimeException. If the thread is\ninterrupted, the thread interruption flag is set and the original\nInterruptedException is wrapped in a RuntimeException and thrown.", "docstring_tokens": ["Waits", "for", "the", "value", "from", "the", "future", ".", "If", "the", "future", "is", "failed", "the", "exception", "is", "thrown", "directly", "if", "it", "is", "an", "instance", "of", "the", "specified", "exception", "type", "or", "unchecked", "or", "it", "is", "wrapped", "in", "a", "RuntimeException", ".", "If", "the", "thread", "is", "interrupted", "the", "thread", "interruption", "flag", "is", "set", "and", "the", "original", "InterruptedException", "is", "wrapped", "in", "a", "RuntimeException", "and", "thrown", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L162-L180", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.tryGetFutureValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the current value of the future without waiting. If the future\nvalue is null, an empty Optional is still returned, and in this case the caller\nmust check the future directly for the null value.", "docstring_tokens": ["Gets", "the", "current", "value", "of", "the", "future", "without", "waiting", ".", "If", "the", "future", "value", "is", "null", "an", "empty", "Optional", "is", "still", "returned", "and", "in", "this", "case", "the", "caller", "must", "check", "the", "future", "directly", "for", "the", "null", "value", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L187-L195", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.tryGetFutureValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Waits for the the value from the future for the specified time. If the future\nvalue is null, an empty Optional is still returned, and in this case the caller\nmust check the future directly for the null value. If the future is failed,\nthe exception is thrown directly if unchecked or wrapped in a RuntimeException.\nIf the thread is interrupted, the thread interruption flag is set and the original\nInterruptedException is wrapped in a RuntimeException and thrown.", "docstring_tokens": ["Waits", "for", "the", "the", "value", "from", "the", "future", "for", "the", "specified", "time", ".", "If", "the", "future", "value", "is", "null", "an", "empty", "Optional", "is", "still", "returned", "and", "in", "this", "case", "the", "caller", "must", "check", "the", "future", "directly", "for", "the", "null", "value", ".", "If", "the", "future", "is", "failed", "the", "exception", "is", "thrown", "directly", "if", "unchecked", "or", "wrapped", "in", "a", "RuntimeException", ".", "If", "the", "thread", "is", "interrupted", "the", "thread", "interruption", "flag", "is", "set", "and", "the", "original", "InterruptedException", "is", "wrapped", "in", "a", "RuntimeException", "and", "thrown", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L205-L208", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.tryGetFutureValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Waits for the the value from the future for the specified time. If the future\nvalue is null, an empty Optional is still returned, and in this case the caller\nmust check the future directly for the null value. If the future is failed,\nthe exception is thrown directly if it is an instance of the specified exception\ntype or unchecked, or it is wrapped in a RuntimeException. If the thread is\ninterrupted, the thread interruption flag is set and the original\nInterruptedException is wrapped in a RuntimeException and thrown.", "docstring_tokens": ["Waits", "for", "the", "the", "value", "from", "the", "future", "for", "the", "specified", "time", ".", "If", "the", "future", "value", "is", "null", "an", "empty", "Optional", "is", "still", "returned", "and", "in", "this", "case", "the", "caller", "must", "check", "the", "future", "directly", "for", "the", "null", "value", ".", "If", "the", "future", "is", "failed", "the", "exception", "is", "thrown", "directly", "if", "it", "is", "an", "instance", "of", "the", "specified", "exception", "type", "or", "unchecked", "or", "it", "is", "wrapped", "in", "a", "RuntimeException", ".", "If", "the", "thread", "is", "interrupted", "the", "thread", "interruption", "flag", "is", "set", "and", "the", "original", "InterruptedException", "is", "wrapped", "in", "a", "RuntimeException", "and", "thrown", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L219-L243", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.checkSuccess", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks that the completed future completed successfully.", "docstring_tokens": ["Checks", "that", "the", "completed", "future", "completed", "successfully", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L260-L271", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.whenAnyComplete", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a future that completes when the first future completes either normally\nor exceptionally. Cancellation of the future propagates to the supplied futures.", "docstring_tokens": ["Creates", "a", "future", "that", "completes", "when", "the", "first", "future", "completes", "either", "normally", "or", "exceptionally", ".", "Cancellation", "of", "the", "future", "propagates", "to", "the", "supplied", "futures", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L277-L287", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.firstCompletedFuture", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a future that completes when the first future completes either normally\nor exceptionally. Cancellation of the future does not propagate to the supplied\nfutures.", "docstring_tokens": ["Creates", "a", "future", "that", "completes", "when", "the", "first", "future", "completes", "either", "normally", "or", "exceptionally", ".", "Cancellation", "of", "the", "future", "does", "not", "propagate", "to", "the", "supplied", "futures", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L320-L324", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.firstCompletedFuture", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a future that completes when the first future completes either normally\nor exceptionally. Cancellation of the future will optionally propagate to the\nsupplied futures.", "docstring_tokens": ["Creates", "a", "future", "that", "completes", "when", "the", "first", "future", "completes", "either", "normally", "or", "exceptionally", ".", "Cancellation", "of", "the", "future", "will", "optionally", "propagate", "to", "the", "supplied", "futures", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L331-L361", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.allAsList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an unmodifiable future that is completed when all of the given\nfutures complete. If any of the given futures complete exceptionally, then the\nreturned future also does so immediately, with a CompletionException holding this exception\nas its cause. Otherwise, the results of the given futures are reflected in the\nreturned future as a list of results matching the input order. If no futures are\nprovided, returns a future completed with an empty list.", "docstring_tokens": ["Returns", "an", "unmodifiable", "future", "that", "is", "completed", "when", "all", "of", "the", "given", "futures", "complete", ".", "If", "any", "of", "the", "given", "futures", "complete", "exceptionally", "then", "the", "returned", "future", "also", "does", "so", "immediately", "with", "a", "CompletionException", "holding", "this", "exception", "as", "its", "cause", ".", "Otherwise", "the", "results", "of", "the", "given", "futures", "are", "reflected", "in", "the", "returned", "future", "as", "a", "list", "of", "results", "matching", "the", "input", "order", ".", "If", "no", "futures", "are", "provided", "returns", "a", "future", "completed", "with", "an", "empty", "list", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L371-L389", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.toCompletableFuture", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts a ListenableFuture to a CompletableFuture. Cancellation of the\nCompletableFuture will be propagated to the ListenableFuture.", "docstring_tokens": ["Converts", "a", "ListenableFuture", "to", "a", "CompletableFuture", ".", "Cancellation", "of", "the", "CompletableFuture", "will", "be", "propagated", "to", "the", "ListenableFuture", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L446-L474", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.toListenableFuture", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts a CompletableFuture to a ListenableFuture. Cancellation of the\nListenableFuture will be propagated to the CompletableFuture.", "docstring_tokens": ["Converts", "a", "CompletableFuture", "to", "a", "ListenableFuture", ".", "Cancellation", "of", "the", "ListenableFuture", "will", "be", "propagated", "to", "the", "CompletableFuture", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L480-L495", "partition": "valid"} +{"repo": "airlift/airlift", "path": "concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java", "func_name": "MoreFutures.addExceptionCallback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Invokes the callback, using the specified executor, if the future fails.", "docstring_tokens": ["Invokes", "the", "callback", "using", "the", "specified", "executor", "if", "the", "future", "fails", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/concurrent/src/main/java/io/airlift/concurrent/MoreFutures.java#L590-L595", "partition": "valid"} +{"repo": "airlift/airlift", "path": "stats/src/main/java/io/airlift/stats/QuantileDigest.java", "func_name": "QuantileDigest.getHistogram", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "is calculated.", "docstring_tokens": ["is", "calculated", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/stats/src/main/java/io/airlift/stats/QuantileDigest.java#L450-L488", "partition": "valid"} +{"repo": "airlift/airlift", "path": "stats/src/main/java/io/airlift/stats/QuantileDigest.java", "func_name": "QuantileDigest.tryRemove", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove the node if possible or set its count to 0 if it has children and\nit needs to be kept around", "docstring_tokens": ["Remove", "the", "node", "if", "possible", "or", "set", "its", "count", "to", "0", "if", "it", "has", "children", "and", "it", "needs", "to", "be", "kept", "around"], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/stats/src/main/java/io/airlift/stats/QuantileDigest.java#L882-L909", "partition": "valid"} +{"repo": "airlift/airlift", "path": "stats/src/main/java/io/airlift/stats/QuantileDigest.java", "func_name": "QuantileDigest.computeMaxPathWeight", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Computes the max \"weight\" of any path starting at node and ending at a leaf in the\nhypothetical complete tree. The weight is the sum of counts in the ancestors of a given node", "docstring_tokens": ["Computes", "the", "max", "weight", "of", "any", "path", "starting", "at", "node", "and", "ending", "at", "a", "leaf", "in", "the", "hypothetical", "complete", "tree", ".", "The", "weight", "is", "the", "sum", "of", "counts", "in", "the", "ancestors", "of", "a", "given", "node"], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/stats/src/main/java/io/airlift/stats/QuantileDigest.java#L1024-L1034", "partition": "valid"} +{"repo": "airlift/airlift", "path": "stats/src/main/java/io/airlift/stats/cardinality/HyperLogLog.java", "func_name": "HyperLogLog.addHash", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a value that has already been hashed to the set of values tracked by this HyperLogLog instance.\n\n@param hash The hash should be the 64 least significant bits of the murmur3_128 hash of the value.\nFor example: io.airlift.slice.Murmur3.hash64(value).", "docstring_tokens": ["Adds", "a", "value", "that", "has", "already", "been", "hashed", "to", "the", "set", "of", "values", "tracked", "by", "this", "HyperLogLog", "instance", "."], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/stats/src/main/java/io/airlift/stats/cardinality/HyperLogLog.java#L72-L79", "partition": "valid"} +{"repo": "airlift/airlift", "path": "configuration/src/main/java/io/airlift/configuration/ConfigurationLoader.java", "func_name": "ConfigurationLoader.loadPropertiesFrom", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads properties from the given file\n\n@param path file path\n@return properties\n@throws IOException errors", "docstring_tokens": ["Loads", "properties", "from", "the", "given", "file"], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/configuration/src/main/java/io/airlift/configuration/ConfigurationLoader.java#L54-L63", "partition": "valid"} +{"repo": "airlift/airlift", "path": "configuration/src/main/java/io/airlift/configuration/ConfigBinder.java", "func_name": "ConfigBinder.bindConfigGlobalDefaults", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Binds default values for all the instances of given config class for the current binder", "docstring_tokens": ["Binds", "default", "values", "for", "all", "the", "instances", "of", "given", "config", "class", "for", "the", "current", "binder"], "sha": "eb6949a63c998e914f498a7147cefc9dca923d51", "url": "https://github.com/airlift/airlift/blob/eb6949a63c998e914f498a7147cefc9dca923d51/configuration/src/main/java/io/airlift/configuration/ConfigBinder.java#L216-L220", "partition": "valid"} +{"repo": "awaitility/awaitility", "path": "awaitility/src/main/java/org/awaitility/pollinterval/FibonacciPollInterval.java", "func_name": "FibonacciPollInterval.next", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate the next duration\n\n@param pollCount The number of times the condition has been polled (evaluated)\n@param previousDuration The duration of the previously returned poll interval\n@return The next duration in the fibonacci sequence.", "docstring_tokens": ["Generate", "the", "next", "duration"], "sha": "89e758b749db2f378d661e2deec7ed61e7de51e1", "url": "https://github.com/awaitility/awaitility/blob/89e758b749db2f378d661e2deec7ed61e7de51e1/awaitility/src/main/java/org/awaitility/pollinterval/FibonacciPollInterval.java#L76-L78", "partition": "valid"} +{"repo": "awaitility/awaitility", "path": "awaitility/src/main/java/org/awaitility/pollinterval/FibonacciPollInterval.java", "func_name": "FibonacciPollInterval.fib", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tail recursive implementation of fibonacci", "docstring_tokens": ["Tail", "recursive", "implementation", "of", "fibonacci"], "sha": "89e758b749db2f378d661e2deec7ed61e7de51e1", "url": "https://github.com/awaitility/awaitility/blob/89e758b749db2f378d661e2deec7ed61e7de51e1/awaitility/src/main/java/org/awaitility/pollinterval/FibonacciPollInterval.java#L159-L166", "partition": "valid"} +{"repo": "awaitility/awaitility", "path": "awaitility/src/main/java/org/awaitility/Duration.java", "func_name": "Duration.multiply", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Multiply this amount with the given amount\n\n@param amount The amount\n@return A new amount", "docstring_tokens": ["Multiply", "this", "amount", "with", "the", "given", "amount"], "sha": "89e758b749db2f378d661e2deec7ed61e7de51e1", "url": "https://github.com/awaitility/awaitility/blob/89e758b749db2f378d661e2deec7ed61e7de51e1/awaitility/src/main/java/org/awaitility/Duration.java#L241-L243", "partition": "valid"} +{"repo": "awaitility/awaitility", "path": "awaitility/src/main/java/org/awaitility/Duration.java", "func_name": "Duration.divide", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Divide this duration amount with the given amount\n\n@param amount The amount\n@return A new amount", "docstring_tokens": ["Divide", "this", "duration", "amount", "with", "the", "given", "amount"], "sha": "89e758b749db2f378d661e2deec7ed61e7de51e1", "url": "https://github.com/awaitility/awaitility/blob/89e758b749db2f378d661e2deec7ed61e7de51e1/awaitility/src/main/java/org/awaitility/Duration.java#L252-L254", "partition": "valid"} +{"repo": "awaitility/awaitility", "path": "awaitility/src/main/java/org/awaitility/reflect/WhiteboxImpl.java", "func_name": "WhiteboxImpl.findSingleFieldUsingStrategy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find single field using strategy.\n\n@param strategy the strategy\n@param object the object\n@param checkHierarchy the check hierarchy\n@param startClass the start class\n@return the field", "docstring_tokens": ["Find", "single", "field", "using", "strategy", "."], "sha": "89e758b749db2f378d661e2deec7ed61e7de51e1", "url": "https://github.com/awaitility/awaitility/blob/89e758b749db2f378d661e2deec7ed61e7de51e1/awaitility/src/main/java/org/awaitility/reflect/WhiteboxImpl.java#L95-L123", "partition": "valid"} +{"repo": "awaitility/awaitility", "path": "awaitility/src/main/java/org/awaitility/reflect/WhiteboxImpl.java", "func_name": "WhiteboxImpl.hasFieldProperModifier", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks for field proper modifier.\n\n@param object the object\n@param field the field\n@return true, if successful", "docstring_tokens": ["Checks", "for", "field", "proper", "modifier", "."], "sha": "89e758b749db2f378d661e2deec7ed61e7de51e1", "url": "https://github.com/awaitility/awaitility/blob/89e758b749db2f378d661e2deec7ed61e7de51e1/awaitility/src/main/java/org/awaitility/reflect/WhiteboxImpl.java#L132-L135", "partition": "valid"} +{"repo": "awaitility/awaitility", "path": "awaitility/src/main/java/org/awaitility/reflect/WhiteboxImpl.java", "func_name": "WhiteboxImpl.throwExceptionIfFieldWasNotFound", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Throw exception if field was not found.\n\n@param type the type\n@param fieldName the field name\n@param field the field", "docstring_tokens": ["Throw", "exception", "if", "field", "was", "not", "found", "."], "sha": "89e758b749db2f378d661e2deec7ed61e7de51e1", "url": "https://github.com/awaitility/awaitility/blob/89e758b749db2f378d661e2deec7ed61e7de51e1/awaitility/src/main/java/org/awaitility/reflect/WhiteboxImpl.java#L164-L169", "partition": "valid"} +{"repo": "awaitility/awaitility", "path": "awaitility/src/main/java/org/awaitility/reflect/WhiteboxImpl.java", "func_name": "WhiteboxImpl.getFieldAnnotatedWith", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get field annotated with a particular annotation. This method traverses\nthe class hierarchy when checking for the annotation.\n\n@param object The object to look for annotations. Note that if're you're\npassing an object only instance fields are checked, passing a\nclass will only check static fields.\n@param annotationType The annotation types to look for\n@return A set of all fields containing the particular annotation(s).\n@since 1.3", "docstring_tokens": ["Get", "field", "annotated", "with", "a", "particular", "annotation", ".", "This", "method", "traverses", "the", "class", "hierarchy", "when", "checking", "for", "the", "annotation", "."], "sha": "89e758b749db2f378d661e2deec7ed61e7de51e1", "url": "https://github.com/awaitility/awaitility/blob/89e758b749db2f378d661e2deec7ed61e7de51e1/awaitility/src/main/java/org/awaitility/reflect/WhiteboxImpl.java#L198-L201", "partition": "valid"} +{"repo": "awaitility/awaitility", "path": "awaitility/src/main/java/org/awaitility/core/ConditionFactory.java", "func_name": "ConditionFactory.conditionEvaluationListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle condition evaluation results each time evaluation of a condition occurs. Works only with a Hamcrest matcher-based condition.\n\n@param conditionEvaluationListener the condition evaluation listener\n@return the condition factory", "docstring_tokens": ["Handle", "condition", "evaluation", "results", "each", "time", "evaluation", "of", "a", "condition", "occurs", ".", "Works", "only", "with", "a", "Hamcrest", "matcher", "-", "based", "condition", "."], "sha": "89e758b749db2f378d661e2deec7ed61e7de51e1", "url": "https://github.com/awaitility/awaitility/blob/89e758b749db2f378d661e2deec7ed61e7de51e1/awaitility/src/main/java/org/awaitility/core/ConditionFactory.java#L126-L129", "partition": "valid"} +{"repo": "awaitility/awaitility", "path": "awaitility/src/main/java/org/awaitility/core/ConditionFactory.java", "func_name": "ConditionFactory.pollExecutorService", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Specify the executor service whose threads will be used to evaluate the poll condition in Awaitility.\nNote that the executor service must be shutdown manually!\n\nThis is an advanced feature and it should only be used sparingly.\n\n@param executorService The executor service that Awaitility will use when polling condition evaluations\n@return the condition factory", "docstring_tokens": ["Specify", "the", "executor", "service", "whose", "threads", "will", "be", "used", "to", "evaluate", "the", "poll", "condition", "in", "Awaitility", ".", "Note", "that", "the", "executor", "service", "must", "be", "shutdown", "manually!"], "sha": "89e758b749db2f378d661e2deec7ed61e7de51e1", "url": "https://github.com/awaitility/awaitility/blob/89e758b749db2f378d661e2deec7ed61e7de51e1/awaitility/src/main/java/org/awaitility/core/ConditionFactory.java#L518-L524", "partition": "valid"} +{"repo": "awaitility/awaitility", "path": "awaitility/src/main/java/org/awaitility/core/ConditionFactory.java", "func_name": "ConditionFactory.untilTrue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Await until a Atomic boolean becomes true.\n\n@param atomic the atomic variable\n@throws org.awaitility.core.ConditionTimeoutException If condition was not fulfilled within the given time period.", "docstring_tokens": ["Await", "until", "a", "Atomic", "boolean", "becomes", "true", "."], "sha": "89e758b749db2f378d661e2deec7ed61e7de51e1", "url": "https://github.com/awaitility/awaitility/blob/89e758b749db2f378d661e2deec7ed61e7de51e1/awaitility/src/main/java/org/awaitility/core/ConditionFactory.java#L797-L799", "partition": "valid"} +{"repo": "awaitility/awaitility", "path": "awaitility/src/main/java/org/awaitility/core/ConditionFactory.java", "func_name": "ConditionFactory.untilFalse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Await until a Atomic boolean becomes false.\n\n@param atomic the atomic variable\n@throws org.awaitility.core.ConditionTimeoutException If condition was not fulfilled within the given time period.", "docstring_tokens": ["Await", "until", "a", "Atomic", "boolean", "becomes", "false", "."], "sha": "89e758b749db2f378d661e2deec7ed61e7de51e1", "url": "https://github.com/awaitility/awaitility/blob/89e758b749db2f378d661e2deec7ed61e7de51e1/awaitility/src/main/java/org/awaitility/core/ConditionFactory.java#L807-L809", "partition": "valid"} +{"repo": "awaitility/awaitility", "path": "awaitility/src/main/java/org/awaitility/Awaitility.java", "func_name": "Awaitility.catchUncaughtExceptions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Catching uncaught exceptions in other threads. This will make the await\nstatement fail even if exceptions occur in other threads. This is the\ndefault behavior.\n\n@return the condition factory", "docstring_tokens": ["Catching", "uncaught", "exceptions", "in", "other", "threads", ".", "This", "will", "make", "the", "await", "statement", "fail", "even", "if", "exceptions", "occur", "in", "other", "threads", ".", "This", "is", "the", "default", "behavior", "."], "sha": "89e758b749db2f378d661e2deec7ed61e7de51e1", "url": "https://github.com/awaitility/awaitility/blob/89e758b749db2f378d661e2deec7ed61e7de51e1/awaitility/src/main/java/org/awaitility/Awaitility.java#L328-L332", "partition": "valid"} +{"repo": "awaitility/awaitility", "path": "awaitility/src/main/java/org/awaitility/Awaitility.java", "func_name": "Awaitility.setDefaultTimeout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the default timeout all await statements will use.\n\n@param timeout the timeout\n@param unit the unit", "docstring_tokens": ["Sets", "the", "default", "timeout", "all", "await", "statements", "will", "use", "."], "sha": "89e758b749db2f378d661e2deec7ed61e7de51e1", "url": "https://github.com/awaitility/awaitility/blob/89e758b749db2f378d661e2deec7ed61e7de51e1/awaitility/src/main/java/org/awaitility/Awaitility.java#L429-L431", "partition": "valid"} +{"repo": "awaitility/awaitility", "path": "awaitility/src/main/java/org/awaitility/Awaitility.java", "func_name": "Awaitility.setDefaultTimeout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the default timeout that all await statements will use.\n\n@param defaultTimeout the new default timeout", "docstring_tokens": ["Sets", "the", "default", "timeout", "that", "all", "await", "statements", "will", "use", "."], "sha": "89e758b749db2f378d661e2deec7ed61e7de51e1", "url": "https://github.com/awaitility/awaitility/blob/89e758b749db2f378d661e2deec7ed61e7de51e1/awaitility/src/main/java/org/awaitility/Awaitility.java#L474-L479", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-maven-plugin/src/main/java/ninja/build/ArgumentTokenizer.java", "func_name": "ArgumentTokenizer.tokenize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tokenizes the given String into String tokens.\n@param arguments A String containing one or more command-line style arguments to be tokenized.\n@param stringify whether or not to include escape special characters\n@return A list of parsed and properly escaped arguments.", "docstring_tokens": ["Tokenizes", "the", "given", "String", "into", "String", "tokens", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-maven-plugin/src/main/java/ninja/build/ArgumentTokenizer.java#L50-L167", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-maven-plugin/src/main/java/ninja/build/ArgumentTokenizer.java", "func_name": "ArgumentTokenizer._escapeQuotesAndBackslashes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inserts backslashes before any occurrences of a backslash or\nquote in the given string. Also converts any special characters\nappropriately.", "docstring_tokens": ["Inserts", "backslashes", "before", "any", "occurrences", "of", "a", "backslash", "or", "quote", "in", "the", "given", "string", ".", "Also", "converts", "any", "special", "characters", "appropriately", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-maven-plugin/src/main/java/ninja/build/ArgumentTokenizer.java#L173-L208", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/AssetsController.java", "func_name": "AssetsController.serveStatic", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Serves resources from the assets directory of your application.\n\nFor instance:\nroute: /robots.txt\nA request to /robots.txt will be served from /assets/robots.txt.\n\nYou can also use a path like the following to serve files:\nroute: /assets/{fileName: .*}\n\nmatches\n/assets/app/app.css\nand will return\n/assets/app/app.css (from your jar).", "docstring_tokens": ["Serves", "resources", "from", "the", "assets", "directory", "of", "your", "application", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/AssetsController.java#L89-L99", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/i18n/MessagesImpl.java", "func_name": "MessagesImpl.loadLanguageConfiguration", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Attempts to load a message file and sets the file changed reloading\nstrategy on the configuration if the runtime mode is Dev.", "docstring_tokens": ["Attempts", "to", "load", "a", "message", "file", "and", "sets", "the", "file", "changed", "reloading", "strategy", "on", "the", "configuration", "if", "the", "runtime", "mode", "is", "Dev", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/i18n/MessagesImpl.java#L134-L145", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/i18n/MessagesImpl.java", "func_name": "MessagesImpl.loadAllMessageFilesForRegisteredLanguages", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Does all the loading of message files.\n\nOnly registered messages in application.conf are loaded.", "docstring_tokens": ["Does", "all", "the", "loading", "of", "message", "files", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/i18n/MessagesImpl.java#L153-L236", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/logging/LogbackConfigurator.java", "func_name": "LogbackConfigurator.getUrlForStringFromClasspathAsFileOrUrl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Looks up a potential file from\n1) The classpahth\n2) From the filesystem\n3) From an URL\n\n@param logbackConfigurationFile\n@return null if not found or a valid url created from the logbackConfigurationFile", "docstring_tokens": ["Looks", "up", "a", "potential", "file", "from", "1", ")", "The", "classpahth", "2", ")", "From", "the", "filesystem", "3", ")", "From", "an", "URL"], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/logging/LogbackConfigurator.java#L107-L143", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/utils/SecretGenerator.java", "func_name": "SecretGenerator.generateSecret", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "!!!! Only for testing purposes !!!!\n\nUsually you want to use {@link SecretGenerator#generateSecret()}\n\n@param random the random generator to use. Usually new Random(), but for testing you can\nuse a predefined seed.\n@return A String suitable as random secret for eg signing a session.", "docstring_tokens": ["!!!!", "Only", "for", "testing", "purposes", "!!!!"], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/utils/SecretGenerator.java#L46-L61", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-maven-plugin/src/main/java/ninja/maven/NinjaRunMojo.java", "func_name": "NinjaRunMojo.buildRunClassInSeparateJvmMachine", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "so we can mock a fake one for unit testing", "docstring_tokens": ["so", "we", "can", "mock", "a", "fake", "one", "for", "unit", "testing"], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-maven-plugin/src/main/java/ninja/maven/NinjaRunMojo.java#L346-L359", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-maven-plugin/src/main/java/ninja/maven/NinjaRunMojo.java", "func_name": "NinjaRunMojo.getAllArtifactsComingFromNinjaStandalone", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This might be a bit hacky. But just a little bit.\n\nWe have to add ninja-standalone and all of its dependencies to\nthe classpath, so that NinjaJetty can start.\n\nBut we do not want the user to declare the dependencies inside his\nproject pom.xml.\n\nTherefore we declare the dependency in this plugin pom.xml.\nBut we do not want to include all of this plugin's dependencies in the\nclasspath for NinjaJetty. Therefore this method filters everything and\nonly adds dependencies (also transitive deps) that originate\nfrom ninja-standalone. That way we get all deps we need.\n\n@param artifacts A list of artifacts that will be filtered.\n@return All artifacts coming from artifactId \"ninja-standalone\"\n(including transitive dependencies)", "docstring_tokens": ["This", "might", "be", "a", "bit", "hacky", ".", "But", "just", "a", "little", "bit", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-maven-plugin/src/main/java/ninja/maven/NinjaRunMojo.java#L431-L454", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/standalone/StandaloneHelper.java", "func_name": "StandaloneHelper.resolveStandaloneClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resolves which standalone class to use. Either defined as a system\nproperty or falling back to the default.\n@return The resolved standalone class to use", "docstring_tokens": ["Resolves", "which", "standalone", "class", "to", "use", ".", "Either", "defined", "as", "a", "system", "property", "or", "falling", "back", "to", "the", "default", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/standalone/StandaloneHelper.java#L62-L68", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/utils/CookieEncryption.java", "func_name": "CookieEncryption.encrypt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encrypts data with secret key.\n\n@param data text to encrypt\n@return encrypted text in base64 format", "docstring_tokens": ["Encrypts", "data", "with", "secret", "key", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/utils/CookieEncryption.java#L84-L108", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/utils/CookieEncryption.java", "func_name": "CookieEncryption.decrypt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Decrypts data with secret key.\n\n@param data text to decrypt in base64 format\n@return decrypted text", "docstring_tokens": ["Decrypts", "data", "with", "secret", "key", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/utils/CookieEncryption.java#L116-L142", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/NinjaDefault.java", "func_name": "NinjaDefault.readNinjaVersion", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Simply reads a property resource file that contains the version of this\nNinja build. Helps to identify the Ninja version currently running.\n\n@return The version of Ninja. Eg. \"1.6-SNAPSHOT\" while developing of \"1.6\" when released.", "docstring_tokens": ["Simply", "reads", "a", "property", "resource", "file", "that", "contains", "the", "version", "of", "this", "Ninja", "build", ".", "Helps", "to", "identify", "the", "Ninja", "version", "currently", "running", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/NinjaDefault.java#L453-L475", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-maven-plugin/src/main/java/ninja/build/WatchAndRestartMachine.java", "func_name": "WatchAndRestartMachine.register", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Register the given path with the WatchService", "docstring_tokens": ["Register", "the", "given", "path", "with", "the", "WatchService"], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-maven-plugin/src/main/java/ninja/build/WatchAndRestartMachine.java#L108-L134", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/utils/NinjaModeHelper.java", "func_name": "NinjaModeHelper.determineModeFromSystemPropertiesOrProdIfNotSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "returns NinjaMode.dev if no mode is set. Or the valid mode\nset via a System Property called \"ninja.mode\".\n\nE.g. under mvn you can use mvn ... -Dninja.mode=prod or so. Valid values\nfor ninja.mode are \"prod\", \"dev\", \"test\".\n\n@return The valid mode set via a System Property called \"ninja.mode\"\nor NinjaMode.dev if it is not set.", "docstring_tokens": ["returns", "NinjaMode", ".", "dev", "if", "no", "mode", "is", "set", ".", "Or", "the", "valid", "mode", "set", "via", "a", "System", "Property", "called", "ninja", ".", "mode", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/utils/NinjaModeHelper.java#L79-L94", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/utils/MimeTypes.java", "func_name": "MimeTypes.isValidMimeType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "check the mimetype is referenced in the mimetypes database\n\n@param mimeType\nthe mimeType to verify", "docstring_tokens": ["check", "the", "mimetype", "is", "referenced", "in", "the", "mimetypes", "database"], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/utils/MimeTypes.java#L140-L148", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/RouteBuilderImpl.java", "func_name": "RouteBuilderImpl.buildRoute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Build the route.\n@param injector The injector to build the route with\n@return The built route", "docstring_tokens": ["Build", "the", "route", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/RouteBuilderImpl.java#L231-L253", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/standalone/AbstractStandalone.java", "func_name": "AbstractStandalone.run", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure, start, add shutdown hook, and join. Does not exit.", "docstring_tokens": ["Configure", "start", "add", "shutdown", "hook", "and", "join", ".", "Does", "not", "exit", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/standalone/AbstractStandalone.java#L100-L132", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/standalone/AbstractStandalone.java", "func_name": "AbstractStandalone.createServerUrl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "helpful utilities for subclasses", "docstring_tokens": ["helpful", "utilities", "for", "subclasses"], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/standalone/AbstractStandalone.java#L305-L318", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java", "func_name": "JaxyRoutes.init", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Scans, identifies, and registers annotated controller methods for the\ncurrent runtime settings.\n\n@param router", "docstring_tokens": ["Scans", "identifies", "and", "registers", "annotated", "controller", "methods", "for", "the", "current", "runtime", "settings", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java#L90-L101", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java", "func_name": "JaxyRoutes.processFoundMethods", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Takes the found methods and checks if they have a valid format.\nIf they do, the controller path classes for these methods are generated", "docstring_tokens": ["Takes", "the", "found", "methods", "and", "checks", "if", "they", "have", "a", "valid", "format", ".", "If", "they", "do", "the", "controller", "path", "classes", "for", "these", "methods", "are", "generated"], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java#L142-L160", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java", "func_name": "JaxyRoutes.sortMethods", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sorts the methods into registration order", "docstring_tokens": ["Sorts", "the", "methods", "into", "registration", "order"], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java#L165-L200", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java", "func_name": "JaxyRoutes.findControllerMethods", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Searches for Methods that have either a Path Annotation or a HTTP-Method Annotation", "docstring_tokens": ["Searches", "for", "Methods", "that", "have", "either", "a", "Path", "Annotation", "or", "a", "HTTP", "-", "Method", "Annotation"], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java#L205-L235", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java", "func_name": "JaxyRoutes.configureReflections", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configures the set of packages to scan for annotated controller methods.", "docstring_tokens": ["Configures", "the", "set", "of", "packages", "to", "scan", "for", "annotated", "controller", "methods", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java#L240-L252", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java", "func_name": "JaxyRoutes.allowMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines if this method may be registered as a route. Ninja properties\nare considered as well as runtime modes.\n\n@param method\n@return true if the method can be registered as a route", "docstring_tokens": ["Determines", "if", "this", "method", "may", "be", "registered", "as", "a", "route", ".", "Ninja", "properties", "are", "considered", "as", "well", "as", "runtime", "modes", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java#L301-L329", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java", "func_name": "JaxyRoutes.getHttpMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the HTTP method for the controller method. Defaults to GET if\nunspecified.\n\n@param method\n@return the http method for this controller method", "docstring_tokens": ["Returns", "the", "HTTP", "method", "for", "the", "controller", "method", ".", "Defaults", "to", "GET", "if", "unspecified", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-jaxy-routes/src/main/java/ninja/jaxy/JaxyRoutes.java#L338-L359", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/params/ControllerMethodInvoker.java", "func_name": "ControllerMethodInvoker.build", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds an invoker for a functional method. Understands what parameters\nto inject and extract based on type and annotations.\n@param functionalMethod The method to be invoked\n@param implementationMethod The method to use for determining what\nactual parameters and annotations to use for each argument. Useful\nwhen type/lambda erasure makes the functional interface not reliable\nfor reflecting.\n@param injector The guice injector\n@param ninjaProperties The NinjaProperties of this application\n@return An invoker", "docstring_tokens": ["Builds", "an", "invoker", "for", "a", "functional", "method", ".", "Understands", "what", "parameters", "to", "inject", "and", "extract", "based", "on", "type", "and", "annotations", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/params/ControllerMethodInvoker.java#L111-L166", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/utils/SwissKnife.java", "func_name": "SwissKnife.getRealClassNameLowerCamelCase", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the lower class name. Eg. A class named MyObject will become\n\"myObject\".\n\n@param object Object for which to return the lowerCamelCaseName\n@return the lowerCamelCaseName of the Object", "docstring_tokens": ["Returns", "the", "lower", "class", "name", ".", "Eg", ".", "A", "class", "named", "MyObject", "will", "become", "myObject", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/utils/SwissKnife.java#L93-L97", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/utils/SwissKnife.java", "func_name": "SwissKnife.doesClassExist", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Used to check whether a class exists on the classpath.\n\n@param nameWithPackage for instance com.example.conf.GloablFilters\n@param instanceToGetClassloaderFrom usually \"this\" if you call this method.\n@return true if class exists, false if not.", "docstring_tokens": ["Used", "to", "check", "whether", "a", "class", "exists", "on", "the", "classpath", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/utils/SwissKnife.java#L106-L117", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/diagnostics/DiagnosticErrorBuilder.java", "func_name": "DiagnosticErrorBuilder.getSourceCodeRelativePathForStackTraceElement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates the relative path of the source code file of a StackTrace\nelement if its available. Uses the packageName of the class to create a relative path\nand appends the \"filename\" included with the stack trace element.\n@param ste The stack trace element\n@return The relative path of the source code file or null if the information\nwasn't available in the stack trace element.", "docstring_tokens": ["Calculates", "the", "relative", "path", "of", "the", "source", "code", "file", "of", "a", "StackTrace", "element", "if", "its", "available", ".", "Uses", "the", "packageName", "of", "the", "class", "to", "create", "a", "relative", "path", "and", "appends", "the", "filename", "included", "with", "the", "stack", "trace", "element", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/diagnostics/DiagnosticErrorBuilder.java#L250-L265", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/cache/NinjaCache.java", "func_name": "NinjaCache.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add an element only if it doesn't exist.\n@param key Element key\n@param value Element value\n@param expiration Ex: 10s, 3mn, 8h", "docstring_tokens": ["Add", "an", "element", "only", "if", "it", "doesn", "t", "exist", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/cache/NinjaCache.java#L54-L57", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/cache/NinjaCache.java", "func_name": "NinjaCache.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convenient clazz to get a value a class type;\n@param The needed type\n@param key The element key\n@param clazz The type class\n@return The element value or null", "docstring_tokens": ["Convenient", "clazz", "to", "get", "a", "value", "a", "class", "type", ";"], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/cache/NinjaCache.java#L237-L240", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/cache/NinjaCache.java", "func_name": "NinjaCache.checkSerializable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Utility that check that an object is serializable.", "docstring_tokens": ["Utility", "that", "check", "that", "an", "object", "is", "serializable", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/cache/NinjaCache.java#L246-L253", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/Result.java", "func_name": "Result.render", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Implicitly generates a hashmap as object being rendered and adds\nthis key, value pair. If the object being rendered is already a hashmap\nit simply adds this key value pair to it.\n\n@param key The key to use.\n@param value The value to use.\n@return The Result for chaining.", "docstring_tokens": ["Implicitly", "generates", "a", "hashmap", "as", "object", "being", "rendered", "and", "adds", "this", "key", "value", "pair", ".", "If", "the", "object", "being", "rendered", "is", "already", "a", "hashmap", "it", "simply", "adds", "this", "key", "value", "pair", "to", "it", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/Result.java#L330-L336", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/Result.java", "func_name": "Result.renderRaw", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method directly renders the String to the output. It completely\nbypasses any rendering engine.\n\nThus you can render anything you want.\n\nChaining of resultRaw().resultRaw()... is NOT supported. Mixing with\nrender() is NOT supported.\n\nIt is always recommended to implement your own RenderingEngine OR use\nexisting rendering engines.\n\nExample: \npublic Result controllerMethod() {\nString customJson = \"{\\\"user\\\" : \\\"john@woo.com\\\"}\";\n\nreturn Results.json().renderRaw(customJson);\n}\n\n\n@param string\nThe string to render.\n@return A result that will render the string directly to the output\nstream.\n@deprecated => use text().render(string), html().render(string),\njson().render(string), xml().render(string), or\ncontentType(type).render(string).", "docstring_tokens": ["This", "method", "directly", "renders", "the", "String", "to", "the", "output", ".", "It", "completely", "bypasses", "any", "rendering", "engine", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/Result.java#L367-L400", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/Result.java", "func_name": "Result.renderRaw", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method directly renders the byte array to the output. It\ncompletely bypasses any rendering engine.\n\nThus you can render anything you want.\n\nChaining of resultRaw().resultRaw()... is NOT supported. Mixing with render()\nis NOT supported.\n\nIt is always recommended to implement your own RenderingEngine OR\nuse existing rendering engines.\n\n@param bytes The bytes to render.\n@return A result that will render the string directly to the output stream.", "docstring_tokens": ["This", "method", "directly", "renders", "the", "byte", "array", "to", "the", "output", ".", "It", "completely", "bypasses", "any", "rendering", "engine", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/Result.java#L417-L443", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/Result.java", "func_name": "Result.getCookie", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns cookie with that name or null.\n\n@param cookieName Name of the cookie\n@return The cookie or null if not found.", "docstring_tokens": ["Returns", "cookie", "with", "that", "name", "or", "null", "."], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/Result.java#L572-L581", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/Result.java", "func_name": "Result.doNotCacheContent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This function sets\n\nCache-Control: no-cache, no-store\nDate: (current date)\nExpires: 1970\n\n=> it therefore effectively forces the browser and every proxy in between\nnot to cache content.\n\nSee also https://devcenter.heroku.com/articles/increasing-application-performance-with-http-cache-headers\n\n@return this result for chaining.", "docstring_tokens": ["This", "function", "sets"], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/Result.java#L741-L749", "partition": "valid"} +{"repo": "ninjaframework/ninja", "path": "ninja-core/src/main/java/ninja/utils/NinjaPropertiesImplTool.java", "func_name": "NinjaPropertiesImplTool.checkThatApplicationSecretIsSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method checks that your configurations have set a\napplication.secret=23r213r12r123\n\nIf application.secret is missing or is empty it will do the following:\n- In dev and test mode it'll generate a new application secret and write the secret\nto both src/main/java/conf/application.conf and the classes dir were the compiled stuff\ngoes.\n- In prod it will throw a runtime exception and stop the server.", "docstring_tokens": ["This", "method", "checks", "that", "your", "configurations", "have", "set", "a", "application", ".", "secret", "=", "23r213r12r123"], "sha": "a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e", "url": "https://github.com/ninjaframework/ninja/blob/a097dca61b5efa8e1a327de3a40c3e3e0eb3c11e/ninja-core/src/main/java/ninja/utils/NinjaPropertiesImplTool.java#L45-L98", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-core/src/main/java/com/nhaarman/listviewanimations/ArrayAdapter.java", "func_name": "ArrayAdapter.addAll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the objects in the specified collection to the end of this List. The objects are added in the order in which they are returned from the collection's iterator.\n\n@param collection the collection of objects.\n\n@return {@code true} if this {@code List} is modified, {@code false} otherwise.", "docstring_tokens": ["Adds", "the", "objects", "in", "the", "specified", "collection", "to", "the", "end", "of", "this", "List", ".", "The", "objects", "are", "added", "in", "the", "order", "in", "which", "they", "are", "returned", "from", "the", "collection", "s", "iterator", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-core/src/main/java/com/nhaarman/listviewanimations/ArrayAdapter.java#L111-L115", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/dragdrop/DragAndDropHandler.java", "func_name": "DragAndDropHandler.getPositionForId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves the position in the list corresponding to itemId.\n\n@return the position of the item in the list, or {@link android.widget.AdapterView#INVALID_POSITION} if the {@code View} corresponding to the id was not found.", "docstring_tokens": ["Retrieves", "the", "position", "in", "the", "list", "corresponding", "to", "itemId", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/dragdrop/DragAndDropHandler.java#L317-L324", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/dragdrop/DragAndDropHandler.java", "func_name": "DragAndDropHandler.switchViews", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Switches the item that is currently being dragged with the item belonging to given id,\nby notifying the adapter to swap positions and that the data set has changed.\n\n@param switchView the {@code View} that should be animated towards the old position of the currently dragging item.\n@param switchId the id of the item that will take the position of the currently dragging item.\n@param translationY the distance in pixels the {@code switchView} should animate - i.e. the (positive or negative) height of the {@code View} corresponding to the currently\ndragging item.", "docstring_tokens": ["Switches", "the", "item", "that", "is", "currently", "being", "dragged", "with", "the", "item", "belonging", "to", "given", "id", "by", "notifying", "the", "adapter", "to", "swap", "positions", "and", "that", "the", "data", "set", "has", "changed", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/dragdrop/DragAndDropHandler.java#L425-L438", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/animateaddition/InsertQueue.java", "func_name": "InsertQueue.removeActiveIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Clear the active state for given index. Will insert any pending pairs if this call leads to a state where there are no active pairs.\n\n@param index the index to remove.", "docstring_tokens": ["Clear", "the", "active", "state", "for", "given", "index", ".", "Will", "insert", "any", "pending", "pairs", "if", "this", "call", "leads", "to", "a", "state", "where", "there", "are", "no", "active", "pairs", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/animateaddition/InsertQueue.java#L104-L115", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/animateaddition/InsertQueue.java", "func_name": "InsertQueue.getActiveIndexes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a collection of currently active indexes.", "docstring_tokens": ["Returns", "a", "collection", "of", "currently", "active", "indexes", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/animateaddition/InsertQueue.java#L136-L143", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/expandablelistitem/ExpandableListItemAdapter.java", "func_name": "ExpandableListItemAdapter.getTitleView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the title view at the specified position.\n\n@param position Index of the view we want.\n\n@return the view if it exist, null otherwise.", "docstring_tokens": ["Return", "the", "title", "view", "at", "the", "specified", "position", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/expandablelistitem/ExpandableListItemAdapter.java#L266-L279", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/expandablelistitem/ExpandableListItemAdapter.java", "func_name": "ExpandableListItemAdapter.getContentView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the content view at the specified position.\n\n@param position Index of the view we want.\n\n@return the view if it exist, null otherwise.", "docstring_tokens": ["Return", "the", "content", "view", "at", "the", "specified", "position", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/expandablelistitem/ExpandableListItemAdapter.java#L288-L301", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/expandablelistitem/ExpandableListItemAdapter.java", "func_name": "ExpandableListItemAdapter.expand", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Expand the view at given position. Will do nothing if the view is already expanded.\n\n@param position the position to expand.", "docstring_tokens": ["Expand", "the", "view", "at", "given", "position", ".", "Will", "do", "nothing", "if", "the", "view", "is", "already", "expanded", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/expandablelistitem/ExpandableListItemAdapter.java#L322-L329", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/expandablelistitem/ExpandableListItemAdapter.java", "func_name": "ExpandableListItemAdapter.collapse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Collapse the view at given position. Will do nothing if the view is already collapsed.\n\n@param position the position to collapse.", "docstring_tokens": ["Collapse", "the", "view", "at", "given", "position", ".", "Will", "do", "nothing", "if", "the", "view", "is", "already", "collapsed", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/expandablelistitem/ExpandableListItemAdapter.java#L336-L343", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/expandablelistitem/ExpandableListItemAdapter.java", "func_name": "ExpandableListItemAdapter.getContentParent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the content parent at the specified position.\n\n@param position Index of the view we want.\n\n@return the view if it exist, null otherwise.", "docstring_tokens": ["Return", "the", "content", "parent", "at", "the", "specified", "position", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/expandablelistitem/ExpandableListItemAdapter.java#L386-L399", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/animateaddition/AnimateAdditionAdapter.java", "func_name": "AnimateAdditionAdapter.getAdditionalAnimators", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Override this method to provide additional animators on top of the default height and alpha animation.\n\n@param view The {@link android.view.View} that will get animated.\n@param parent The parent that this view will eventually be attached to.\n\n@return a non-null array of Animators.", "docstring_tokens": ["Override", "this", "method", "to", "provide", "additional", "animators", "on", "top", "of", "the", "default", "height", "and", "alpha", "animation", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/animateaddition/AnimateAdditionAdapter.java#L332-L336", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/dragdrop/BitmapUtils.java", "func_name": "BitmapUtils.getBitmapFromView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a bitmap showing a screenshot of the view passed in.", "docstring_tokens": ["Returns", "a", "bitmap", "showing", "a", "screenshot", "of", "the", "view", "passed", "in", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/dragdrop/BitmapUtils.java#L32-L38", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/swipedismiss/SwipeTouchListener.java", "func_name": "SwipeTouchListener.isDismissable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds out whether the item represented by given position is dismissable.\n\n@param position the position of the item.\n\n@return {@code true} if the item is dismissable, false otherwise.", "docstring_tokens": ["Finds", "out", "whether", "the", "item", "represented", "by", "given", "position", "is", "dismissable", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/swipedismiss/SwipeTouchListener.java#L395-L405", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/swipedismiss/SwipeTouchListener.java", "func_name": "SwipeTouchListener.reset", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resets the fields to the initial values, ready to start over.", "docstring_tokens": ["Resets", "the", "fields", "to", "the", "initial", "values", "ready", "to", "start", "over", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/swipedismiss/SwipeTouchListener.java#L575-L588", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-core/src/main/java/com/nhaarman/listviewanimations/appearance/ViewAnimator.java", "func_name": "ViewAnimator.reset", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call this method to reset animation status on all views.", "docstring_tokens": ["Call", "this", "method", "to", "reset", "animation", "status", "on", "all", "views", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-core/src/main/java/com/nhaarman/listviewanimations/appearance/ViewAnimator.java#L127-L136", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-core/src/main/java/com/nhaarman/listviewanimations/appearance/ViewAnimator.java", "func_name": "ViewAnimator.cancelExistingAnimation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Cancels any existing animations for given View.", "docstring_tokens": ["Cancels", "any", "existing", "animations", "for", "given", "View", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-core/src/main/java/com/nhaarman/listviewanimations/appearance/ViewAnimator.java#L211-L218", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-core/src/main/java/com/nhaarman/listviewanimations/appearance/ViewAnimator.java", "func_name": "ViewAnimator.animateView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Animates given View.\n\n@param view the View that should be animated.", "docstring_tokens": ["Animates", "given", "View", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-core/src/main/java/com/nhaarman/listviewanimations/appearance/ViewAnimator.java#L242-L256", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-core/src/main/java/com/nhaarman/listviewanimations/appearance/ViewAnimator.java", "func_name": "ViewAnimator.calculateAnimationDelay", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the delay in milliseconds after which animation for View with position mLastAnimatedPosition + 1 should start.", "docstring_tokens": ["Returns", "the", "delay", "in", "milliseconds", "after", "which", "animation", "for", "View", "with", "position", "mLastAnimatedPosition", "+", "1", "should", "start", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-core/src/main/java/com/nhaarman/listviewanimations/appearance/ViewAnimator.java#L261-L283", "partition": "valid"} +{"repo": "nhaarman/ListViewAnimations", "path": "lib-core/src/main/java/com/nhaarman/listviewanimations/util/AnimatorUtil.java", "func_name": "AnimatorUtil.concatAnimators", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Merges given Animators into one array.", "docstring_tokens": ["Merges", "given", "Animators", "into", "one", "array", "."], "sha": "23617960178fb5af3099c07996569cc305a40945", "url": "https://github.com/nhaarman/ListViewAnimations/blob/23617960178fb5af3099c07996569cc305a40945/lib-core/src/main/java/com/nhaarman/listviewanimations/util/AnimatorUtil.java#L31-L47", "partition": "valid"} +{"repo": "eBay/cors-filter", "path": "src/main/java/org/ebaysf/web/cors/CORSFilter.java", "func_name": "CORSFilter.handleNonCORS", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handles a request, that's not a CORS request, but is a valid request i.e.\nit is not a cross-origin request. This implementation, just forwards the\nrequest down the filter chain.\n\n@param request\nThe {@link HttpServletRequest} object.\n@param response\nThe {@link HttpServletResponse} object.\n@param filterChain\nThe {@link FilterChain} object.\n@throws IOException\n@throws ServletException", "docstring_tokens": ["Handles", "a", "request", "that", "s", "not", "a", "CORS", "request", "but", "is", "a", "valid", "request", "i", ".", "e", ".", "it", "is", "not", "a", "cross", "-", "origin", "request", ".", "This", "implementation", "just", "forwards", "the", "request", "down", "the", "filter", "chain", "."], "sha": "f782f4cd0a67a3c814a92b0907674fd93aa96dbe", "url": "https://github.com/eBay/cors-filter/blob/f782f4cd0a67a3c814a92b0907674fd93aa96dbe/src/main/java/org/ebaysf/web/cors/CORSFilter.java#L433-L438", "partition": "valid"} +{"repo": "lemire/javaewah", "path": "src/main/java/com/googlecode/javaewah/NonEmptyVirtualStorage.java", "func_name": "NonEmptyVirtualStorage.addStreamOfLiteralWords", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "throws a NonEmptyException exception when number is greater than 0", "docstring_tokens": ["throws", "a", "NonEmptyException", "exception", "when", "number", "is", "greater", "than", "0"], "sha": "ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e", "url": "https://github.com/lemire/javaewah/blob/ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e/src/main/java/com/googlecode/javaewah/NonEmptyVirtualStorage.java#L46-L50", "partition": "valid"} +{"repo": "lemire/javaewah", "path": "src/main/java/com/googlecode/javaewah/IteratorUtil.java", "func_name": "IteratorUtil.materialize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate a bitmap from an iterator.\n\n\n\n@param i iterator we wish to materialize\n@param c where we write", "docstring_tokens": ["Generate", "a", "bitmap", "from", "an", "iterator", "."], "sha": "ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e", "url": "https://github.com/lemire/javaewah/blob/ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e/src/main/java/com/googlecode/javaewah/IteratorUtil.java#L59-L71", "partition": "valid"} +{"repo": "lemire/javaewah", "path": "src/main/java/com/googlecode/javaewah/datastructure/PriorityQ.java", "func_name": "PriorityQ.poll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove the element on top of the heap\n\n@return the element being removed", "docstring_tokens": ["Remove", "the", "element", "on", "top", "of", "the", "heap"], "sha": "ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e", "url": "https://github.com/lemire/javaewah/blob/ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e/src/main/java/com/googlecode/javaewah/datastructure/PriorityQ.java#L117-L122", "partition": "valid"} +{"repo": "lemire/javaewah", "path": "src/main/java/com/googlecode/javaewah/LongArray.java", "func_name": "LongArray.resizeBuffer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resizes the buffer if the number of words to add exceeds the buffer capacity.\n@param number the number of words to add", "docstring_tokens": ["Resizes", "the", "buffer", "if", "the", "number", "of", "words", "to", "add", "exceeds", "the", "buffer", "capacity", "."], "sha": "ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e", "url": "https://github.com/lemire/javaewah/blob/ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e/src/main/java/com/googlecode/javaewah/LongArray.java#L194-L201", "partition": "valid"} +{"repo": "lemire/javaewah", "path": "src/main/java/com/googlecode/javaewah/LongArray.java", "func_name": "LongArray.newSizeInWords", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the resulting buffer size in words given the number of words to add.\n@param number the number of words to add", "docstring_tokens": ["Returns", "the", "resulting", "buffer", "size", "in", "words", "given", "the", "number", "of", "words", "to", "add", "."], "sha": "ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e", "url": "https://github.com/lemire/javaewah/blob/ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e/src/main/java/com/googlecode/javaewah/LongArray.java#L207-L218", "partition": "valid"} +{"repo": "lemire/javaewah", "path": "src/main/java/com/googlecode/javaewah32/FastAggregation32.java", "func_name": "FastAggregation32.xor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Simple algorithm that computes the XOR aggregate.\n\n@param bitmaps input bitmaps\n@return new bitmap containing the aggregate", "docstring_tokens": ["Simple", "algorithm", "that", "computes", "the", "XOR", "aggregate", "."], "sha": "ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e", "url": "https://github.com/lemire/javaewah/blob/ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e/src/main/java/com/googlecode/javaewah32/FastAggregation32.java#L284-L302", "partition": "valid"} +{"repo": "lemire/javaewah", "path": "src/main/java/com/googlecode/javaewah32/BitCounter32.java", "func_name": "BitCounter32.addStreamOfLiteralWords", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "virtually add several literal words.\n\n@param buffer the buffer wrapping the literal words\n@param start the starting point in the array\n@param number the number of literal words to add", "docstring_tokens": ["virtually", "add", "several", "literal", "words", "."], "sha": "ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e", "url": "https://github.com/lemire/javaewah/blob/ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e/src/main/java/com/googlecode/javaewah32/BitCounter32.java#L45-L50", "partition": "valid"} +{"repo": "lemire/javaewah", "path": "src/main/java/com/googlecode/javaewah32/symmetric/UpdateableBitmapFunction32.java", "func_name": "UpdateableBitmapFunction32.fillWithLiterals", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "append to the list the literal words as EWAHPointer\n\n@param container where we write", "docstring_tokens": ["append", "to", "the", "list", "the", "literal", "words", "as", "EWAHPointer"], "sha": "ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e", "url": "https://github.com/lemire/javaewah/blob/ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e/src/main/java/com/googlecode/javaewah32/symmetric/UpdateableBitmapFunction32.java#L80-L85", "partition": "valid"} +{"repo": "lemire/javaewah", "path": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "func_name": "ImmutableBitSet.asBitSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a copy of this ImmutableBitSet as a mutable BitSet.\n@return a copy", "docstring_tokens": ["Get", "a", "copy", "of", "this", "ImmutableBitSet", "as", "a", "mutable", "BitSet", "."], "sha": "ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e", "url": "https://github.com/lemire/javaewah/blob/ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e/src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java#L44-L49", "partition": "valid"} +{"repo": "lemire/javaewah", "path": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "func_name": "ImmutableBitSet.cardinality", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Compute the number of bits set to 1\n\n@return the number of bits", "docstring_tokens": ["Compute", "the", "number", "of", "bits", "set", "to", "1"], "sha": "ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e", "url": "https://github.com/lemire/javaewah/blob/ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e/src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java#L56-L62", "partition": "valid"} +{"repo": "lemire/javaewah", "path": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "func_name": "ImmutableBitSet.empty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check whether a bitset contains a set bit.\n\n@return true if no set bit is found", "docstring_tokens": ["Check", "whether", "a", "bitset", "contains", "a", "set", "bit", "."], "sha": "ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e", "url": "https://github.com/lemire/javaewah/blob/ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e/src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java#L104-L109", "partition": "valid"} +{"repo": "lemire/javaewah", "path": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "func_name": "ImmutableBitSet.intIterator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Iterate over the set bits\n\n@return an iterator", "docstring_tokens": ["Iterate", "over", "the", "set", "bits"], "sha": "ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e", "url": "https://github.com/lemire/javaewah/blob/ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e/src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java#L138-L157", "partition": "valid"} +{"repo": "lemire/javaewah", "path": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "func_name": "ImmutableBitSet.intersects", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether two bitsets intersect.\n\n@param bs other bitset\n@return true if they have a non-empty intersection (result of AND)", "docstring_tokens": ["Checks", "whether", "two", "bitsets", "intersect", "."], "sha": "ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e", "url": "https://github.com/lemire/javaewah/blob/ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e/src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java#L191-L196", "partition": "valid"} +{"repo": "lemire/javaewah", "path": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "func_name": "ImmutableBitSet.unsetIntIterator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Iterate over the unset bits\n\n@return an iterator", "docstring_tokens": ["Iterate", "over", "the", "unset", "bits"], "sha": "ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e", "url": "https://github.com/lemire/javaewah/blob/ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e/src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java#L269-L287", "partition": "valid"} +{"repo": "lemire/javaewah", "path": "src/main/java/com/googlecode/javaewah32/symmetric/EWAHPointer32.java", "func_name": "EWAHPointer32.parseNextRun", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Process the next run", "docstring_tokens": ["Process", "the", "next", "run"], "sha": "ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e", "url": "https://github.com/lemire/javaewah/blob/ff04f8eb03eb1193842cf8009d0e94c5d2e3e70e/src/main/java/com/googlecode/javaewah32/symmetric/EWAHPointer32.java#L70-L93", "partition": "valid"} +{"repo": "michaldrabik/TapBarMenu", "path": "library/src/main/java/com/michaldrabik/tapbarmenulib/TapBarMenu.java", "func_name": "TapBarMenu.open", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Open the menu.", "docstring_tokens": ["Open", "the", "menu", "."], "sha": "ddb8c2a28d0afd1de7a531a00f7df08468e0b2d9", "url": "https://github.com/michaldrabik/TapBarMenu/blob/ddb8c2a28d0afd1de7a531a00f7df08468e0b2d9/library/src/main/java/com/michaldrabik/tapbarmenulib/TapBarMenu.java#L194-L215", "partition": "valid"} +{"repo": "michaldrabik/TapBarMenu", "path": "library/src/main/java/com/michaldrabik/tapbarmenulib/TapBarMenu.java", "func_name": "TapBarMenu.close", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Close the menu.", "docstring_tokens": ["Close", "the", "menu", "."], "sha": "ddb8c2a28d0afd1de7a531a00f7df08468e0b2d9", "url": "https://github.com/michaldrabik/TapBarMenu/blob/ddb8c2a28d0afd1de7a531a00f7df08468e0b2d9/library/src/main/java/com/michaldrabik/tapbarmenulib/TapBarMenu.java#L220-L241", "partition": "valid"} +{"repo": "michaldrabik/TapBarMenu", "path": "library/src/main/java/com/michaldrabik/tapbarmenulib/TapBarMenu.java", "func_name": "TapBarMenu.setMenuBackgroundColor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets TapBarMenu's background color from given resource.\n@param colorResId Color resource id. For example: R.color.holo_blue_light", "docstring_tokens": ["Sets", "TapBarMenu", "s", "background", "color", "from", "given", "resource", "."], "sha": "ddb8c2a28d0afd1de7a531a00f7df08468e0b2d9", "url": "https://github.com/michaldrabik/TapBarMenu/blob/ddb8c2a28d0afd1de7a531a00f7df08468e0b2d9/library/src/main/java/com/michaldrabik/tapbarmenulib/TapBarMenu.java#L254-L258", "partition": "valid"} +{"repo": "opentracing-contrib/java-jdbc", "path": "src/main/java/io/opentracing/contrib/jdbc/parser/H2URLParser.java", "func_name": "H2URLParser.fetchDatabaseNameRangeIndexFromURLForH2FileMode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fetch range index that the database name from connection url if H2 database running with file\nmode.\n\n@return range index that the database name.", "docstring_tokens": ["Fetch", "range", "index", "that", "the", "database", "name", "from", "connection", "url", "if", "H2", "database", "running", "with", "file", "mode", "."], "sha": "15f243d919418518925ef817f1bbb0ff1faf8584", "url": "https://github.com/opentracing-contrib/java-jdbc/blob/15f243d919418518925ef817f1bbb0ff1faf8584/src/main/java/io/opentracing/contrib/jdbc/parser/H2URLParser.java#L79-L91", "partition": "valid"} +{"repo": "opentracing-contrib/java-jdbc", "path": "src/main/java/io/opentracing/contrib/jdbc/parser/H2URLParser.java", "func_name": "H2URLParser.fetchDatabaseNameRangeIndexFromURLForH2MemMode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fetch range index that the database name from connection url if H2 database running with memory\nmode.\n\n@return range index that the database name.", "docstring_tokens": ["Fetch", "range", "index", "that", "the", "database", "name", "from", "connection", "url", "if", "H2", "database", "running", "with", "memory", "mode", "."], "sha": "15f243d919418518925ef817f1bbb0ff1faf8584", "url": "https://github.com/opentracing-contrib/java-jdbc/blob/15f243d919418518925ef817f1bbb0ff1faf8584/src/main/java/io/opentracing/contrib/jdbc/parser/H2URLParser.java#L99-L111", "partition": "valid"} +{"repo": "opentracing-contrib/java-jdbc", "path": "src/main/java/io/opentracing/contrib/jdbc/parser/URLParser.java", "func_name": "URLParser.parser", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "parse the url to the ConnectionInfo", "docstring_tokens": ["parse", "the", "url", "to", "the", "ConnectionInfo"], "sha": "15f243d919418518925ef817f1bbb0ff1faf8584", "url": "https://github.com/opentracing-contrib/java-jdbc/blob/15f243d919418518925ef817f1bbb0ff1faf8584/src/main/java/io/opentracing/contrib/jdbc/parser/URLParser.java#L42-L57", "partition": "valid"} +{"repo": "opentracing-contrib/java-jdbc", "path": "src/main/java/io/opentracing/contrib/jdbc/parser/URLParser.java", "func_name": "URLParser.registerConnectionParser", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "register new ConnectionURLParser. Can override existing parser.", "docstring_tokens": ["register", "new", "ConnectionURLParser", ".", "Can", "override", "existing", "parser", "."], "sha": "15f243d919418518925ef817f1bbb0ff1faf8584", "url": "https://github.com/opentracing-contrib/java-jdbc/blob/15f243d919418518925ef817f1bbb0ff1faf8584/src/main/java/io/opentracing/contrib/jdbc/parser/URLParser.java#L71-L76", "partition": "valid"} +{"repo": "opentracing-contrib/java-jdbc", "path": "src/main/java/io/opentracing/contrib/jdbc/parser/AbstractURLParser.java", "func_name": "AbstractURLParser.fetchDatabaseNameFromURL", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fetch database name from connection url.\n\n@return database name.", "docstring_tokens": ["Fetch", "database", "name", "from", "connection", "url", "."], "sha": "15f243d919418518925ef817f1bbb0ff1faf8584", "url": "https://github.com/opentracing-contrib/java-jdbc/blob/15f243d919418518925ef817f1bbb0ff1faf8584/src/main/java/io/opentracing/contrib/jdbc/parser/AbstractURLParser.java#L47-L50", "partition": "valid"} +{"repo": "Coolerfall/Android-AppDaemon", "path": "library/src/main/java/com/coolerfall/daemon/Daemon.java", "func_name": "Daemon.run", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Run daemon process.\n\n@param context context\n@param daemonServiceClazz the name of daemon service class\n@param interval the interval to check", "docstring_tokens": ["Run", "daemon", "process", "."], "sha": "4b2182513f3cd3b350fc71d20b274978d02f091b", "url": "https://github.com/Coolerfall/Android-AppDaemon/blob/4b2182513f3cd3b350fc71d20b274978d02f091b/library/src/main/java/com/coolerfall/daemon/Daemon.java#L55-L64", "partition": "valid"} +{"repo": "Coolerfall/Android-AppDaemon", "path": "library/src/main/java/com/coolerfall/daemon/Command.java", "func_name": "Command.copyFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "copy file to destination", "docstring_tokens": ["copy", "file", "to", "destination"], "sha": "4b2182513f3cd3b350fc71d20b274978d02f091b", "url": "https://github.com/Coolerfall/Android-AppDaemon/blob/4b2182513f3cd3b350fc71d20b274978d02f091b/library/src/main/java/com/coolerfall/daemon/Command.java#L25-L39", "partition": "valid"} +{"repo": "Coolerfall/Android-AppDaemon", "path": "library/src/main/java/com/coolerfall/daemon/Command.java", "func_name": "Command.copyAssets", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "copy file in assets into destination file\n\n@param context context\n@param assetsFilename file name in assets\n@param file the file to copy to\n@param mode mode of file\n@throws IOException\n@throws InterruptedException", "docstring_tokens": ["copy", "file", "in", "assets", "into", "destination", "file"], "sha": "4b2182513f3cd3b350fc71d20b274978d02f091b", "url": "https://github.com/Coolerfall/Android-AppDaemon/blob/4b2182513f3cd3b350fc71d20b274978d02f091b/library/src/main/java/com/coolerfall/daemon/Command.java#L51-L56", "partition": "valid"} +{"repo": "Coolerfall/Android-AppDaemon", "path": "library/src/main/java/com/coolerfall/daemon/Command.java", "func_name": "Command.install", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Install specified binary into destination directory.\n\n@param context context\n@param destDir destionation directory\n@param filename filename of binary\n@return true if install successfully, otherwise return false", "docstring_tokens": ["Install", "specified", "binary", "into", "destination", "directory", "."], "sha": "4b2182513f3cd3b350fc71d20b274978d02f091b", "url": "https://github.com/Coolerfall/Android-AppDaemon/blob/4b2182513f3cd3b350fc71d20b274978d02f091b/library/src/main/java/com/coolerfall/daemon/Command.java#L66-L93", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/Resolver.java", "func_name": "Resolver.handleMissingFields", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "calls the missing field handler if any for each recorded missing field.", "docstring_tokens": ["calls", "the", "missing", "field", "handler", "if", "any", "for", "each", "recorded", "missing", "field", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/Resolver.java#L211-L221", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/Resolver.java", "func_name": "Resolver.getEnum", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fetch enum value (may need to try twice, due to potential 'name' field shadowing by enum subclasses", "docstring_tokens": ["Fetch", "enum", "value", "(", "may", "need", "to", "try", "twice", "due", "to", "potential", "name", "field", "shadowing", "by", "enum", "subclasses"], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/Resolver.java#L507-L517", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/Resolver.java", "func_name": "Resolver.patchUnresolvedReferences", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "For all fields where the value was \"@ref\":\"n\" where 'n' was the id of an object\nthat had not yet been encountered in the stream, make the final substitution.", "docstring_tokens": ["For", "all", "fields", "where", "the", "value", "was"], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/Resolver.java#L553-L597", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/MapResolver.java", "func_name": "MapResolver.traverseFields", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Walk the JsonObject fields and perform necessary substitutions so that all references matched up.\nThis code patches @ref and @id pairings up, in the 'Map of Map' mode. Where the JSON may contain\nan @id of an object which can have more than one @ref to it, this code will make sure that each\n@ref (value side of the Map associated to a given field name) will be pointer to the appropriate Map\ninstance.\n@param stack Stack (Deque) used for graph traversal.\n@param jsonObj a Map-of-Map representation of the current object being examined (containing all fields).", "docstring_tokens": ["Walk", "the", "JsonObject", "fields", "and", "perform", "necessary", "substitutions", "so", "that", "all", "references", "matched", "up", ".", "This", "code", "patches"], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/MapResolver.java#L70-L143", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonReader.java", "func_name": "JsonReader.jsonToJava", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert the passed in JSON string into a Java object graph.\n\n@param json String JSON input\n@param optionalArgs Map of optional parameters to control parsing. See readme file for details.\n@return Java object graph matching JSON input", "docstring_tokens": ["Convert", "the", "passed", "in", "JSON", "string", "into", "a", "Java", "object", "graph", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonReader.java#L404-L419", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonReader.java", "func_name": "JsonReader.jsonObjectsToJava", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a root JsonObject that represents parsed JSON, into\nan actual Java object.\n@param root JsonObject instance that was the root object from the\nJSON input that was parsed in an earlier call to JsonReader.\n@return a typed Java instance that was serialized into JSON.", "docstring_tokens": ["Convert", "a", "root", "JsonObject", "that", "represents", "parsed", "JSON", "into", "an", "actual", "Java", "object", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonReader.java#L734-L738", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/ObjectResolver.java", "func_name": "ObjectResolver.traverseFields", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Walk the Java object fields and copy them from the JSON object to the Java object, performing\nany necessary conversions on primitives, or deep traversals for field assignments to other objects,\narrays, Collections, or Maps.\n@param stack Stack (Deque) used for graph traversal.\n@param jsonObj a Map-of-Map representation of the current object being examined (containing all fields).", "docstring_tokens": ["Walk", "the", "Java", "object", "fields", "and", "copy", "them", "from", "the", "JSON", "object", "to", "the", "Java", "object", "performing", "any", "necessary", "conversions", "on", "primitives", "or", "deep", "traversals", "for", "field", "assignments", "to", "other", "objects", "arrays", "Collections", "or", "Maps", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/ObjectResolver.java#L81-L102", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/ObjectResolver.java", "func_name": "ObjectResolver.storeMissingField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "stores the missing field and their values to call back the handler at the end of the resolution, cause some\nreference may need to be resolved later.", "docstring_tokens": ["stores", "the", "missing", "field", "and", "their", "values", "to", "call", "back", "the", "handler", "at", "the", "end", "of", "the", "resolution", "cause", "some", "reference", "may", "need", "to", "be", "resolved", "later", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/ObjectResolver.java#L332-L335", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/ObjectResolver.java", "func_name": "ObjectResolver.getRawType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Given the passed in Type t, return the raw type of it, if the passed in value is a ParameterizedType.\n@param t Type to attempt to get raw type from.\n@return Raw type obtained from the passed in parameterized type or null if T is not a ParameterizedType", "docstring_tokens": ["Given", "the", "passed", "in", "Type", "t", "return", "the", "raw", "type", "of", "it", "if", "the", "passed", "in", "value", "is", "a", "ParameterizedType", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/ObjectResolver.java#L839-L851", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonParser.java", "func_name": "JsonParser.readArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a JSON array", "docstring_tokens": ["Read", "a", "JSON", "array"], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonParser.java#L280-L304", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonParser.java", "func_name": "JsonParser.readNumber", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a JSON number\n\n@param c int a character representing the first digit of the number that\nwas already read.\n@return a Number (a Long or a Double) depending on whether the number is\na decimal number or integer. This choice allows all smaller types (Float, int, short, byte)\nto be represented as well.\n@throws IOException for stream errors or parsing errors.", "docstring_tokens": ["Read", "a", "JSON", "number"], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonParser.java#L343-L412", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonParser.java", "func_name": "JsonParser.readString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a JSON string\nThis method assumes the initial quote has already been read.\n\n@return String read from JSON input stream.\n@throws IOException for stream errors or parsing errors.", "docstring_tokens": ["Read", "a", "JSON", "string", "This", "method", "assumes", "the", "initial", "quote", "has", "already", "been", "read", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonParser.java#L425-L522", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/MetaUtils.java", "func_name": "MetaUtils.getField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return an instance of of the Java Field class corresponding to the passed in field name.\n@param c class containing the field / field name\n@param field String name of a field on the class.\n@return Field instance if the field with the corresponding name is found, null otherwise.", "docstring_tokens": ["Return", "an", "instance", "of", "of", "the", "Java", "Field", "class", "corresponding", "to", "the", "passed", "in", "field", "name", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/MetaUtils.java#L153-L156", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/MetaUtils.java", "func_name": "MetaUtils.removeLeadingAndTrailingQuotes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Strip leading and trailing double quotes from the passed in String.", "docstring_tokens": ["Strip", "leading", "and", "trailing", "double", "quotes", "from", "the", "passed", "in", "String", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/MetaUtils.java#L459-L467", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonWriter.java", "func_name": "JsonWriter.objectToJson", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a Java Object to a JSON String.\n\n@param item Object to convert to a JSON String.\n@param optionalArgs (optional) Map of extra arguments indicating how dates are formatted,\nwhat fields are written out (optional). For Date parameters, use the public static\nDATE_TIME key, and then use the ISO_DATE or ISO_DATE_TIME indicators. Or you can specify\nyour own custom SimpleDateFormat String, or you can associate a SimpleDateFormat object,\nin which case it will be used. This setting is for both java.util.Date and java.sql.Date.\nIf the DATE_FORMAT key is not used, then dates will be formatted as longs. This long can\nbe turned back into a date by using 'new Date(longValue)'.\n@return String containing JSON representation of passed in object root.", "docstring_tokens": ["Convert", "a", "Java", "Object", "to", "a", "JSON", "String", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonWriter.java#L304-L318", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonWriter.java", "func_name": "JsonWriter.formatJson", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Format the passed in JSON string in a nice, human readable format.\n@param json String input JSON\n@param readingArgs (optional) Map of extra arguments for parsing json. Can be null.\n@param writingArgs (optional) Map of extra arguments for writing out json. Can be null.\n@return String containing equivalent JSON, formatted nicely for human readability.", "docstring_tokens": ["Format", "the", "passed", "in", "JSON", "string", "in", "a", "nice", "human", "readable", "format", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonWriter.java#L337-L353", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonWriter.java", "func_name": "JsonWriter.tab", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "tab the JSON output by the given number of characters specified by delta.\n@param output Writer being used for JSON outpt.\n@param delta int number of characters to tab.\n@throws IOException", "docstring_tokens": ["tab", "the", "JSON", "output", "by", "the", "given", "number", "of", "characters", "specified", "by", "delta", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonWriter.java#L546-L558", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonWriter.java", "func_name": "JsonWriter.writeArrayElementIfMatching", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write the passed in array element to the JSON output, if any only if, there is a customer writer\nfor the class of the instance 'o'.\n@param arrayComponentClass Class type of the array\n@param o Object instance to write\n@param showType boolean indicating whether or not @type should be output.\n@param output Writer to write the JSON to (if there is a custom writer for o's Class).\n@return true if the array element was written, false otherwise.", "docstring_tokens": ["Write", "the", "passed", "in", "array", "element", "to", "the", "JSON", "output", "if", "any", "only", "if", "there", "is", "a", "customer", "writer", "for", "the", "class", "of", "the", "instance", "o", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonWriter.java#L599-L614", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonWriter.java", "func_name": "JsonWriter.writeCustom", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Perform the actual custom writing for an array element that has a custom writer.\n@param arrayComponentClass Class type of the array\n@param o Object instance to write\n@param showType boolean indicating whether or not @type should be output.\n@param output Writer to write the JSON to (if there is a custom writer for o's Class).\n@return true if the array element was written, false otherwise.", "docstring_tokens": ["Perform", "the", "actual", "custom", "writing", "for", "an", "array", "element", "that", "has", "a", "custom", "writer", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonWriter.java#L624-L698", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonWriter.java", "func_name": "JsonWriter.forceGetCustomWriter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fetch the customer writer for the passed in Class. This method always fetches the custom writer, doing\nthe complicated inheritance distance checking. This method is only called when a cache miss has happened.\nA sentinal 'nullWriter' is returned when no custom writer is found. This prevents future cache misses\nfrom re-attempting to find custom writers for classes that do not have a custom writer.\n@param c Class of object for which fetch a custom writer\n@return JsonClassWriter/JsonClassWriterEx for the custom class (if one exists), nullWriter otherwise.", "docstring_tokens": ["Fetch", "the", "customer", "writer", "for", "the", "passed", "in", "Class", ".", "This", "method", "always", "fetches", "the", "custom", "writer", "doing", "the", "complicated", "inheritance", "distance", "checking", ".", "This", "method", "is", "only", "called", "when", "a", "cache", "miss", "has", "happened", ".", "A", "sentinal", "nullWriter", "is", "returned", "when", "no", "custom", "writer", "is", "found", ".", "This", "prevents", "future", "cache", "misses", "from", "re", "-", "attempting", "to", "find", "custom", "writers", "for", "classes", "that", "do", "not", "have", "a", "custom", "writer", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonWriter.java#L733-L753", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonWriter.java", "func_name": "JsonWriter.write", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write the passed in Java object in JSON format.\n@param obj Object any Java Object or JsonObject.", "docstring_tokens": ["Write", "the", "passed", "in", "Java", "object", "in", "JSON", "format", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonWriter.java#L796-L811", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonWriter.java", "func_name": "JsonWriter.traceReferences", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Walk object graph and visit each instance, following each field, each Collection, Map and so on.\nTracks visited to handle cycles and to determine if an item is referenced elsewhere. If an\nobject is never referenced more than once, no @id field needs to be emitted for it.\n@param root Object to be deeply traced. The objVisited and objsReferenced Maps will be written to\nduring the trace.", "docstring_tokens": ["Walk", "object", "graph", "and", "visit", "each", "instance", "following", "each", "field", "each", "Collection", "Map", "and", "so", "on", ".", "Tracks", "visited", "to", "handle", "cycles", "and", "to", "determine", "if", "an", "item", "is", "referenced", "elsewhere", ".", "If", "an", "object", "is", "never", "referenced", "more", "than", "once", "no"], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonWriter.java#L820-L908", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonWriter.java", "func_name": "JsonWriter.traceFields", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reach-ability trace to visit all objects within the graph to be written.\nThis API will handle any object, using either reflection APIs or by\nconsulting a specified FIELD_SPECIFIERS map if provided.\n@param stack Deque used to manage descent into graph (rather than using Java stack.) This allows for\nmuch larger graph processing.\n@param obj Object root of graph\n@param fieldSpecifiers Map of optional field specifiers, which are used to override the field list returned by\nthe JDK reflection operations. This allows a subset of the actual fields on an object to be serialized.", "docstring_tokens": ["Reach", "-", "ability", "trace", "to", "visit", "all", "objects", "within", "the", "graph", "to", "be", "written", ".", "This", "API", "will", "handle", "any", "object", "using", "either", "reflection", "APIs", "or", "by", "consulting", "a", "specified", "FIELD_SPECIFIERS", "map", "if", "provided", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonWriter.java#L920-L950", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonWriter.java", "func_name": "JsonWriter.ensureJsonPrimitiveKeys", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Ensure that all keys within the Map are String instances\n@param map Map to inspect that all keys are primitive. This allows the output JSON\nto be optimized into {\"key1\":value1, \"key2\": value2} format if all the\nkeys of the Map are Strings. If not, then a Map is written as two\narrays, an @keys array and an @items array. This allows support for Maps\nwith non-String keys.", "docstring_tokens": ["Ensure", "that", "all", "keys", "within", "the", "Map", "are", "String", "instances"], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonWriter.java#L2140-L2150", "partition": "valid"} +{"repo": "jdereg/json-io", "path": "src/main/java/com/cedarsoftware/util/io/JsonWriter.java", "func_name": "JsonWriter.writeCollectionElement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write an element that is contained in some type of Collection or Map.\n@param o Collection element to output in JSON format.\n@throws IOException if an error occurs writing to the output stream.", "docstring_tokens": ["Write", "an", "element", "that", "is", "contained", "in", "some", "type", "of", "Collection", "or", "Map", "."], "sha": "763da4e6fac93367febfda4c790ab44967054ba7", "url": "https://github.com/jdereg/json-io/blob/763da4e6fac93367febfda4c790ab44967054ba7/src/main/java/com/cedarsoftware/util/io/JsonWriter.java#L2157-L2184", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/worldbank/workgenerator/data/WorldbankImportServiceImpl.java", "func_name": "WorldbankImportServiceImpl.createMapFromList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the map from list.\n\n@param all\nthe all\n@return the map", "docstring_tokens": ["Creates", "the", "map", "from", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/worldbank/workgenerator/data/WorldbankImportServiceImpl.java#L70-L79", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.worldbank.indicators.impl/src/main/java/com/hack23/cia/model/external/worldbank/indicators/impl/IndicatorElement.java", "func_name": "IndicatorElement.getSource", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the source.\n\n@return the source", "docstring_tokens": ["Gets", "the", "source", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.worldbank.indicators.impl/src/main/java/com/hack23/cia/model/external/worldbank/indicators/impl/IndicatorElement.java#L132-L139", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.worldbank.indicators.impl/src/main/java/com/hack23/cia/model/external/worldbank/indicators/impl/IndicatorElement.java", "func_name": "IndicatorElement.getTopics", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the topics.\n\n@return the topics", "docstring_tokens": ["Gets", "the", "topics", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.worldbank.indicators.impl/src/main/java/com/hack23/cia/model/external/worldbank/indicators/impl/IndicatorElement.java#L195-L201", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.worldbank.indicators.impl/src/main/java/com/hack23/cia/model/external/worldbank/indicators/impl/IndicatorElement.java", "func_name": "IndicatorElement.getHjid", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the hjid.\n\n@return the hjid", "docstring_tokens": ["Gets", "the", "hjid", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.worldbank.indicators.impl/src/main/java/com/hack23/cia/model/external/worldbank/indicators/impl/IndicatorElement.java#L312-L317", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentDetailContainer.java", "func_name": "DocumentDetailContainer.getDocumentDetailList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the document detail list.\n\n@return the document detail list", "docstring_tokens": ["Gets", "the", "document", "detail", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentDetailContainer.java#L88-L94", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java", "func_name": "ChartOptionsImpl.createAxesXYDateFloat", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the axes XY date float.\n\n@return the axes", "docstring_tokens": ["Creates", "the", "axes", "XY", "date", "float", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java#L123-L129", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java", "func_name": "ChartOptionsImpl.createDefaultGrid", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the default grid.\n\n@return the grid", "docstring_tokens": ["Creates", "the", "default", "grid", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java#L150-L156", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java", "func_name": "ChartOptionsImpl.createdLegendEnhancedInsideNorthWest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Created legend enhanced inside north west.\n\n@return the legend", "docstring_tokens": ["Created", "legend", "enhanced", "inside", "north", "west", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java#L163-L168", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java", "func_name": "ChartOptionsImpl.createdLegendEnhancedInsideWest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Created legend enhanced inside west.\n\n@return the legend", "docstring_tokens": ["Created", "legend", "enhanced", "inside", "west", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java#L175-L180", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java", "func_name": "ChartOptionsImpl.createLegendOutsideOneColumn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the legend outside one column.\n\n@return the legend", "docstring_tokens": ["Creates", "the", "legend", "outside", "one", "column", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java#L199-L204", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java", "func_name": "ChartOptionsImpl.setLegendStyling", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the legend styling.\n\n@param legend\nthe legend\n@return the legend", "docstring_tokens": ["Sets", "the", "legend", "styling", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java#L225-L228", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java", "func_name": "ChartOptionsImpl.createHighLighter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the high lighter.\n\n@return the highlighter", "docstring_tokens": ["Creates", "the", "high", "lighter", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java#L235-L238", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java", "func_name": "ChartOptionsImpl.createHighLighterNorth", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the high lighter north.\n\n@return the highlighter", "docstring_tokens": ["Creates", "the", "high", "lighter", "north", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java#L245-L249", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java", "func_name": "ChartOptionsImpl.createSeriesDefaultPieChart", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the series default pie chart.\n\n@return the series defaults", "docstring_tokens": ["Creates", "the", "series", "default", "pie", "chart", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java#L256-L259", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java", "func_name": "ChartOptionsImpl.createDonoutSeriesDefault", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the donout series default.\n\n@return the series defaults", "docstring_tokens": ["Creates", "the", "donout", "series", "default", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/ChartOptionsImpl.java#L299-L303", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentAttachmentContainer.java", "func_name": "DocumentAttachmentContainer.getDocumentAttachmentList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the document attachment list.\n\n@return the document attachment list", "docstring_tokens": ["Gets", "the", "document", "attachment", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentAttachmentContainer.java#L88-L94", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/CommitteeRankingMenuItemFactoryImpl.java", "func_name": "CommitteeRankingMenuItemFactoryImpl.createCommitteeeRankingMenuBar", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the committeee ranking menu bar.\n\n@param menuBar\nthe menu bar", "docstring_tokens": ["Creates", "the", "committeee", "ranking", "menu", "bar", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/CommitteeRankingMenuItemFactoryImpl.java#L128-L135", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/CommitteeRankingMenuItemFactoryImpl.java", "func_name": "CommitteeRankingMenuItemFactoryImpl.createCommitteeRankingTopics", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the committee ranking topics.\n\n@param committeeMenuItem\nthe committee menu item", "docstring_tokens": ["Creates", "the", "committee", "ranking", "topics", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/CommitteeRankingMenuItemFactoryImpl.java#L143-L163", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/CommitteeRankingMenuItemFactoryImpl.java", "func_name": "CommitteeRankingMenuItemFactoryImpl.createOverviewPage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the overview page.\n\n@param panelContent\nthe panel content", "docstring_tokens": ["Creates", "the", "overview", "page", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/CommitteeRankingMenuItemFactoryImpl.java#L171-L185", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/politician/pagemode/PoliticianOverviewPageModContentFactoryImpl.java", "func_name": "PoliticianOverviewPageModContentFactoryImpl.createOverviewContent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the overview content.\n\n@param panelContent the panel content\n@param personData the person data\n@param viewRiksdagenPolitician the view riksdagen politician\n@param pageId the page id", "docstring_tokens": ["Creates", "the", "overview", "content", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/politician/pagemode/PoliticianOverviewPageModContentFactoryImpl.java#L101-L132", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.val.kommunvalkrets.impl/src/main/java/com/hack23/cia/model/external/val/kommunvalkrets/impl/SwedenMunicipalityData.java", "func_name": "SwedenMunicipalityData.getKommunvalkrets", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the kommunvalkrets.\n\n@return the kommunvalkrets", "docstring_tokens": ["Gets", "the", "kommunvalkrets", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.val.kommunvalkrets.impl/src/main/java/com/hack23/cia/model/external/val/kommunvalkrets/impl/SwedenMunicipalityData.java#L140-L146", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/BootstrapDefaultConfig.java", "func_name": "BootstrapDefaultConfig.configureAuthentication", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure authentication.\n\n@param role\nthe role", "docstring_tokens": ["Configure", "authentication", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/BootstrapDefaultConfig.java#L76-L80", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.api/src/main/java/com/hack23/cia/service/api/action/kpi/ComplianceCheckResponse.java", "func_name": "ComplianceCheckResponse.setList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the list.\n\n@param list\nthe new list", "docstring_tokens": ["Sets", "the", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.api/src/main/java/com/hack23/cia/service/api/action/kpi/ComplianceCheckResponse.java#L74-L76", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.api/src/main/java/com/hack23/cia/service/api/action/kpi/ComplianceCheckResponse.java", "func_name": "ComplianceCheckResponse.setStatusMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the status map.\n\n@param statusMap\nthe new status map", "docstring_tokens": ["Sets", "the", "status", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.api/src/main/java/com/hack23/cia/service/api/action/kpi/ComplianceCheckResponse.java#L93-L95", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.api/src/main/java/com/hack23/cia/service/api/action/kpi/ComplianceCheckResponse.java", "func_name": "ComplianceCheckResponse.setResourceTypeMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the resource type map.\n\n@param resourceTypeMap\nthe new resource type map", "docstring_tokens": ["Sets", "the", "resource", "type", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.api/src/main/java/com/hack23/cia/service/api/action/kpi/ComplianceCheckResponse.java#L112-L114", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.val.kommunvalkrets.impl/src/main/java/com/hack23/cia/model/external/val/kommunvalkrets/impl/SwedenCountyData.java", "func_name": "SwedenCountyData.getKommun", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the kommun.\n\n@return the kommun", "docstring_tokens": ["Gets", "the", "kommun", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.val.kommunvalkrets.impl/src/main/java/com/hack23/cia/model/external/val/kommunvalkrets/impl/SwedenCountyData.java#L140-L146", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.personlista.impl/src/main/java/com/hack23/cia/model/external/riksdagen/personlista/impl/PersonAssignmentElement.java", "func_name": "PersonAssignmentElement.getUppdrag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the uppdrag.\n\n@return the uppdrag", "docstring_tokens": ["Gets", "the", "uppdrag", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.personlista.impl/src/main/java/com/hack23/cia/model/external/riksdagen/personlista/impl/PersonAssignmentElement.java#L88-L94", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentProposalContainer.java", "func_name": "DocumentProposalContainer.getProposal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the proposal.\n\n@return the proposal", "docstring_tokens": ["Gets", "the", "proposal", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentProposalContainer.java#L85-L91", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/pagelinks/api/PageModeMenuCommand.java", "func_name": "PageModeMenuCommand.getPagePath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the page path.\n\n@return the page path", "docstring_tokens": ["Gets", "the", "page", "path", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/pagelinks/api/PageModeMenuCommand.java#L113-L119", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workers/RiksdagenVoteDataWorkConsumerImpl.java", "func_name": "RiksdagenVoteDataWorkConsumerImpl.updateBallot", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Update ballot.\n\n@param ballotId\nthe ballot id", "docstring_tokens": ["Update", "ballot", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workers/RiksdagenVoteDataWorkConsumerImpl.java#L81-L90", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PartyChartDataManagerImpl.java", "func_name": "PartyChartDataManagerImpl.getMaxSizeViewRiksdagenVoteDataBallotPartySummaryDaily", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the max size view riksdagen vote data ballot party summary daily.\n\n@return the max size view riksdagen vote data ballot party summary daily", "docstring_tokens": ["Gets", "the", "max", "size", "view", "riksdagen", "vote", "data", "ballot", "party", "summary", "daily", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PartyChartDataManagerImpl.java#L81-L94", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PartyChartDataManagerImpl.java", "func_name": "PartyChartDataManagerImpl.initPartyMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inits the party map.", "docstring_tokens": ["Inits", "the", "party", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PartyChartDataManagerImpl.java#L115-L123", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PartyChartDataManagerImpl.java", "func_name": "PartyChartDataManagerImpl.addPartyData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the party data.\n\n@param dataSeries the data series\n@param simpleDateFormat the simple date format\n@param list the list\n@param t the t", "docstring_tokens": ["Adds", "the", "party", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PartyChartDataManagerImpl.java#L156-L167", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PartyChartDataManagerImpl.java", "func_name": "PartyChartDataManagerImpl.createPartyBallotChart", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the party ballot chart.\n\n@param dataValueCalculator\nthe data value calculator\n@return the d charts", "docstring_tokens": ["Creates", "the", "party", "ballot", "chart", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PartyChartDataManagerImpl.java#L228-L245", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PartyChartDataManagerImpl.java", "func_name": "PartyChartDataManagerImpl.addBallotData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the ballot data.\n\n@param dataValueCalculator the data value calculator\n@param dataSeries the data series\n@param simpleDateFormat the simple date format\n@param series the series\n@param entry the entry", "docstring_tokens": ["Adds", "the", "ballot", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PartyChartDataManagerImpl.java#L257-L272", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvGovernmentBodyOperationOutcomeReaderImpl.java", "func_name": "EsvGovernmentBodyOperationOutcomeReaderImpl.createOrgMinistryMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the org ministry map.\n\n@param data the data\n@return the map", "docstring_tokens": ["Creates", "the", "org", "ministry", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvGovernmentBodyOperationOutcomeReaderImpl.java#L222-L235", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvGovernmentBodyOperationOutcomeReaderImpl.java", "func_name": "EsvGovernmentBodyOperationOutcomeReaderImpl.addResultForMonth", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the result for month.\n\n@param governmentBodyAnnualOutcomeSummary\nthe government body annual outcome summary\n@param month\nthe month\n@param value\nthe value", "docstring_tokens": ["Adds", "the", "result", "for", "month", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvGovernmentBodyOperationOutcomeReaderImpl.java#L247-L252", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/formfactory/impl/FormFactoryImpl.java", "func_name": "FormFactoryImpl.createField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the field.\n\n@param property the property\n@return the abstract field", "docstring_tokens": ["Creates", "the", "field", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/formfactory/impl/FormFactoryImpl.java#L121-L127", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/formfactory/impl/FormFactoryImpl.java", "func_name": "FormFactoryImpl.createDisplayPropertyConverters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the display property converters.\n\n@param the generic type\n@param displayProperties the display properties\n@param formContent the form content\n@param binder the binder\n@param propertyDescriptors the property descriptors", "docstring_tokens": ["Creates", "the", "display", "property", "converters", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/formfactory/impl/FormFactoryImpl.java#L176-L196", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/formfactory/impl/FormFactoryImpl.java", "func_name": "FormFactoryImpl.getConverterForType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the converter for type.\n\n@param typeOfProperty\nthe type of property\n@return the converter for type", "docstring_tokens": ["Gets", "the", "converter", "for", "type", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/formfactory/impl/FormFactoryImpl.java#L205-L227", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/formfactory/impl/FormFactoryImpl.java", "func_name": "FormFactoryImpl.getTypeOfProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the type of property.\n\n@param propertyDescriptors\nthe property descriptors\n@param property\nthe property\n@return the type of property", "docstring_tokens": ["Gets", "the", "type", "of", "property", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/formfactory/impl/FormFactoryImpl.java#L238-L246", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentActivityContainer.java", "func_name": "DocumentActivityContainer.getDocumentActivities", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the document activities.\n\n@return the document activities", "docstring_tokens": ["Gets", "the", "document", "activities", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentActivityContainer.java#L88-L94", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/action/common/AbstractCommonBusinessServiceImpl.java", "func_name": "AbstractCommonBusinessServiceImpl.getUserAccountFromSecurityContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the user account from security context.\n\n@return the user account from security context", "docstring_tokens": ["Gets", "the", "user", "account", "from", "security", "context", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/action/common/AbstractCommonBusinessServiceImpl.java#L69-L79", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.val.kommunvalkrets.impl/src/main/java/com/hack23/cia/model/external/val/kommunvalkrets/impl/SwedenCountyDataContainer.java", "func_name": "SwedenCountyDataContainer.getCountyRegions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the county regions.\n\n@return the county regions", "docstring_tokens": ["Gets", "the", "county", "regions", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.val.kommunvalkrets.impl/src/main/java/com/hack23/cia/model/external/val/kommunvalkrets/impl/SwedenCountyDataContainer.java#L86-L92", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.utskottsforslag.impl/src/main/java/com/hack23/cia/model/external/riksdagen/utskottsforslag/impl/CommitteeProposalComponentData.java", "func_name": "CommitteeProposalComponentData.getAgainstProposalContainer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the against proposal container.\n\n@return the against proposal container", "docstring_tokens": ["Gets", "the", "against", "proposal", "container", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.utskottsforslag.impl/src/main/java/com/hack23/cia/model/external/riksdagen/utskottsforslag/impl/CommitteeProposalComponentData.java#L95-L101", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.utskottsforslag.impl/src/main/java/com/hack23/cia/model/external/riksdagen/utskottsforslag/impl/CommitteeProposalComponentData.java", "func_name": "CommitteeProposalComponentData.getCommitteeProposalContainer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the committee proposal container.\n\n@return the committee proposal container", "docstring_tokens": ["Gets", "the", "committee", "proposal", "container", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.utskottsforslag.impl/src/main/java/com/hack23/cia/model/external/riksdagen/utskottsforslag/impl/CommitteeProposalComponentData.java#L139-L145", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.internal.application.user.impl/src/main/java/com/hack23/cia/model/internal/application/system/impl/ApplicationSession.java", "func_name": "ApplicationSession.getEvents", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the value of the events property.\n\n

\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a set method for the events property.\n\n

\nFor example, to add a new item, do as follows:\n

\ngetEvents().add(newItem);\n
\n\n\n

\nObjects of the following type(s) are allowed in the list\n{@link ApplicationActionEvent }", "docstring_tokens": ["Gets", "the", "value", "of", "the", "events", "property", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.internal.application.user.impl/src/main/java/com/hack23/cia/model/internal/application/system/impl/ApplicationSession.java#L490-L499", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/pagemode/AbstractPageModContentFactoryImpl.java", "func_name": "AbstractPageModContentFactoryImpl.getPageId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the page id.\n\n@param parameters\nthe parameters\n@return the page id", "docstring_tokens": ["Gets", "the", "page", "id", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/pagemode/AbstractPageModContentFactoryImpl.java#L93-L104", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/pagemode/AbstractPageModContentFactoryImpl.java", "func_name": "AbstractPageModContentFactoryImpl.getPageNr", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the page nr.\n\n@param parameters the parameters\n@return the page nr", "docstring_tokens": ["Gets", "the", "page", "nr", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/pagemode/AbstractPageModContentFactoryImpl.java#L112-L127", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/pagemode/AbstractPageModContentFactoryImpl.java", "func_name": "AbstractPageModContentFactoryImpl.createPanelContent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the panel content.\n\n@return the vertical layout", "docstring_tokens": ["Creates", "the", "panel", "content", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/pagemode/AbstractPageModContentFactoryImpl.java#L192-L199", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/pagemode/AbstractPageModContentFactoryImpl.java", "func_name": "AbstractPageModContentFactoryImpl.createPageVisitHistory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the page visit history.\n\n@param pageName\nthe page name\n@param pageId\nthe page id\n@param panelContent\nthe panel content", "docstring_tokens": ["Creates", "the", "page", "visit", "history", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/pagemode/AbstractPageModContentFactoryImpl.java#L211-L239", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PoliticianDataManagerImpl.java", "func_name": "PoliticianDataManagerImpl.addPoliticianIndicatorData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the politician indicator data.\n\n@param list\nthe list\n@param dataSeries\nthe data series\n@param simpleDateFormat\nthe simple date format", "docstring_tokens": ["Adds", "the", "politician", "indicator", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PoliticianDataManagerImpl.java#L104-L110", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PoliticianDataManagerImpl.java", "func_name": "PoliticianDataManagerImpl.addPoliticanData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the politican data.\n\n@param list the list\n@param dataSeries the data series\n@param simpleDateFormat the simple date format\n@param t the t", "docstring_tokens": ["Adds", "the", "politican", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PoliticianDataManagerImpl.java#L123-L134", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.api/src/main/java/com/hack23/cia/service/api/action/user/SetGoogleAuthenticatorCredentialResponse.java", "func_name": "SetGoogleAuthenticatorCredentialResponse.setGoogleAuthScratchCodes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the google auth scratch codes.\n\n@param googleAuthScratchCodes\nthe new google auth scratch codes", "docstring_tokens": ["Sets", "the", "google", "auth", "scratch", "codes", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.api/src/main/java/com/hack23/cia/service/api/action/user/SetGoogleAuthenticatorCredentialResponse.java#L110-L114", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractGhantChartManagerImpl.java", "func_name": "AbstractGhantChartManagerImpl.createRoleGhant", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the role ghant.\n\n@param roleSummaryLayoutTabsheet the role summary layout tabsheet\n@param assignmentList the assignment list", "docstring_tokens": ["Creates", "the", "role", "ghant", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractGhantChartManagerImpl.java#L78-L92", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractGhantChartManagerImpl.java", "func_name": "AbstractGhantChartManagerImpl.createGenericGantt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the generic gantt.\n\n@param assignmentList\nthe assignment list\n@param roleMapping\nthe role mapping\n@param stepMapping\nthe step mapping\n@return the gantt", "docstring_tokens": ["Creates", "the", "generic", "gantt", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractGhantChartManagerImpl.java#L127-L159", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractGhantChartManagerImpl.java", "func_name": "AbstractGhantChartManagerImpl.entriesSortedByValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Entries sorted by values.\n\n@param map\nthe map\n@param stepMapping\nthe step mapping\n@return the sorted set", "docstring_tokens": ["Entries", "sorted", "by", "values", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractGhantChartManagerImpl.java#L170-L197", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractGhantChartManagerImpl.java", "func_name": "AbstractGhantChartManagerImpl.addViewGenericRoleMemberToStep", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the view generic role member to step.\n\n@param stepName\nthe step name\n@param step\nthe step\n@param assignments\nthe assignments\n@param stepMapping\nthe step mapping", "docstring_tokens": ["Adds", "the", "view", "generic", "role", "member", "to", "step", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractGhantChartManagerImpl.java#L211-L234", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractGhantChartManagerImpl.java", "func_name": "AbstractGhantChartManagerImpl.stripDatesAfterCurrentDate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Strip dates after current date.\n\n@param toDate\nthe to date\n@return the date", "docstring_tokens": ["Strip", "dates", "after", "current", "date", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractGhantChartManagerImpl.java#L243-L251", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractGhantChartManagerImpl.java", "func_name": "AbstractGhantChartManagerImpl.createGantt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the gantt.\n\n@return the gantt", "docstring_tokens": ["Creates", "the", "gantt", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractGhantChartManagerImpl.java#L258-L267", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/politician/pagemode/AbstractPoliticianPageModContentFactoryImpl.java", "func_name": "AbstractPoliticianPageModContentFactoryImpl.convertToYearsString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert to years string.\n\n@param totalDays\nthe total days\n@return the string", "docstring_tokens": ["Convert", "to", "years", "string", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/politician/pagemode/AbstractPoliticianPageModContentFactoryImpl.java#L65-L70", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.data.impl/src/main/java/com/hack23/cia/service/data/impl/util/SecretPGXADataSourceFactory.java", "func_name": "SecretPGXADataSourceFactory.loadSecretXADataSource", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load secret XA data source.\n\n@param ref the ref\n@return the object", "docstring_tokens": ["Load", "secret", "XA", "data", "source", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.data.impl/src/main/java/com/hack23/cia/service/data/impl/util/SecretPGXADataSourceFactory.java#L48-L50", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/command/DataAgentApiImpl.java", "func_name": "DataAgentApiImpl.sendMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Send message.\n\n@param workOrder\nthe work order", "docstring_tokens": ["Send", "message", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/command/DataAgentApiImpl.java#L74-L90", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentPersonReferenceContainer.java", "func_name": "DocumentPersonReferenceContainer.getDocumentPersonReferenceList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the document person reference list.\n\n@return the document person reference list", "docstring_tokens": ["Gets", "the", "document", "person", "reference", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentPersonReferenceContainer.java#L88-L94", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/dataseriesfactory/impl/DecisionDataFactoryImpl.java", "func_name": "DecisionDataFactoryImpl.cleanupDecision", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Cleanup decision.\n\n@param chamber\nthe chamber\n@return the string", "docstring_tokens": ["Cleanup", "decision", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/dataseriesfactory/impl/DecisionDataFactoryImpl.java#L102-L104", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/dataseriesfactory/impl/DecisionDataFactoryImpl.java", "func_name": "DecisionDataFactoryImpl.getDocumentName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the document name.\n\n@param document\nthe document\n@return the document name", "docstring_tokens": ["Gets", "the", "document", "name", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/dataseriesfactory/impl/DecisionDataFactoryImpl.java#L113-L122", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/dataseriesfactory/impl/DecisionDataFactoryImpl.java", "func_name": "DecisionDataFactoryImpl.getCommittteeShortName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the committtee short name.\n\n@param proposal\nthe proposal\n@return the committtee short name", "docstring_tokens": ["Gets", "the", "committtee", "short", "name", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/dataseriesfactory/impl/DecisionDataFactoryImpl.java#L131-L139", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/action/application/access/LoginBlockedAccessImpl.java", "func_name": "LoginBlockedAccessImpl.blockByUserFailedLoginAttempts", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Block by user failed login attempts.\n\n@param email\nthe email\n@param loginBlockResultImpl\nthe login block result impl", "docstring_tokens": ["Block", "by", "user", "failed", "login", "attempts", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/action/application/access/LoginBlockedAccessImpl.java#L176-L197", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/action/application/access/LoginBlockedAccessImpl.java", "func_name": "LoginBlockedAccessImpl.blockBySessionOrIpFailedLoginAttempts", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Block by session or ip failed login attempts.\n\n@param sessionId\nthe session id\n@param loginBlockResultImpl\nthe login block result impl", "docstring_tokens": ["Block", "by", "session", "or", "ip", "failed", "login", "attempts", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/action/application/access/LoginBlockedAccessImpl.java#L207-L252", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/pageclicklistener/RuleViolationPageItemRendererClickListener.java", "func_name": "RuleViolationPageItemRendererClickListener.navigateToPage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Navigate to page.\n\n@param violation\nthe violation", "docstring_tokens": ["Navigate", "to", "page", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/pageclicklistener/RuleViolationPageItemRendererClickListener.java#L61-L67", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/pageclicklistener/AbstractClickListener.java", "func_name": "AbstractClickListener.getApplicationManager", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the application manager.\n\n@return the application manager", "docstring_tokens": ["Gets", "the", "application", "manager", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/pageclicklistener/AbstractClickListener.java#L39-L44", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/pageclicklistener/AbstractClickListener.java", "func_name": "AbstractClickListener.showNotification", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Show notification.\n\n@param caption the caption\n@param description the description\n@param type the type", "docstring_tokens": ["Show", "notification", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/pageclicklistener/AbstractClickListener.java#L53-L55", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.worldbank.indicators.impl/src/main/java/com/hack23/cia/model/external/worldbank/indicators/impl/Topics.java", "func_name": "Topics.getTopic", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the topic.\n\n@return the topic", "docstring_tokens": ["Gets", "the", "topic", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.worldbank.indicators.impl/src/main/java/com/hack23/cia/model/external/worldbank/indicators/impl/Topics.java#L86-L92", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/CountryMenuItemFactoryImpl.java", "func_name": "CountryMenuItemFactoryImpl.addSourcesAndIndicatorsToMenu", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the sources and indicators to menu.\n\n@param countryIndicators\nthe country indicators\n@param sourceIndicatorMap\nthe source indicator map", "docstring_tokens": ["Adds", "the", "sources", "and", "indicators", "to", "menu", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/CountryMenuItemFactoryImpl.java#L129-L153", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/CountryMenuItemFactoryImpl.java", "func_name": "CountryMenuItemFactoryImpl.getTopicIndicatorMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the topic indicator map.\n\n@return the topic indicator map", "docstring_tokens": ["Gets", "the", "topic", "indicator", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/CountryMenuItemFactoryImpl.java#L160-L172", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.internal.application.user.impl/src/main/java/com/hack23/cia/model/internal/application/user/impl/UserAccount.java", "func_name": "UserAccount.getAddress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the value of the address property.\n\n

\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a set method for the address property.\n\n

\nFor example, to add a new item, do as follows:\n

\ngetAddress().add(newItem);\n
\n\n\n

\nObjects of the following type(s) are allowed in the list\n{@link String }", "docstring_tokens": ["Gets", "the", "value", "of", "the", "address", "property", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.internal.application.user.impl/src/main/java/com/hack23/cia/model/internal/application/user/impl/UserAccount.java#L357-L368", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.data.impl/src/main/java/com/hack23/cia/service/data/impl/AbstractGenericDAOImpl.java", "func_name": "AbstractGenericDAOImpl.addCacheHints", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the cache hints.\n\n@param typedQuery\nthe typed query\n@param comment\nthe comment", "docstring_tokens": ["Adds", "the", "cache", "hints", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.data.impl/src/main/java/com/hack23/cia/service/data/impl/AbstractGenericDAOImpl.java#L97-L101", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.data.impl/src/main/java/com/hack23/cia/service/data/impl/AbstractGenericDAOImpl.java", "func_name": "AbstractGenericDAOImpl.getStringIdList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the string id list.\n\n@param property\nthe property\n@return the string id list", "docstring_tokens": ["Gets", "the", "string", "id", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.data.impl/src/main/java/com/hack23/cia/service/data/impl/AbstractGenericDAOImpl.java#L110-L115", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.worldbank/src/main/java/com/hack23/cia/service/external/worldbank/impl/WorldbankIndicatorApiImpl.java", "func_name": "WorldbankIndicatorApiImpl.readUsingZipInputStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read using zip input stream.\n\n@param inputStream\nthe input stream\n@param specificFields\nthe specific fields\n@return the list\n@throws IOException\nSignals that an I/O exception has occurred.", "docstring_tokens": ["Read", "using", "zip", "input", "stream", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.worldbank/src/main/java/com/hack23/cia/service/external/worldbank/impl/WorldbankIndicatorApiImpl.java#L137-L154", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/paging/PagingUtilImpl.java", "func_name": "PagingUtilImpl.createPagingControls", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the paging controls.\n\n@param content the content\n@param name the name\n@param pageId the page id\n@param size the size\n@param pageNr the page nr\n@param resultPerPage the result per page", "docstring_tokens": ["Creates", "the", "paging", "controls", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/paging/PagingUtilImpl.java#L84-L127", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/paging/PagingUtilImpl.java", "func_name": "PagingUtilImpl.addPagingLink", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the paging link.\n\n@param label the label\n@param name the name\n@param pageId the page id\n@param maxPages the max pages\n@param pagingControls the paging controls", "docstring_tokens": ["Adds", "the", "paging", "link", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/paging/PagingUtilImpl.java#L138-L142", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/rules/RulesEngineImpl.java", "func_name": "RulesEngineImpl.insertPolitician", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Insert politician.\n\n@param ksession the ksession\n@param politicianData the politician data\n@param dailyList the daily list\n@param monthlyList the monthly list\n@param annualList the annual list\n@param decisionList the decision list", "docstring_tokens": ["Insert", "politician", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/rules/RulesEngineImpl.java#L142-L173", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/rules/RulesEngineImpl.java", "func_name": "RulesEngineImpl.insertParty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Insert party.\n\n@param ksession the ksession\n@param partyData the party data\n@param dailyList the daily list\n@param monthlyList the monthly list\n@param annualList the annual list\n@param ballotDecisions the ballot decisions", "docstring_tokens": ["Insert", "party", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/rules/RulesEngineImpl.java#L224-L253", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.utskottsforslag.impl/src/main/java/com/hack23/cia/model/external/riksdagen/utskottsforslag/impl/AgainstProposalContainer.java", "func_name": "AgainstProposalContainer.getAgainstProposalList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the against proposal list.\n\n@return the against proposal list", "docstring_tokens": ["Gets", "the", "against", "proposal", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.utskottsforslag.impl/src/main/java/com/hack23/cia/model/external/riksdagen/utskottsforslag/impl/AgainstProposalContainer.java#L88-L94", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/GovernmentBodyChartDataManagerImpl.java", "func_name": "GovernmentBodyChartDataManagerImpl.addDataSerieValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the data serie value.\n\n@param dataSeries the data series\n@param entry the entry\n@param value the value", "docstring_tokens": ["Adds", "the", "data", "serie", "value", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/GovernmentBodyChartDataManagerImpl.java#L203-L208", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/GovernmentBodyChartDataManagerImpl.java", "func_name": "GovernmentBodyChartDataManagerImpl.addAnnualSummary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the annual summary.\n\n@param report\nthe report\n@param content\nthe content\n@param label\nthe label", "docstring_tokens": ["Adds", "the", "annual", "summary", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/GovernmentBodyChartDataManagerImpl.java#L250-L269", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/GovernmentBodyChartDataManagerImpl.java", "func_name": "GovernmentBodyChartDataManagerImpl.addAnnualSummaryData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the annual summary data.\n\n@param dataSeries the data series\n@param series the series\n@param entry the entry\n@param allValues the all values", "docstring_tokens": ["Adds", "the", "annual", "summary", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/GovernmentBodyChartDataManagerImpl.java#L279-L295", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/GovernmentBodyChartDataManagerImpl.java", "func_name": "GovernmentBodyChartDataManagerImpl.addAnnualData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the annual data.\n\n@param content\nthe content\n@param name\nthe name\n@param label\nthe label\n@param collect\nthe collect", "docstring_tokens": ["Adds", "the", "annual", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/GovernmentBodyChartDataManagerImpl.java#L309-L326", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/GovernmentBodyChartDataManagerImpl.java", "func_name": "GovernmentBodyChartDataManagerImpl.addEntryData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the entry data.\n\n@param dataSeries the data series\n@param simpleDateFormat the simple date format\n@param entry the entry", "docstring_tokens": ["Adds", "the", "entry", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/GovernmentBodyChartDataManagerImpl.java#L335-L346", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/GovernmentBodyChartDataManagerImpl.java", "func_name": "GovernmentBodyChartDataManagerImpl.createMinistrySummary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the ministry summary.\n\n@param content the content\n@param field the field\n@param label the label", "docstring_tokens": ["Creates", "the", "ministry", "summary", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/GovernmentBodyChartDataManagerImpl.java#L367-L389", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/politician/pagemode/PoliticianRoleListPageModContentFactoryImpl.java", "func_name": "PoliticianRoleListPageModContentFactoryImpl.createRoleList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the role list.\n\n@param roleSummaryLayoutTabsheet the role summary layout tabsheet\n@param assignmentList the assignment list", "docstring_tokens": ["Creates", "the", "role", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/politician/pagemode/PoliticianRoleListPageModContentFactoryImpl.java#L89-L99", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.riksdagen/src/main/java/com/hack23/cia/service/external/riksdagen/impl/RiksdagenDocumentApiImpl.java", "func_name": "RiksdagenDocumentApiImpl.processAll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Process all.\n\n@param dokument\nthe dokument\n@param processStrategy\nthe process strategy", "docstring_tokens": ["Process", "all", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.riksdagen/src/main/java/com/hack23/cia/service/external/riksdagen/impl/RiksdagenDocumentApiImpl.java#L187-L197", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.riksdagen/src/main/java/com/hack23/cia/service/external/riksdagen/impl/RiksdagenDocumentApiImpl.java", "func_name": "RiksdagenDocumentApiImpl.loadAndProcessDocumentList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load and process document list.\n\n@param url\nthe url\n@param processStrategy\nthe process strategy\n@throws XmlAgentException\nthe xml agent exception", "docstring_tokens": ["Load", "and", "process", "document", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.riksdagen/src/main/java/com/hack23/cia/service/external/riksdagen/impl/RiksdagenDocumentApiImpl.java#L283-L300", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.riksdagen/src/main/java/com/hack23/cia/service/external/riksdagen/impl/RiksdagenDocumentApiImpl.java", "func_name": "RiksdagenDocumentApiImpl.loadDocumentList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load document list.\n\n@param url\nthe url\n@param maxNumberPages\nthe max number pages\n@return the list\n@throws XmlAgentException\nthe xml agent exception", "docstring_tokens": ["Load", "document", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.riksdagen/src/main/java/com/hack23/cia/service/external/riksdagen/impl/RiksdagenDocumentApiImpl.java#L313-L330", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.common/src/main/java/com/hack23/cia/service/external/common/impl/XmlAgentImpl.java", "func_name": "XmlAgentImpl.readWithStringBuffer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read with string buffer.\n\n@param fr\nthe fr\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred.", "docstring_tokens": ["Read", "with", "string", "buffer", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.common/src/main/java/com/hack23/cia/service/external/common/impl/XmlAgentImpl.java#L68-L78", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.common/src/main/java/com/hack23/cia/service/external/common/impl/XmlAgentImpl.java", "func_name": "XmlAgentImpl.readInputStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read input stream.\n\n@param accessUrl\nthe access url\n@return the string\n@throws IOException\nSignals that an I/O exception has occurred.", "docstring_tokens": ["Read", "input", "stream", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.common/src/main/java/com/hack23/cia/service/external/common/impl/XmlAgentImpl.java#L144-L147", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.voteringlista.impl/src/main/java/com/hack23/cia/model/external/riksdagen/voteringlista/impl/VoteListContainerElement.java", "func_name": "VoteListContainerElement.getVotering", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the votering.\n\n@return the votering", "docstring_tokens": ["Gets", "the", "votering", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.voteringlista.impl/src/main/java/com/hack23/cia/model/external/riksdagen/voteringlista/impl/VoteListContainerElement.java#L101-L107", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvApiImpl.java", "func_name": "EsvApiImpl.getGovernmentBodyList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the government body list.\n\n@return the government body list", "docstring_tokens": ["Gets", "the", "government", "body", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvApiImpl.java#L202-L212", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.personlista.impl/src/main/java/com/hack23/cia/model/external/riksdagen/personlista/impl/PersonElement.java", "func_name": "PersonElement.getPersonAssignmentElement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the person assignment element.\n\n@return the person assignment element", "docstring_tokens": ["Gets", "the", "person", "assignment", "element", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.personlista.impl/src/main/java/com/hack23/cia/model/external/riksdagen/personlista/impl/PersonElement.java#L445-L451", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.personlista.impl/src/main/java/com/hack23/cia/model/external/riksdagen/personlista/impl/PersonElement.java", "func_name": "PersonElement.getPersonDetailElement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the person detail element.\n\n@return the person detail element", "docstring_tokens": ["Gets", "the", "person", "detail", "element", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.personlista.impl/src/main/java/com/hack23/cia/model/external/riksdagen/personlista/impl/PersonElement.java#L467-L473", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/action/application/RegisterUserService.java", "func_name": "RegisterUserService.createUserAccount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the user account.\n\n@param serviceRequest the service request\n@return the user account", "docstring_tokens": ["Creates", "the", "user", "account", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/action/application/RegisterUserService.java#L142-L182", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/rows/RowUtil.java", "func_name": "RowUtil.createRowItem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the row item.\n\n@param row the row\n@param button the button\n@param description the description", "docstring_tokens": ["Creates", "the", "row", "item", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/rows/RowUtil.java#L62-L82", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/rows/RowUtil.java", "func_name": "RowUtil.createGridLayout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the grid layout.\n\n@param panelContent the panel content\n@return the responsive row", "docstring_tokens": ["Creates", "the", "grid", "layout", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/rows/RowUtil.java#L120-L129", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/worldbank/workgenerator/WorldBankDataWorkGeneratorImpl.java", "func_name": "WorldBankDataWorkGeneratorImpl.sendCountryIndicatorWorkOrder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Send country indicator work order.\n\n@param currentSaved the current saved\n@param indicators the indicators\n@param countryIso2Code the country iso 2 code", "docstring_tokens": ["Send", "country", "indicator", "work", "order", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/worldbank/workgenerator/WorldBankDataWorkGeneratorImpl.java#L101-L113", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentStatusContainer.java", "func_name": "DocumentStatusContainer.getDocumentProposal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the document proposal.\n\n@return the document proposal", "docstring_tokens": ["Gets", "the", "document", "proposal", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentStatusContainer.java#L143-L149", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentStatusContainer.java", "func_name": "DocumentStatusContainer.getDocumentActivityContainer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the document activity container.\n\n@return the document activity container", "docstring_tokens": ["Gets", "the", "document", "activity", "container", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentStatusContainer.java#L165-L171", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentStatusContainer.java", "func_name": "DocumentStatusContainer.getDocumentDetailContainer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the document detail container.\n\n@return the document detail container", "docstring_tokens": ["Gets", "the", "document", "detail", "container", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentStatusContainer.java#L187-L193", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentStatusContainer.java", "func_name": "DocumentStatusContainer.getDocumentAttachmentContainer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the document attachment container.\n\n@return the document attachment container", "docstring_tokens": ["Gets", "the", "document", "attachment", "container", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentStatusContainer.java#L209-L215", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentStatusContainer.java", "func_name": "DocumentStatusContainer.getDocumentReferenceContainer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the document reference container.\n\n@return the document reference container", "docstring_tokens": ["Gets", "the", "document", "reference", "container", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentStatusContainer.java#L231-L237", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentStatusContainer.java", "func_name": "DocumentStatusContainer.getDocumentPersonReferenceContainer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the document person reference container.\n\n@return the document person reference container", "docstring_tokens": ["Gets", "the", "document", "person", "reference", "container", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentStatusContainer.java#L253-L259", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PartyDocumentChartDataManagerImpl.java", "func_name": "PartyDocumentChartDataManagerImpl.getViewRiksdagenPartyDocumentDailySummaryMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the view riksdagen party document daily summary map.\n\n@return the view riksdagen party document daily summary map", "docstring_tokens": ["Gets", "the", "view", "riksdagen", "party", "document", "daily", "summary", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PartyDocumentChartDataManagerImpl.java#L83-L90", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PartyDocumentChartDataManagerImpl.java", "func_name": "PartyDocumentChartDataManagerImpl.addDocumentHistoryByPartyData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the document history by party data.\n\n@param dataSeries the data series\n@param series the series\n@param map the map", "docstring_tokens": ["Adds", "the", "document", "history", "by", "party", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PartyDocumentChartDataManagerImpl.java#L124-L142", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workgenerator/RiksdagenPersonsWorkGeneratorImpl.java", "func_name": "RiksdagenPersonsWorkGeneratorImpl.readMissingPersonList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read missing person list.\n\n@return the string[]", "docstring_tokens": ["Read", "missing", "person", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workgenerator/RiksdagenPersonsWorkGeneratorImpl.java#L87-L96", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/converters/ListPropertyConverter.java", "func_name": "ListPropertyConverter.appendObjectPresentation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Append object presentation.\n\n@param stringBuilder\nthe string builder\n@param object\nthe object", "docstring_tokens": ["Append", "object", "presentation", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/converters/ListPropertyConverter.java#L131-L145", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/converters/ListPropertyConverter.java", "func_name": "ListPropertyConverter.addFallbackValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the fallback value.\n\n@param stringBuilder the string builder\n@param object the object\n@throws IllegalAccessException the illegal access exception\n@throws InvocationTargetException the invocation target exception\n@throws NoSuchMethodException the no such method exception", "docstring_tokens": ["Adds", "the", "fallback", "value", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/converters/ListPropertyConverter.java#L156-L164", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/action/user/ChangePasswordService.java", "func_name": "ChangePasswordService.reencryptVaultValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reencrypt vault values.\n\n@param serviceRequest the service request\n@param userAccount the user account", "docstring_tokens": ["Reencrypt", "vault", "values", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/action/user/ChangePasswordService.java#L149-L156", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.val.landstingvalkrets.impl/src/main/java/com/hack23/cia/model/external/val/landstingvalkrets/impl/SwedenCountyElectoralRegion.java", "func_name": "SwedenCountyElectoralRegion.getLandstingsvalkrets", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the landstingsvalkrets.\n\n@return the landstingsvalkrets", "docstring_tokens": ["Gets", "the", "landstingsvalkrets", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.val.landstingvalkrets.impl/src/main/java/com/hack23/cia/model/external/val/landstingvalkrets/impl/SwedenCountyElectoralRegion.java#L165-L171", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionFlowChartManagerImpl.java", "func_name": "DecisionFlowChartManagerImpl.addCommiteeSummary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the commitee summary.\n\n@param stringBuilder the string builder\n@param entry the entry\n@param vewRiksdagenCommittee the vew riksdagen committee", "docstring_tokens": ["Adds", "the", "commitee", "summary", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionFlowChartManagerImpl.java#L106-L121", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionFlowChartManagerImpl.java", "func_name": "DecisionFlowChartManagerImpl.addEntry", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the entry.\n\n@param stringBuilder the string builder\n@param entry the entry\n@param docEntry the doc entry", "docstring_tokens": ["Adds", "the", "entry", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionFlowChartManagerImpl.java#L130-L145", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionFlowChartManagerImpl.java", "func_name": "DecisionFlowChartManagerImpl.addDecisionDataRows", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the decision data rows.\n\n@param chart\nthe chart\n@param entry\nthe entry\n@param vewRiksdagenCommittee\nthe vew riksdagen committee", "docstring_tokens": ["Adds", "the", "decision", "data", "rows", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionFlowChartManagerImpl.java#L157-L169", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionFlowChartManagerImpl.java", "func_name": "DecisionFlowChartManagerImpl.addDocTypeDataRows", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the doc type data rows.\n\n@param chart\nthe chart\n@param entry\nthe entry\n@param vewRiksdagenCommittee\nthe vew riksdagen committee", "docstring_tokens": ["Adds", "the", "doc", "type", "data", "rows", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionFlowChartManagerImpl.java#L181-L194", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionFlowChartManagerImpl.java", "func_name": "DecisionFlowChartManagerImpl.addDocTypeDecisionDataRows", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the doc type decision data rows.\n\n@param chart\nthe chart\n@param entry\nthe entry", "docstring_tokens": ["Adds", "the", "doc", "type", "decision", "data", "rows", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionFlowChartManagerImpl.java#L225-L241", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/util/UserContextUtil.java", "func_name": "UserContextUtil.getUserIdFromSecurityContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the user id from security context.\n\n@return the user id from security context", "docstring_tokens": ["Gets", "the", "user", "id", "from", "security", "context", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/util/UserContextUtil.java#L44-L53", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/util/UserContextUtil.java", "func_name": "UserContextUtil.getRequestUrl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the request url.\n\n@param current\nthe current\n@return the request url", "docstring_tokens": ["Gets", "the", "request", "url", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/util/UserContextUtil.java#L62-L70", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/util/UserContextUtil.java", "func_name": "UserContextUtil.allowRoleInSecurityContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Allow role in security context.\n\n@param role\nthe role\n@return true, if successful", "docstring_tokens": ["Allow", "role", "in", "security", "context", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/util/UserContextUtil.java#L79-L92", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AdminChartDataManagerImpl.java", "func_name": "AdminChartDataManagerImpl.getApplicationActionEventPageDailySummaryMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the application action event page daily summary map.\n\n@return the application action event page daily summary map", "docstring_tokens": ["Gets", "the", "application", "action", "event", "page", "daily", "summary", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AdminChartDataManagerImpl.java#L77-L83", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AdminChartDataManagerImpl.java", "func_name": "AdminChartDataManagerImpl.getApplicationActionEventPageModeDailySummaryMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the application action event page mode daily summary map.\n\n@param page the page\n@return the application action event page mode daily summary map", "docstring_tokens": ["Gets", "the", "application", "action", "event", "page", "mode", "daily", "summary", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AdminChartDataManagerImpl.java#L125-L139", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AdminChartDataManagerImpl.java", "func_name": "AdminChartDataManagerImpl.getApplicationActionEventPageElementDailySummaryList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the application action event page element daily summary list.\n\n@param page the page\n@param elementId the element id\n@return the application action event page element daily summary list", "docstring_tokens": ["Gets", "the", "application", "action", "event", "page", "element", "daily", "summary", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AdminChartDataManagerImpl.java#L181-L195", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AdminChartDataManagerImpl.java", "func_name": "AdminChartDataManagerImpl.addViewApplicationActionEventPageElementDailySummaryValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the view application action event page element daily summary values.\n\n@param label the label\n@param series the series\n@param list the list\n@param dataSeries the data series\n@param simpleDateFormat the simple date format\n@param t the t", "docstring_tokens": ["Adds", "the", "view", "application", "action", "event", "page", "element", "daily", "summary", "values", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AdminChartDataManagerImpl.java#L228-L238", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workers/data/RiksdagenUpdateServiceImpl.java", "func_name": "RiksdagenUpdateServiceImpl.updatePersonAssignmentData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Update person assignment data.\n\n@param exist the exist\n@param update the update", "docstring_tokens": ["Update", "person", "assignment", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workers/data/RiksdagenUpdateServiceImpl.java#L113-L120", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workers/data/RiksdagenUpdateServiceImpl.java", "func_name": "RiksdagenUpdateServiceImpl.updateAssignmentData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Update assignment data.\n\n@param assignmentList the assignment list\n@param assignmentData the assignment data", "docstring_tokens": ["Update", "assignment", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workers/data/RiksdagenUpdateServiceImpl.java#L128-L139", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/action/common/AbstractBusinessServiceImpl.java", "func_name": "AbstractBusinessServiceImpl.inputValidation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Input validation.\n\n@param serviceRequest\nthe service request\n@return the v", "docstring_tokens": ["Input", "validation", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/action/common/AbstractBusinessServiceImpl.java#L86-L97", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/action/common/AbstractBusinessServiceImpl.java", "func_name": "AbstractBusinessServiceImpl.createBaseApplicationEventRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the base application event request.\n\n@return the creates the application event request", "docstring_tokens": ["Creates", "the", "base", "application", "event", "request", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/action/common/AbstractBusinessServiceImpl.java#L104-L112", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/action/common/AbstractBusinessServiceImpl.java", "func_name": "AbstractBusinessServiceImpl.validateRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validate request.\n\n@param request\nthe request\n@return the sets the", "docstring_tokens": ["Validate", "request", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/action/common/AbstractBusinessServiceImpl.java#L131-L134", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/action/common/AbstractBusinessServiceImpl.java", "func_name": "AbstractBusinessServiceImpl.getHumanMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the human message.\n\n@param requestConstraintViolations\nthe request constraint violations\n@return the human message", "docstring_tokens": ["Gets", "the", "human", "message", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/action/common/AbstractBusinessServiceImpl.java#L143-L147", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/action/common/AbstractBusinessServiceImpl.java", "func_name": "AbstractBusinessServiceImpl.handleInputViolations", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle input violations.\n\n@param eventRequest\nthe event request\n@param requestConstraintViolations\nthe request constraint violations\n@param response\nthe response\n@return the v", "docstring_tokens": ["Handle", "input", "violations", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/action/common/AbstractBusinessServiceImpl.java#L160-L165", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/country/pagemode/WorldIndicatorsPageModContentFactoryImpl.java", "func_name": "WorldIndicatorsPageModContentFactoryImpl.createDataIndicatorSummaryChartPanel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the data indicator summary chart panel.\n\n@param verticalLayout\nthe vertical layout\n@param indicator\nthe indicator", "docstring_tokens": ["Creates", "the", "data", "indicator", "summary", "chart", "panel", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/country/pagemode/WorldIndicatorsPageModContentFactoryImpl.java#L105-L135", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/AbstractMenuItemFactoryImpl.java", "func_name": "AbstractMenuItemFactoryImpl.initApplicationMenuBar", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inits the application menu bar.\n\n@param menuBar\nthe menu bar", "docstring_tokens": ["Inits", "the", "application", "menu", "bar", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/AbstractMenuItemFactoryImpl.java#L249-L271", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/AbstractMenuItemFactoryImpl.java", "func_name": "AbstractMenuItemFactoryImpl.createAdminMenu", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the admin menu.\n\n@param mainViewItem\nthe main view item", "docstring_tokens": ["Creates", "the", "admin", "menu", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/AbstractMenuItemFactoryImpl.java#L279-L313", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/AbstractMenuItemFactoryImpl.java", "func_name": "AbstractMenuItemFactoryImpl.createButtonLink", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the button link.\n\n@param row\nthe panel content\n@param linkText\nthe link text\n@param icon\nthe icon\n@param command\nthe command\n@param description\nthe description", "docstring_tokens": ["Creates", "the", "button", "link", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/menufactory/impl/AbstractMenuItemFactoryImpl.java#L329-L354", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.api/src/main/java/com/hack23/cia/service/api/action/user/SearchDocumentResponse.java", "func_name": "SearchDocumentResponse.setResultElement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the result element.\n\n@param resultElement\nthe new result element", "docstring_tokens": ["Sets", "the", "result", "element", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.api/src/main/java/com/hack23/cia/service/api/action/user/SearchDocumentResponse.java#L73-L77", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/rules/RulesConfiguration.java", "func_name": "RulesConfiguration.kieContainer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Kie container.\n\n@return the kie container", "docstring_tokens": ["Kie", "container", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/rules/RulesConfiguration.java#L46-L67", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.data.impl/src/main/java/com/hack23/cia/service/data/impl/AuditableAspectConfiguration.java", "func_name": "AuditableAspectConfiguration.getJavers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the javers.\n\n@param txManager the tx manager\n@return the javers", "docstring_tokens": ["Gets", "the", "javers", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.data.impl/src/main/java/com/hack23/cia/service/data/impl/AuditableAspectConfiguration.java#L70-L86", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.data.impl/src/main/java/com/hack23/cia/service/data/impl/AuditableAspectConfiguration.java", "func_name": "AuditableAspectConfiguration.javersAuditableAspect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Javers auditable aspect.\n\n@param javers the javers\n@param authorProvider the author provider\n@param commitPropertiesProvider the commit properties provider\n@return the javers auditable aspect", "docstring_tokens": ["Javers", "auditable", "aspect", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.data.impl/src/main/java/com/hack23/cia/service/data/impl/AuditableAspectConfiguration.java#L96-L100", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.data.impl/src/main/java/com/hack23/cia/service/data/impl/AuditableAspectConfiguration.java", "func_name": "AuditableAspectConfiguration.authorProvider", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Author provider.\n\n@return the author provider", "docstring_tokens": ["Author", "provider", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.data.impl/src/main/java/com/hack23/cia/service/data/impl/AuditableAspectConfiguration.java#L107-L117", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/politician/pagemode/PoliticianRoleSummaryPageModContentFactoryImpl.java", "func_name": "PoliticianRoleSummaryPageModContentFactoryImpl.createRoleSummary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the role summary.\n\n@param roleSummaryLayoutTabsheet the role summary layout tabsheet\n@param assignmentList the assignment list\n@param viewRiksdagenPolitician the view riksdagen politician", "docstring_tokens": ["Creates", "the", "role", "summary", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/politician/pagemode/PoliticianRoleSummaryPageModContentFactoryImpl.java#L107-L134", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvExcelReaderImpl.java", "func_name": "EsvExcelReaderImpl.addMinistryPerYearToMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the ministry per year to map.\n\n@param name\nthe name\n@param map\nthe map\n@param mySheet\nthe my sheet", "docstring_tokens": ["Adds", "the", "ministry", "per", "year", "to", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvExcelReaderImpl.java#L119-L136", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvExcelReaderImpl.java", "func_name": "EsvExcelReaderImpl.addGovernmentBodyAnnualSummaryToList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the government body annual summary to list.\n\n@param name\nthe name\n@param year\nthe year\n@param yearList\nthe year list\n@param row\nthe row", "docstring_tokens": ["Adds", "the", "government", "body", "annual", "summary", "to", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvExcelReaderImpl.java#L150-L161", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvExcelReaderImpl.java", "func_name": "EsvExcelReaderImpl.getInteger", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the integer.\n\n@param str\nthe str\n@return the integer", "docstring_tokens": ["Gets", "the", "integer", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvExcelReaderImpl.java#L170-L176", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvExcelReaderImpl.java", "func_name": "EsvExcelReaderImpl.addDataForYearToMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the data for year to map.\n\n@param name\nthe name\n@param map\nthe map\n@param mySheet\nthe my sheet", "docstring_tokens": ["Adds", "the", "data", "for", "year", "to", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvExcelReaderImpl.java#L209-L221", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvExcelReaderImpl.java", "func_name": "EsvExcelReaderImpl.addGovernmentBodyAnnualSummaryToMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the government body annual summary to map.\n\n@param name\nthe name\n@param map\nthe map\n@param year\nthe year\n@param row\nthe row", "docstring_tokens": ["Adds", "the", "government", "body", "annual", "summary", "to", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvExcelReaderImpl.java#L235-L245", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvExcelReaderImpl.java", "func_name": "EsvExcelReaderImpl.createGovernmentBodyAnnualSummaryFromRow", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the government body annual summary from row.\n\n@param year\nthe year\n@param row\nthe row\n@return the government body annual summary", "docstring_tokens": ["Creates", "the", "government", "body", "annual", "summary", "from", "row", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.esv/src/main/java/com/hack23/cia/service/external/esv/impl/EsvExcelReaderImpl.java#L256-L261", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.person.impl/src/main/java/com/hack23/cia/model/external/riksdagen/person/impl/PersonData.java", "func_name": "PersonData.getPersonAssignmentData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the person assignment data.\n\n@return the person assignment data", "docstring_tokens": ["Gets", "the", "person", "assignment", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.person.impl/src/main/java/com/hack23/cia/model/external/riksdagen/person/impl/PersonData.java#L443-L449", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.person.impl/src/main/java/com/hack23/cia/model/external/riksdagen/person/impl/PersonData.java", "func_name": "PersonData.getPersonDetailData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the person detail data.\n\n@return the person detail data", "docstring_tokens": ["Gets", "the", "person", "detail", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.person.impl/src/main/java/com/hack23/cia/model/external/riksdagen/person/impl/PersonData.java#L465-L471", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionChartDataManagerImpl.java", "func_name": "DecisionChartDataManagerImpl.getCommitteeDecisionTypeMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the committee decision type map.\n\n@return the committee decision type map", "docstring_tokens": ["Gets", "the", "committee", "decision", "type", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionChartDataManagerImpl.java#L74-L84", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionChartDataManagerImpl.java", "func_name": "DecisionChartDataManagerImpl.getCommitteeDecisionTypeOrgMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the committee decision type org map.\n\n@return the committee decision type org map", "docstring_tokens": ["Gets", "the", "committee", "decision", "type", "org", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionChartDataManagerImpl.java#L91-L97", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionChartDataManagerImpl.java", "func_name": "DecisionChartDataManagerImpl.addDecisionTypeByOrgData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the decision type by org data.\n\n@param simpleDateFormat the simple date format\n@param dataSeries the data series\n@param series the series\n@param map the map", "docstring_tokens": ["Adds", "the", "decision", "type", "by", "org", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DecisionChartDataManagerImpl.java#L166-L183", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/document/pagemode/DocumentAttachementsPageModContentFactoryImpl.java", "func_name": "DocumentAttachementsPageModContentFactoryImpl.displayDocumentAttachements", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Display document attachements.\n\n@param panelContent the panel content\n@param documentAttachmentList the document attachment list", "docstring_tokens": ["Display", "document", "attachements", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/document/pagemode/DocumentAttachementsPageModContentFactoryImpl.java#L119-L141", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/labelfactory/LabelFactory.java", "func_name": "LabelFactory.createHeader2Label", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new Label object.\n\n@param panel\nthe panel\n@param content\nthe content", "docstring_tokens": ["Creates", "a", "new", "Label", "object", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/labelfactory/LabelFactory.java#L46-L52", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/action/application/encryption/VaultManagerImpl.java", "func_name": "VaultManagerImpl.buildKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds the key.\n\n@param userid\nthe userid\n@param password\nthe password\n@return the key", "docstring_tokens": ["Builds", "the", "key", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/action/application/encryption/VaultManagerImpl.java#L177-L181", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/rules/AbstractComplianceCheckImpl.java", "func_name": "AbstractComplianceCheckImpl.getRuleSummary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the rule summary.\n\n@return the rule summary", "docstring_tokens": ["Gets", "the", "rule", "summary", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/rules/AbstractComplianceCheckImpl.java#L98-L106", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/rules/AbstractComplianceCheckImpl.java", "func_name": "AbstractComplianceCheckImpl.addViolation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the violation.\n\n@param status\nthe status\n@param ruleName\nthe rule name\n@param ruleGroup\nthe rule group\n@param ruleDescription\nthe rule description\n@param positive\nthe positive", "docstring_tokens": ["Adds", "the", "violation", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/rules/AbstractComplianceCheckImpl.java#L122-L127", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workgenerator/data/RiksdagenImportServiceImpl.java", "func_name": "RiksdagenImportServiceImpl.createMapFromListVote", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the map from list vote.\n\n@param list\nthe list\n@return the map", "docstring_tokens": ["Creates", "the", "map", "from", "list", "vote", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workgenerator/data/RiksdagenImportServiceImpl.java#L123-L130", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workgenerator/data/RiksdagenImportServiceImpl.java", "func_name": "RiksdagenImportServiceImpl.checkIncludeDate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check include date.\n\n@param after\nthe after\n@param documentTypeValues\nthe document type values\n@param documentElement\nthe document element\n@return true, if successful", "docstring_tokens": ["Check", "include", "date", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workgenerator/data/RiksdagenImportServiceImpl.java#L203-L217", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workgenerator/data/RiksdagenImportServiceImpl.java", "func_name": "RiksdagenImportServiceImpl.getDate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the date.\n\n@param date\nthe date\n@return the date\n@throws ParseException\nthe parse exception", "docstring_tokens": ["Gets", "the", "date", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.component.agent.impl/src/main/java/com/hack23/cia/service/component/agent/impl/riksdagen/workgenerator/data/RiksdagenImportServiceImpl.java#L228-L234", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.val.partier.impl/src/main/java/com/hack23/cia/model/external/val/partier/impl/SwedenElectionRegion.java", "func_name": "SwedenElectionRegion.getParties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the parties.\n\n@return the parties", "docstring_tokens": ["Gets", "the", "parties", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.val.partier.impl/src/main/java/com/hack23/cia/model/external/val/partier/impl/SwedenElectionRegion.java#L164-L170", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/home/pagemode/UserHomeSecuritySettingsPageModContentFactoryImpl.java", "func_name": "UserHomeSecuritySettingsPageModContentFactoryImpl.createEnableGoogleAuthButton", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the enable google auth button.\n\n@return the vertical layout", "docstring_tokens": ["Creates", "the", "enable", "google", "auth", "button", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/home/pagemode/UserHomeSecuritySettingsPageModContentFactoryImpl.java#L124-L144", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/home/pagemode/UserHomeSecuritySettingsPageModContentFactoryImpl.java", "func_name": "UserHomeSecuritySettingsPageModContentFactoryImpl.createDisableGoogleAuthButton", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the disable google auth button.\n\n@return the vertical layout", "docstring_tokens": ["Creates", "the", "disable", "google", "auth", "button", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/home/pagemode/UserHomeSecuritySettingsPageModContentFactoryImpl.java#L151-L172", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/home/pagemode/UserHomeSecuritySettingsPageModContentFactoryImpl.java", "func_name": "UserHomeSecuritySettingsPageModContentFactoryImpl.createChangePasswordButton", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the change password button.\n\n@return the vertical layout", "docstring_tokens": ["Creates", "the", "change", "password", "button", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/home/pagemode/UserHomeSecuritySettingsPageModContentFactoryImpl.java#L179-L203", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentReferenceContainer.java", "func_name": "DocumentReferenceContainer.getDocumentReferenceList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the document reference list.\n\n@return the document reference list", "docstring_tokens": ["Gets", "the", "document", "reference", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentReferenceContainer.java#L88-L94", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.riksdagen/src/main/java/com/hack23/cia/service/external/riksdagen/impl/RiksdagenDateUtil.java", "func_name": "RiksdagenDateUtil.bestGuessVoteDate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Best guess vote date.\n\n@param ballotContainer\nthe ballot container\n@return the date\n@throws ParseException\nthe parse exception", "docstring_tokens": ["Best", "guess", "vote", "date", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.riksdagen/src/main/java/com/hack23/cia/service/external/riksdagen/impl/RiksdagenDateUtil.java#L60-L78", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.riksdagen/src/main/java/com/hack23/cia/service/external/riksdagen/impl/RiksdagenDateUtil.java", "func_name": "RiksdagenDateUtil.checkSameDate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check same date.\n\n@param voteList\nthe vote list\n@return the date\n@throws ParseException\nthe parse exception", "docstring_tokens": ["Check", "same", "date", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.riksdagen/src/main/java/com/hack23/cia/service/external/riksdagen/impl/RiksdagenDateUtil.java#L89-L105", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.riksdagen/src/main/java/com/hack23/cia/service/external/riksdagen/impl/RiksdagenDateUtil.java", "func_name": "RiksdagenDateUtil.tryToFindValidVoteDate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Try to find valid vote date.\n\n@param ballotContainer\nthe ballot container\n@param voteDataList\nthe vote data list\n@return the date\n@throws ParseException\nthe parse exception", "docstring_tokens": ["Try", "to", "find", "valid", "vote", "date", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.riksdagen/src/main/java/com/hack23/cia/service/external/riksdagen/impl/RiksdagenDateUtil.java#L118-L129", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/util/WebBrowserUtil.java", "func_name": "WebBrowserUtil.getIpInformation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the ip information.\n\n@param webBrowser\nthe web browser\n@return the ip information", "docstring_tokens": ["Gets", "the", "ip", "information", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/util/WebBrowserUtil.java#L53-L65", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/util/WebBrowserUtil.java", "func_name": "WebBrowserUtil.getOperatingSystem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the operating system.\n\n@param webBrowser\nthe web browser\n@return the operating system", "docstring_tokens": ["Gets", "the", "operating", "system", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/util/WebBrowserUtil.java#L75-L80", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.utskottsforslag.impl/src/main/java/com/hack23/cia/model/external/riksdagen/utskottsforslag/impl/CommitteeProposalContainer.java", "func_name": "CommitteeProposalContainer.getCommitteeProposalList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the committee proposal list.\n\n@return the committee proposal list", "docstring_tokens": ["Gets", "the", "committee", "proposal", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.utskottsforslag.impl/src/main/java/com/hack23/cia/model/external/riksdagen/utskottsforslag/impl/CommitteeProposalContainer.java#L88-L94", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.val.riksdagsvalkrets.impl/src/main/java/com/hack23/cia/model/external/val/riksdagsvalkrets/impl/SwedenParliamentElectoralRegionContainer.java", "func_name": "SwedenParliamentElectoralRegionContainer.getParliamentElectoralRegions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the parliament electoral regions.\n\n@return the parliament electoral regions", "docstring_tokens": ["Gets", "the", "parliament", "electoral", "regions", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.val.riksdagsvalkrets.impl/src/main/java/com/hack23/cia/model/external/val/riksdagsvalkrets/impl/SwedenParliamentElectoralRegionContainer.java#L86-L92", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/OrgDocumentChartDataManagerImpl.java", "func_name": "OrgDocumentChartDataManagerImpl.getViewRiksdagenOrgDocumentDailySummaryMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the view riksdagen org document daily summary map.\n\n@return the view riksdagen org document daily summary map", "docstring_tokens": ["Gets", "the", "view", "riksdagen", "org", "document", "daily", "summary", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/OrgDocumentChartDataManagerImpl.java#L87-L96", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/OrgDocumentChartDataManagerImpl.java", "func_name": "OrgDocumentChartDataManagerImpl.addDocumentHistoryByOrgData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the document history by org data.\n\n@param dataSeries\nthe data series\n@param series\nthe series\n@param itemList\nthe item list", "docstring_tokens": ["Adds", "the", "document", "history", "by", "org", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/OrgDocumentChartDataManagerImpl.java#L130-L141", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/OrgDocumentChartDataManagerImpl.java", "func_name": "OrgDocumentChartDataManagerImpl.addNewDataSerie", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the new data serie.\n\n@param dataSeries the data series\n@param series the series\n@param simpleDateFormat the simple date format\n@param parseIncomingDateFormat the parse incoming date format\n@param entry the entry", "docstring_tokens": ["Adds", "the", "new", "data", "serie", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/OrgDocumentChartDataManagerImpl.java#L152-L164", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/OrgDocumentChartDataManagerImpl.java", "func_name": "OrgDocumentChartDataManagerImpl.addDataItem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the data item.\n\n@param dataSeries the data series\n@param simpleDateFormat the simple date format\n@param parseIncomingDateFormat the parse incoming date format\n@param item the item", "docstring_tokens": ["Adds", "the", "data", "item", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/OrgDocumentChartDataManagerImpl.java#L174-L187", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/action/admin/ManageUserAccountService.java", "func_name": "ManageUserAccountService.initUserCommandMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inits the user command map.", "docstring_tokens": ["Inits", "the", "user", "command", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/action/admin/ManageUserAccountService.java#L71-L91", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/action/admin/ManageUserAccountService.java", "func_name": "ManageUserAccountService.performOperation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Perform operation.\n\n@param serviceRequest\nthe service request\n@param eventRequest\nthe event request\n@return the manage user account response", "docstring_tokens": ["Perform", "operation", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/action/admin/ManageUserAccountService.java#L119-L137", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.votering.impl/src/main/java/com/hack23/cia/model/external/riksdagen/votering/impl/BallotDocumentData.java", "func_name": "BallotDocumentData.getVoteDataList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the vote data list.\n\n@return the vote data list", "docstring_tokens": ["Gets", "the", "vote", "data", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.votering.impl/src/main/java/com/hack23/cia/model/external/riksdagen/votering/impl/BallotDocumentData.java#L88-L94", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.person.impl/src/main/java/com/hack23/cia/model/external/riksdagen/person/impl/PersonAssignmentData.java", "func_name": "PersonAssignmentData.getAssignmentList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the assignment list.\n\n@return the assignment list", "docstring_tokens": ["Gets", "the", "assignment", "list", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.person.impl/src/main/java/com/hack23/cia/model/external/riksdagen/person/impl/PersonAssignmentData.java#L88-L94", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/gridfactory/impl/GridFactoryImpl.java", "func_name": "GridFactoryImpl.configureColumnOrdersAndHiddenFields", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure column orders and hidden fields.\n\n@param columnOrder\nthe column order\n@param hideColumns\nthe hide columns\n@param grid\nthe grid", "docstring_tokens": ["Configure", "column", "orders", "and", "hidden", "fields", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/gridfactory/impl/GridFactoryImpl.java#L130-L141", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/gridfactory/impl/GridFactoryImpl.java", "func_name": "GridFactoryImpl.configureListeners", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure listeners.\n\n@param listener\nthe listener\n@param grid\nthe grid", "docstring_tokens": ["Configure", "listeners", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/gridfactory/impl/GridFactoryImpl.java#L151-L156", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/gridfactory/impl/GridFactoryImpl.java", "func_name": "GridFactoryImpl.createGridCellFilter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the grid cell filter.\n\n@param columnOrder\nthe column order\n@param grid\nthe grid\n@param dataType\nthe data type", "docstring_tokens": ["Creates", "the", "grid", "cell", "filter", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/gridfactory/impl/GridFactoryImpl.java#L168-L177", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/gridfactory/impl/GridFactoryImpl.java", "func_name": "GridFactoryImpl.setColumnConverters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the column converters.\n\n@param collectionPropertyConverter\nthe collection property converter\n@param grid\nthe grid", "docstring_tokens": ["Sets", "the", "column", "converters", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/gridfactory/impl/GridFactoryImpl.java#L187-L197", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DocumentChartDataManagerImpl.java", "func_name": "DocumentChartDataManagerImpl.getDocumentTypeMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the document type map.\n\n@return the document type map", "docstring_tokens": ["Gets", "the", "document", "type", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DocumentChartDataManagerImpl.java#L76-L84", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DocumentChartDataManagerImpl.java", "func_name": "DocumentChartDataManagerImpl.addDataSeries", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the data series.\n\n@param simpleDateFormat the simple date format\n@param parseInputDateFormat the parse input date format\n@param dataSeries the data series\n@param series the series\n@param entry the entry", "docstring_tokens": ["Adds", "the", "data", "series", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/DocumentChartDataManagerImpl.java#L116-L133", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.val.partier.impl/src/main/java/com/hack23/cia/model/external/val/partier/impl/SwedenElectionTypeContainerElement.java", "func_name": "SwedenElectionTypeContainerElement.getElectionTypes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the election types.\n\n@return the election types", "docstring_tokens": ["Gets", "the", "election", "types", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.val.partier.impl/src/main/java/com/hack23/cia/model/external/val/partier/impl/SwedenElectionTypeContainerElement.java#L86-L92", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.utskottsforslag.impl/src/main/java/com/hack23/cia/model/external/riksdagen/utskottsforslag/impl/CommitteeProposalData.java", "func_name": "CommitteeProposalData.getBallotSummaryItem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the ballot summary item.\n\n@return the ballot summary item", "docstring_tokens": ["Gets", "the", "ballot", "summary", "item", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.utskottsforslag.impl/src/main/java/com/hack23/cia/model/external/riksdagen/utskottsforslag/impl/CommitteeProposalData.java#L550-L555", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.worldbank.countries.impl/src/main/java/com/hack23/cia/model/external/worldbank/countries/impl/CountryElement.java", "func_name": "CountryElement.getAdminregion", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the adminregion.\n\n@return the adminregion", "docstring_tokens": ["Gets", "the", "adminregion", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.worldbank.countries.impl/src/main/java/com/hack23/cia/model/external/worldbank/countries/impl/CountryElement.java#L195-L202", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.worldbank.countries.impl/src/main/java/com/hack23/cia/model/external/worldbank/countries/impl/CountryElement.java", "func_name": "CountryElement.getIncomeLevel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the income level.\n\n@return the income level", "docstring_tokens": ["Gets", "the", "income", "level", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.worldbank.countries.impl/src/main/java/com/hack23/cia/model/external/worldbank/countries/impl/CountryElement.java#L218-L225", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.worldbank.countries.impl/src/main/java/com/hack23/cia/model/external/worldbank/countries/impl/CountryElement.java", "func_name": "CountryElement.getLendingType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the lending type.\n\n@return the lending type", "docstring_tokens": ["Gets", "the", "lending", "type", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.worldbank.countries.impl/src/main/java/com/hack23/cia/model/external/worldbank/countries/impl/CountryElement.java#L241-L248", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.votering.impl/src/main/java/com/hack23/cia/model/external/riksdagen/votering/impl/BallotContainer.java", "func_name": "BallotContainer.getBallotDocumentData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the ballot document data.\n\n@return the ballot document data", "docstring_tokens": ["Gets", "the", "ballot", "document", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.votering.impl/src/main/java/com/hack23/cia/model/external/riksdagen/votering/impl/BallotContainer.java#L90-L96", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.votering.impl/src/main/java/com/hack23/cia/model/external/riksdagen/votering/impl/BallotContainer.java", "func_name": "BallotContainer.getBallotDocumentElement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the ballot document element.\n\n@return the ballot document element", "docstring_tokens": ["Gets", "the", "ballot", "document", "element", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.votering.impl/src/main/java/com/hack23/cia/model/external/riksdagen/votering/impl/BallotContainer.java#L112-L118", "partition": "valid"} +{"repo": "Hack23/cia", "path": "encrypt.properties/src/main/java/com/hack23/cia/encryption/properties/EncryptProperty.java", "func_name": "EncryptProperty.main", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The main method.\n\n@param args the arguments", "docstring_tokens": ["The", "main", "method", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/encrypt.properties/src/main/java/com/hack23/cia/encryption/properties/EncryptProperty.java#L68-L76", "partition": "valid"} +{"repo": "Hack23/cia", "path": "encrypt.properties/src/main/java/com/hack23/cia/encryption/properties/EncryptProperty.java", "func_name": "EncryptProperty.encryptValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encrypt value.\n\n@param symmetricKey\nthe symmetric key\n@param value\nthe value\n@return the string", "docstring_tokens": ["Encrypt", "value", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/encrypt.properties/src/main/java/com/hack23/cia/encryption/properties/EncryptProperty.java#L87-L90", "partition": "valid"} +{"repo": "Hack23/cia", "path": "encrypt.properties/src/main/java/com/hack23/cia/encryption/properties/EncryptProperty.java", "func_name": "EncryptProperty.getEncryptor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the encryptor.\n\n@param symmetricKey\nthe symmetric key\n@return the encryptor", "docstring_tokens": ["Gets", "the", "encryptor", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/encrypt.properties/src/main/java/com/hack23/cia/encryption/properties/EncryptProperty.java#L99-L106", "partition": "valid"} +{"repo": "Hack23/cia", "path": "encrypt.properties/src/main/java/com/hack23/cia/encryption/properties/EncryptProperty.java", "func_name": "EncryptProperty.decryptValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Decrypt value.\n\n@param symmetricKey\nthe symmetric key\n@param value\nthe value\n@return the string", "docstring_tokens": ["Decrypt", "value", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/encrypt.properties/src/main/java/com/hack23/cia/encryption/properties/EncryptProperty.java#L118-L121", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.val.landstingvalkrets.impl/src/main/java/com/hack23/cia/model/external/val/landstingvalkrets/impl/SwedenCountyElectoralRegionContainer.java", "func_name": "SwedenCountyElectoralRegionContainer.getCountyElectoralRegions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the county electoral regions.\n\n@return the county electoral regions", "docstring_tokens": ["Gets", "the", "county", "electoral", "regions", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.val.landstingvalkrets.impl/src/main/java/com/hack23/cia/model/external/val/landstingvalkrets/impl/SwedenCountyElectoralRegionContainer.java#L86-L92", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/task/AbstractJob.java", "func_name": "AbstractJob.getJobContextHolder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the job context holder.\n\n@param jobContext\nthe job context\n@return the job context holder", "docstring_tokens": ["Gets", "the", "job", "context", "holder", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/task/AbstractJob.java#L53-L65", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.internal.application.user.impl/src/main/java/com/hack23/cia/model/internal/application/system/impl/Agency.java", "func_name": "Agency.getPortals", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the value of the portals property.\n\n

\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a set method for the portals property.\n\n

\nFor example, to add a new item, do as follows:\n

\ngetPortals().add(newItem);\n
\n\n\n

\nObjects of the following type(s) are allowed in the list\n{@link Portal }", "docstring_tokens": ["Gets", "the", "value", "of", "the", "portals", "property", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.internal.application.user.impl/src/main/java/com/hack23/cia/model/internal/application/system/impl/Agency.java#L211-L220", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/home/pagemode/AbstractUserHomePageModContentFactoryImpl.java", "func_name": "AbstractUserHomePageModContentFactoryImpl.getActiveUserAccount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the active user account.\n\n@return the active user account", "docstring_tokens": ["Gets", "the", "active", "user", "account", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/home/pagemode/AbstractUserHomePageModContentFactoryImpl.java#L50-L55", "partition": "valid"} +{"repo": "Hack23/cia", "path": "model.external.riksdagen.dokumentlista.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentlista/impl/DocumentContainerElement.java", "func_name": "DocumentContainerElement.getDokument", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the dokument.\n\n@return the dokument", "docstring_tokens": ["Gets", "the", "dokument", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/model.external.riksdagen.dokumentlista.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentlista/impl/DocumentContainerElement.java#L136-L142", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/AbstractView.java", "func_name": "AbstractView.createBasicLayoutWithPanelAndFooter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the basic layout with panel and footer.\n\n@param panelName\nthe panel name", "docstring_tokens": ["Creates", "the", "basic", "layout", "with", "panel", "and", "footer", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/AbstractView.java#L160-L203", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/AbstractView.java", "func_name": "AbstractView.createTopHeaderActionsForUserContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the top header actions for user context.", "docstring_tokens": ["Creates", "the", "top", "header", "actions", "for", "user", "context", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/AbstractView.java#L208-L232", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/AbstractView.java", "func_name": "AbstractView.createFullSizeVerticalLayout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the full size vertical layout.\n\n@param margin\nthe margin\n@param spacing\nthe spacing\n@return the vertical layout", "docstring_tokens": ["Creates", "the", "full", "size", "vertical", "layout", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/AbstractView.java#L243-L250", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/AbstractView.java", "func_name": "AbstractView.addLogoToHeader", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the logo to header.\n\n@param topHeader\nthe top header", "docstring_tokens": ["Adds", "the", "logo", "to", "header", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/AbstractView.java#L267-L275", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/AbstractView.java", "func_name": "AbstractView.createTopTitleHeader", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the top title header.\n\n@param topHeader\nthe top header", "docstring_tokens": ["Creates", "the", "top", "title", "header", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/AbstractView.java#L283-L300", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/email/EmailServiceImpl.java", "func_name": "EmailServiceImpl.getMailSender", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the mail sender.\n\n@return the mail sender", "docstring_tokens": ["Gets", "the", "mail", "sender", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/email/EmailServiceImpl.java#L200-L224", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/email/EmailServiceImpl.java", "func_name": "EmailServiceImpl.getSmtpPort", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the smtp port.\n\n@param smtpPort the smtp port\n@return the smtp port", "docstring_tokens": ["Gets", "the", "smtp", "port", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/email/EmailServiceImpl.java#L233-L239", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/ConfigurationManagerImpl.java", "func_name": "ConfigurationManagerImpl.findLanguage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find language.\n\n@param locale\nthe locale\n@return the language data", "docstring_tokens": ["Find", "language", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/ConfigurationManagerImpl.java#L89-L96", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.impl/src/main/java/com/hack23/cia/service/impl/ConfigurationManagerImpl.java", "func_name": "ConfigurationManagerImpl.getSupportedLocalesLanguageData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the supported locales language data.\n\n@return the supported locales language data", "docstring_tokens": ["Gets", "the", "supported", "locales", "language", "data", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.impl/src/main/java/com/hack23/cia/service/impl/ConfigurationManagerImpl.java#L132-L146", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/ballot/pagemode/BallotChartsPageModContentFactoryImpl.java", "func_name": "BallotChartsPageModContentFactoryImpl.createIssueConcernMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the issue concern map.\n\n@param partyBallotList\nthe party ballot list\n@return the map", "docstring_tokens": ["Creates", "the", "issue", "concern", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/user/ballot/pagemode/BallotChartsPageModContentFactoryImpl.java#L145-L157", "partition": "valid"} +{"repo": "Hack23/cia", "path": "service.external.common/src/main/java/com/hack23/cia/service/external/common/impl/NameSpaceUtil.java", "func_name": "NameSpaceUtil.setNameSpaceOnXmlStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the name space on xml stream.\n\n@param in the in\n@param nameSpace the name space\n@return the source\n@throws JDOMException the JDOM exception\n@throws IOException Signals that an I/O exception has occurred.", "docstring_tokens": ["Sets", "the", "name", "space", "on", "xml", "stream", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/service.external.common/src/main/java/com/hack23/cia/service/external/common/impl/NameSpaceUtil.java#L54-L60", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractChartDataManagerImpl.java", "func_name": "AbstractChartDataManagerImpl.addChart", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the chart.\n\n@param content\nthe content\n@param caption\nthe caption\n@param chart\nthe chart\n@param fullPage\nthe full page", "docstring_tokens": ["Adds", "the", "chart", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractChartDataManagerImpl.java#L117-L148", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractChartDataManagerImpl.java", "func_name": "AbstractChartDataManagerImpl.getChartWindowHeight", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the chart window height.\n\n@param fullPage the full page\n@return the chart window height", "docstring_tokens": ["Gets", "the", "chart", "window", "height", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractChartDataManagerImpl.java#L165-L171", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractChartDataManagerImpl.java", "func_name": "AbstractChartDataManagerImpl.getPartyName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the party name.\n\n@param party\nthe party\n@return the party name", "docstring_tokens": ["Gets", "the", "party", "name", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/AbstractChartDataManagerImpl.java#L180-L194", "partition": "valid"} +{"repo": "Hack23/cia", "path": "citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PersonDocumentChartDataManagerImpl.java", "func_name": "PersonDocumentChartDataManagerImpl.getViewRiksdagenPoliticianDocumentDailySummaryMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the view riksdagen politician document daily summary map.\n\n@return the view riksdagen politician document daily summary map", "docstring_tokens": ["Gets", "the", "view", "riksdagen", "politician", "document", "daily", "summary", "map", "."], "sha": "223312ca0eec74888a57a060de5b164f95a7785f", "url": "https://github.com/Hack23/cia/blob/223312ca0eec74888a57a060de5b164f95a7785f/citizen-intelligence-agency/src/main/java/com/hack23/cia/web/impl/ui/application/views/common/chartfactory/impl/PersonDocumentChartDataManagerImpl.java#L83-L89", "partition": "valid"} +{"repo": "akhikhl/gretty", "path": "libs/gretty-runner-jetty8/src/main/groovy/org/akhikhl/gretty/SSODigestAuthenticator.java", "func_name": "SSODigestAuthenticator.login", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "\"login\" is copied without changes from FormAuthenticator", "docstring_tokens": ["login", "is", "copied", "without", "changes", "from", "FormAuthenticator"], "sha": "e5c130569525a97d13fb9207373c2162237e18ae", "url": "https://github.com/akhikhl/gretty/blob/e5c130569525a97d13fb9207373c2162237e18ae/libs/gretty-runner-jetty8/src/main/groovy/org/akhikhl/gretty/SSODigestAuthenticator.java#L41-L53", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java", "func_name": "AbstractEmulatorMojo.isWindows", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Are we running on a flavour of Windows.\n\n@return", "docstring_tokens": ["Are", "we", "running", "on", "a", "flavour", "of", "Windows", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java#L196-L209", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java", "func_name": "AbstractEmulatorMojo.startAndroidEmulator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Start the Android Emulator with the specified options.\n\n@throws org.apache.maven.plugin.MojoExecutionException\n\n@see #emulatorAvd\n@see #emulatorWait\n@see #emulatorOptions", "docstring_tokens": ["Start", "the", "Android", "Emulator", "with", "the", "specified", "options", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java#L220-L279", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java", "func_name": "AbstractEmulatorMojo.unlockEmulator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unlocks the emulator.\n@param androidDebugBridge", "docstring_tokens": ["Unlocks", "the", "emulator", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java#L285-L311", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java", "func_name": "AbstractEmulatorMojo.writeEmulatorStartScriptWindows", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the script to start the emulator in the background for windows based environments.\n\n@return absolute path name of start script\n@throws IOException\n@throws MojoExecutionException", "docstring_tokens": ["Writes", "the", "script", "to", "start", "the", "emulator", "in", "the", "background", "for", "windows", "based", "environments", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java#L504-L544", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java", "func_name": "AbstractEmulatorMojo.writeEmulatorStartScriptUnix", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the script to start the emulator in the background for unix based environments.\n\n@return absolute path name of start script\n@throws IOException\n@throws MojoExecutionException", "docstring_tokens": ["Writes", "the", "script", "to", "start", "the", "emulator", "in", "the", "background", "for", "unix", "based", "environments", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java#L553-L591", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java", "func_name": "AbstractEmulatorMojo.stopAndroidEmulator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stop the running Android Emulator.\n\n@throws org.apache.maven.plugin.MojoExecutionException", "docstring_tokens": ["Stop", "the", "running", "Android", "Emulator", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java#L599-L625", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java", "func_name": "AbstractEmulatorMojo.stopEmulator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method contains the code required to stop an emulator\n\n@param device The device to stop", "docstring_tokens": ["This", "method", "contains", "the", "code", "required", "to", "stop", "an", "emulator"], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java#L661-L683", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java", "func_name": "AbstractEmulatorMojo.sendEmulatorCommand", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sends a user command to the running emulator via its telnet interface.\n\n@param port The emulator's telnet port.\n@param command The command to execute on the emulator's telnet interface.\n@return Whether sending the command succeeded.", "docstring_tokens": ["Sends", "a", "user", "command", "to", "the", "running", "emulator", "via", "its", "telnet", "interface", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java#L712-L770", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java", "func_name": "AbstractEmulatorMojo.assembleStartCommandLine", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Assemble the command line for starting the emulator based on the parameters supplied in the pom file and on the\ncommand line. It should not be that painful to do work with command line and pom supplied values but evidently\nit is.\n\n@return\n@throws MojoExecutionException\n@see com.simpligility.maven.plugins.android.configuration.Emulator", "docstring_tokens": ["Assemble", "the", "command", "line", "for", "starting", "the", "emulator", "based", "on", "the", "parameters", "supplied", "in", "the", "pom", "file", "and", "on", "the", "command", "line", ".", "It", "should", "not", "be", "that", "painful", "to", "do", "work", "with", "command", "line", "and", "pom", "supplied", "values", "but", "evidently", "it", "is", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java#L781-L800", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java", "func_name": "AbstractEmulatorMojo.determineExecutable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get executable value for emulator from command line options or default to \"emulator\".\n\n@return", "docstring_tokens": ["Get", "executable", "value", "for", "emulator", "from", "command", "line", "options", "or", "default", "to", "emulator", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java#L869-L881", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java", "func_name": "AbstractEmulatorMojo.determineWait", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get wait value for emulator from command line option.\n\n@return if available return command line value otherwise return default value (5000).", "docstring_tokens": ["Get", "wait", "value", "for", "emulator", "from", "command", "line", "option", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java#L888-L900", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java", "func_name": "AbstractEmulatorMojo.determineOptions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get options value for emulator from command line option.\n\n@return if available return command line value otherwise return default value (\"\").", "docstring_tokens": ["Get", "options", "value", "for", "emulator", "from", "command", "line", "option", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java#L907-L919", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java", "func_name": "AbstractEmulatorMojo.determineAvd", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get avd value for emulator from command line option.\n\n@return if available return command line value otherwise return default value (\"Default\").", "docstring_tokens": ["Get", "avd", "value", "for", "emulator", "from", "command", "line", "option", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java#L926-L938", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java", "func_name": "AbstractEmulatorMojo.determineEmulatorLocation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get location value for emulator from command line option.\n\n@return if available return command line value otherwise return default value (\"SdkTools\").", "docstring_tokens": ["Get", "location", "value", "for", "emulator", "from", "command", "line", "option", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractEmulatorMojo.java#L945-L957", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/common/JarHelper.java", "func_name": "JarHelper.unjar", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unjars the specified jar file into the the specified directory\n\n@param jarFile\n@param outputDirectory\n@param unjarListener\n@throws IOException", "docstring_tokens": ["Unjars", "the", "specified", "jar", "file", "into", "the", "the", "specified", "directory"], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/common/JarHelper.java#L39-L79", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/standalonemojos/PushMojo.java", "func_name": "PushMojo.calculateSourceDestinationMapping", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates a map which contains all files to be pushed to the device or\nemulator. The source filename works as the key while the value is the\ndestination.\n\n@return a map with file source -> destination pairs\n@throws MojoExecutionException", "docstring_tokens": ["Calculates", "a", "map", "which", "contains", "all", "files", "to", "be", "pushed", "to", "the", "device", "or", "emulator", ".", "The", "source", "filename", "works", "as", "the", "key", "while", "the", "value", "is", "the", "destination", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/standalonemojos/PushMojo.java#L165-L209", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/common/DependencyCollector.java", "func_name": "DependencyCollector.visit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Visits all nodes from the given node and collects dependencies.\n\n@param node DependencyNode from which to search.\n@param collecting Whether we are currently collecting artifacts.", "docstring_tokens": ["Visits", "all", "nodes", "from", "the", "given", "node", "and", "collects", "dependencies", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/common/DependencyCollector.java#L36-L53", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/common/ArtifactResolverHelper.java", "func_name": "ArtifactResolverHelper.resolveArtifact", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resolves an artifact to a particular repository.\n\n@param artifact Artifact to resolve\n@return fully resolved artifact.", "docstring_tokens": ["Resolves", "an", "artifact", "to", "a", "particular", "repository", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/common/ArtifactResolverHelper.java#L148-L175", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java", "func_name": "AbstractAndroidMojo.waitUntilConnected", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Run a wait loop until adb is connected or trials run out. This method seems to work more reliably then using a\nlistener.", "docstring_tokens": ["Run", "a", "wait", "loop", "until", "adb", "is", "connected", "or", "trials", "run", "out", ".", "This", "method", "seems", "to", "work", "more", "reliably", "then", "using", "a", "listener", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java#L640-L660", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java", "func_name": "AbstractAndroidMojo.waitForInitialDeviceList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wait for the Android Debug Bridge to return an initial device list.", "docstring_tokens": ["Wait", "for", "the", "Android", "Debug", "Bridge", "to", "return", "an", "initial", "device", "list", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java#L665-L688", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java", "func_name": "AbstractAndroidMojo.deployApk", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deploys an apk file to a connected emulator or usb device.\n\n@param apkFile the file to deploy\n@throws MojoExecutionException If there is a problem deploying the apk file.", "docstring_tokens": ["Deploys", "an", "apk", "file", "to", "a", "connected", "emulator", "or", "usb", "device", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java#L696-L720", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java", "func_name": "AbstractAndroidMojo.deployBuiltApk", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deploy the apk built with the current projects to all attached devices and emulators.\nSkips other projects in a multi-module build without terminating.\n\n@throws MojoExecutionException\n@throws MojoFailureException", "docstring_tokens": ["Deploy", "the", "apk", "built", "with", "the", "current", "projects", "to", "all", "attached", "devices", "and", "emulators", ".", "Skips", "other", "projects", "in", "a", "multi", "-", "module", "build", "without", "terminating", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java#L753-L764", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java", "func_name": "AbstractAndroidMojo.undeployApk", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Undeploys an apk from a connected emulator or usb device. Also deletes the application's data and cache\ndirectories on the device.\n\n@param apkFile the file to undeploy\n@return true if successfully undeployed, false otherwise.", "docstring_tokens": ["Undeploys", "an", "apk", "from", "a", "connected", "emulator", "or", "usb", "device", ".", "Also", "deletes", "the", "application", "s", "data", "and", "cache", "directories", "on", "the", "device", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java#L915-L920", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java", "func_name": "AbstractAndroidMojo.undeployApk", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Undeploys an apk, specified by package name, from a connected emulator\nor usb device. Also deletes the application's data and cache\ndirectories on the device.\n\n@param packageName the package name to undeploy.\n@return true if successfully undeployed, false otherwise.", "docstring_tokens": ["Undeploys", "an", "apk", "specified", "by", "package", "name", "from", "a", "connected", "emulator", "or", "usb", "device", ".", "Also", "deletes", "the", "application", "s", "data", "and", "cache", "directories", "on", "the", "device", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java#L930-L957", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java", "func_name": "AbstractAndroidMojo.extractPackageNameFromApk", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extracts the package name from an apk file.\n\n@param apkFile apk file to extract package name from.\n@return the package name from inside the apk file.", "docstring_tokens": ["Extracts", "the", "package", "name", "from", "an", "apk", "file", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java#L965-L998", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java", "func_name": "AbstractAndroidMojo.extractPackageNameFromAndroidArtifact", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Provides package name for android artifact.\n\n@param artifact android artifact which package have to be extracted\n@return package name\n@throws MojoExecutionException if there is no AndroidManifest.xml for provided artifact\nor appears error while parsing in {@link #extractPackageNameFromAndroidManifest(File)}\n\n@see #extractPackageNameFromAndroidManifest(File)", "docstring_tokens": ["Provides", "package", "name", "for", "android", "artifact", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java#L1030-L1040", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java", "func_name": "AbstractAndroidMojo.extractInstrumentationRunnerFromAndroidManifest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Attempts to find the instrumentation test runner from inside the AndroidManifest.xml file.\n\n@param manifestFile the AndroidManifest.xml file to inspect.\n@return the instrumentation test runner declared in AndroidManifest.xml, or {@code null} if it is not declared.\n@throws MojoExecutionException", "docstring_tokens": ["Attempts", "to", "find", "the", "instrumentation", "test", "runner", "from", "inside", "the", "AndroidManifest", ".", "xml", "file", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AbstractAndroidMojo.java#L1062-L1088", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/ResourceClassGenerator.java", "func_name": "ResourceClassGenerator.generateLibraryRs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates R java files those libraries that do not already have their R java in the compile classpath.\n\nIf we are generating an integration test APK and the APK under test has a reference to a library for which\nit generated an R java, then we don't want to generate that R java again for the test APK because otherwise\nProguard will fail when building the test APK because of duplication of the R java in the compile classpath.\n\nSee {@link com.android.builder.core.AndroidBuilder#processResources(com.android.builder.internal.aapt.Aapt,\ncom.android.builder.internal.aapt.AaptPackageConfig.Builder, boolean)}\n\n@param libraries AAR libraries for which to generate R java files.", "docstring_tokens": ["Generates", "R", "java", "files", "those", "libraries", "that", "do", "not", "already", "have", "their", "R", "java", "in", "the", "compile", "classpath", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/ResourceClassGenerator.java#L53-L92", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/standalonemojos/DevicesMojo.java", "func_name": "DevicesMojo.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Display a list of attached devices.\n\n@throws MojoExecutionException\n@throws MojoFailureException", "docstring_tokens": ["Display", "a", "list", "of", "attached", "devices", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/standalonemojos/DevicesMojo.java#L31-L40", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase09package/ApkMojo.java", "func_name": "ApkMojo.copyStreamWithoutClosing", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copies an input stream into an output stream but does not close the streams.\n\n@param in the input stream\n@param out the output stream\n@throws IOException if the stream cannot be copied", "docstring_tokens": ["Copies", "an", "input", "stream", "into", "an", "output", "stream", "but", "does", "not", "close", "the", "streams", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase09package/ApkMojo.java#L1068-L1077", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase09package/ApkMojo.java", "func_name": "ApkMojo.copyGdbServer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copy the Ndk GdbServer into the architecture output folder if the folder exists but the GdbServer doesn't.", "docstring_tokens": ["Copy", "the", "Ndk", "GdbServer", "into", "the", "architecture", "output", "folder", "if", "the", "folder", "exists", "but", "the", "GdbServer", "doesn", "t", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase09package/ApkMojo.java#L1176-L1204", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase08preparepackage/D8Mojo.java", "func_name": "D8Mojo.getJavaExecutable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Figure out the full path to the current java executable.\n\n@return the full path to the current java executable.", "docstring_tokens": ["Figure", "out", "the", "full", "path", "to", "the", "current", "java", "executable", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase08preparepackage/D8Mojo.java#L459-L464", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java", "func_name": "AndroidSdk.getProguardJarPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the path for proguard.jar\n@return", "docstring_tokens": ["Get", "the", "path", "for", "proguard", ".", "jar"], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java#L209-L218", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java", "func_name": "AndroidSdk.getShrinkedAndroidJarPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the path for shrinkedAndroid.jar\n@return", "docstring_tokens": ["Get", "the", "path", "for", "shrinkedAndroid", ".", "jar"], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java#L224-L232", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java", "func_name": "AndroidSdk.getBuildToolsLibDirectoryPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the path for build-tools lib directory\n@return", "docstring_tokens": ["Get", "the", "path", "for", "build", "-", "tools", "lib", "directory"], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java#L238-L246", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java", "func_name": "AndroidSdk.getMainDexClassesRulesPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the path for mainDexClasses.rules\n@return", "docstring_tokens": ["Get", "the", "path", "for", "mainDexClasses", ".", "rules"], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java#L252-L261", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java", "func_name": "AndroidSdk.getAndroidPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the android tool path.\n\n@return", "docstring_tokens": ["Get", "the", "android", "tool", "path", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java#L329-L335", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java", "func_name": "AndroidSdk.getAndroidJar", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resolves the android.jar from this SDK.\n\n@return a File pointing to the android.jar file.\n@throws org.apache.maven.plugin.MojoExecutionException\nif the file can not be resolved.", "docstring_tokens": ["Resolves", "the", "android", ".", "jar", "from", "this", "SDK", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java#L427-L435", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java", "func_name": "AndroidSdk.getPlatform", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method returns the previously specified version. However, if none have been specified it returns the\n\"latest\" version.", "docstring_tokens": ["This", "method", "returns", "the", "previously", "specified", "version", ".", "However", "if", "none", "have", "been", "specified", "it", "returns", "the", "latest", "version", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java#L457-L488", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java", "func_name": "AndroidSdk.loadSDKToolsMajorVersion", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads the SDK Tools version", "docstring_tokens": ["Loads", "the", "SDK", "Tools", "version"], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AndroidSdk.java#L493-L530", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java", "func_name": "GenerateSourcesMojo.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the sources.\n\n@throws MojoExecutionException if it fails.\n@throws MojoFailureException if it fails.", "docstring_tokens": ["Generates", "the", "sources", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java#L192-L267", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java", "func_name": "GenerateSourcesMojo.copyManifest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copy the AndroidManifest.xml from androidManifestFile to destinationManifestFile\n\n@throws MojoExecutionException", "docstring_tokens": ["Copy", "the", "AndroidManifest", ".", "xml", "from", "androidManifestFile", "to", "destinationManifestFile"], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java#L327-L374", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java", "func_name": "GenerateSourcesMojo.extractSourceDependencies", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extract the source dependencies.\n\n@throws MojoExecutionException if it fails.", "docstring_tokens": ["Extract", "the", "source", "dependencies", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java#L381-L402", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java", "func_name": "GenerateSourcesMojo.extractApklib", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extracts ApkLib and adds the assets and apklib sources and resources to the build.", "docstring_tokens": ["Extracts", "ApkLib", "and", "adds", "the", "assets", "and", "apklib", "sources", "and", "resources", "to", "the", "build", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java#L476-L490", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java", "func_name": "GenerateSourcesMojo.extractAarLib", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extracts AarLib and if this is an APK build then adds the assets and resources to the build.", "docstring_tokens": ["Extracts", "AarLib", "and", "if", "this", "is", "an", "APK", "build", "then", "adds", "the", "assets", "and", "resources", "to", "the", "build", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java#L495-L515", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java", "func_name": "GenerateSourcesMojo.checkForApklibDependencies", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Traverses the list of project dependencies looking for "AAR depends on APKLIB" artifact combination\nthat has been deprecated. For each occurrence of an AAR artifact with APKLIB direct or transitive dependency,\nproduces a warning message to inform the user. Future plugin versions may default to skipping or not handling\nunsupported artifacts during build lifecycle.\n\n@throws MojoExecutionException", "docstring_tokens": ["Traverses", "the", "list", "of", "project", "dependencies", "looking", "for", """, ";", "AAR", "depends", "on", "APKLIB"", ";", "artifact", "combination", "that", "has", "been", "deprecated", ".", "For", "each", "occurrence", "of", "an", "AAR", "artifact", "with", "APKLIB", "direct", "or", "transitive", "dependency", "produces", "a", "warning", "message", "to", "inform", "the", "user", ".", "Future", "plugin", "versions", "may", "default", "to", "skipping", "or", "not", "handling", "unsupported", "artifacts", "during", "build", "lifecycle", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java#L550-L591", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java", "func_name": "GenerateSourcesMojo.getPackageCompareMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Provides map with all provided dependencies or project itself grouped by package name\n\n@param dependencyArtifacts artifacts that should be grouped by package name\n@return map of with package names(String) and sets of artifacts (Set)\nthat have similar package names\n@throws MojoExecutionException", "docstring_tokens": ["Provides", "map", "with", "all", "provided", "dependencies", "or", "project", "itself", "grouped", "by", "package", "name"], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java#L740-L766", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java", "func_name": "GenerateSourcesMojo.generateCorrectRJavaForApklibDependencies", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate correct R.java for apklibs dependencies of a current project\n\n@throws MojoExecutionException", "docstring_tokens": ["Generate", "correct", "R", ".", "java", "for", "apklibs", "dependencies", "of", "a", "current", "project"], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java#L850-L874", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java", "func_name": "GenerateSourcesMojo.generateCorrectRJavaForAarDependencies", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate correct R.java for aar dependencies of a current project\n\n@throws MojoExecutionException if it could not generate the R java for one of the libraries.", "docstring_tokens": ["Generate", "correct", "R", ".", "java", "for", "aar", "dependencies", "of", "a", "current", "project"], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java#L881-L892", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java", "func_name": "GenerateSourcesMojo.generateRForApkLibDependency", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes aapt to generate the R class for the given apklib.\n\n@param apklibArtifact apklib for which to generate the R class.\n@throws MojoExecutionException if it fails.", "docstring_tokens": ["Executes", "aapt", "to", "generate", "the", "R", "class", "for", "the", "given", "apklib", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java#L916-L988", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java", "func_name": "GenerateSourcesMojo.isBuildConfigPresent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if given artifact includes a matching BuildConfig class\n\n@throws MojoExecutionException", "docstring_tokens": ["Check", "if", "given", "artifact", "includes", "a", "matching", "BuildConfig", "class"], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java#L1055-L1060", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java", "func_name": "GenerateSourcesMojo.isBuildConfigPresent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check whether the artifact includes a BuildConfig located in a given package.\n\n@param artifact an AAR artifact to look for BuildConfig in\n@param packageName BuildConfig package name\n@throws MojoExecutionException", "docstring_tokens": ["Check", "whether", "the", "artifact", "includes", "a", "BuildConfig", "located", "in", "a", "given", "package", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java#L1069-L1083", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase08preparepackage/DexMojo.java", "func_name": "DexMojo.getDexInputFiles", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the input files for dex. This is a combination of directories and jar files.\n\n@return", "docstring_tokens": ["Gets", "the", "input", "files", "for", "dex", ".", "This", "is", "a", "combination", "of", "directories", "and", "jar", "files", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase08preparepackage/DexMojo.java#L316-L373", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/standalonemojos/ZipalignMojo.java", "func_name": "ZipalignMojo.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute the mojo by parsing the confign and actually doing the zipalign.\n\n@throws MojoExecutionException", "docstring_tokens": ["Execute", "the", "mojo", "by", "parsing", "the", "confign", "and", "actually", "doing", "the", "zipalign", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/standalonemojos/ZipalignMojo.java#L123-L212", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/common/AndroidPublisherHelper.java", "func_name": "AndroidPublisherHelper.checkClientSecretsFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Ensure the client secrets file has been filled out.\n\n@param clientSecrets the GoogleClientSecrets containing data from the\nfile", "docstring_tokens": ["Ensure", "the", "client", "secrets", "file", "has", "been", "filled", "out", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/common/AndroidPublisherHelper.java#L117-L126", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase_prebuild/ClasspathModifierLifecycleParticipant.java", "func_name": "ClasspathModifierLifecycleParticipant.addLibsJarsToClassPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add jar files in libs into the project classpath.", "docstring_tokens": ["Add", "jar", "files", "in", "libs", "into", "the", "project", "classpath", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase_prebuild/ClasspathModifierLifecycleParticipant.java#L226-L275", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase_prebuild/ClasspathModifierLifecycleParticipant.java", "func_name": "ClasspathModifierLifecycleParticipant.addClassesToClasspath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the dependent library classes to the project classpath.", "docstring_tokens": ["Add", "the", "dependent", "library", "classes", "to", "the", "project", "classpath", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase_prebuild/ClasspathModifierLifecycleParticipant.java#L280-L316", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/standalonemojos/LintMojo.java", "func_name": "LintMojo.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute the mojo by parsing the config and actually invoking the lint command from the Android SDK.\n\n@throws MojoExecutionException", "docstring_tokens": ["Execute", "the", "mojo", "by", "parsing", "the", "config", "and", "actually", "invoking", "the", "lint", "command", "from", "the", "Android", "SDK", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/standalonemojos/LintMojo.java#L382-L433", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/PluginInfo.java", "func_name": "PluginInfo.getGAV", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the Maven GAV string of the plugin.\n@return", "docstring_tokens": ["Get", "the", "Maven", "GAV", "string", "of", "the", "plugin", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/PluginInfo.java#L51-L60", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase04processclasses/ProguardMojo.java", "func_name": "ProguardMojo.collectJvmArguments", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert the jvm arguments in parsedJvmArguments as populated by the config in format as needed by the java\ncommand. Also preserve backwards compatibility in terms of dashes required or not..", "docstring_tokens": ["Convert", "the", "jvm", "arguments", "in", "parsedJvmArguments", "as", "populated", "by", "the", "config", "in", "format", "as", "needed", "by", "the", "java", "command", ".", "Also", "preserve", "backwards", "compatibility", "in", "terms", "of", "dashes", "required", "or", "not", ".."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase04processclasses/ProguardMojo.java#L524-L540", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/phase04processclasses/ProguardMojo.java", "func_name": "ProguardMojo.getJVMLibrary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds a library file in either the primary or alternate lib directory.\n@param fileName The base name of the file.\n@return Either a canonical filename, or {@code null} if not found.", "docstring_tokens": ["Finds", "a", "library", "file", "in", "either", "the", "primary", "or", "alternate", "lib", "directory", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/phase04processclasses/ProguardMojo.java#L846-L858", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AndroidNdk.java", "func_name": "AndroidNdk.getToolchain", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tries to resolve the toolchain based on the path of the file.\n\n@param file Native library\n@return String\n@throws MojoExecutionException When no toolchain is found", "docstring_tokens": ["Tries", "to", "resolve", "the", "toolchain", "based", "on", "the", "path", "of", "the", "file", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AndroidNdk.java#L200-L238", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/AndroidNdk.java", "func_name": "AndroidNdk.getNdkBuildPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the complete path for the ndk-build tool, based on this NDK.\n\n@return the complete path as a String, including the tool's filename.", "docstring_tokens": ["Returns", "the", "complete", "path", "for", "the", "ndk", "-", "build", "tool", "based", "on", "this", "NDK", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/AndroidNdk.java#L245-L255", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/standalonemojos/ManifestUpdateMojo.java", "func_name": "ManifestUpdateMojo.readManifest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read manifest using JAXP", "docstring_tokens": ["Read", "manifest", "using", "JAXP"], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/standalonemojos/ManifestUpdateMojo.java#L473-L479", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/standalonemojos/ManifestUpdateMojo.java", "func_name": "ManifestUpdateMojo.writeManifest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write manifest using JAXP transformer", "docstring_tokens": ["Write", "manifest", "using", "JAXP", "transformer"], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/standalonemojos/ManifestUpdateMojo.java#L484-L512", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/standalonemojos/ManifestUpdateMojo.java", "func_name": "ManifestUpdateMojo.exportProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Expose the version properties and other simple parsed manifest entries.", "docstring_tokens": ["Expose", "the", "version", "properties", "and", "other", "simple", "parsed", "manifest", "entries", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/standalonemojos/ManifestUpdateMojo.java#L729-L741", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/standalonemojos/ManifestUpdateMojo.java", "func_name": "ManifestUpdateMojo.performVersionCodeUpdateFromVersion", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the specified version name cannot be properly parsed then fall back to\nan automatic method.\nIf the version can be parsed then generate a version code from the\nversion components. In an effort to preseve uniqueness two digits\nare allowed for both the minor and incremental versions.\n@throws MojoExecutionException", "docstring_tokens": ["If", "the", "specified", "version", "name", "cannot", "be", "properly", "parsed", "then", "fall", "back", "to", "an", "automatic", "method", ".", "If", "the", "version", "can", "be", "parsed", "then", "generate", "a", "version", "code", "from", "the", "version", "components", ".", "In", "an", "effort", "to", "preseve", "uniqueness", "two", "digits", "are", "allowed", "for", "both", "the", "minor", "and", "incremental", "versions", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/standalonemojos/ManifestUpdateMojo.java#L764-L772", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/common/NativeHelper.java", "func_name": "NativeHelper.extractArchitectureFromArtifact", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extracts, if embedded correctly, the artifacts architecture from its classifier. The format of the\nclassifier, if including the architecture is <architecture>-<classifier>. If no\narchitecture is embedded in the classifier, 'armeabi' will be returned.\n\n\n@param artifact The artifact to retrieve the classifier from.\n@param defaultArchitecture The architecture to return if can't be resolved from the classifier\n@return The retrieved architecture, or defaulArchitecture if not resolveable", "docstring_tokens": ["Extracts", "if", "embedded", "correctly", "the", "artifacts", "architecture", "from", "its", "classifier", ".", "The", "format", "of", "the", "classifier", "if", "including", "the", "architecture", "is", "<", ";", "architecture>", ";", "-", "<", ";", "classifier>", ";", ".", "If", "no", "architecture", "is", "embedded", "in", "the", "classifier", "armeabi", "will", "be", "returned", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/common/NativeHelper.java#L271-L294", "partition": "valid"} +{"repo": "simpligility/android-maven-plugin", "path": "src/main/java/com/simpligility/maven/plugins/android/common/FileRetriever.java", "func_name": "FileRetriever.getFileNames", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds the files in the supplied folder that match the configured includes.\n\n@param baseDirectory Directory to find files in.\n@return String[] of the files' paths and names, relative to baseDirectory. Empty\nString[] if baseDirectory does not exist.", "docstring_tokens": ["Finds", "the", "files", "in", "the", "supplied", "folder", "that", "match", "the", "configured", "includes", "."], "sha": "4d54d38b03bd3601bc25ab314719626a623da460", "url": "https://github.com/simpligility/android-maven-plugin/blob/4d54d38b03bd3601bc25ab314719626a623da460/src/main/java/com/simpligility/maven/plugins/android/common/FileRetriever.java#L30-L44", "partition": "valid"} +{"repo": "qiniu/happy-dns-android", "path": "library/src/main/java/com/qiniu/android/dns/util/DES.java", "func_name": "DES.encrypt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert data to encrypted hex string\n@param data data to encrypt\n@param key encrypt key\n@return hex string", "docstring_tokens": ["Convert", "data", "to", "encrypted", "hex", "string"], "sha": "7f2c7223c24a62b82ec413428c1cac18da2f9fe7", "url": "https://github.com/qiniu/happy-dns-android/blob/7f2c7223c24a62b82ec413428c1cac18da2f9fe7/library/src/main/java/com/qiniu/android/dns/util/DES.java#L16-L25", "partition": "valid"} +{"repo": "qiniu/happy-dns-android", "path": "library/src/main/java/com/qiniu/android/dns/util/DES.java", "func_name": "DES.decrypt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert encrypted hex string to UTF-8 string\n@param data data to decrypt\n@param key decrypt key\n@return UTF-8 string", "docstring_tokens": ["Convert", "encrypted", "hex", "string", "to", "UTF", "-", "8", "string"], "sha": "7f2c7223c24a62b82ec413428c1cac18da2f9fe7", "url": "https://github.com/qiniu/happy-dns-android/blob/7f2c7223c24a62b82ec413428c1cac18da2f9fe7/library/src/main/java/com/qiniu/android/dns/util/DES.java#L33-L42", "partition": "valid"} +{"repo": "qiniu/happy-dns-android", "path": "library/src/main/java/com/qiniu/android/dns/local/DnsMessage.java", "func_name": "DnsMessage.readName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse a domain name starting at the given offset.\n\n@param data The raw data.\n@param offset The offset.\n@param jumps The list of jumps (by now).\n@return The parsed domain name.\n@throws IOException on cycles.", "docstring_tokens": ["Parse", "a", "domain", "name", "starting", "at", "the", "given", "offset", "."], "sha": "7f2c7223c24a62b82ec413428c1cac18da2f9fe7", "url": "https://github.com/qiniu/happy-dns-android/blob/7f2c7223c24a62b82ec413428c1cac18da2f9fe7/library/src/main/java/com/qiniu/android/dns/local/DnsMessage.java#L146-L169", "partition": "valid"} +{"repo": "qiniu/happy-dns-android", "path": "library/src/main/java/com/qiniu/android/dns/util/Hex.java", "func_name": "Hex.toDigit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts a hexadecimal character to an integer.\n\n@param ch A character to convert to an integer digit\n@param index The index of the character in the source\n@return An integer\n@throws HexDecodeException Thrown if ch is an illegal hex character", "docstring_tokens": ["Converts", "a", "hexadecimal", "character", "to", "an", "integer", "."], "sha": "7f2c7223c24a62b82ec413428c1cac18da2f9fe7", "url": "https://github.com/qiniu/happy-dns-android/blob/7f2c7223c24a62b82ec413428c1cac18da2f9fe7/library/src/main/java/com/qiniu/android/dns/util/Hex.java#L141-L147", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/views/ScrollHeaderFrame.java", "func_name": "ScrollHeaderFrame.tryToMove", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "if deltaY > 0, tryToMove the content down", "docstring_tokens": ["if", "deltaY", ">", "0", "tryToMove", "the", "content", "down"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/views/ScrollHeaderFrame.java#L110-L146", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/util/NetworkStatusManager.java", "func_name": "NetworkStatusManager.startListening", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method starts listening for network connectivity state changes.\n\n@param context", "docstring_tokens": ["This", "method", "starts", "listening", "for", "network", "connectivity", "state", "changes", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/util/NetworkStatusManager.java#L157-L166", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/util/NetworkStatusManager.java", "func_name": "NetworkStatusManager.stopListening", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method stops this class from listening for network changes.", "docstring_tokens": ["This", "method", "stops", "this", "class", "from", "listening", "for", "network", "changes", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/util/NetworkStatusManager.java#L171-L181", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/request/sender/MultiPartRequestSender.java", "func_name": "MultiPartRequestSender.send", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "post data to Server", "docstring_tokens": ["post", "data", "to", "Server"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/request/sender/MultiPartRequestSender.java#L40-L66", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/request/sender/MultiPartRequestSender.java", "func_name": "MultiPartRequestSender.addFormField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a form field to the request\n\n@param name field name\n@param value field value", "docstring_tokens": ["Adds", "a", "form", "field", "to", "the", "request"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/request/sender/MultiPartRequestSender.java#L82-L91", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/request/sender/MultiPartRequestSender.java", "func_name": "MultiPartRequestSender.addFilePart", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a upload file section to the request\n\n@param fieldName name attribute in \n@param uploadFile a File to be uploaded\n@param fileName the filename field\n@throws IOException", "docstring_tokens": ["Adds", "a", "upload", "file", "section", "to", "the", "request"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/request/sender/MultiPartRequestSender.java#L101-L128", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageProvider.java", "func_name": "ImageProvider.createBitmapDrawable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a BitmapDrawable which can be managed in ImageProvider\n\n@param resources\n@param bitmap\n@return", "docstring_tokens": ["Create", "a", "BitmapDrawable", "which", "can", "be", "managed", "in", "ImageProvider"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageProvider.java#L110-L126", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageLoader.java", "func_name": "ImageLoader.preLoadImages", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load the image in advance.", "docstring_tokens": ["Load", "the", "image", "in", "advance", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageLoader.java#L106-L114", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageLoader.java", "func_name": "ImageLoader.detachImageViewFromImageTask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Detach the ImageView from the ImageTask.\n\n@param imageTask\n@param imageView", "docstring_tokens": ["Detach", "the", "ImageView", "from", "the", "ImageTask", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageLoader.java#L153-L169", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageLoader.java", "func_name": "ImageLoader.addImageTask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the ImageTask into loading list.\n\n@param imageTask\n@param imageView", "docstring_tokens": ["Add", "the", "ImageTask", "into", "loading", "list", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageLoader.java#L177-L200", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageLoader.java", "func_name": "ImageLoader.queryCache", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check weather this imageTask has cache Drawable data.", "docstring_tokens": ["Check", "weather", "this", "imageTask", "has", "cache", "Drawable", "data", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageLoader.java#L205-L224", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageLoader.java", "func_name": "ImageLoader.recoverWork", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recover the from the work list", "docstring_tokens": ["Recover", "the", "from", "the", "work", "list"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageLoader.java#L418-L431", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageLoader.java", "func_name": "ImageLoader.stopWork", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Drop all the work, and leave it in the work list.", "docstring_tokens": ["Drop", "all", "the", "work", "and", "leave", "it", "in", "the", "work", "list", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageLoader.java#L436-L444", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageLoader.java", "func_name": "ImageLoader.destroy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Drop all the work, clear the work list.", "docstring_tokens": ["Drop", "all", "the", "work", "clear", "the", "work", "list", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageLoader.java#L449-L466", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageLoader.java", "func_name": "ImageLoader.attachToCubeFragment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "LiefCycle phase will be same to CubeFragment, an will be processed automatically.\n\n@param fragment\n@return", "docstring_tokens": ["LiefCycle", "phase", "will", "be", "same", "to", "CubeFragment", "an", "will", "be", "processed", "automatically", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageLoader.java#L536-L543", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/cache/CacheManager.java", "func_name": "CacheManager.invalidateCache", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "delete cache by key\n\n@param key", "docstring_tokens": ["delete", "cache", "by", "key"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/cache/CacheManager.java#L118-L130", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/cache/CacheManager.java", "func_name": "CacheManager.clearDiskCache", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "clear the disk cache", "docstring_tokens": ["clear", "the", "disk", "cache"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/cache/CacheManager.java#L162-L172", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/set/hash/SimpleHashSet.java", "func_name": "SimpleHashSet.makeTable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Allocate a table of the given capacity and set the threshold accordingly.\n\n@param newCapacity must be a power of two", "docstring_tokens": ["Allocate", "a", "table", "of", "the", "given", "capacity", "and", "set", "the", "threshold", "accordingly", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/set/hash/SimpleHashSet.java#L144-L150", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/set/hash/SimpleHashSet.java", "func_name": "SimpleHashSet.doubleCapacity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Doubles the capacity of the hash table. Existing entries are placed in\nthe correct bucket on the enlarged table. If the current capacity is,\nMAXIMUM_CAPACITY, this method is a no-op. Returns the table, which\nwill be new unless we were already at MAXIMUM_CAPACITY.", "docstring_tokens": ["Doubles", "the", "capacity", "of", "the", "hash", "table", ".", "Existing", "entries", "are", "placed", "in", "the", "correct", "bucket", "on", "the", "enlarged", "table", ".", "If", "the", "current", "capacity", "is", "MAXIMUM_CAPACITY", "this", "method", "is", "a", "no", "-", "op", ".", "Returns", "the", "table", "which", "will", "be", "new", "unless", "we", "were", "already", "at", "MAXIMUM_CAPACITY", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/set/hash/SimpleHashSet.java#L158-L198", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageDiskCacheProvider.java", "func_name": "ImageDiskCacheProvider.write", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a bitmap to both memory and disk cache\n\n@param key Unique identifier for the bitmap to store\n@param bitmap The bitmap to store", "docstring_tokens": ["Adds", "a", "bitmap", "to", "both", "memory", "and", "disk", "cache"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageDiskCacheProvider.java#L104-L131", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/diskcache/CacheEntry.java", "func_name": "CacheEntry.getString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the last committed value as a string, or null if no value\nhas been committed.", "docstring_tokens": ["Returns", "the", "last", "committed", "value", "as", "a", "string", "or", "null", "if", "no", "value", "has", "been", "committed", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/diskcache/CacheEntry.java#L75-L78", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/diskcache/CacheEntry.java", "func_name": "CacheEntry.setString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the value", "docstring_tokens": ["Sets", "the", "value"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/diskcache/CacheEntry.java#L83-L92", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/diskcache/CacheEntry.java", "func_name": "CacheEntry.delete", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "delete all content\n\n@return", "docstring_tokens": ["delete", "all", "content"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/diskcache/CacheEntry.java#L121-L128", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/diskcache/CacheEntry.java", "func_name": "CacheEntry.commit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Commits this edit so it is visible to readers. This releases the\nedit lock so another edit may be started on the same key.", "docstring_tokens": ["Commits", "this", "edit", "so", "it", "is", "visible", "to", "readers", ".", "This", "releases", "the", "edit", "lock", "so", "another", "edit", "may", "be", "started", "on", "the", "same", "key", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/diskcache/CacheEntry.java#L134-L153", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/request/RequestData.java", "func_name": "RequestData.addFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "add file to be uploaded\n\n@param fieldName\n@param uploadFile\n@param fileName if provided, will use this as filename\n@return", "docstring_tokens": ["add", "file", "to", "be", "uploaded"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/request/RequestData.java#L160-L164", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/impl/DefaultMemoryCache.java", "func_name": "DefaultMemoryCache.clear", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "clear the memory cache", "docstring_tokens": ["clear", "the", "memory", "cache"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/impl/DefaultMemoryCache.java#L84-L92", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/diskcache/lru/LruActionTracer.java", "func_name": "LruActionTracer.tryToResume", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "try to resume last status when we got off\n\n@throws java.io.IOException", "docstring_tokens": ["try", "to", "resume", "last", "status", "when", "we", "got", "off"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/diskcache/lru/LruActionTracer.java#L101-L131", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/diskcache/lru/LruActionTracer.java", "func_name": "LruActionTracer.processJournal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Computes the initial size and collects garbage as a part of opening the\ncache. Dirty entries are assumed to be inconsistent and will be deleted.", "docstring_tokens": ["Computes", "the", "initial", "size", "and", "collects", "garbage", "as", "a", "part", "of", "opening", "the", "cache", ".", "Dirty", "entries", "are", "assumed", "to", "be", "inconsistent", "and", "will", "be", "deleted", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/diskcache/lru/LruActionTracer.java#L265-L276", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/diskcache/lru/LruActionTracer.java", "func_name": "LruActionTracer.rebuildJournal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new journal that omits redundant information. This replaces the\ncurrent journal if it exists.", "docstring_tokens": ["Creates", "a", "new", "journal", "that", "omits", "redundant", "information", ".", "This", "replaces", "the", "current", "journal", "if", "it", "exists", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/diskcache/lru/LruActionTracer.java#L282-L307", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/diskcache/lru/LruActionTracer.java", "func_name": "LruActionTracer.trimToSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "remove files from list, delete files", "docstring_tokens": ["remove", "files", "from", "list", "delete", "files"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/diskcache/lru/LruActionTracer.java#L475-L494", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/app/CubeFragmentActivity.java", "func_name": "CubeFragmentActivity.onBackPressed", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "process back pressed", "docstring_tokens": ["process", "back", "pressed"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/app/CubeFragmentActivity.java#L132-L161", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/views/loadmore/LoadMoreContainerBase.java", "func_name": "LoadMoreContainerBase.loadMoreFinish", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "page has loaded\n\n@param emptyResult\n@param hasMore", "docstring_tokens": ["page", "has", "loaded"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/views/loadmore/LoadMoreContainerBase.java#L185-L195", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageReuseInfoManger.java", "func_name": "ImageReuseInfoManger.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find out the size list can be re-sued.\n\n@param thisSize if \"small_180\" is input\n@return {\"big_360\", \"big_720\"} will be returned.", "docstring_tokens": ["Find", "out", "the", "size", "list", "can", "be", "re", "-", "sued", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageReuseInfoManger.java#L24-L45", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/request/CacheAbleRequest.java", "func_name": "CacheAbleRequest.doRequestSync", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Timeout will not be considerate\n\n@return", "docstring_tokens": ["Timeout", "will", "not", "be", "considerate"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/request/CacheAbleRequest.java#L70-L77", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/request/CacheAbleRequest.java", "func_name": "CacheAbleRequest.notifyRequestFinish", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "will only notify once\n\n@param type\n@param outOfDate", "docstring_tokens": ["will", "only", "notify", "once"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/request/CacheAbleRequest.java#L268-L277", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/request/sender/BaseRequestSender.java", "func_name": "BaseRequestSender.getResponse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Completes the request and receives response from the server.\n\n@return a list of Strings as response in case the server returned\nstatus OK, otherwise an exception is thrown.\n@throws IOException", "docstring_tokens": ["Completes", "the", "request", "and", "receives", "response", "from", "the", "server", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/request/sender/BaseRequestSender.java#L50-L69", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/impl/DefaultImageLoadHandler.java", "func_name": "DefaultImageLoadHandler.setLoadingBitmap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "set the placeholder bitmap", "docstring_tokens": ["set", "the", "placeholder", "bitmap"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/impl/DefaultImageLoadHandler.java#L85-L89", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/mints/base/TitleHeaderBar.java", "func_name": "TitleHeaderBar.setCustomizedRightView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "set customized view to right side\n\n@param view the view to be added to right side", "docstring_tokens": ["set", "customized", "view", "to", "right", "side"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/mints/base/TitleHeaderBar.java#L123-L128", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/impl/SimpleDownloader.java", "func_name": "SimpleDownloader.downloadToStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Download a bitmap from a URL and write the content to an output stream.", "docstring_tokens": ["Download", "a", "bitmap", "from", "a", "URL", "and", "write", "the", "content", "to", "an", "output", "stream", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/impl/SimpleDownloader.java#L37-L77", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageTask.java", "func_name": "ImageTask.addImageView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Bind ImageView with ImageTask\n\n@param imageView", "docstring_tokens": ["Bind", "ImageView", "with", "ImageTask"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageTask.java#L232-L254", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageTask.java", "func_name": "ImageTask.removeImageView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove the ImageView from ImageTask\n\n@param imageView", "docstring_tokens": ["Remove", "the", "ImageView", "from", "ImageTask"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageTask.java#L261-L285", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageTask.java", "func_name": "ImageTask.onLoading", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "When loading from network\n\n@param handler", "docstring_tokens": ["When", "loading", "from", "network"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageTask.java#L305-L323", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageTask.java", "func_name": "ImageTask.onLoadTaskFinish", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Will be called when begin load image data from dish or network\n\n@param drawable", "docstring_tokens": ["Will", "be", "called", "when", "begin", "load", "image", "data", "from", "dish", "or", "network"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageTask.java#L343-L375", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageTask.java", "func_name": "ImageTask.joinSizeInfoToKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Join the key and the size information.\n\n@param key\n@param w\n@param h\n@return \"$key\" + \"_\" + \"$w\" + \"_\" + \"$h\"", "docstring_tokens": ["Join", "the", "key", "and", "the", "size", "information", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageTask.java#L457-L462", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/ImageTask.java", "func_name": "ImageTask.joinSizeTagToKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Join the tag with the key.\n\n@param key\n@param tag\n@return \"$key\" + \"_\" + \"$tag\"", "docstring_tokens": ["Join", "the", "tag", "with", "the", "key", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/ImageTask.java#L471-L473", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/cache/DiskCacheProvider.java", "func_name": "DiskCacheProvider.openDiskCacheAsync", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "initiate the disk cache", "docstring_tokens": ["initiate", "the", "disk", "cache"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/cache/DiskCacheProvider.java#L85-L93", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/cache/DiskCacheProvider.java", "func_name": "DiskCacheProvider.flushDiskCacheAsyncWithDelay", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "flush the data to disk cache", "docstring_tokens": ["flush", "the", "data", "to", "disk", "cache"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/cache/DiskCacheProvider.java#L118-L127", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/cache/DiskCacheProvider.java", "func_name": "DiskCacheProvider.getDiskCache", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If disk is not read, will prepare it first.\n\n@return", "docstring_tokens": ["If", "disk", "is", "not", "read", "will", "prepare", "it", "first", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/cache/DiskCacheProvider.java#L134-L153", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/diskcache/FileUtils.java", "func_name": "FileUtils.deleteDirectoryQuickly", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Try to delete directory in a fast way.", "docstring_tokens": ["Try", "to", "delete", "directory", "in", "a", "fast", "way", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/diskcache/FileUtils.java#L69-L101", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/cache/DiskFileUtils.java", "func_name": "DiskFileUtils.getExternalCacheDir", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the external application cache directory.\n\n@param context The context to use\n@return The external cache folder : /storage/sdcard0/Android/data/com.srain.sdk/cache", "docstring_tokens": ["Get", "the", "external", "application", "cache", "directory", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/cache/DiskFileUtils.java#L133-L147", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/cache/DiskFileUtils.java", "func_name": "DiskFileUtils.getUsableSpace", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check how much usable space is available at a given path.\n\n@param path The path to check\n@return The space available in bytes by user, not by root, -1 means path is null, 0 means path is not exist.", "docstring_tokens": ["Check", "how", "much", "usable", "space", "is", "available", "at", "a", "given", "path", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/cache/DiskFileUtils.java#L155-L171", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/image/CubeImageView.java", "func_name": "CubeImageView.notifyDrawable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Notifies the drawable that it's displayed state has changed.\n\n@param drawable\n@param isDisplayed", "docstring_tokens": ["Notifies", "the", "drawable", "that", "it", "s", "displayed", "state", "has", "changed", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/image/CubeImageView.java#L53-L64", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/app/CubeFragment.java", "func_name": "CubeFragment.onResume", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Only when Activity resume, not very precise.\nWhen activity recover from partly invisible, onBecomesPartiallyInvisible will be triggered.", "docstring_tokens": ["Only", "when", "Activity", "resume", "not", "very", "precise", ".", "When", "activity", "recover", "from", "partly", "invisible", "onBecomesPartiallyInvisible", "will", "be", "triggered", "."], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/app/CubeFragment.java#L102-L114", "partition": "valid"} +{"repo": "liaohuqiu/cube-sdk", "path": "core/src/in/srain/cube/views/list/ListPageInfo.java", "func_name": "ListPageInfo.lastItem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "the last item in list\n\n@return", "docstring_tokens": ["the", "last", "item", "in", "list"], "sha": "4446b1f156ad609fe72a4e7cd5de3c4c95761d96", "url": "https://github.com/liaohuqiu/cube-sdk/blob/4446b1f156ad609fe72a4e7cd5de3c4c95761d96/core/src/in/srain/cube/views/list/ListPageInfo.java#L129-L134", "partition": "valid"} +{"repo": "gowong/material-sheet-fab", "path": "sample/src/main/java/com/gordonwong/materialsheetfab/sample/Fab.java", "func_name": "Fab.hide", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Hides the FAB.", "docstring_tokens": ["Hides", "the", "FAB", "."], "sha": "073418db4f945a2731c2b2ff4a35f3081761aa0b", "url": "https://github.com/gowong/material-sheet-fab/blob/073418db4f945a2731c2b2ff4a35f3081761aa0b/sample/src/main/java/com/gordonwong/materialsheetfab/sample/Fab.java#L81-L96", "partition": "valid"} +{"repo": "gowong/material-sheet-fab", "path": "material-sheet-fab/src/main/java/com/gordonwong/materialsheetfab/animations/MaterialSheetAnimation.java", "func_name": "MaterialSheetAnimation.alignSheetWithFab", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Aligns the sheet's position with the FAB.\n\n@param fab Floating action button", "docstring_tokens": ["Aligns", "the", "sheet", "s", "position", "with", "the", "FAB", "."], "sha": "073418db4f945a2731c2b2ff4a35f3081761aa0b", "url": "https://github.com/gowong/material-sheet-fab/blob/073418db4f945a2731c2b2ff4a35f3081761aa0b/material-sheet-fab/src/main/java/com/gordonwong/materialsheetfab/animations/MaterialSheetAnimation.java#L66-L126", "partition": "valid"} +{"repo": "gowong/material-sheet-fab", "path": "material-sheet-fab/src/main/java/com/gordonwong/materialsheetfab/animations/MaterialSheetAnimation.java", "func_name": "MaterialSheetAnimation.morphFromFab", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shows the sheet by morphing the FAB into the sheet.\n\n@param fab Floating action button\n@param showSheetDuration Duration of the sheet animation in milliseconds. Use 0 for no\nanimation.\n@param showSheetColorDuration Duration of the color animation in milliseconds. Use 0 for no\nanimation.\n@param listener Listener for animation events.", "docstring_tokens": ["Shows", "the", "sheet", "by", "morphing", "the", "FAB", "into", "the", "sheet", "."], "sha": "073418db4f945a2731c2b2ff4a35f3081761aa0b", "url": "https://github.com/gowong/material-sheet-fab/blob/073418db4f945a2731c2b2ff4a35f3081761aa0b/material-sheet-fab/src/main/java/com/gordonwong/materialsheetfab/animations/MaterialSheetAnimation.java#L138-L143", "partition": "valid"} +{"repo": "gowong/material-sheet-fab", "path": "material-sheet-fab/src/main/java/com/gordonwong/materialsheetfab/animations/MaterialSheetAnimation.java", "func_name": "MaterialSheetAnimation.morphIntoFab", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Hides the sheet by morphing the sheet into the FAB.\n\n@param fab Floating action button\n@param hideSheetDuration Duration of the sheet animation in milliseconds. Use 0 for no\nanimation.\n@param hideSheetColorDuration Duration of the color animation in milliseconds. Use 0 for no\nanimation.\n@param listener Listener for animation events.", "docstring_tokens": ["Hides", "the", "sheet", "by", "morphing", "the", "sheet", "into", "the", "FAB", "."], "sha": "073418db4f945a2731c2b2ff4a35f3081761aa0b", "url": "https://github.com/gowong/material-sheet-fab/blob/073418db4f945a2731c2b2ff4a35f3081761aa0b/material-sheet-fab/src/main/java/com/gordonwong/materialsheetfab/animations/MaterialSheetAnimation.java#L155-L159", "partition": "valid"} +{"repo": "gowong/material-sheet-fab", "path": "material-sheet-fab/src/main/java/com/gordonwong/materialsheetfab/animations/OverlayAnimation.java", "func_name": "OverlayAnimation.hide", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Hides the overlay.\n\n@param duration Duration of the animation in milliseconds. Use 0 for no animation.\n@param listener Listener for animation events.", "docstring_tokens": ["Hides", "the", "overlay", "."], "sha": "073418db4f945a2731c2b2ff4a35f3081761aa0b", "url": "https://github.com/gowong/material-sheet-fab/blob/073418db4f945a2731c2b2ff4a35f3081761aa0b/material-sheet-fab/src/main/java/com/gordonwong/materialsheetfab/animations/OverlayAnimation.java#L55-L73", "partition": "valid"} +{"repo": "gowong/material-sheet-fab", "path": "material-sheet-fab/src/main/java/com/gordonwong/materialsheetfab/MaterialSheetFab.java", "func_name": "MaterialSheetFab.showSheet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shows the sheet.", "docstring_tokens": ["Shows", "the", "sheet", "."], "sha": "073418db4f945a2731c2b2ff4a35f3081761aa0b", "url": "https://github.com/gowong/material-sheet-fab/blob/073418db4f945a2731c2b2ff4a35f3081761aa0b/material-sheet-fab/src/main/java/com/gordonwong/materialsheetfab/MaterialSheetFab.java#L159-L192", "partition": "valid"} +{"repo": "gowong/material-sheet-fab", "path": "sample/src/main/java/com/gordonwong/materialsheetfab/sample/MainActivity.java", "func_name": "MainActivity.setupActionBar", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets up the action bar.", "docstring_tokens": ["Sets", "up", "the", "action", "bar", "."], "sha": "073418db4f945a2731c2b2ff4a35f3081761aa0b", "url": "https://github.com/gowong/material-sheet-fab/blob/073418db4f945a2731c2b2ff4a35f3081761aa0b/sample/src/main/java/com/gordonwong/materialsheetfab/sample/MainActivity.java#L63-L66", "partition": "valid"} +{"repo": "gowong/material-sheet-fab", "path": "sample/src/main/java/com/gordonwong/materialsheetfab/sample/MainActivity.java", "func_name": "MainActivity.setupDrawer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets up the navigation drawer.", "docstring_tokens": ["Sets", "up", "the", "navigation", "drawer", "."], "sha": "073418db4f945a2731c2b2ff4a35f3081761aa0b", "url": "https://github.com/gowong/material-sheet-fab/blob/073418db4f945a2731c2b2ff4a35f3081761aa0b/sample/src/main/java/com/gordonwong/materialsheetfab/sample/MainActivity.java#L71-L76", "partition": "valid"} +{"repo": "gowong/material-sheet-fab", "path": "sample/src/main/java/com/gordonwong/materialsheetfab/sample/MainActivity.java", "func_name": "MainActivity.setupTabs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets up the tabs.", "docstring_tokens": ["Sets", "up", "the", "tabs", "."], "sha": "073418db4f945a2731c2b2ff4a35f3081761aa0b", "url": "https://github.com/gowong/material-sheet-fab/blob/073418db4f945a2731c2b2ff4a35f3081761aa0b/sample/src/main/java/com/gordonwong/materialsheetfab/sample/MainActivity.java#L81-L105", "partition": "valid"} +{"repo": "gowong/material-sheet-fab", "path": "sample/src/main/java/com/gordonwong/materialsheetfab/sample/MainActivity.java", "func_name": "MainActivity.setupFab", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets up the Floating action button.", "docstring_tokens": ["Sets", "up", "the", "Floating", "action", "button", "."], "sha": "073418db4f945a2731c2b2ff4a35f3081761aa0b", "url": "https://github.com/gowong/material-sheet-fab/blob/073418db4f945a2731c2b2ff4a35f3081761aa0b/sample/src/main/java/com/gordonwong/materialsheetfab/sample/MainActivity.java#L110-L143", "partition": "valid"} +{"repo": "gowong/material-sheet-fab", "path": "sample/src/main/java/com/gordonwong/materialsheetfab/sample/MainActivity.java", "func_name": "MainActivity.updateFab", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Updates the FAB based on the selected page\n\n@param selectedPage selected page", "docstring_tokens": ["Updates", "the", "FAB", "based", "on", "the", "selected", "page"], "sha": "073418db4f945a2731c2b2ff4a35f3081761aa0b", "url": "https://github.com/gowong/material-sheet-fab/blob/073418db4f945a2731c2b2ff4a35f3081761aa0b/sample/src/main/java/com/gordonwong/materialsheetfab/sample/MainActivity.java#L160-L174", "partition": "valid"} +{"repo": "gowong/material-sheet-fab", "path": "sample/src/main/java/com/gordonwong/materialsheetfab/sample/MainActivity.java", "func_name": "MainActivity.updateSnackbar", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Updates the snackbar based on the selected page\n\n@param selectedPage selected page", "docstring_tokens": ["Updates", "the", "snackbar", "based", "on", "the", "selected", "page"], "sha": "073418db4f945a2731c2b2ff4a35f3081761aa0b", "url": "https://github.com/gowong/material-sheet-fab/blob/073418db4f945a2731c2b2ff4a35f3081761aa0b/sample/src/main/java/com/gordonwong/materialsheetfab/sample/MainActivity.java#L181-L193", "partition": "valid"} +{"repo": "gowong/material-sheet-fab", "path": "material-sheet-fab/src/main/java/com/gordonwong/materialsheetfab/animations/FabAnimation.java", "func_name": "FabAnimation.morphIntoSheet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Animates the FAB as if the FAB is morphing into a sheet.\n\n@param endX The X coordinate that the FAB will be moved to.\n@param endY The Y coordinate that the FAB will be moved to.\n@param side The side of the arc animation.\n@param arcDegrees Amount of arc in FAB movement animation.\n@param scaleFactor Amount to scale FAB.\n@param duration Duration of the animation in milliseconds. Use 0 for no animation.\n@param listener Listener for animation events.", "docstring_tokens": ["Animates", "the", "FAB", "as", "if", "the", "FAB", "is", "morphing", "into", "a", "sheet", "."], "sha": "073418db4f945a2731c2b2ff4a35f3081761aa0b", "url": "https://github.com/gowong/material-sheet-fab/blob/073418db4f945a2731c2b2ff4a35f3081761aa0b/material-sheet-fab/src/main/java/com/gordonwong/materialsheetfab/animations/FabAnimation.java#L38-L41", "partition": "valid"} +{"repo": "gowong/material-sheet-fab", "path": "material-sheet-fab/src/main/java/com/gordonwong/materialsheetfab/animations/FabAnimation.java", "func_name": "FabAnimation.morphFromSheet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Animates the FAB as if a sheet is being morphed into a FAB.\n\n@param endX The X coordinate that the FAB will be moved to.\n@param endY The Y coordinate that the FAB will be moved to.\n@param side The side of the arc animation.\n@param arcDegrees Amount of arc in FAB movement animation.\n@param scaleFactor Amount to scale FAB.\n@param duration Duration of the animation in milliseconds. Use 0 for no animation.\n@param listener Listener for animation events.", "docstring_tokens": ["Animates", "the", "FAB", "as", "if", "a", "sheet", "is", "being", "morphed", "into", "a", "FAB", "."], "sha": "073418db4f945a2731c2b2ff4a35f3081761aa0b", "url": "https://github.com/gowong/material-sheet-fab/blob/073418db4f945a2731c2b2ff4a35f3081761aa0b/material-sheet-fab/src/main/java/com/gordonwong/materialsheetfab/animations/FabAnimation.java#L54-L58", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/suggestions/SuggestionsAdapter.java", "func_name": "SuggestionsAdapter.hideSuggestionsIfNecessary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Hides the suggestions if there are no more incoming queries.\n\n@param currentQuery the most recent {@link QueryToken}\n@param source the associated {@link TokenSource} to use for reference", "docstring_tokens": ["Hides", "the", "suggestions", "if", "there", "are", "no", "more", "incoming", "queries", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/suggestions/SuggestionsAdapter.java#L155-L162", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass-sample/src/main/java/com/linkedin/android/spyglass/sample/data/MentionsLoader.java", "func_name": "MentionsLoader.getSuggestions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a subset", "docstring_tokens": ["Returns", "a", "subset"], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass-sample/src/main/java/com/linkedin/android/spyglass/sample/data/MentionsLoader.java#L51-L63", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/tokenization/impl/WordTokenizer.java", "func_name": "WordTokenizer.containsExplicitChar", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if the input string contains an explicit character.\n\n@param input a {@link CharSequence} to test\n\n@return true if input contains an explicit character", "docstring_tokens": ["Returns", "true", "if", "the", "input", "string", "contains", "an", "explicit", "character", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/tokenization/impl/WordTokenizer.java#L294-L304", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/tokenization/impl/WordTokenizer.java", "func_name": "WordTokenizer.containsWordBreakingChar", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if the input string contains a word-breaking character.\n\n@param input a {@link CharSequence} to test\n\n@return true if input contains a word-breaking character", "docstring_tokens": ["Returns", "true", "if", "the", "input", "string", "contains", "a", "word", "-", "breaking", "character", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/tokenization/impl/WordTokenizer.java#L313-L323", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/tokenization/impl/WordTokenizer.java", "func_name": "WordTokenizer.onlyLettersOrDigits", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Given a string and starting index, return true if the first \"numCharsToCheck\" characters at\nthe starting index are either a letter or a digit.\n\n@param input a {@link CharSequence} to test\n@param numCharsToCheck number of characters to examine at starting position\n@param start starting position within the input string\n\n@return true if the first \"numCharsToCheck\" at the starting index are either letters or digits", "docstring_tokens": ["Given", "a", "string", "and", "starting", "index", "return", "true", "if", "the", "first", "numCharsToCheck", "characters", "at", "the", "starting", "index", "are", "either", "a", "letter", "or", "a", "digit", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/tokenization/impl/WordTokenizer.java#L335-L358", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/tokenization/impl/WordTokenizer.java", "func_name": "WordTokenizer.getSearchStartIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the index of the end of the last span before the cursor or\nthe start of the current line if there are no spans before the cursor.\n\n@param text the {@link Spanned} to examine\n@param cursor position of the cursor in text\n\n@return the furthest in front of the cursor to search for the current keywords", "docstring_tokens": ["Returns", "the", "index", "of", "the", "end", "of", "the", "last", "span", "before", "the", "cursor", "or", "the", "start", "of", "the", "current", "line", "if", "there", "are", "no", "spans", "before", "the", "cursor", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/tokenization/impl/WordTokenizer.java#L373-L397", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/tokenization/impl/WordTokenizer.java", "func_name": "WordTokenizer.getSearchEndIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the index of the beginning of the first span after the cursor or\nlength of the text if there are no spans after the cursor.\n\n@param text the {@link Spanned} to examine\n@param cursor position of the cursor in text\n\n@return the furthest behind the cursor to search for the current keywords", "docstring_tokens": ["Returns", "the", "index", "of", "the", "beginning", "of", "the", "first", "span", "after", "the", "cursor", "or", "length", "of", "the", "text", "if", "there", "are", "no", "spans", "after", "the", "cursor", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/tokenization/impl/WordTokenizer.java#L408-L432", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/ui/RichEditorView.java", "func_name": "RichEditorView.displayTextCounter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Show or hide the text counter view.\n\n@param display true to display the text counter view", "docstring_tokens": ["Show", "or", "hide", "the", "text", "counter", "view", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/ui/RichEditorView.java#L257-L263", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/ui/RichEditorView.java", "func_name": "RichEditorView.disableSpellingSuggestions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Disables spelling suggestions from the user's keyboard.\nThis is necessary because some keyboards will replace the input text with\nspelling suggestions automatically, which changes the suggestion results.\nThis results in a confusing user experience.\n\n@param disable {@code true} if spelling suggestions should be disabled, otherwise {@code false}", "docstring_tokens": ["Disables", "spelling", "suggestions", "from", "the", "user", "s", "keyboard", ".", "This", "is", "necessary", "because", "some", "keyboards", "will", "replace", "the", "input", "text", "with", "spelling", "suggestions", "automatically", "which", "changes", "the", "suggestion", "results", ".", "This", "results", "in", "a", "confusing", "user", "experience", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/ui/RichEditorView.java#L414-L428", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/ui/RichEditorView.java", "func_name": "RichEditorView.updateEditorTextCount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Updates the TextView counting the number of characters in the editor. Sets not only the content\nof the TextView, but also the color of the text depending if the limit has been reached.", "docstring_tokens": ["Updates", "the", "TextView", "counting", "the", "number", "of", "characters", "in", "the", "editor", ".", "Sets", "not", "only", "the", "content", "of", "the", "TextView", "but", "also", "the", "color", "of", "the", "text", "depending", "if", "the", "limit", "has", "been", "reached", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/ui/RichEditorView.java#L438-L449", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/ui/RichEditorView.java", "func_name": "RichEditorView.setMentionSpanFactory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the factory used to create MentionSpans within this class.\n\n@param factory the {@link MentionsEditText.MentionSpanFactory} to use", "docstring_tokens": ["Sets", "the", "factory", "used", "to", "create", "MentionSpans", "within", "this", "class", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/ui/RichEditorView.java#L590-L594", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/ui/MentionsEditText.java", "func_name": "MentionsEditText.copy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copy the text between start and end in clipboard.\nIf no span is present, text is saved as plain text but if span is present\nsave it in Clipboard using intent.", "docstring_tokens": ["Copy", "the", "text", "between", "start", "and", "end", "in", "clipboard", ".", "If", "no", "span", "is", "present", "text", "is", "saved", "as", "plain", "text", "but", "if", "span", "is", "present", "save", "it", "in", "Clipboard", "using", "intent", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/ui/MentionsEditText.java#L324-L340", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/ui/MentionsEditText.java", "func_name": "MentionsEditText.paste", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Paste clipboard content between min and max positions.", "docstring_tokens": ["Paste", "clipboard", "content", "between", "min", "and", "max", "positions", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/ui/MentionsEditText.java#L345-L353", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/ui/MentionsEditText.java", "func_name": "MentionsEditText.pasteHoneycombImpl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Paste clipboard content between min and max positions. This method is supported for all the api above the 10.\nIf clipboard content contain the MentionSpan, set the span in copied text.", "docstring_tokens": ["Paste", "clipboard", "content", "between", "min", "and", "max", "positions", ".", "This", "method", "is", "supported", "for", "all", "the", "api", "above", "the", "10", ".", "If", "clipboard", "content", "contain", "the", "MentionSpan", "set", "the", "span", "in", "copied", "text", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/ui/MentionsEditText.java#L359-L415", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/ui/MentionsEditText.java", "func_name": "MentionsEditText.updateSelectionIfRequired", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Don't allow user to set starting position or ending position of selection within the mention.", "docstring_tokens": ["Don", "t", "allow", "user", "to", "set", "starting", "position", "or", "ending", "position", "of", "selection", "within", "the", "mention", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/ui/MentionsEditText.java#L502-L520", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/ui/MentionsEditText.java", "func_name": "MentionsEditText.onCursorChanged", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to handle the cursor changing positions. Returns true if handled, false if it should\nbe passed to the super method.\n\n@param index int position of cursor within the text\n\n@return true if handled", "docstring_tokens": ["Method", "to", "handle", "the", "cursor", "changing", "positions", ".", "Returns", "true", "if", "handled", "false", "if", "it", "should", "be", "passed", "to", "the", "super", "method", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/ui/MentionsEditText.java#L530-L559", "partition": "valid"} +{"repo": "linkedin/Spyglass", "path": "spyglass/src/main/java/com/linkedin/android/spyglass/ui/MentionsEditText.java", "func_name": "MentionsEditText.deselectAllSpans", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deselects any spans in the editor that are currently selected.", "docstring_tokens": ["Deselects", "any", "spans", "in", "the", "editor", "that", "are", "currently", "selected", "."], "sha": "3816f2da13b75e1a20b2911d1b780b73f44e1150", "url": "https://github.com/linkedin/Spyglass/blob/3816f2da13b75e1a20b2911d1b780b73f44e1150/spyglass/src/main/java/com/linkedin/android/spyglass/ui/MentionsEditText.java#L928-L939", "partition": "valid"} +{"repo": "dropwizard-jobs/dropwizard-jobs", "path": "dropwizard-jobs-core/src/main/java/io/dropwizard/jobs/parser/TimeParserUtil.java", "func_name": "TimeParserUtil.parseDuration", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse a duration\n\n@param duration\n1d, 3h, 2mn, 7s, 50ms\n@return The number of milliseconds", "docstring_tokens": ["Parse", "a", "duration"], "sha": "3592b586eacde6ace1e7abe7daf680ab853d03e7", "url": "https://github.com/dropwizard-jobs/dropwizard-jobs/blob/3592b586eacde6ace1e7abe7daf680ab853d03e7/dropwizard-jobs-core/src/main/java/io/dropwizard/jobs/parser/TimeParserUtil.java#L25-L55", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGUtils.java", "func_name": "SVGUtils.escapeForXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a new string where any special characters in the source string\nhave been encoded.\n\n@param source the source string ({@code null} not permitted).\n\n@return A new string with special characters escaped for XML.\n\n@since 1.5", "docstring_tokens": ["Returns", "a", "new", "string", "where", "any", "special", "characters", "in", "the", "source", "string", "have", "been", "encoded", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGUtils.java#L65-L104", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGUtils.java", "func_name": "SVGUtils.writeToHTML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes an HTML file containing an SVG element.\n\n@param file the file.\n@param title the title.\n@param svgElement the SVG element.\n\n@throws IOException if there is an I/O problem.", "docstring_tokens": ["Writes", "an", "HTML", "file", "containing", "an", "SVG", "element", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGUtils.java#L165-L193", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphicsConfiguration.java", "func_name": "SVGGraphicsConfiguration.createCompatibleImage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a compatible image. This override is only here to provide\nsupport for Java 6 because from Java 7 onwards the super class has a\nnon-abstract implementation for this method.\n\n@param width the width.\n@param height the height.\n\n@return A compatible image.", "docstring_tokens": ["Creates", "a", "compatible", "image", ".", "This", "override", "is", "only", "here", "to", "provide", "support", "for", "Java", "6", "because", "from", "Java", "7", "onwards", "the", "super", "class", "has", "a", "non", "-", "abstract", "implementation", "for", "this", "method", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphicsConfiguration.java#L152-L159", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphicsConfiguration.java", "func_name": "SVGGraphicsConfiguration.createCompatibleVolatileImage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a volatile image. This method is a workaround for a\nClassCastException that occurs on MacOSX when exporting a Swing UI\nthat uses the Nimbus Look and Feel to SVG.\n\n@param width the image width.\n@param height the image height.\n@param caps the image capabilities.\n@param transparency the transparency.\n\n@return The volatile image.\n\n@throws AWTException if there is a problem creating the image.", "docstring_tokens": ["Returns", "a", "volatile", "image", ".", "This", "method", "is", "a", "workaround", "for", "a", "ClassCastException", "that", "occurs", "on", "MacOSX", "when", "exporting", "a", "Swing", "UI", "that", "uses", "the", "Nimbus", "Look", "and", "Feel", "to", "SVG", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphicsConfiguration.java#L178-L187", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/ViewBox.java", "func_name": "ViewBox.valueStr", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a string containing the view box coordinates and dimensions.\n\n@return A string containing the view box coordinates and dimensions.", "docstring_tokens": ["Returns", "a", "string", "containing", "the", "view", "box", "coordinates", "and", "dimensions", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/ViewBox.java#L70-L74", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/StandardFontMapper.java", "func_name": "StandardFontMapper.mapFont", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Maps the specified font family name to an alternative, or else returns\nthe same family name.\n\n@param family the font family name ({@code null} not permitted).\n\n@return The same font family name or an alternative (never {@code null}).", "docstring_tokens": ["Maps", "the", "specified", "font", "family", "name", "to", "an", "alternative", "or", "else", "returns", "the", "same", "family", "name", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/StandardFontMapper.java#L96-L104", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.setShapeRendering", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the value of the 'shape-rendering' property that will be written to\nthe SVG element. Permitted values are \"auto\", \"crispEdges\",\n\"geometricPrecision\", \"inherit\" and \"optimizeSpeed\".\n\n@param value the new value.\n\n@since 2.0", "docstring_tokens": ["Sets", "the", "value", "of", "the", "shape", "-", "rendering", "property", "that", "will", "be", "written", "to", "the", "SVG", "element", ".", "Permitted", "values", "are", "auto", "crispEdges", "geometricPrecision", "inherit", "and", "optimizeSpeed", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L536-L543", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.setTextRendering", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the value of the 'text-rendering' property that will be written to\nthe SVG element. Permitted values are \"auto\", \"optimizeSpeed\",\n\"optimizeLegibility\" and \"geometricPrecision\".\n\n@param value the new value.\n\n@since 2.0", "docstring_tokens": ["Sets", "the", "value", "of", "the", "text", "-", "rendering", "property", "that", "will", "be", "written", "to", "the", "SVG", "element", ".", "Permitted", "values", "are", "auto", "optimizeSpeed", "optimizeLegibility", "and", "geometricPrecision", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L566-L573", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.appendOptionalElementIDFromHint", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A utility method that appends an optional element id if one is\nspecified via the rendering hints.\n\n@param sb the string builder ({@code null} not permitted).", "docstring_tokens": ["A", "utility", "method", "that", "appends", "an", "optional", "element", "id", "if", "one", "is", "specified", "via", "the", "rendering", "hints", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L1151-L1163", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.getSVGPathData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an SVG path string for the supplied Java2D path.\n\n@param path the path ({@code null} not permitted).\n\n@return An SVG path string.", "docstring_tokens": ["Creates", "an", "SVG", "path", "string", "for", "the", "supplied", "Java2D", "path", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L1326-L1369", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.rgbColorStr", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the SVG RGB color string for the specified color.\n\n@param c the color ({@code null} not permitted).\n\n@return The SVG RGB color string.", "docstring_tokens": ["Returns", "the", "SVG", "RGB", "color", "string", "for", "the", "specified", "color", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L1413-L1418", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.rgbaColorStr", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a string representing the specified color in RGBA format.\n\n@param c the color ({@code null} not permitted).\n\n@return The SVG RGBA color string.", "docstring_tokens": ["Returns", "a", "string", "representing", "the", "specified", "color", "in", "RGBA", "format", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L1427-L1435", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.strokeStyle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a stroke style string based on the current stroke and\nalpha settings.\n\n@return A stroke style string.", "docstring_tokens": ["Returns", "a", "stroke", "style", "string", "based", "on", "the", "current", "stroke", "and", "alpha", "settings", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L1447-L1516", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.getSVGFillStyle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a fill style string based on the current paint and\nalpha settings.\n\n@return A fill style string.", "docstring_tokens": ["Returns", "a", "fill", "style", "string", "based", "on", "the", "current", "paint", "and", "alpha", "settings", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L1538-L1543", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.getSVGFontStyle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a string containing font style info.\n\n@return A string containing font style info.", "docstring_tokens": ["Returns", "a", "string", "containing", "font", "style", "info", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L1629-L1644", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.getFontMetrics", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the font metrics for the specified font.\n\n@param f the font.\n\n@return The font metrics.", "docstring_tokens": ["Returns", "the", "font", "metrics", "for", "the", "specified", "font", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L1653-L1664", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.scale", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Applies a scale transformation.\n\n@param sx the x-scaling factor.\n@param sy the y-scaling factor.", "docstring_tokens": ["Applies", "a", "scale", "transformation", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L1856-L1861", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.transform", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Applies this transform to the existing transform by concatenating it.\n\n@param t the transform ({@code null} not permitted).", "docstring_tokens": ["Applies", "this", "transform", "to", "the", "existing", "transform", "by", "concatenating", "it", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L1884-L1889", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.setTransform", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the transform.\n\n@param t the new transform ({@code null} permitted, resets to the\nidentity transform).\n\n@see #getTransform()", "docstring_tokens": ["Sets", "the", "transform", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L1911-L1919", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.setClip", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the user clipping region.\n\n@param shape the new user clipping region ({@code null} permitted).\n\n@see #getClip()", "docstring_tokens": ["Sets", "the", "user", "clipping", "region", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L2012-L2017", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.registerClip", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Registers the clip so that we can later write out all the clip\ndefinitions in the DEFS element.\n\n@param clip the clip (ignored if {@code null})", "docstring_tokens": ["Registers", "the", "clip", "so", "that", "we", "can", "later", "write", "out", "all", "the", "clip", "definitions", "in", "the", "DEFS", "element", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L2025-L2038", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.clip", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Clips to the intersection of the current clipping region and the\nspecified shape.\n\nAccording to the Oracle API specification, this method will accept a\n{@code null} argument, but there is an open bug report (since 2004)\nthat suggests this is wrong:\n

\n\nhttp://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6206189\n\n@param s the clip shape ({@code null} not permitted).", "docstring_tokens": ["Clips", "to", "the", "intersection", "of", "the", "current", "clipping", "region", "and", "the", "specified", "shape", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L2080-L2099", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.clipRect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Clips to the intersection of the current clipping region and the\nspecified rectangle.\n\n@param x the x-coordinate.\n@param y the y-coordinate.\n@param width the width.\n@param height the height.", "docstring_tokens": ["Clips", "to", "the", "intersection", "of", "the", "current", "clipping", "region", "and", "the", "specified", "rectangle", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L2110-L2114", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.setClip", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the user clipping region to the specified rectangle.\n\n@param x the x-coordinate.\n@param y the y-coordinate.\n@param width the width.\n@param height the height.\n\n@see #getClip()", "docstring_tokens": ["Sets", "the", "user", "clipping", "region", "to", "the", "specified", "rectangle", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L2126-L2130", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.getPNGBytes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the bytes representing a PNG format image.\n\n@param img the image to encode.\n\n@return The bytes representing a PNG format image.", "docstring_tokens": ["Returns", "the", "bytes", "representing", "a", "PNG", "format", "image", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L2358-L2377", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.drawRenderedImage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Draws the rendered image.\n\n@param img the image.\n@param xform the transform.", "docstring_tokens": ["Draws", "the", "rendered", "image", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L2600-L2604", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.drawRenderableImage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Draws the renderable image.\n\n@param img the renderable image.\n@param xform the transform.", "docstring_tokens": ["Draws", "the", "renderable", "image", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L2612-L2617", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.getRadialGradientElement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an element to represent a radial gradient. All the radial\ngradients that are used get written to the DEFS element in the SVG.\n\n@param id the reference id.\n@param rgp the radial gradient.\n\n@return The SVG element.", "docstring_tokens": ["Returns", "an", "element", "to", "represent", "a", "radial", "gradient", ".", "All", "the", "radial", "gradients", "that", "are", "used", "get", "written", "to", "the", "DEFS", "element", "in", "the", "SVG", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L2923-L2950", "partition": "valid"} +{"repo": "jfree/jfreesvg", "path": "src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java", "func_name": "SVGGraphics2D.getClipPathRef", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a clip path reference for the current user clip. This is\nwritten out on all SVG elements that draw or fill shapes or text.\n\n@return A clip path reference.", "docstring_tokens": ["Returns", "a", "clip", "path", "reference", "for", "the", "current", "user", "clip", ".", "This", "is", "written", "out", "on", "all", "SVG", "elements", "that", "draw", "or", "fill", "shapes", "or", "text", "."], "sha": "2e6cd5f8dde71e37704e4d786e3b64235326adaf", "url": "https://github.com/jfree/jfreesvg/blob/2e6cd5f8dde71e37704e4d786e3b64235326adaf/src/main/java/org/jfree/graphics2d/svg/SVGGraphics2D.java#L2958-L2968", "partition": "valid"} +{"repo": "tomasbjerre/violations-lib", "path": "src/main/java/se/bjurr/violations/lib/util/ViolationParserUtils.java", "func_name": "ViolationParserUtils.getParts", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Match one regexp at a time. Remove the matched part from the string, trim, and match next\nregexp on that string...", "docstring_tokens": ["Match", "one", "regexp", "at", "a", "time", ".", "Remove", "the", "matched", "part", "from", "the", "string", "trim", "and", "match", "next", "regexp", "on", "that", "string", "..."], "sha": "981948b27bdee0e3a2e4b63fd1bfe75b81f22d2c", "url": "https://github.com/tomasbjerre/violations-lib/blob/981948b27bdee0e3a2e4b63fd1bfe75b81f22d2c/src/main/java/se/bjurr/violations/lib/util/ViolationParserUtils.java#L164-L178", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/BaseService.java", "func_name": "BaseService.recordLevel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prefixes the stats key with the stat key prefix, and then calls statsCollector.recordLevel.\n\n@param statKey statKey\n@param level level", "docstring_tokens": ["Prefixes", "the", "stats", "key", "with", "the", "stat", "key", "prefix", "and", "then", "calls", "statsCollector", ".", "recordLevel", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/BaseService.java#L49-L52", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/BaseService.java", "func_name": "BaseService.recordTiming", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prefixes the stats key with the stat key prefix, and then calls statsCollector.recordTiming.\n\n@param statKey statKey\n@param timeSpan timeSpan", "docstring_tokens": ["Prefixes", "the", "stats", "key", "with", "the", "stat", "key", "prefix", "and", "then", "calls", "statsCollector", ".", "recordTiming", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/BaseService.java#L84-L87", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyServiceImpl.java", "func_name": "ProxyServiceImpl.trackTimeouts", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tracks timeouts periodically if timeout tracking is enabled.", "docstring_tokens": ["Tracks", "timeouts", "periodically", "if", "timeout", "tracking", "is", "enabled", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyServiceImpl.java#L169-L200", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyServiceImpl.java", "func_name": "ProxyServiceImpl.checkClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks client health periodically to see if we are connected. Tries to reconnect if not connected.", "docstring_tokens": ["Checks", "client", "health", "periodically", "to", "see", "if", "we", "are", "connected", ".", "Tries", "to", "reconnect", "if", "not", "connected", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyServiceImpl.java#L205-L253", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyServiceImpl.java", "func_name": "ProxyServiceImpl.handleRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Request coming from the client side.\n\n@param clientRequest clientRequest", "docstring_tokens": ["Request", "coming", "from", "the", "client", "side", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyServiceImpl.java#L260-L270", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyServiceImpl.java", "func_name": "ProxyServiceImpl.createBackEndRequestPopulateAndForward", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a backend request from the client request and then forwards it.\n\n@param clientRequest clientRequest", "docstring_tokens": ["Creates", "a", "backend", "request", "from", "the", "client", "request", "and", "then", "forwards", "it", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyServiceImpl.java#L277-L334", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyServiceImpl.java", "func_name": "ProxyServiceImpl.handleHttpClientErrorsForBackend", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle errors.\n\n@param clientRequest clientRequest\n@param e exception", "docstring_tokens": ["Handle", "errors", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyServiceImpl.java#L342-L364", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyServiceImpl.java", "func_name": "ProxyServiceImpl.handleBackendClientResponses", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle a response from the backend service\n\n@param clientRequest clientRequest (original client request)\n@param code response code from the backend.\n@param contentType contentType from the backend.\n@param body body from the backend.\n@param headers headers from the backend.", "docstring_tokens": ["Handle", "a", "response", "from", "the", "backend", "service"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyServiceImpl.java#L375-L390", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyServiceImpl.java", "func_name": "ProxyServiceImpl.process", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Manage periodic jobs.", "docstring_tokens": ["Manage", "periodic", "jobs", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyServiceImpl.java#L395-L401", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/lokate/LokateServiceDiscoveryProvider.java", "func_name": "LokateServiceDiscoveryProvider.createLokateServiceDiscovery", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create service discovery that can talk via Lokate.\n\n@param configs configs\n@return ServiceDiscovery", "docstring_tokens": ["Create", "service", "discovery", "that", "can", "talk", "via", "Lokate", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/lokate/LokateServiceDiscoveryProvider.java#L30-L38", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/impl/ServiceBundleImpl.java", "func_name": "ServiceBundleImpl.doCall", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handles calling a method\n\n@param methodCall method call", "docstring_tokens": ["Handles", "calling", "a", "method"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/impl/ServiceBundleImpl.java#L209-L239", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/impl/ServiceBundleImpl.java", "func_name": "ServiceBundleImpl.call", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call the method.", "docstring_tokens": ["Call", "the", "method", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/impl/ServiceBundleImpl.java#L457-L468", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/impl/ServiceBundleImpl.java", "func_name": "ServiceBundleImpl.createLocalProxy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a proxy interface to a particular client. Given a particular address.\n\n@param serviceInterface client view interface of client\n@param myService address or name of client\n@param type of client\n@return proxy client to client", "docstring_tokens": ["Creates", "a", "proxy", "interface", "to", "a", "particular", "client", ".", "Given", "a", "particular", "address", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/impl/ServiceBundleImpl.java#L486-L498", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/impl/ServiceBundleImpl.java", "func_name": "ServiceBundleImpl.beforeMethodCall", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handles before call operation\n\n@param methodCall method call\n@param continueCall should we continue the call.\n@return call object which could have been transformed", "docstring_tokens": ["Handles", "before", "call", "operation"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/impl/ServiceBundleImpl.java#L573-L586", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/impl/ServiceBundleImpl.java", "func_name": "ServiceBundleImpl.transformBeforeMethodCall", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handles the before argument transformer.\n\n@param methodCall method call that we might transform\n@return method call", "docstring_tokens": ["Handles", "the", "before", "argument", "transformer", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/impl/ServiceBundleImpl.java#L594-L600", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/impl/ServiceBundleImpl.java", "func_name": "ServiceBundleImpl.stop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stop the client bundle.", "docstring_tokens": ["Stop", "the", "client", "bundle", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/impl/ServiceBundleImpl.java#L614-L636", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/impl/ServiceBundleImpl.java", "func_name": "ServiceBundleImpl.startUpCallQueue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Start the client bundle.", "docstring_tokens": ["Start", "the", "client", "bundle", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/impl/ServiceBundleImpl.java#L715-L750", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/dns/DnsSupport.java", "func_name": "DnsSupport.findServiceName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Looks up a service name based on its dns service name. The service part of the SRV DNS Record.\n\n@param dnsServiceName dnsServiceName\n@return serviceName", "docstring_tokens": ["Looks", "up", "a", "service", "name", "based", "on", "its", "dns", "service", "name", ".", "The", "service", "part", "of", "the", "SRV", "DNS", "Record", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/dns/DnsSupport.java#L92-L99", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/dns/DnsSupport.java", "func_name": "DnsSupport.loadServiceEndpointsByServiceName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load the service nodes based on the internal service name.\nDB, Ingester, RadarAggregator, etc.\n\n@param callback callback\n@param serviceName serviceName", "docstring_tokens": ["Load", "the", "service", "nodes", "based", "on", "the", "internal", "service", "name", ".", "DB", "Ingester", "RadarAggregator", "etc", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/dns/DnsSupport.java#L124-L128", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/dns/DnsSupport.java", "func_name": "DnsSupport.convertSrvRecordToEndpointDefinition", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a single srvRecord into an EndpointDefinition.\n\n@param srvRecord srvRecord\n@return EndpointDefinition from srvRecord", "docstring_tokens": ["Convert", "a", "single", "srvRecord", "into", "an", "EndpointDefinition", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/dns/DnsSupport.java#L195-L198", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/http/server/CorsResponseDecorator.java", "func_name": "CorsResponseDecorator.checkRequestType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines the request type.\n\n@param request request\n@return CORs request type.", "docstring_tokens": ["Determines", "the", "request", "type", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/http/server/CorsResponseDecorator.java#L447-L502", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/vertx/src/main/java/io/advantageous/qbit/vertx/http/server/HttpServerVertx.java", "func_name": "HttpServerVertx.handleHttpRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle a vertx request by converting it into a QBit request.\n\n@param request request", "docstring_tokens": ["Handle", "a", "vertx", "request", "by", "converting", "it", "into", "a", "QBit", "request", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/vertx/src/main/java/io/advantageous/qbit/vertx/http/server/HttpServerVertx.java#L272-L301", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/impl/BaseServiceQueueImpl.java", "func_name": "BaseServiceQueueImpl.doHandleMethodCall", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method is where all of the action is.\n\n@param methodCall methodCall\n@param serviceMethodHandler handler", "docstring_tokens": ["This", "method", "is", "where", "all", "of", "the", "action", "is", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/impl/BaseServiceQueueImpl.java#L214-L262", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/consul-client/src/main/java/io/advantageous/consul/Consul.java", "func_name": "Consul.consul", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new client given a host and a port.\n\n@param host The Consul API hostname or IP.\n@param port The Consul port.\n@return A new client.", "docstring_tokens": ["Creates", "a", "new", "client", "given", "a", "host", "and", "a", "port", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/consul-client/src/main/java/io/advantageous/consul/Consul.java#L77-L83", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/dns/DnsClientFromResolveConfSupplier.java", "func_name": "DnsClientFromResolveConfSupplier.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a DNS client.\n\n@return dns client.", "docstring_tokens": ["Get", "a", "DNS", "client", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/dns/DnsClientFromResolveConfSupplier.java#L61-L72", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/queue/impl/BasicQueue.java", "func_name": "BasicQueue.receiveQueue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This returns a new instance of ReceiveQueue every time you call it\nso call it only once per thread.\n\n@return received queue", "docstring_tokens": ["This", "returns", "a", "new", "instance", "of", "ReceiveQueue", "every", "time", "you", "call", "it", "so", "call", "it", "only", "once", "per", "thread", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/queue/impl/BasicQueue.java#L137-L141", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/queue/impl/BasicQueue.java", "func_name": "BasicQueue.sendQueue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This returns a new instance of SendQueue every time you call it\nso call it only once per thread.\n\n@return sendQueue.", "docstring_tokens": ["This", "returns", "a", "new", "instance", "of", "SendQueue", "every", "time", "you", "call", "it", "so", "call", "it", "only", "once", "per", "thread", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/queue/impl/BasicQueue.java#L149-L153", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reakt/Reakt.java", "func_name": "Reakt.convertPromise", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts a Reakt promise into a QBit callback.\n\n@param promise reakt promise\n@param type of promise\n@return new QBit callback that wraps promise.", "docstring_tokens": ["Converts", "a", "Reakt", "promise", "into", "a", "QBit", "callback", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reakt/Reakt.java#L26-L28", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reakt/Reakt.java", "func_name": "Reakt.convertPromise", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts a Reakt promise into a QBit callback.\nReactor is used to manage timeouts and ensure callback happens on same thread as caller.\n\n@param reactor QBit reactor\n@param promise reakt promise\n@param type of promise\n@return new QBit callback that wraps promise.", "docstring_tokens": ["Converts", "a", "Reakt", "promise", "into", "a", "QBit", "callback", ".", "Reactor", "is", "used", "to", "manage", "timeouts", "and", "ensure", "callback", "happens", "on", "same", "thread", "as", "caller", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reakt/Reakt.java#L39-L41", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reakt/Reakt.java", "func_name": "Reakt.callback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a QBit callback based on promise created.\n\n@param promiseConsumer promise consumer\n@param T\n@return QBit callback", "docstring_tokens": ["Creates", "a", "QBit", "callback", "based", "on", "promise", "created", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reakt/Reakt.java#L108-L112", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/discovery/impl/ServiceDiscoveryImpl.java", "func_name": "ServiceDiscoveryImpl.loadHealthyServices", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Iterate through the health service queue and load the services.", "docstring_tokens": ["Iterate", "through", "the", "health", "service", "queue", "and", "load", "the", "services", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/discovery/impl/ServiceDiscoveryImpl.java#L382-L407", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/discovery/impl/ServiceDiscoveryImpl.java", "func_name": "ServiceDiscoveryImpl.doFailOverHealthServicesLoad", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the primary load failed, we could have a backup provider registered.\n\n@param serviceNameToFetch service pool to fetch\n@param ex", "docstring_tokens": ["If", "the", "primary", "load", "failed", "we", "could", "have", "a", "backup", "provider", "registered", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/discovery/impl/ServiceDiscoveryImpl.java#L438-L460", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/dns/DnsSingleClientSupplier.java", "func_name": "DnsSingleClientSupplier.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Supply an instance of DnsClient.\n\n@return DnsClient.", "docstring_tokens": ["Supply", "an", "instance", "of", "DnsClient", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/dns/DnsSingleClientSupplier.java#L56-L61", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reactive/Reactor.java", "func_name": "Reactor.addOneShotAfterTask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a task that gets executed once.\n\n@param fireAfter run task after time period\n@param timeUnit unit for fireAfter\n@param task task to perform", "docstring_tokens": ["Add", "a", "task", "that", "gets", "executed", "once", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reactive/Reactor.java#L134-L137", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reactive/Reactor.java", "func_name": "Reactor.process", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Process items in reactor.", "docstring_tokens": ["Process", "items", "in", "reactor", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reactive/Reactor.java#L164-L182", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reactive/Reactor.java", "func_name": "Reactor.removeFuture", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove a callback from the list of callbacks that we are managing.\n\n@param asyncFutureCallback asyncFutureCallback\n@param T\n@return the callback that we removed.", "docstring_tokens": ["Remove", "a", "callback", "from", "the", "list", "of", "callbacks", "that", "we", "are", "managing", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reactive/Reactor.java#L447-L451", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reactive/Reactor.java", "func_name": "Reactor.coordinateWithTimeout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Utility method to create a coordinator.\n\n@param coordinator coordinator\n@param startTime startTime\n@param timeoutDuration timeoutDuration\n@param timeUnit timeUnit\n@param timeOutHandler timeOutHandler\n@param finishedHandler finishedHandler\n@return callback coordinator", "docstring_tokens": ["Utility", "method", "to", "create", "a", "coordinator", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reactive/Reactor.java#L464-L543", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reactive/Reactor.java", "func_name": "Reactor.monitorCallBacks", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Monitors timeouts. If the callback timed-out trigger it, and then remove callback from the list.", "docstring_tokens": ["Monitors", "timeouts", ".", "If", "the", "callback", "timed", "-", "out", "trigger", "it", "and", "then", "remove", "callback", "from", "the", "list", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reactive/Reactor.java#L548-L566", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reactive/Reactor.java", "func_name": "Reactor.monitorCallbackCoordinators", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Monitors Callback Coordinators.\nTrigger timeouts if needed and remove coordinators from list that timed out.", "docstring_tokens": ["Monitors", "Callback", "Coordinators", ".", "Trigger", "timeouts", "if", "needed", "and", "remove", "coordinators", "from", "list", "that", "timed", "out", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reactive/Reactor.java#L572-L589", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reactive/Reactor.java", "func_name": "Reactor.wrapCallbackWithTimeout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Used for quickly delegating one callback to another.\nThis allows one liners so you don't have to create a builder for this common case.\n\n@param operationDescription Describe the operation for logging\n@param callback callback to delegate error and timeouts too.\n@param logger logger to log errors and timeouts.\n@param Generic type\n@param timeoutDuration time out duration\n@param timeUnit Time Unit\n@return wrapped callback that is tied to this reactor.", "docstring_tokens": ["Used", "for", "quickly", "delegating", "one", "callback", "to", "another", ".", "This", "allows", "one", "liners", "so", "you", "don", "t", "have", "to", "create", "a", "builder", "for", "this", "common", "case", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reactive/Reactor.java#L680-L703", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyBuilder.java", "func_name": "ProxyBuilder.build", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Build the impl.\n\n@return returns an instance of the impl.", "docstring_tokens": ["Build", "the", "impl", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyBuilder.java#L211-L216", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyBuilder.java", "func_name": "ProxyBuilder.buildProxy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds a proxy queue service to the impl.\n\n@return proxy queue service interface to impl.", "docstring_tokens": ["Builds", "a", "proxy", "queue", "service", "to", "the", "impl", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/proxy/ProxyBuilder.java#L223-L226", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/server/WebSocketServiceServerHandler.java", "func_name": "WebSocketServiceServerHandler.handleWebSocketCall", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "All WebSocket calls come through here.\n\n@param webSocketMessage websocket message", "docstring_tokens": ["All", "WebSocket", "calls", "come", "through", "here", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/server/WebSocketServiceServerHandler.java#L120-L149", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/proxy/HttpProxy.java", "func_name": "HttpProxy.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Start this.", "docstring_tokens": ["Start", "this", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/proxy/HttpProxy.java#L40-L44", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/events/impl/ChannelManager.java", "func_name": "ChannelManager.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add an event listener to the channel\nThere can only be one consumer and many listeners.\n\n@param eventListener eventListener", "docstring_tokens": ["Add", "an", "event", "listener", "to", "the", "channel", "There", "can", "only", "be", "one", "consumer", "and", "many", "listeners", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/events/impl/ChannelManager.java#L68-L77", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/dns/DnsUtil.java", "func_name": "DnsUtil.createDnsServiceDiscovery", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create service discovery that can talk DNS.\n@return ServiceDiscovery", "docstring_tokens": ["Create", "service", "discovery", "that", "can", "talk", "DNS", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/dns/DnsUtil.java#L71-L87", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/boon/spi/BoonJsonMapper.java", "func_name": "BoonJsonMapper.fromJson", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert from json string using Class as a suggestion for how to do the parse.\n\n@param json json\n@param cls cls\n@param Type\n@return Java object of Type T", "docstring_tokens": ["Convert", "from", "json", "string", "using", "Class", "as", "a", "suggestion", "for", "how", "to", "do", "the", "parse", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/boon/spi/BoonJsonMapper.java#L116-L119", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/boon/spi/BoonJsonMapper.java", "func_name": "BoonJsonMapper.fromJsonArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts from a json string using componentClass as a guide to a List.\n\n@param json json\n@param componentClass componentClass\n@param Type\n@return List of Java objects of Type T.", "docstring_tokens": ["Converts", "from", "a", "json", "string", "using", "componentClass", "as", "a", "guide", "to", "a", "List", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/boon/spi/BoonJsonMapper.java#L130-L133", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/boon/spi/BoonJsonMapper.java", "func_name": "BoonJsonMapper.toJson", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts from Object into JSON string.\n\n@param object object to convert to JSON.\n@return json string", "docstring_tokens": ["Converts", "from", "Object", "into", "JSON", "string", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/boon/spi/BoonJsonMapper.java#L142-L145", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/boon/spi/BoonJsonMapper.java", "func_name": "BoonJsonMapper.fromJsonMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts from a json string using componentClassKey and componentClassValue as a guide to a Map.\n\n@param json json string\n@param componentClassKey componentClassKey type of Key\n@param componentClassValue componentClassValue type of value\n@param K type of map key\n@param V type of map value\n@return Map", "docstring_tokens": ["Converts", "from", "a", "json", "string", "using", "componentClassKey", "and", "componentClassValue", "as", "a", "guide", "to", "a", "Map", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/boon/spi/BoonJsonMapper.java#L158-L163", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/boon/spi/BoonJsonMapper.java", "func_name": "BoonJsonMapper.convertToMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method.\nConverts a value map into a regular map of Java basic types.\n\n@param valueMap valueMap\n@param V\n@return regular map", "docstring_tokens": ["Helper", "method", ".", "Converts", "a", "value", "map", "into", "a", "regular", "map", "of", "Java", "basic", "types", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/boon/spi/BoonJsonMapper.java#L288-L319", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/boon/service/impl/BoonServiceMethodCallHandler.java", "func_name": "BoonServiceMethodCallHandler.couldHaveCallback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "False is unknown, true is no callbacks.\n\n@param name name of method\n@return false signifies maybe, true means never.", "docstring_tokens": ["False", "is", "unknown", "true", "is", "no", "callbacks", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/boon/service/impl/BoonServiceMethodCallHandler.java#L111-L119", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reactive/CallbackBuilder.java", "func_name": "CallbackBuilder.setCallback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builder method to add a callback handler.\n\n@param returnType returnType\n@param callback callback\n@param T\n@return this", "docstring_tokens": ["Builder", "method", "to", "add", "a", "callback", "handler", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reactive/CallbackBuilder.java#L108-L110", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reactive/CallbackBuilder.java", "func_name": "CallbackBuilder.wrap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builder method to wrap and delegate, timeout and error handling and callback itself.\n\n@param callback callback\n@param T\n@return this", "docstring_tokens": ["Builder", "method", "to", "wrap", "and", "delegate", "timeout", "and", "error", "handling", "and", "callback", "itself", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reactive/CallbackBuilder.java#L150-L159", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reactive/CallbackBuilder.java", "func_name": "CallbackBuilder.withListCallback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builder method to set callback handler that takes a list\n\n@param componentClass componentClass\n@param callback callback\n@param T\n@return this", "docstring_tokens": ["Builder", "method", "to", "set", "callback", "handler", "that", "takes", "a", "list"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reactive/CallbackBuilder.java#L235-L239", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reactive/CallbackBuilder.java", "func_name": "CallbackBuilder.withSetCallback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builder method to set callback handler that takes a set\n\n@param componentClass componentClass\n@param callback callback\n@param T\n@return this", "docstring_tokens": ["Builder", "method", "to", "set", "callback", "handler", "that", "takes", "a", "set"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reactive/CallbackBuilder.java#L250-L254", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reactive/CallbackBuilder.java", "func_name": "CallbackBuilder.withCollectionCallback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builder method to set callback handler that takes a collection\n\n@param componentClass componentClass\n@param callback callback\n@param T\n@return this", "docstring_tokens": ["Builder", "method", "to", "set", "callback", "handler", "that", "takes", "a", "collection"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reactive/CallbackBuilder.java#L265-L269", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reactive/CallbackBuilder.java", "func_name": "CallbackBuilder.withMapCallback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builder method to set callback handler that takes a map\n\n@param keyClass keyClass\n@param valueClass valueClass\n@param callback callback\n@param key type\n@param value type\n@return this", "docstring_tokens": ["Builder", "method", "to", "set", "callback", "handler", "that", "takes", "a", "map"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reactive/CallbackBuilder.java#L282-L287", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/reactive/CallbackBuilder.java", "func_name": "CallbackBuilder.withOptionalCallback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builder method to set callback handler that takes an optional string\n\n@param cls class\n@param callback callback\n@param type of callback\n@return this", "docstring_tokens": ["Builder", "method", "to", "set", "callback", "handler", "that", "takes", "an", "optional", "string"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/reactive/CallbackBuilder.java#L357-L360", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/http/request/HttpResponseBuilder.java", "func_name": "HttpResponseBuilder.addHeader", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a header\n\n@param name name\n@param value value\n@return HttpResponseBuilder", "docstring_tokens": ["Add", "a", "header"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/http/request/HttpResponseBuilder.java#L132-L135", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java", "func_name": "AgentEndpoint.isServiceRegistered", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks to see if a service is registered with the local agent..\n\n@param serviceId service id\n@return true if a particular service is registered with\nthe local Consul agent, otherwise false.", "docstring_tokens": ["Checks", "to", "see", "if", "a", "service", "is", "registered", "with", "the", "local", "agent", ".."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java#L72-L75", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java", "func_name": "AgentEndpoint.pingAgent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Pings the Consul Agent.", "docstring_tokens": ["Pings", "the", "Consul", "Agent", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java#L80-L87", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java", "func_name": "AgentEndpoint.register", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Register a service with Consul.\n\n@param registration The registration payload.", "docstring_tokens": ["Register", "a", "service", "with", "Consul", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java#L197-L205", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java", "func_name": "AgentEndpoint.deregister", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove registration of a particular service.\n\n@param serviceId the service id that you want to remove.", "docstring_tokens": ["Remove", "registration", "of", "a", "particular", "service", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java#L212-L223", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java", "func_name": "AgentEndpoint.deregisterCheck", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "De-registers a Health Check with the Agent\n\n@param checkId the id of the Check to deregister", "docstring_tokens": ["De", "-", "registers", "a", "Health", "Check", "with", "the", "Agent"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java#L309-L321", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java", "func_name": "AgentEndpoint.check", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks in with Consul.\n\n@param checkId The Check ID to check in.\n@param status The current state of the Check.\n@param note Any note to associate with the Check.", "docstring_tokens": ["Checks", "in", "with", "Consul", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java#L448-L460", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java", "func_name": "AgentEndpoint.pass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets a TTL check to \"passing\" state with a note\n\n@param checkId check id\n@param note note", "docstring_tokens": ["Sets", "a", "TTL", "check", "to", "passing", "state", "with", "a", "note"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java#L491-L493", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java", "func_name": "AgentEndpoint.warn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets a TTL check to \"warning\" state with a note.\n\n@param checkId check id\n@param note note", "docstring_tokens": ["Sets", "a", "TTL", "check", "to", "warning", "state", "with", "a", "note", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/AgentEndpoint.java#L510-L512", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/boon/client/BoonClient.java", "func_name": "BoonClient.stop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stop client. Stops processing call backs.", "docstring_tokens": ["Stop", "client", ".", "Stops", "processing", "call", "backs", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/boon/client/BoonClient.java#L120-L130", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/boon/client/BoonClient.java", "func_name": "BoonClient.handleAsyncCallback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handles an async callbackWithTimeout.", "docstring_tokens": ["Handles", "an", "async", "callbackWithTimeout", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/boon/client/BoonClient.java#L170-L176", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/boon/client/BoonClient.java", "func_name": "BoonClient.send", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sends a message over websocket.\n\n@param message message to sendText over WebSocket\n@param serviceName message to sendText over WebSocket", "docstring_tokens": ["Sends", "a", "message", "over", "websocket", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/boon/client/BoonClient.java#L196-L224", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/boon/client/BoonClient.java", "func_name": "BoonClient.createProxy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new client proxy given a client interface.\n\n@param serviceInterface client interface\n@param serviceName client name\n@param class type of interface\n@return new client proxy.. calling methods on this proxy marshals method calls to httpServerProxy.", "docstring_tokens": ["Creates", "a", "new", "client", "proxy", "given", "a", "client", "interface", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/boon/client/BoonClient.java#L250-L254", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/server/ServiceEndpointServerImpl.java", "func_name": "ServiceEndpointServerImpl.createResponseQueueListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the queue listener for method call responses from the client bundle.\n\n@return the response queue listener to handle the responses to method calls.", "docstring_tokens": ["Creates", "the", "queue", "listener", "for", "method", "call", "responses", "from", "the", "client", "bundle", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/server/ServiceEndpointServerImpl.java#L268-L298", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/queue/JsonQueue.java", "func_name": "JsonQueue.receiveQueue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a wrapper ReceiveQueue that does decoding on the fly.\n\n@return wrapped ReceiveQueue", "docstring_tokens": ["Create", "a", "wrapper", "ReceiveQueue", "that", "does", "decoding", "on", "the", "fly", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/queue/JsonQueue.java#L146-L208", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/queue/JsonQueue.java", "func_name": "JsonQueue.createJsonSendQueue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method to create SendQueue wrappers that do JSON encoding.\n\n@param sendQueue sendQueue\n@return sendQueue decorated with JSON encoding.", "docstring_tokens": ["Helper", "method", "to", "create", "SendQueue", "wrappers", "that", "do", "JSON", "encoding", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/queue/JsonQueue.java#L230-L296", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/queue/JsonQueue.java", "func_name": "JsonQueue.startListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Start a listener.\n\n@param listener listener", "docstring_tokens": ["Start", "a", "listener", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/queue/JsonQueue.java#L334-L337", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/ServiceBuilder.java", "func_name": "ServiceBuilder.build", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds a service.\n\n@return new service queue", "docstring_tokens": ["Builds", "a", "service", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/ServiceBuilder.java#L460-L508", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/health/HealthServiceImpl.java", "func_name": "HealthServiceImpl.checkInOk", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check in the service.\n\n@param name name", "docstring_tokens": ["Check", "in", "the", "service", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/health/HealthServiceImpl.java#L173-L191", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/health/HealthServiceImpl.java", "func_name": "HealthServiceImpl.failWithError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fail the node for the service with a specific status.\n\n@param name name\n@param error error", "docstring_tokens": ["Fail", "the", "node", "for", "the", "service", "with", "a", "specific", "status", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/health/HealthServiceImpl.java#L243-L259", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java", "func_name": "ManagedServiceBuilder.enableLoggingMappedDiagnosticContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enable the logging diagnostic context\n\n@param requestHeaders request headers to track in the MDC.\n@return this", "docstring_tokens": ["Enable", "the", "logging", "diagnostic", "context"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java#L316-L321", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java", "func_name": "ManagedServiceBuilder.enableConsulServiceDiscovery", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enable consul discovery\n\n@param dataCenter name of datacenter we are connecting to.\n@return fluent, this", "docstring_tokens": ["Enable", "consul", "discovery"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java#L544-L549", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java", "func_name": "ManagedServiceBuilder.getAdminBuilder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the Admin builder.\n\n@return admin builder.", "docstring_tokens": ["Get", "the", "Admin", "builder", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java#L737-L751", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java", "func_name": "ManagedServiceBuilder.getContextMetaBuilder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get context meta builder.\n\n@return context meta builder", "docstring_tokens": ["Get", "context", "meta", "builder", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java#L768-L776", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java", "func_name": "ManagedServiceBuilder.addEndpointServiceWithServiceManagmentBundle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add an endpoint with a managment bundle\n\n@param endpointService endpoint service\n@param serviceManagementBundle management bundle\n@return this, fluent", "docstring_tokens": ["Add", "an", "endpoint", "with", "a", "managment", "bundle"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java#L844-L854", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java", "func_name": "ManagedServiceBuilder.addEndpointServiceWithAliasAndServiceManagmentBundle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add an endpoint with a managment bundle and an alias\n\n@param alias alias\n@param endpointService endpoint service\n@param serviceManagementBundle management bundle\n@return this, fluent", "docstring_tokens": ["Add", "an", "endpoint", "with", "a", "managment", "bundle", "and", "an", "alias"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java#L865-L876", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java", "func_name": "ManagedServiceBuilder.addEndpointService", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add an endpoint service\n\n@param endpointService endpoint service\n@return this, fluent", "docstring_tokens": ["Add", "an", "endpoint", "service"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java#L884-L888", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java", "func_name": "ManagedServiceBuilder.addEndpointService", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add endpoint service with alias\n\n@param alias alias\n@param endpointService endpoint service\n@return this, fluent", "docstring_tokens": ["Add", "endpoint", "service", "with", "alias"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java#L932-L936", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java", "func_name": "ManagedServiceBuilder.getServiceEndpointServer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the ServiceEndpointServer constructed with all of the service endpionts that\nyou registered\n\n@return new ServiceEndpointServer.", "docstring_tokens": ["Get", "the", "ServiceEndpointServer", "constructed", "with", "all", "of", "the", "service", "endpionts", "that", "you", "registered"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java#L1242-L1259", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java", "func_name": "ManagedServiceBuilder.configureInterceptors", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure a list of common interceptors.\n\n@return interceptors.", "docstring_tokens": ["Configure", "a", "list", "of", "common", "interceptors", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/admin/src/main/java/io/advantageous/qbit/admin/ManagedServiceBuilder.java#L1275-L1298", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/SessionEndpoint.java", "func_name": "SessionEndpoint.destroy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Destroy the session.\n@param sessionId id of session\n@param session session\n@param datacenter datacenter\n@return true if success", "docstring_tokens": ["Destroy", "the", "session", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/SessionEndpoint.java#L108-L123", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/dns/DnsServiceDiscoveryProvider.java", "func_name": "DnsServiceDiscoveryProvider.loadServices", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load the services.\n\n@param serviceName serviceName\n@return list of EndpointDefinition", "docstring_tokens": ["Load", "the", "services", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/service-discovery/src/main/java/io/advantageous/qbit/service/discovery/dns/DnsServiceDiscoveryProvider.java#L60-L100", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/KeyValueStoreEndpoint.java", "func_name": "KeyValueStoreEndpoint.delete", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes a specified key.\n\n@param key The key to delete.\n@param params Map of parameters, e.g. recurse.", "docstring_tokens": ["Deletes", "a", "specified", "key", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/consul-client/src/main/java/io/advantageous/consul/endpoints/KeyValueStoreEndpoint.java#L313-L332", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/http/server/impl/SimpleHttpServer.java", "func_name": "SimpleHttpServer.handleRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Main entry point.\n\n@param request request to handle", "docstring_tokens": ["Main", "entry", "point", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/http/server/impl/SimpleHttpServer.java#L182-L190", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/events/EventBusQueueAdapter.java", "func_name": "EventBusQueueAdapter.process", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Process. This can be called periodically and it will check to see if there are messages on the queue.", "docstring_tokens": ["Process", ".", "This", "can", "be", "called", "periodically", "and", "it", "will", "check", "to", "see", "if", "there", "are", "messages", "on", "the", "queue", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/events/EventBusQueueAdapter.java#L98-L123", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/events/EventBusQueueAdapter.java", "func_name": "EventBusQueueAdapter.sendToEventManager", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Send the queue item to the event.\n\n@param item item", "docstring_tokens": ["Send", "the", "queue", "item", "to", "the", "event", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/events/EventBusQueueAdapter.java#L130-L144", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/events/EventBusQueueAdapter.java", "func_name": "EventBusQueueAdapter.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Start listener. Once this is called messages can come in on a foreign thread.", "docstring_tokens": ["Start", "listener", ".", "Once", "this", "is", "called", "messages", "can", "come", "in", "on", "a", "foreign", "thread", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/events/EventBusQueueAdapter.java#L150-L155", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/http/HttpContext.java", "func_name": "HttpContext.getHttpRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Grab the current http request.\n\n@return Optional http request.", "docstring_tokens": ["Grab", "the", "current", "http", "request", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/http/HttpContext.java#L20-L27", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/events/impl/EventConnectorHub.java", "func_name": "EventConnectorHub.remove", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove an event connector\n\n@param eventConnector eventConnector", "docstring_tokens": ["Remove", "an", "event", "connector"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/events/impl/EventConnectorHub.java#L66-L83", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/events/impl/EventConnectorHub.java", "func_name": "EventConnectorHub.forwardEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Forwards en event to another event system.\n\n@param event event", "docstring_tokens": ["Forwards", "en", "event", "to", "another", "event", "system", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/events/impl/EventConnectorHub.java#L91-L115", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/events/impl/EventConnectorHub.java", "func_name": "EventConnectorHub.flush", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Flushes the pool used to optimize flushing of IO operations.", "docstring_tokens": ["Flushes", "the", "pool", "used", "to", "optimize", "flushing", "of", "IO", "operations", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/events/impl/EventConnectorHub.java#L120-L144", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/admin/src/main/java/io/advantageous/qbit/admin/MicroserviceConfig.java", "func_name": "MicroserviceConfig.readConfig", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads the readConfig file, which can be a classpath or file system resource.\n\n@param serviceName the name of the service to load\n@return service config", "docstring_tokens": ["Reads", "the", "readConfig", "file", "which", "can", "be", "a", "classpath", "or", "file", "system", "resource", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/admin/src/main/java/io/advantageous/qbit/admin/MicroserviceConfig.java#L142-L167", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/impl/CallbackManagerWithTimeout.java", "func_name": "CallbackManagerWithTimeout.registerHandlerCallbackForClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Register a callbackWithTimeout handler\n\n@param methodCall method call\n@param handler call back handler to register", "docstring_tokens": ["Register", "a", "callbackWithTimeout", "handler"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/impl/CallbackManagerWithTimeout.java#L73-L87", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/logging/SetupMdcForHttpRequestInterceptor.java", "func_name": "SetupMdcForHttpRequestInterceptor.before", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets called before a method gets invoked on a service.\nThis adds request URI, remote address and request headers of the HttpRequest if found.\n\n@param methodCall methodCall\n@return true to continue, always true.", "docstring_tokens": ["Gets", "called", "before", "a", "method", "gets", "invoked", "on", "a", "service", ".", "This", "adds", "request", "URI", "remote", "address", "and", "request", "headers", "of", "the", "HttpRequest", "if", "found", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/logging/SetupMdcForHttpRequestInterceptor.java#L59-L67", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/logging/SetupMdcForHttpRequestInterceptor.java", "func_name": "SetupMdcForHttpRequestInterceptor.extractRequestInfoAndPutItIntoMappedDiagnosticContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extract request data and put it into the logging Mapped Diagnostic Context.\n\n@param httpRequest httpRequest", "docstring_tokens": ["Extract", "request", "data", "and", "put", "it", "into", "the", "logging", "Mapped", "Diagnostic", "Context", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/logging/SetupMdcForHttpRequestInterceptor.java#L100-L108", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/logging/SetupMdcForHttpRequestInterceptor.java", "func_name": "SetupMdcForHttpRequestInterceptor.extractHeaders", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extract headersToAddToLoggingMappingDiagnosticsContext data and put them into the logging mapping diagnostics context.\n\n@param httpRequest httpRequest", "docstring_tokens": ["Extract", "headersToAddToLoggingMappingDiagnosticsContext", "data", "and", "put", "them", "into", "the", "logging", "mapping", "diagnostics", "context", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/logging/SetupMdcForHttpRequestInterceptor.java#L115-L125", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/server/HttpRequestServiceServerHandlerUsingMetaImpl.java", "func_name": "HttpRequestServiceServerHandlerUsingMetaImpl.handleRestCall", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "MOST IMPORTANT METHOD FOR DEBUGGING WHY SOMETHING IS NOT CALLED.", "docstring_tokens": ["MOST", "IMPORTANT", "METHOD", "FOR", "DEBUGGING", "WHY", "SOMETHING", "IS", "NOT", "CALLED", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/server/HttpRequestServiceServerHandlerUsingMetaImpl.java#L154-L191", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/server/HttpRequestServiceServerHandlerUsingMetaImpl.java", "func_name": "HttpRequestServiceServerHandlerUsingMetaImpl.handleResponseFromServiceToHttpResponse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "2nd MOST IMPORTANT METHOD FOR DEBUGGING WHY SOMETHING IS NOT CALLED.", "docstring_tokens": ["2nd", "MOST", "IMPORTANT", "METHOD", "FOR", "DEBUGGING", "WHY", "SOMETHING", "IS", "NOT", "CALLED", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/server/HttpRequestServiceServerHandlerUsingMetaImpl.java#L196-L237", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/server/HttpRequestServiceServerHandlerUsingMetaImpl.java", "func_name": "HttpRequestServiceServerHandlerUsingMetaImpl.addRequestToCheckForTimeouts", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a request to the timeout queue. Server checks for timeouts when it is idle or when\nthe max outstanding outstandingRequests is met.\n\n@param request request.", "docstring_tokens": ["Add", "a", "request", "to", "the", "timeout", "queue", ".", "Server", "checks", "for", "timeouts", "when", "it", "is", "idle", "or", "when", "the", "max", "outstanding", "outstandingRequests", "is", "met", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/server/HttpRequestServiceServerHandlerUsingMetaImpl.java#L419-L425", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/stats/StatList.java", "func_name": "StatList.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a new value to the list.\n\n@param integer new value\n@return was able to add.", "docstring_tokens": ["Add", "a", "new", "value", "to", "the", "list", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/stats/StatList.java#L139-L147", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/stats/StatList.java", "func_name": "StatList.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a new value to the list but don't employ a wrapper.\n\n@param integer new value\n@return was able to add.", "docstring_tokens": ["Add", "a", "new", "value", "to", "the", "list", "but", "don", "t", "employ", "a", "wrapper", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/stats/StatList.java#L170-L178", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/stats/StatList.java", "func_name": "StatList.addArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a new array to the list.\n\n@param newValues new values\n@return was able to add.", "docstring_tokens": ["Add", "a", "new", "array", "to", "the", "list", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/stats/StatList.java#L186-L194", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/stats/StatList.java", "func_name": "StatList.set", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set a value in the list.\n\n@param index index\n@param element new value\n@return old value at this index", "docstring_tokens": ["Set", "a", "value", "in", "the", "list", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/stats/StatList.java#L203-L208", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/service/stats/StatList.java", "func_name": "StatList.reduceBy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This would be a good opportunity to reintroduce dynamic invoke\n\n@param function function\n@param name name\n@return result", "docstring_tokens": ["This", "would", "be", "a", "good", "opportunity", "to", "reintroduce", "dynamic", "invoke"], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/service/stats/StatList.java#L270-L272", "partition": "valid"} +{"repo": "advantageous/qbit", "path": "qbit/core/src/main/java/io/advantageous/qbit/http/interceptor/ForwardCallMethodInterceptor.java", "func_name": "ForwardCallMethodInterceptor.beforeMethodSent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Intercept the call before it gets sent to the service queue.\n\n@param methodBuilder methodBuilder", "docstring_tokens": ["Intercept", "the", "call", "before", "it", "gets", "sent", "to", "the", "service", "queue", "."], "sha": "533b3671785f238d576b02b5290c6525ed60f583", "url": "https://github.com/advantageous/qbit/blob/533b3671785f238d576b02b5290c6525ed60f583/qbit/core/src/main/java/io/advantageous/qbit/http/interceptor/ForwardCallMethodInterceptor.java#L33-L42", "partition": "valid"} +{"repo": "spotify/dns-java", "path": "src/main/java/com/spotify/dns/AbstractChangeNotifier.java", "func_name": "AbstractChangeNotifier.notifyListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Notify the listener about a change. If this is due to adding a new listener rather than\nbeing an update, only notify the listener if this is the first notification sent to it.\n\n@param changeNotification the change notification to send\n@param newListener call is triggered by adding a listener rather than an update", "docstring_tokens": ["Notify", "the", "listener", "about", "a", "change", ".", "If", "this", "is", "due", "to", "adding", "a", "new", "listener", "rather", "than", "being", "an", "update", "only", "notify", "the", "listener", "if", "this", "is", "the", "first", "notification", "sent", "to", "it", "."], "sha": "c554287e6f5a025576f4343ada84b2419277ebfd", "url": "https://github.com/spotify/dns-java/blob/c554287e6f5a025576f4343ada84b2419277ebfd/src/main/java/com/spotify/dns/AbstractChangeNotifier.java#L81-L100", "partition": "valid"} +{"repo": "magro/kryo-serializers", "path": "src/main/java/de/javakaffee/kryoserializers/SubListSerializers.java", "func_name": "SubListSerializers.addDefaultSerializers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds appropriate sublist serializers as default serializers.", "docstring_tokens": ["Adds", "appropriate", "sublist", "serializers", "as", "default", "serializers", "."], "sha": "103f2a60d5431509de29572009b7b8fab40a86af", "url": "https://github.com/magro/kryo-serializers/blob/103f2a60d5431509de29572009b7b8fab40a86af/src/main/java/de/javakaffee/kryoserializers/SubListSerializers.java#L78-L83", "partition": "valid"} +{"repo": "magro/kryo-serializers", "path": "src/main/java/de/javakaffee/kryoserializers/protobuf/ProtobufSerializer.java", "func_name": "ProtobufSerializer.getParseFromMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Caches method reflection lookup\n@throws NoSuchMethodException", "docstring_tokens": ["Caches", "method", "reflection", "lookup"], "sha": "103f2a60d5431509de29572009b7b8fab40a86af", "url": "https://github.com/magro/kryo-serializers/blob/103f2a60d5431509de29572009b7b8fab40a86af/src/main/java/de/javakaffee/kryoserializers/protobuf/ProtobufSerializer.java#L69-L74", "partition": "valid"} +{"repo": "bazaarvoice/rison", "path": "src/main/java/com/bazaarvoice/jackson/rison/RisonParser.java", "func_name": "RisonParser._verifyNoLeadingZeroes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method called when we have seen one zero, and want to ensure\nit is not followed by another", "docstring_tokens": ["Method", "called", "when", "we", "have", "seen", "one", "zero", "and", "want", "to", "ensure", "it", "is", "not", "followed", "by", "another"], "sha": "623bcbcea65081e75e54d27d4e264a1f6840e9ba", "url": "https://github.com/bazaarvoice/rison/blob/623bcbcea65081e75e54d27d4e264a1f6840e9ba/src/main/java/com/bazaarvoice/jackson/rison/RisonParser.java#L1027-L1057", "partition": "valid"} +{"repo": "bazaarvoice/rison", "path": "src/main/java/com/bazaarvoice/jackson/rison/RisonParser.java", "func_name": "RisonParser._parseUnquotedFieldName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method called when we see non-white space character other\nthan double quote, when expecting a field name.\nIn standard mode will just throw an expection; but\nin non-standard modes may be able to parse name.", "docstring_tokens": ["Method", "called", "when", "we", "see", "non", "-", "white", "space", "character", "other", "than", "double", "quote", "when", "expecting", "a", "field", "name", ".", "In", "standard", "mode", "will", "just", "throw", "an", "expection", ";", "but", "in", "non", "-", "standard", "modes", "may", "be", "able", "to", "parse", "name", "."], "sha": "623bcbcea65081e75e54d27d4e264a1f6840e9ba", "url": "https://github.com/bazaarvoice/rison/blob/623bcbcea65081e75e54d27d4e264a1f6840e9ba/src/main/java/com/bazaarvoice/jackson/rison/RisonParser.java#L1180-L1207", "partition": "valid"} +{"repo": "bazaarvoice/rison", "path": "src/main/java/com/bazaarvoice/jackson/rison/RisonParser.java", "func_name": "RisonParser._handleUnexpectedValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method for handling cases where first non-space character\nof an expected value token is not legal for standard JSON content.", "docstring_tokens": ["Method", "for", "handling", "cases", "where", "first", "non", "-", "space", "character", "of", "an", "expected", "value", "token", "is", "not", "legal", "for", "standard", "JSON", "content", "."], "sha": "623bcbcea65081e75e54d27d4e264a1f6840e9ba", "url": "https://github.com/bazaarvoice/rison/blob/623bcbcea65081e75e54d27d4e264a1f6840e9ba/src/main/java/com/bazaarvoice/jackson/rison/RisonParser.java#L1213-L1235", "partition": "valid"} +{"repo": "bazaarvoice/rison", "path": "src/main/java/com/bazaarvoice/jackson/rison/RisonParser.java", "func_name": "RisonParser._skipString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method called to skim through rest of unparsed String value,\nif it is not needed. This can be done bit faster if contents\nneed not be stored for future access.", "docstring_tokens": ["Method", "called", "to", "skim", "through", "rest", "of", "unparsed", "String", "value", "if", "it", "is", "not", "needed", ".", "This", "can", "be", "done", "bit", "faster", "if", "contents", "need", "not", "be", "stored", "for", "future", "access", "."], "sha": "623bcbcea65081e75e54d27d4e264a1f6840e9ba", "url": "https://github.com/bazaarvoice/rison/blob/623bcbcea65081e75e54d27d4e264a1f6840e9ba/src/main/java/com/bazaarvoice/jackson/rison/RisonParser.java#L1401-L1430", "partition": "valid"} +{"repo": "bazaarvoice/rison", "path": "src/main/java/com/bazaarvoice/jackson/rison/RisonParser.java", "func_name": "RisonParser._matchToken", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method for checking whether input matches expected token", "docstring_tokens": ["Helper", "method", "for", "checking", "whether", "input", "matches", "expected", "token"], "sha": "623bcbcea65081e75e54d27d4e264a1f6840e9ba", "url": "https://github.com/bazaarvoice/rison/blob/623bcbcea65081e75e54d27d4e264a1f6840e9ba/src/main/java/com/bazaarvoice/jackson/rison/RisonParser.java#L1475-L1506", "partition": "valid"} +{"repo": "bazaarvoice/rison", "path": "src/main/java/com/bazaarvoice/jackson/rison/RisonParser.java", "func_name": "RisonParser._decodeBase64", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Efficient handling for incremental parsing of base64-encoded\ntextual content.", "docstring_tokens": ["Efficient", "handling", "for", "incremental", "parsing", "of", "base64", "-", "encoded", "textual", "content", "."], "sha": "623bcbcea65081e75e54d27d4e264a1f6840e9ba", "url": "https://github.com/bazaarvoice/rison/blob/623bcbcea65081e75e54d27d4e264a1f6840e9ba/src/main/java/com/bazaarvoice/jackson/rison/RisonParser.java#L1518-L1625", "partition": "valid"} +{"repo": "bazaarvoice/rison", "path": "src/main/java/com/bazaarvoice/jackson/rison/IdentifierUtils.java", "func_name": "IdentifierUtils.isIdStrict", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if a string does not need to be quoted when serialized.\nUses the strict definition described in the Rison specification, appropriate for encoding.", "docstring_tokens": ["Returns", "true", "if", "a", "string", "does", "not", "need", "to", "be", "quoted", "when", "serialized", ".", "Uses", "the", "strict", "definition", "described", "in", "the", "Rison", "specification", "appropriate", "for", "encoding", "."], "sha": "623bcbcea65081e75e54d27d4e264a1f6840e9ba", "url": "https://github.com/bazaarvoice/rison/blob/623bcbcea65081e75e54d27d4e264a1f6840e9ba/src/main/java/com/bazaarvoice/jackson/rison/IdentifierUtils.java#L53-L67", "partition": "valid"} +{"repo": "bazaarvoice/rison", "path": "src/main/java/com/bazaarvoice/jackson/rison/IdentifierUtils.java", "func_name": "IdentifierUtils.isIdStrict", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if the string represented by the specified character array does not\nUses the strict definition described in the Rison specification, appropriate for encoding.", "docstring_tokens": ["Returns", "true", "if", "the", "string", "represented", "by", "the", "specified", "character", "array", "does", "not", "Uses", "the", "strict", "definition", "described", "in", "the", "Rison", "specification", "appropriate", "for", "encoding", "."], "sha": "623bcbcea65081e75e54d27d4e264a1f6840e9ba", "url": "https://github.com/bazaarvoice/rison/blob/623bcbcea65081e75e54d27d4e264a1f6840e9ba/src/main/java/com/bazaarvoice/jackson/rison/IdentifierUtils.java#L73-L87", "partition": "valid"} +{"repo": "bazaarvoice/rison", "path": "src/main/java/com/bazaarvoice/jackson/rison/RisonGenerator.java", "func_name": "RisonGenerator._writeString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method called when the string content is already in\na char buffer, and need not be copied for processing.", "docstring_tokens": ["This", "method", "called", "when", "the", "string", "content", "is", "already", "in", "a", "char", "buffer", "and", "need", "not", "be", "copied", "for", "processing", "."], "sha": "623bcbcea65081e75e54d27d4e264a1f6840e9ba", "url": "https://github.com/bazaarvoice/rison/blob/623bcbcea65081e75e54d27d4e264a1f6840e9ba/src/main/java/com/bazaarvoice/jackson/rison/RisonGenerator.java#L927-L971", "partition": "valid"} +{"repo": "bazaarvoice/rison", "path": "src/main/java/com/bazaarvoice/jackson/rison/RisonGenerator.java", "func_name": "RisonGenerator._prependOrWrite", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method called to try to either prepend character escape at front of\ngiven buffer; or if not possible, to write it out directly.\n\n@return Pointer to start of prepended entity (if prepended); or 'ptr'\nif not.", "docstring_tokens": ["Method", "called", "to", "try", "to", "either", "prepend", "character", "escape", "at", "front", "of", "given", "buffer", ";", "or", "if", "not", "possible", "to", "write", "it", "out", "directly", "."], "sha": "623bcbcea65081e75e54d27d4e264a1f6840e9ba", "url": "https://github.com/bazaarvoice/rison/blob/623bcbcea65081e75e54d27d4e264a1f6840e9ba/src/main/java/com/bazaarvoice/jackson/rison/RisonGenerator.java#L1047-L1056", "partition": "valid"} +{"repo": "bazaarvoice/rison", "path": "src/main/java/com/bazaarvoice/jackson/rison/RisonGenerator.java", "func_name": "RisonGenerator._appendCharacterEscape", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method called to append escape sequence for given character, at the\nend of standard output buffer; or if not possible, write out directly.", "docstring_tokens": ["Method", "called", "to", "append", "escape", "sequence", "for", "given", "character", "at", "the", "end", "of", "standard", "output", "buffer", ";", "or", "if", "not", "possible", "write", "out", "directly", "."], "sha": "623bcbcea65081e75e54d27d4e264a1f6840e9ba", "url": "https://github.com/bazaarvoice/rison/blob/623bcbcea65081e75e54d27d4e264a1f6840e9ba/src/main/java/com/bazaarvoice/jackson/rison/RisonGenerator.java#L1062-L1070", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/ThriftToPig.java", "func_name": "ThriftToPig.setConversionProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the flags that can be used by the conversion.\n@param conf usually the Hadoop job conf", "docstring_tokens": ["Set", "the", "flags", "that", "can", "be", "used", "by", "the", "conversion", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/ThriftToPig.java#L91-L96", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/ThriftToPig.java", "func_name": "ThriftToPig.toPigScript", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Turn a Thrift Struct into a loading schema for a pig script.", "docstring_tokens": ["Turn", "a", "Thrift", "Struct", "into", "a", "loading", "schema", "for", "a", "pig", "script", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/ThriftToPig.java#L352-L380", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/ThriftToPig.java", "func_name": "ThriftToPig.stringifySchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "type can only be BAG or TUPLE", "docstring_tokens": ["type", "can", "only", "be", "BAG", "or", "TUPLE"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/ThriftToPig.java#L389-L464", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "lucene/src/main/java/com/twitter/elephantbird/mapreduce/input/LuceneIndexRecordReader.java", "func_name": "LuceneIndexRecordReader.openIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Open an index stored in path\nOverride if you want more control over how indexes are opened\n\n@param path path to the index\n@param conf job conf\n@return an IndexReader of the index in path\n@throws IOException", "docstring_tokens": ["Open", "an", "index", "stored", "in", "path", "Override", "if", "you", "want", "more", "control", "over", "how", "indexes", "are", "opened"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/lucene/src/main/java/com/twitter/elephantbird/mapreduce/input/LuceneIndexRecordReader.java#L74-L76", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "lucene/src/main/java/com/twitter/elephantbird/mapreduce/input/LuceneIndexRecordReader.java", "func_name": "LuceneIndexRecordReader.getProgress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This is sort of an approximation of progress.\nIt splits the progress equally among all indexes, then among all queries for that index.\nSo it won't move linearly, since we don't know how many hits there will be per query", "docstring_tokens": ["This", "is", "sort", "of", "an", "approximation", "of", "progress", ".", "It", "splits", "the", "progress", "equally", "among", "all", "indexes", "then", "among", "all", "queries", "for", "that", "index", ".", "So", "it", "won", "t", "move", "linearly", "since", "we", "don", "t", "know", "how", "many", "hits", "there", "will", "be", "per", "query"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/lucene/src/main/java/com/twitter/elephantbird/mapreduce/input/LuceneIndexRecordReader.java#L194-L210", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java", "func_name": "ProtobufToPig.toTuple", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Turn a generic message into a Tuple. Individual fields that are enums\nare converted into their string equivalents. Fields that are not filled\nout in the protobuf are set to null, unless there is a default field value in\nwhich case that is used instead.\n@param msg the protobuf message\n@return a pig tuple representing the message.", "docstring_tokens": ["Turn", "a", "generic", "message", "into", "a", "Tuple", ".", "Individual", "fields", "that", "are", "enums", "are", "converted", "into", "their", "string", "equivalents", ".", "Fields", "that", "are", "not", "filled", "out", "in", "the", "protobuf", "are", "set", "to", "null", "unless", "there", "is", "a", "default", "field", "value", "in", "which", "case", "that", "is", "used", "instead", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java#L46-L73", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java", "func_name": "ProtobufToPig.messageToTuple", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Translate a nested message to a tuple. If the field is repeated, it walks the list and adds each to a bag.\nOtherwise, it just adds the given one.\n@param fieldDescriptor the descriptor object for the given field.\n@param fieldValue the object representing the value of this field, possibly null.\n@return the object representing fieldValue in Pig -- either a bag or a tuple.", "docstring_tokens": ["Translate", "a", "nested", "message", "to", "a", "tuple", ".", "If", "the", "field", "is", "repeated", "it", "walks", "the", "list", "and", "adds", "each", "to", "a", "bag", ".", "Otherwise", "it", "just", "adds", "the", "given", "one", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java#L99-L120", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java", "func_name": "ProtobufToPig.singleFieldToTuple", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Translate a single field to a tuple. If the field is repeated, it walks the list and adds each to a bag.\nOtherwise, it just adds the given one.\n@param fieldDescriptor the descriptor object for the given field.\n@param fieldValue the object representing the value of this field, possibly null.\n@return the object representing fieldValue in Pig -- either a bag or a single field.\n@throws ExecException if Pig decides to. Shouldn't happen because we won't walk off the end of a tuple's field set.", "docstring_tokens": ["Translate", "a", "single", "field", "to", "a", "tuple", ".", "If", "the", "field", "is", "repeated", "it", "walks", "the", "list", "and", "adds", "each", "to", "a", "bag", ".", "Otherwise", "it", "just", "adds", "the", "given", "one", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java#L130-L154", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java", "func_name": "ProtobufToPig.coerceToPigTypes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the given field value is an enum, translate it to the enum's name as a string, since Pig cannot handle enums.\nAlso, if the given field value is a bool, translate it to 0 or 1 to avoid Pig bools, which can be sketchy.\n@param fieldDescriptor the descriptor object for the given field.\n@param fieldValue the object representing the value of this field, possibly null.\n@return the object, unless it was from an enum field, in which case we return the name of the enum field.", "docstring_tokens": ["If", "the", "given", "field", "value", "is", "an", "enum", "translate", "it", "to", "the", "enum", "s", "name", "as", "a", "string", "since", "Pig", "cannot", "handle", "enums", ".", "Also", "if", "the", "given", "field", "value", "is", "a", "bool", "translate", "it", "to", "0", "or", "1", "to", "avoid", "Pig", "bools", "which", "can", "be", "sketchy", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java#L163-L175", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java", "func_name": "ProtobufToPig.toSchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Turn a generic message descriptor into a Schema. Individual fields that are enums\nare converted into their string equivalents.\n@param msgDescriptor the descriptor for the given message type.\n@return a pig schema representing the message.", "docstring_tokens": ["Turn", "a", "generic", "message", "descriptor", "into", "a", "Schema", ".", "Individual", "fields", "that", "are", "enums", "are", "converted", "into", "their", "string", "equivalents", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java#L183-L200", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java", "func_name": "ProtobufToPig.messageToFieldSchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Turn a nested message into a Schema object. For repeated nested messages, it generates a schema for a bag of\ntuples. For non-repeated nested messages, it just generates a schema for the tuple itself.\n@param fieldDescriptor the descriptor object for the given field.\n@return the Schema for the nested message.\n@throws FrontendException if Pig decides to.", "docstring_tokens": ["Turn", "a", "nested", "message", "into", "a", "Schema", "object", ".", "For", "repeated", "nested", "messages", "it", "generates", "a", "schema", "for", "a", "bag", "of", "tuples", ".", "For", "non", "-", "repeated", "nested", "messages", "it", "just", "generates", "a", "schema", "for", "the", "tuple", "itself", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java#L209-L221", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java", "func_name": "ProtobufToPig.singleFieldToFieldSchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Turn a single field into a Schema object. For repeated single fields, it generates a schema for a bag of single-item tuples.\nFor non-repeated fields, it just generates a standard field schema.\n@param fieldDescriptor the descriptor object for the given field.\n@return the Schema for the nested message.\n@throws FrontendException if Pig decides to.", "docstring_tokens": ["Turn", "a", "single", "field", "into", "a", "Schema", "object", ".", "For", "repeated", "single", "fields", "it", "generates", "a", "schema", "for", "a", "bag", "of", "single", "-", "item", "tuples", ".", "For", "non", "-", "repeated", "fields", "it", "just", "generates", "a", "standard", "field", "schema", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java#L230-L243", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java", "func_name": "ProtobufToPig.toPigScript", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Turn a generic message descriptor into a loading schema for a pig script.\n@param msgDescriptor the descriptor for the given message type.\n@param loaderClassName the fully qualified classname of the pig loader to use. Not\npassed a Class because in many situations that class\nis being generated as well, and so doesn't exist in compiled form.\n@return a pig script that can load the given message.", "docstring_tokens": ["Turn", "a", "generic", "message", "descriptor", "into", "a", "loading", "schema", "for", "a", "pig", "script", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java#L289-L299", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java", "func_name": "ProtobufToPig.toPigScriptInternal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Turn a generic message descriptor into a loading schema for a pig script. Individual fields that are enums\nare converted into their string equivalents.\n@param msgDescriptor the descriptor for the given message type.\n@param numTabs the tab depth at the current point in the recursion, for pretty printing.\n@return a pig schema representing the message.", "docstring_tokens": ["Turn", "a", "generic", "message", "descriptor", "into", "a", "loading", "schema", "for", "a", "pig", "script", ".", "Individual", "fields", "that", "are", "enums", "are", "converted", "into", "their", "string", "equivalents", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java#L336-L354", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java", "func_name": "ProtobufToPig.messageToPigScript", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Turn a nested message into a pig script load string. For repeated nested messages, it generates a string for a bag of\ntuples. For non-repeated nested messages, it just generates a string for the tuple itself.\n@param fieldDescriptor the descriptor object for the given field.\n@param numTabs the tab depth at the current point in the recursion, for pretty printing.\n@return the pig script load schema for the nested message.\n@throws FrontendException if Pig decides to.", "docstring_tokens": ["Turn", "a", "nested", "message", "into", "a", "pig", "script", "load", "string", ".", "For", "repeated", "nested", "messages", "it", "generates", "a", "string", "for", "a", "bag", "of", "tuples", ".", "For", "non", "-", "repeated", "nested", "messages", "it", "just", "generates", "a", "string", "for", "the", "tuple", "itself", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java#L364-L378", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java", "func_name": "ProtobufToPig.singleFieldToPigScript", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Turn a single field into a pig script load string. For repeated single fields, it generates a string for a bag of single-item tuples.\nFor non-repeated fields, it just generates a standard single-element string.\n@param fieldDescriptor the descriptor object for the given field.\n@param numTabs the tab depth at the current point in the recursion, for pretty printing.\n@return the pig script load string for the nested message.\n@throws FrontendException if Pig decides to.", "docstring_tokens": ["Turn", "a", "single", "field", "into", "a", "pig", "script", "load", "string", ".", "For", "repeated", "single", "fields", "it", "generates", "a", "string", "for", "a", "bag", "of", "single", "-", "item", "tuples", ".", "For", "non", "-", "repeated", "fields", "it", "just", "generates", "a", "standard", "single", "-", "element", "string", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/ProtobufToPig.java#L388-L401", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/thrift/TStructDescriptor.java", "func_name": "TStructDescriptor.getInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a descriptor for a Thrift class", "docstring_tokens": ["Creates", "a", "descriptor", "for", "a", "Thrift", "class"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/thrift/TStructDescriptor.java#L95-L106", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/thrift/TStructDescriptor.java", "func_name": "TStructDescriptor.extractEnumMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "returns 'enum name -> enum object' mapping.\nCurrently used for converting Tuple to a Thrift object.", "docstring_tokens": ["returns", "enum", "name", "-", ">", "enum", "object", "mapping", ".", "Currently", "used", "for", "converting", "Tuple", "to", "a", "Thrift", "object", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/thrift/TStructDescriptor.java#L134-L140", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "lucene/src/main/java/com/twitter/elephantbird/mapreduce/output/LuceneIndexOutputFormat.java", "func_name": "LuceneIndexOutputFormat.newIndexDirFilter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a path filter that accepts non-hidden directories that start with \"index-\"\nThis is what the indexes created by this output format look like,\nso this is useful for finding them when traversing the file system", "docstring_tokens": ["Creates", "a", "path", "filter", "that", "accepts", "non", "-", "hidden", "directories", "that", "start", "with", "index", "-", "This", "is", "what", "the", "indexes", "created", "by", "this", "output", "format", "look", "like", "so", "this", "is", "useful", "for", "finding", "them", "when", "traversing", "the", "file", "system"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/lucene/src/main/java/com/twitter/elephantbird/mapreduce/output/LuceneIndexOutputFormat.java#L204-L215", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/Protobufs.java", "func_name": "Protobufs.useDynamicProtoMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "For a configured protoClass, should the message be dynamic or is it a pre-generated Message class? If protoClass is\nnull or set to DynamicMessage.class, then the configurer intends for a dynamically generated protobuf to be used.", "docstring_tokens": ["For", "a", "configured", "protoClass", "should", "the", "message", "be", "dynamic", "or", "is", "it", "a", "pre", "-", "generated", "Message", "class?", "If", "protoClass", "is", "null", "or", "set", "to", "DynamicMessage", ".", "class", "then", "the", "configurer", "intends", "for", "a", "dynamically", "generated", "protobuf", "to", "be", "used", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/Protobufs.java#L79-L81", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/Protobufs.java", "func_name": "Protobufs.getTypeRef", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns typeref for a Protobuf class", "docstring_tokens": ["Returns", "typeref", "for", "a", "Protobuf", "class"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/Protobufs.java#L266-L268", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/input/LzoRecordReader.java", "func_name": "LzoRecordReader.getProgress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the progress within the split.", "docstring_tokens": ["Get", "the", "progress", "within", "the", "split", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/input/LzoRecordReader.java#L53-L60", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/io/BinaryWritable.java", "func_name": "BinaryWritable.serialize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts the message to raw bytes, and caches the converted value.\n@return converted value, which may be null in case of null message or error.", "docstring_tokens": ["Converts", "the", "message", "to", "raw", "bytes", "and", "caches", "the", "converted", "value", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/io/BinaryWritable.java#L127-L140", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapred/input/DeprecatedInputFormatWrapper.java", "func_name": "DeprecatedInputFormatWrapper.setInputFormat", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "For cases where we need to set hadoop1 input format in a hadoop2 Configuration object.", "docstring_tokens": ["For", "cases", "where", "we", "need", "to", "set", "hadoop1", "input", "format", "in", "a", "hadoop2", "Configuration", "object", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapred/input/DeprecatedInputFormatWrapper.java#L80-L83", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/HadoopUtils.java", "func_name": "HadoopUtils.setClassConf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A helper to set configuration to class name.\nThrows a RuntimeExcpetion if the\nconfiguration is already set to a different class name.", "docstring_tokens": ["A", "helper", "to", "set", "configuration", "to", "class", "name", ".", "Throws", "a", "RuntimeExcpetion", "if", "the", "configuration", "is", "already", "set", "to", "a", "different", "class", "name", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/HadoopUtils.java#L76-L91", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/HadoopUtils.java", "func_name": "HadoopUtils.writeStringListToConfAsJson", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes a list of strings into a configuration by converting it to a json array\n\n@param key for the configuration\n@param list to write\n@param conf to write to", "docstring_tokens": ["Writes", "a", "list", "of", "strings", "into", "a", "configuration", "by", "converting", "it", "to", "a", "json", "array"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/HadoopUtils.java#L171-L176", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/HadoopUtils.java", "func_name": "HadoopUtils.readStringListFromConfAsJson", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads a list of strings stored as a json array from a configuration\n\n@param key for the configuration\n@param conf to read from\n@return the read list of strings, or null if key is not present in conf", "docstring_tokens": ["Reads", "a", "list", "of", "strings", "stored", "as", "a", "json", "array", "from", "a", "configuration"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/HadoopUtils.java#L185-L192", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/HadoopUtils.java", "func_name": "HadoopUtils.writeStringListToConfAsBase64", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes a list of strings into a configuration by base64 encoding them and separating\nthem with commas\n\n@param key for the configuration\n@param list to write\n@param conf to write to", "docstring_tokens": ["Writes", "a", "list", "of", "strings", "into", "a", "configuration", "by", "base64", "encoding", "them", "and", "separating", "them", "with", "commas"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/HadoopUtils.java#L202-L215", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/HadoopUtils.java", "func_name": "HadoopUtils.readStringListFromConfAsBase64", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads a list of strings stored as comma separated base64\n\n@param key for the configuration\n@param conf to read from\n@return the read list of strings, or null if key is not present in conf", "docstring_tokens": ["Reads", "a", "list", "of", "strings", "stored", "as", "comma", "separated", "base64"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/HadoopUtils.java#L224-L239", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/ThriftUtils.java", "func_name": "ThriftUtils.verifyAncestry", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verify that clazz is a Thrift class. i.e. is a subclass of TBase", "docstring_tokens": ["Verify", "that", "clazz", "is", "a", "Thrift", "class", ".", "i", ".", "e", ".", "is", "a", "subclass", "of", "TBase"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/ThriftUtils.java#L39-L44", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/ThriftUtils.java", "func_name": "ThriftUtils.getFieldValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns value of a fieldName in an object.", "docstring_tokens": ["Returns", "value", "of", "a", "fieldName", "in", "an", "object", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/ThriftUtils.java#L103-L105", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/ThriftUtils.java", "func_name": "ThriftUtils.getFieldValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns value of a static field with given name in containingClass.", "docstring_tokens": ["Returns", "value", "of", "a", "static", "field", "with", "given", "name", "in", "containingClass", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/ThriftUtils.java#L110-L112", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/ThriftUtils.java", "func_name": "ThriftUtils.getFieldValueType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the value class of the given thrift field.\n\n@param field thrift field.\n@return class of field value, or null in the case of thrift types {@link TType#STOP} or\n{@link TType#VOID}.", "docstring_tokens": ["Returns", "the", "value", "class", "of", "the", "given", "thrift", "field", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/ThriftUtils.java#L169-L201", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/ThriftUtils.java", "func_name": "ThriftUtils.writeFieldNoTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Serializes a single field of a thrift struct.\n\n@throws TException", "docstring_tokens": ["Serializes", "a", "single", "field", "of", "a", "thrift", "struct", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/ThriftUtils.java#L242-L293", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/PigToProtobuf.java", "func_name": "PigToProtobuf.tupleToMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Turn a Tuple into a Message with the given type.\n@param builder a builder for the Message type the tuple will be converted to\n@param tuple the tuple\n@return a message representing the given tuple", "docstring_tokens": ["Turn", "a", "Tuple", "into", "a", "Message", "with", "the", "given", "type", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/PigToProtobuf.java#L68-L70", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/PigToProtobuf.java", "func_name": "PigToProtobuf.tupleFieldToSingleField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts a tupleField string to its corresponding protobuf enum type if necessary, otherwise\nreturns the tupleField as is.\n@param fieldDescriptor the FieldDescriptor for the given tuple field\n@param tupleField the tupleField being converted to a protobuf field\n@return the protobuf type for the given tupleField. This will be the tupleField itself unless it's an enum, in which case this will return the enum type for the field.", "docstring_tokens": ["Converts", "a", "tupleField", "string", "to", "its", "corresponding", "protobuf", "enum", "type", "if", "necessary", "otherwise", "returns", "the", "tupleField", "as", "is", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/PigToProtobuf.java#L224-L236", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/PigToProtobuf.java", "func_name": "PigToProtobuf.addField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a field to a protobuf builder", "docstring_tokens": ["Add", "a", "field", "to", "a", "protobuf", "builder"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/PigToProtobuf.java#L253-L259", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/PigToProtobuf.java", "func_name": "PigToProtobuf.pigTypeToProtoType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "For a given Pig type, return the protobufs type that maps to it.", "docstring_tokens": ["For", "a", "given", "Pig", "type", "return", "the", "protobufs", "type", "that", "maps", "to", "it", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/PigToProtobuf.java#L264-L285", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/PigToThrift.java", "func_name": "PigToThrift.toThrift", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Construct a Thrift object from the tuple.", "docstring_tokens": ["Construct", "a", "Thrift", "object", "from", "the", "tuple", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/PigToThrift.java#L73-L106", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/PigToThrift.java", "func_name": "PigToThrift.toThriftValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "For a given Pig value, return a Thrift object of the same type as the Thrift field passed. The\nthrift field is expected to be compatible with the value passed. If it is not, a warning will\nbe logged and a null value will be returned.\n\n@param thriftField the Thrift field used to determine the type of the response object\n@param pigValue the value to convert to Thrift\n@return a Thrift object", "docstring_tokens": ["For", "a", "given", "Pig", "value", "return", "a", "Thrift", "object", "of", "the", "same", "type", "as", "the", "Thrift", "field", "passed", ".", "The", "thrift", "field", "is", "expected", "to", "be", "compatible", "with", "the", "value", "passed", ".", "If", "it", "is", "not", "a", "warning", "will", "be", "logged", "and", "a", "null", "value", "will", "be", "returned", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/PigToThrift.java#L117-L151", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/PigToThrift.java", "func_name": "PigToThrift.newTInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "return an instance assuming tClass is a Thrift class", "docstring_tokens": ["return", "an", "instance", "assuming", "tClass", "is", "a", "Thrift", "class"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/PigToThrift.java#L234-L240", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/input/combine/DelegateCombineFileInputFormat.java", "func_name": "DelegateCombineFileInputFormat.setCombinedInputFormatDelegate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This sets configures the delegate, though it does not configure DelegateCombineFileInputFormat.", "docstring_tokens": ["This", "sets", "configures", "the", "delegate", "though", "it", "does", "not", "configure", "DelegateCombineFileInputFormat", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/input/combine/DelegateCombineFileInputFormat.java#L40-L42", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "lucene/src/main/java/com/twitter/elephantbird/mapreduce/input/LuceneIndexInputFormat.java", "func_name": "LuceneIndexInputFormat.findSplits", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds and creates all the index splits based on the input paths set in conf\n@param conf job conf\n@return a priority queue of the splits, default is sorted by size\n@throws IOException", "docstring_tokens": ["Finds", "and", "creates", "all", "the", "index", "splits", "based", "on", "the", "input", "paths", "set", "in", "conf"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/lucene/src/main/java/com/twitter/elephantbird/mapreduce/input/LuceneIndexInputFormat.java#L156-L173", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "lucene/src/main/java/com/twitter/elephantbird/mapreduce/input/LuceneIndexInputFormat.java", "func_name": "LuceneIndexInputFormat.setInputPaths", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the input paths for for this input format.\nAll paths will be searched for indexes recursively\n\n@param paths the input paths\n@param conf the job conf\n@throws IOException", "docstring_tokens": ["Sets", "the", "input", "paths", "for", "for", "this", "input", "format", ".", "All", "paths", "will", "be", "searched", "for", "indexes", "recursively"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/lucene/src/main/java/com/twitter/elephantbird/mapreduce/input/LuceneIndexInputFormat.java#L252-L262", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "lucene/src/main/java/com/twitter/elephantbird/mapreduce/input/LuceneIndexInputFormat.java", "func_name": "LuceneIndexInputFormat.getInputPaths", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the input paths for this input format\n\n@param conf the job conf", "docstring_tokens": ["Gets", "the", "input", "paths", "for", "this", "input", "format"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/lucene/src/main/java/com/twitter/elephantbird/mapreduce/input/LuceneIndexInputFormat.java#L269-L277", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/input/combine/CompositeInputSplit.java", "func_name": "CompositeInputSplit.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add an InputSplit to this collection.", "docstring_tokens": ["Add", "an", "InputSplit", "to", "this", "collection", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/input/combine/CompositeInputSplit.java#L50-L54", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/input/combine/CompositeInputSplit.java", "func_name": "CompositeInputSplit.getLocations", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Collect a set of hosts from all child InputSplits. Note that this is just a hint to the MapReduce framework\nfor where the task should go, so we return the top 5, as returning too many can be expensive on the MR side\nof things.", "docstring_tokens": ["Collect", "a", "set", "of", "hosts", "from", "all", "child", "InputSplits", ".", "Note", "that", "this", "is", "just", "a", "hint", "to", "the", "MapReduce", "framework", "for", "where", "the", "task", "should", "go", "so", "we", "return", "the", "top", "5", "as", "returning", "too", "many", "can", "be", "expensive", "on", "the", "MR", "side", "of", "things", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/input/combine/CompositeInputSplit.java#L86-L123", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/PigTokenHelper.java", "func_name": "PigTokenHelper.evaluateDelimiter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse an input delimiter string, as with PigStorage, and return the byte it represents.\n@param inputDelimiter the string passed in from the pig script.\n@return the corresponding byte that will serve as the field separator.", "docstring_tokens": ["Parse", "an", "input", "delimiter", "string", "as", "with", "PigStorage", "and", "return", "the", "byte", "it", "represents", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/PigTokenHelper.java#L25-L43", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/ResourceSchemaUtil.java", "func_name": "ResourceSchemaUtil.createResourceFieldSchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new ResourceFieldSchema which reflects data from an input RequiredField.\n\n@param field\n@return new ResourceFieldSchema which reflects {@code field}.\n@throws IOException", "docstring_tokens": ["Creates", "a", "new", "ResourceFieldSchema", "which", "reflects", "data", "from", "an", "input", "RequiredField", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/ResourceSchemaUtil.java#L23-L39", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "cascading-protobuf/src/main/java/com/twitter/elephantbird/cascading/protobuf/ProtobufComparator.java", "func_name": "ProtobufComparator.readFully", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method used to read a protobuf input stream into a byte array\n@param in the protobuf input stream\n@param out the byte output stream\n@param buffer the array out output bytes", "docstring_tokens": ["Method", "used", "to", "read", "a", "protobuf", "input", "stream", "into", "a", "byte", "array"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/cascading-protobuf/src/main/java/com/twitter/elephantbird/cascading/protobuf/ProtobufComparator.java#L56-L66", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/load/LzoBaseRegexLoader.java", "func_name": "LzoBaseRegexLoader.getNext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read the file line by line, returning lines the match the regex in Tuples\nbased on the regex match groups.", "docstring_tokens": ["Read", "the", "file", "line", "by", "line", "returning", "lines", "the", "match", "the", "regex", "in", "Tuples", "based", "on", "the", "regex", "match", "groups", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/load/LzoBaseRegexLoader.java#L47-L100", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/Codecs.java", "func_name": "Codecs.createStandardBase64", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a instance of standard base64 implementation from apache\ncommons-codec library\n@return standard base64 instance", "docstring_tokens": ["Get", "a", "instance", "of", "standard", "base64", "implementation", "from", "apache", "commons", "-", "codec", "library"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/Codecs.java#L20-L35", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/io/ProtobufConverter.java", "func_name": "ProtobufConverter.newInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a ProtobufConverter for a given Protobuf class.", "docstring_tokens": ["Returns", "a", "ProtobufConverter", "for", "a", "given", "Protobuf", "class", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/io/ProtobufConverter.java#L36-L38", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/io/BinaryBlockReader.java", "func_name": "BinaryBlockReader.readNext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if new proto object was read into writable, false other wise.", "docstring_tokens": ["Returns", "true", "if", "new", "proto", "object", "was", "read", "into", "writable", "false", "other", "wise", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/io/BinaryBlockReader.java#L78-L85", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/io/BinaryBlockReader.java", "func_name": "BinaryBlockReader.readNextProtoBytes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return byte blob for the next proto object. null indicates end of stream;", "docstring_tokens": ["Return", "byte", "blob", "for", "the", "next", "proto", "object", ".", "null", "indicates", "end", "of", "stream", ";"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/io/BinaryBlockReader.java#L90-L104", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/io/BinaryBlockReader.java", "func_name": "BinaryBlockReader.readNextProtoBytes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "returns true if bytes for next object are written to writable, false\nother wise.", "docstring_tokens": ["returns", "true", "if", "bytes", "for", "next", "object", "are", "written", "to", "writable", "false", "other", "wise", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/io/BinaryBlockReader.java#L110-L117", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "hadoop-compat/src/main/java/com/twitter/elephantbird/util/HadoopCompat.java", "func_name": "HadoopCompat.newTaskAttemptContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates TaskAttempContext from a JobConf and jobId using the correct\nconstructor for based on Hadoop version.", "docstring_tokens": ["Creates", "TaskAttempContext", "from", "a", "JobConf", "and", "jobId", "using", "the", "correct", "constructor", "for", "based", "on", "Hadoop", "version", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/hadoop-compat/src/main/java/com/twitter/elephantbird/util/HadoopCompat.java#L226-L230", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "hadoop-compat/src/main/java/com/twitter/elephantbird/util/HadoopCompat.java", "func_name": "HadoopCompat.newMapContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Instantiates MapContext under Hadoop 1 and MapContextImpl under Hadoop 2.", "docstring_tokens": ["Instantiates", "MapContext", "under", "Hadoop", "1", "and", "MapContextImpl", "under", "Hadoop", "2", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/hadoop-compat/src/main/java/com/twitter/elephantbird/util/HadoopCompat.java#L235-L245", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/io/ThriftWritable.java", "func_name": "ThriftWritable.newInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a ThriftWritable for a given Thrift class.", "docstring_tokens": ["Returns", "a", "ThriftWritable", "for", "a", "given", "Thrift", "class", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/io/ThriftWritable.java#L14-L16", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/TypeRef.java", "func_name": "TypeRef.newInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Use the typeRef's parameter to create a new instance of the TypeRef's template parameter.\n@return a new instance of type T\n@throws NoSuchMethodException\n@throws IllegalAccessException\n@throws InvocationTargetException\n@throws InstantiationException", "docstring_tokens": ["Use", "the", "typeRef", "s", "parameter", "to", "create", "a", "new", "instance", "of", "the", "TypeRef", "s", "template", "parameter", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/TypeRef.java#L81-L89", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/TypeRef.java", "func_name": "TypeRef.safeNewInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The cheap, ugly version of the above, for when you don't want to catch 900 exceptions at\nthe calling site.\n@return a new instance of type T.", "docstring_tokens": ["The", "cheap", "ugly", "version", "of", "the", "above", "for", "when", "you", "don", "t", "want", "to", "catch", "900", "exceptions", "at", "the", "calling", "site", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/TypeRef.java#L96-L108", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java", "func_name": "ThriftToDynamicProto.getBuilder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "For the given thriftClass, return a Protobufs builder to build a similar protobuf class.\n@param thriftClass The thrift class for which the builder is desired.\n@return a protobuf message builder", "docstring_tokens": ["For", "the", "given", "thriftClass", "return", "a", "Protobufs", "builder", "to", "build", "a", "similar", "protobuf", "class", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java#L151-L153", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java", "func_name": "ThriftToDynamicProto.mapEntryProtoBuilder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return Protobufs builder for a Map field", "docstring_tokens": ["Return", "Protobufs", "builder", "for", "a", "Map", "field"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java#L158-L160", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java", "func_name": "ThriftToDynamicProto.mapDescriptorProtoBuilder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate a DescriptorProto.Builder for the Message type that will be used\nto represent the entries of the input Map field.\n\n@param field a Map Field (field.isMap() == true)\n@param typeName name of new message type", "docstring_tokens": ["Generate", "a", "DescriptorProto", ".", "Builder", "for", "the", "Message", "type", "that", "will", "be", "used", "to", "represent", "the", "entries", "of", "the", "input", "Map", "field", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java#L254-L272", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java", "func_name": "ThriftToDynamicProto.resolveMessageTypeName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "For a TStructDescriptor, resolves the typeName and optionally converts and memoizes it's\nschema.", "docstring_tokens": ["For", "a", "TStructDescriptor", "resolves", "the", "typeName", "and", "optionally", "converts", "and", "memoizes", "it", "s", "schema", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java#L300-L315", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java", "func_name": "ThriftToDynamicProto.convert", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a thrift object to a protobuf message.\n@param thriftObj thrift object\n@return protobuf protobuf message", "docstring_tokens": ["Convert", "a", "thrift", "object", "to", "a", "protobuf", "message", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java#L351-L355", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java", "func_name": "ThriftToDynamicProto.doConvert", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "conver TBase object to Message object\n@param thriftObj", "docstring_tokens": ["conver", "TBase", "object", "to", "Message", "object"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java#L361-L394", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java", "func_name": "ThriftToDynamicProto.buildMapEntryMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds a Message that contains the key value pair of a Map entry", "docstring_tokens": ["Builds", "a", "Message", "that", "contains", "the", "key", "value", "pair", "of", "a", "Map", "entry"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java#L507-L535", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java", "func_name": "ThriftToDynamicProto.mapProtoMessageType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "name the proto message used for Map types after the thrift class name of the enclosing\nstruct and the field name", "docstring_tokens": ["name", "the", "proto", "message", "used", "for", "Map", "types", "after", "the", "thrift", "class", "name", "of", "the", "enclosing", "struct", "and", "the", "field", "name"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/ThriftToDynamicProto.java#L593-L595", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/HdfsUtils.java", "func_name": "HdfsUtils.walkPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recursively walk a path applying visitor to each path accepted by\nfilter\n\n@param path root path to begin walking, will be visited if\nit passes the filter and directory flag\n@param fs FileSystem for this path\n@param filter filter to determine which paths to accept\n@param visitor visitor to apply to each accepted path\n@throws IOException", "docstring_tokens": ["Recursively", "walk", "a", "path", "applying", "visitor", "to", "each", "path", "accepted", "by", "filter"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/HdfsUtils.java#L62-L79", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/HdfsUtils.java", "func_name": "HdfsUtils.collectPaths", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recursively walk a path, adding paths that are accepted by filter to accumulator\n\n@param path root path to begin walking, will be added to accumulator\n@param fs FileSystem for this path\n@param filter filter to determine which paths to accept\n@param accumulator all paths accepted will be added to accumulator\n@throws IOException", "docstring_tokens": ["Recursively", "walk", "a", "path", "adding", "paths", "that", "are", "accepted", "by", "filter", "to", "accumulator"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/HdfsUtils.java#L90-L101", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/HdfsUtils.java", "func_name": "HdfsUtils.getDirectorySize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates the total size of all the contents of a directory that are accepted\nby filter. All subdirectories will be searched recursively and paths in subdirectories\nthat are accepted by filter will also be counted.\n\nDoes not include the size of directories themselves\n(which are 0 in HDFS but may not be 0 on local file systems)\n\nTo get the size of a directory without filtering, use\n{@link #getDirectorySize(Path, FileSystem)} which is much more efficient.\n\n@param path path to recursively walk\n@param fs FileSystem for this path\n@param filter path filter for which paths size's to include in the total\nNOTE: you do *not* need to filter out directories, this will be done for you\n@return size of the directory in bytes\n@throws IOException", "docstring_tokens": ["Calculates", "the", "total", "size", "of", "all", "the", "contents", "of", "a", "directory", "that", "are", "accepted", "by", "filter", ".", "All", "subdirectories", "will", "be", "searched", "recursively", "and", "paths", "in", "subdirectories", "that", "are", "accepted", "by", "filter", "will", "also", "be", "counted", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/HdfsUtils.java#L134-L142", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "rcfile/src/main/java/com/twitter/elephantbird/mapreduce/output/RCFileOutputFormat.java", "func_name": "RCFileOutputFormat.setColumnNumber", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "set number of columns into the given configuration.\n\n@param conf\nconfiguration instance which need to set the column number\n@param columnNum\ncolumn number for RCFile's Writer", "docstring_tokens": ["set", "number", "of", "columns", "into", "the", "given", "configuration", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/rcfile/src/main/java/com/twitter/elephantbird/mapreduce/output/RCFileOutputFormat.java#L52-L55", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "cascading2/src/main/java/com/twitter/elephantbird/cascading2/scheme/CombinedSequenceFile.java", "func_name": "CombinedSequenceFile.updateJobConfForLocalSettings", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "We can allow overriding the compression settings for just this scheme here", "docstring_tokens": ["We", "can", "allow", "overriding", "the", "compression", "settings", "for", "just", "this", "scheme", "here"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/cascading2/src/main/java/com/twitter/elephantbird/cascading2/scheme/CombinedSequenceFile.java#L42-L57", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "cascading-protobuf/src/main/java/com/twitter/elephantbird/cascading/protobuf/ProtobufReflectionUtil.java", "func_name": "ProtobufReflectionUtil.parseMethodFor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse the method for a message\n@param klass the class containing the message\n@return the parsed method", "docstring_tokens": ["Parse", "the", "method", "for", "a", "message"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/cascading-protobuf/src/main/java/com/twitter/elephantbird/cascading/protobuf/ProtobufReflectionUtil.java#L21-L29", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "cascading-protobuf/src/main/java/com/twitter/elephantbird/cascading/protobuf/ProtobufReflectionUtil.java", "func_name": "ProtobufReflectionUtil.parseMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse the message in a given InputStream using scpecified Method\n@param parseMethod the method used for parsing\n@param in the input stream\n@return the parsed message", "docstring_tokens": ["Parse", "the", "message", "in", "a", "given", "InputStream", "using", "scpecified", "Method"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/cascading-protobuf/src/main/java/com/twitter/elephantbird/cascading/protobuf/ProtobufReflectionUtil.java#L37-L47", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "cascading-protobuf/src/main/java/com/twitter/elephantbird/cascading/protobuf/ProtobufReflectionUtil.java", "func_name": "ProtobufReflectionUtil.parseMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse the message in a given Message container\n@param klass the class containing the message\n@param in the input stream\n@return the parsed Message", "docstring_tokens": ["Parse", "the", "message", "in", "a", "given", "Message", "container"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/cascading-protobuf/src/main/java/com/twitter/elephantbird/cascading/protobuf/ProtobufReflectionUtil.java#L55-L58", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/store/LzoJsonStorage.java", "func_name": "LzoJsonStorage.putNext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The first element is expected to be a map, or null. Anything else causes an error.\n@param tuple the tuple to write.", "docstring_tokens": ["The", "first", "element", "is", "expected", "to", "be", "a", "map", "or", "null", ".", "Anything", "else", "causes", "an", "error", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/store/LzoJsonStorage.java#L45-L67", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/output/LzoProtobufB64LineOutputFormat.java", "func_name": "LzoProtobufB64LineOutputFormat.setClassConf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets an internal configuration in jobConf so that remote Tasks\ninstantiate appropriate object for this generic class based on protoClass", "docstring_tokens": ["Sets", "an", "internal", "configuration", "in", "jobConf", "so", "that", "remote", "Tasks", "instantiate", "appropriate", "object", "for", "this", "generic", "class", "based", "on", "protoClass"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/output/LzoProtobufB64LineOutputFormat.java#L40-L45", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/input/MultiInputFormat.java", "func_name": "MultiInputFormat.setTypeRef", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "set typeRef from conf", "docstring_tokens": ["set", "typeRef", "from", "conf"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/input/MultiInputFormat.java#L169-L184", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/thrift7/src/main/java/com/twitter/elephantbird/thrift/AbstractThriftBinaryProtocol.java", "func_name": "AbstractThriftBinaryProtocol.checkContainerSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if the container size is valid.\n\nNOTE: This assumes that the elements are one byte each. So this does not\ncatch all cases, but does increase the chances of handling malformed\nlengths when the number of remaining bytes in the underlying Transport is\nclearly less than the container size that the Transport provides.", "docstring_tokens": ["Check", "if", "the", "container", "size", "is", "valid", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/thrift7/src/main/java/com/twitter/elephantbird/thrift/AbstractThriftBinaryProtocol.java#L40-L49", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/StreamSearcher.java", "func_name": "StreamSearcher.setPattern", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets a new pattern for this StreamSearcher to use.\n@param pattern\nthe pattern the StreamSearcher will look for in future calls to search(...)", "docstring_tokens": ["Sets", "a", "new", "pattern", "for", "this", "StreamSearcher", "to", "use", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/StreamSearcher.java#L28-L32", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/Strings.java", "func_name": "Strings.underscore", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Underscore the given word.\n@param word The word\n@return The underscored version of the word", "docstring_tokens": ["Underscore", "the", "given", "word", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/Strings.java#L37-L51", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/Strings.java", "func_name": "Strings.ordinalize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the ordinal for the given number.\n@param n The number\n@return The ordinal String", "docstring_tokens": ["Return", "the", "ordinal", "for", "the", "given", "number", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/Strings.java#L140-L155", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/io/ProtobufWritable.java", "func_name": "ProtobufWritable.newInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a ProtobufWritable for a given Protobuf class.", "docstring_tokens": ["Returns", "a", "ProtobufWritable", "for", "a", "given", "Protobuf", "class", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/io/ProtobufWritable.java#L27-L29", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/input/LzoW3CLogInputFormat.java", "func_name": "LzoW3CLogInputFormat.newInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Use this method to create valid instances of LzoW3CLogInputFormat\n@param fieldDefinitionFile path to file in HDFS that contains the CRC hash to column mappings.\n@return", "docstring_tokens": ["Use", "this", "method", "to", "create", "valid", "instances", "of", "LzoW3CLogInputFormat"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/input/LzoW3CLogInputFormat.java#L37-L52", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapred/output/DeprecatedOutputFormatWrapper.java", "func_name": "DeprecatedOutputFormatWrapper.setOutputFormat", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "For cases where we need to set hadoop1 output format in a hadoop2 Configuration object.", "docstring_tokens": ["For", "cases", "where", "we", "need", "to", "set", "hadoop1", "output", "format", "in", "a", "hadoop2", "Configuration", "object", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapred/output/DeprecatedOutputFormatWrapper.java#L67-L70", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/Inflection.java", "func_name": "Inflection.match", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Does the given word match?\n@param word The word\n@return True if it matches the inflection pattern", "docstring_tokens": ["Does", "the", "given", "word", "match?"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/Inflection.java#L123-L126", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/Inflection.java", "func_name": "Inflection.replace", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Replace the word with its pattern.\n@param word The word\n@return The result", "docstring_tokens": ["Replace", "the", "word", "with", "its", "pattern", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/Inflection.java#L133-L136", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/Inflection.java", "func_name": "Inflection.pluralize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the pluralized version of a word.\n@param word The word\n@return The pluralized word", "docstring_tokens": ["Return", "the", "pluralized", "version", "of", "a", "word", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/Inflection.java#L143-L154", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/util/Inflection.java", "func_name": "Inflection.isUncountable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return true if the word is uncountable.\n@param word The word\n@return True if it is uncountable", "docstring_tokens": ["Return", "true", "if", "the", "word", "is", "uncountable", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/util/Inflection.java#L179-L186", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/output/LzoOutputFormat.java", "func_name": "LzoOutputFormat.getOutputStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method to create lzo output file needed to create RecordWriter", "docstring_tokens": ["Helper", "method", "to", "create", "lzo", "output", "file", "needed", "to", "create", "RecordWriter"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/output/LzoOutputFormat.java#L26-L32", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/store/SequenceFileStorage.java", "func_name": "SequenceFileStorage.verifyWritableClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tests validity of Writable class, ensures consistent error message for both key and value\ntests.\n\n@param writableClass class being tested.\n@param isKeyClass {@code true} if testing keyClass, {@code false} otherwise.\n@param writableConverter associated WritableConverter instance.", "docstring_tokens": ["Tests", "validity", "of", "Writable", "class", "ensures", "consistent", "error", "message", "for", "both", "key", "and", "value", "tests", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/store/SequenceFileStorage.java#L257-L263", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/io/ThriftConverter.java", "func_name": "ThriftConverter.newInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a ThriftConverter for a given Thrift class.", "docstring_tokens": ["Returns", "a", "ThriftConverter", "for", "a", "given", "Thrift", "class", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/io/ThriftConverter.java#L36-L38", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/PigUtil.java", "func_name": "PigUtil.getClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns class using Pig's class loader.", "docstring_tokens": ["Returns", "class", "using", "Pig", "s", "class", "loader", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/PigUtil.java#L22-L28", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "pig/src/main/java/com/twitter/elephantbird/pig/util/PigUtil.java", "func_name": "PigUtil.getThriftTypeRef", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns TypeRef using Pig class loader.", "docstring_tokens": ["Returns", "TypeRef", "using", "Pig", "class", "loader", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/pig/src/main/java/com/twitter/elephantbird/pig/util/PigUtil.java#L96-L98", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "rcfile/src/main/java/com/twitter/elephantbird/util/RCFileUtil.java", "func_name": "RCFileUtil.findColumnsToRead", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns list of columns that need to be read from the RCFile.\nThese columns are the intersection of currently required columns and\ncolumns stored in the file.\nIf any required column does not exist in the file, we need to read\nthe \"unknown fields\" column, which is usually the last last one.", "docstring_tokens": ["Returns", "list", "of", "columns", "that", "need", "to", "be", "read", "from", "the", "RCFile", ".", "These", "columns", "are", "the", "intersection", "of", "currently", "required", "columns", "and", "columns", "stored", "in", "the", "file", ".", "If", "any", "required", "column", "does", "not", "exist", "in", "the", "file", "we", "need", "to", "read", "the", "unknown", "fields", "column", "which", "is", "usually", "the", "last", "last", "one", "."], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/rcfile/src/main/java/com/twitter/elephantbird/util/RCFileUtil.java#L82-L144", "partition": "valid"} +{"repo": "twitter/elephant-bird", "path": "core/src/main/java/com/twitter/elephantbird/mapreduce/output/LzoThriftB64LineOutputFormat.java", "func_name": "LzoThriftB64LineOutputFormat.setClassConf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets an internal configuration in jobConf so that remote Tasks\ninstantiate appropriate object for this generic class based on thriftClass", "docstring_tokens": ["Sets", "an", "internal", "configuration", "in", "jobConf", "so", "that", "remote", "Tasks", "instantiate", "appropriate", "object", "for", "this", "generic", "class", "based", "on", "thriftClass"], "sha": "62642c935198aa0ff968f48669c7e654b42dfbf0", "url": "https://github.com/twitter/elephant-bird/blob/62642c935198aa0ff968f48669c7e654b42dfbf0/core/src/main/java/com/twitter/elephantbird/mapreduce/output/LzoThriftB64LineOutputFormat.java#L36-L41", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/oauth/client/RedditHttpClient.java", "func_name": "RedditHttpClient.executeHttpRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute the given HTTP request.\n\n@param request HTTP request\n\n@return Result, null if failed", "docstring_tokens": ["Execute", "the", "given", "HTTP", "request", "."], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/oauth/client/RedditHttpClient.java#L99-L120", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/oauth/client/RedditHttpClient.java", "func_name": "RedditHttpClient.addAuthorization", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add authorization to the HTTP request.\n\n@param request HTTP request\n@param rToken Reddit token (generally of the \"bearer\" type)", "docstring_tokens": ["Add", "authorization", "to", "the", "HTTP", "request", "."], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/oauth/client/RedditHttpClient.java#L128-L130", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/parser/listing/RedditListingParser.java", "func_name": "RedditListingParser.validate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validate that it is indeed the starting of a listing of reddit things.\n\n@param response Object returned by JSON parser\n\n@throws RedditRequestException If the response is not valid listing of reddit things", "docstring_tokens": ["Validate", "that", "it", "is", "indeed", "the", "starting", "of", "a", "listing", "of", "reddit", "things", "."], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/parser/listing/RedditListingParser.java#L37-L62", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/parser/listing/RedditListingParser.java", "func_name": "RedditListingParser.parseThing", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse the data into a thing if possible.\n\n@param kind Kind of data\n@param data Data for the thing\n@return The thing generated from the data, if failed null", "docstring_tokens": ["Parse", "the", "data", "into", "a", "thing", "if", "possible", "."], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/parser/listing/RedditListingParser.java#L166-L189", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/parser/listing/MixedListingParser.java", "func_name": "MixedListingParser.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse JSON received from reddit into a list of submissions and comments.\nThis parser expects the JSON to be of a listing of submissions and comments.\n\n@param jsonText JSON Text\n@return Parsed list of submissions\n\n@throws ParseException", "docstring_tokens": ["Parse", "JSON", "received", "from", "reddit", "into", "a", "list", "of", "submissions", "and", "comments", ".", "This", "parser", "expects", "the", "JSON", "to", "be", "of", "a", "listing", "of", "submissions", "and", "comments", "."], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/parser/listing/MixedListingParser.java#L36-L60", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/request/util/KeyValueFormatter.java", "func_name": "KeyValueFormatter.formatCommaSeparatedList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Format a comma separated list of the given list.\n\n@param list List of strings\n\n@return Comma-separated list string (e.g. \"a,b,c,d\")", "docstring_tokens": ["Format", "a", "comma", "separated", "list", "of", "the", "given", "list", "."], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/request/util/KeyValueFormatter.java#L75-L84", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/oauth/client/RedditPoliteClient.java", "func_name": "RedditPoliteClient.waitIfNeeded", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wait if required.", "docstring_tokens": ["Wait", "if", "required", "."], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/oauth/client/RedditPoliteClient.java#L81-L99", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/oauth/RedditOAuthAgent.java", "func_name": "RedditOAuthAgent.addBasicAuthentication", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the basic authentication protocol to the OAuth request using\nthe credentials of the Reddit application provided.\n\n@param request OAuth request\n@param app Reddit application", "docstring_tokens": ["Add", "the", "basic", "authentication", "protocol", "to", "the", "OAuth", "request", "using", "the", "credentials", "of", "the", "Reddit", "application", "provided", "."], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/oauth/RedditOAuthAgent.java#L168-L172", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/oauth/RedditToken.java", "func_name": "RedditToken.refresh", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Refresh this reddit token with data received from the new token.\n\n@param token Token received from a refresh request to reddit", "docstring_tokens": ["Refresh", "this", "reddit", "token", "with", "data", "received", "from", "the", "new", "token", "."], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/oauth/RedditToken.java#L80-L86", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/parser/util/CommentTreeUtils.java", "func_name": "CommentTreeUtils.printCommentTree", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get printable version of the given comment tree.\n\n@param cs List of comment tree elements\n\n@return Printable comment tree", "docstring_tokens": ["Get", "printable", "version", "of", "the", "given", "comment", "tree", "."], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/parser/util/CommentTreeUtils.java#L52-L58", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/parser/util/JsonUtils.java", "func_name": "JsonUtils.safeJsonToInteger", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Safely converts an object into an integer\n\n@param obj The object to convert.\n@return an Integer representing the integer value of the Object (null if the object cannot be converted to an Integer)", "docstring_tokens": ["Safely", "converts", "an", "object", "into", "an", "integer"], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/parser/util/JsonUtils.java#L34-L45", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/parser/util/JsonUtils.java", "func_name": "JsonUtils.safeJsonToDouble", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Safely converts an object into an double\n\n@param obj The object to convert.\n@return a Double representing the double value of the Object (null if the object cannot be converted to Double)", "docstring_tokens": ["Safely", "converts", "an", "object", "into", "an", "double"], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/parser/util/JsonUtils.java#L53-L64", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/parser/util/JsonUtils.java", "func_name": "JsonUtils.safeJsonToBoolean", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Safely converts an object into an boolean\n\n@param obj The object to convert.\n@return a Boolean representing the boolean value of the Object (null only if the object was also null)", "docstring_tokens": ["Safely", "converts", "an", "object", "into", "an", "boolean"], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/parser/util/JsonUtils.java#L73-L77", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/parser/util/JsonUtils.java", "func_name": "JsonUtils.safeJsonToLong", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Safely converts an object into an long\n\n@param obj The object to convert.\n@return a Long representing the long value of the Object (null if the object cannot be converted to Long)", "docstring_tokens": ["Safely", "converts", "an", "object", "into", "an", "long"], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/parser/util/JsonUtils.java#L85-L96", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/parser/single/FullSubmissionParser.java", "func_name": "FullSubmissionParser.parseRecursive", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse a JSON object consisting of comments and add them\nto the already existing list of comments. This does NOT create\na new comment list.\n\n@param comments List of comments\n@param object JSON Object", "docstring_tokens": ["Parse", "a", "JSON", "object", "consisting", "of", "comments", "and", "add", "them", "to", "the", "already", "existing", "list", "of", "comments", ".", "This", "does", "NOT", "create", "a", "new", "comment", "list", "."], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/parser/single/FullSubmissionParser.java#L70-L118", "partition": "valid"} +{"repo": "jReddit/jReddit", "path": "src/main/java/com/github/jreddit/parser/listing/SubredditsListingParser.java", "func_name": "SubredditsListingParser.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse JSON received from reddit into a list of subreddits.\nThis parser expects the JSON to be of a listing of subreddits.\n\n@param jsonText JSON Text\n@return Parsed list of subreddits\n\n@throws ParseException", "docstring_tokens": ["Parse", "JSON", "received", "from", "reddit", "into", "a", "list", "of", "subreddits", ".", "This", "parser", "expects", "the", "JSON", "to", "be", "of", "a", "listing", "of", "subreddits", "."], "sha": "ac0b518f190c30228e401ef66d53329bbd27bad6", "url": "https://github.com/jReddit/jReddit/blob/ac0b518f190c30228e401ef66d53329bbd27bad6/src/main/java/com/github/jreddit/parser/listing/SubredditsListingParser.java#L27-L49", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/utils/EnforceSignedRequestUtils.java", "func_name": "EnforceSignedRequestUtils.signature", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "signature returns the HmacSHA256 encoded signature used for signed Instagram requests\n@param endpoint The endpoint\n@param params The query parameters\n@param clientSecret The client application secret\n@return encoded signature String\n@throws InstagramException", "docstring_tokens": ["signature", "returns", "the", "HmacSHA256", "encoded", "signature", "used", "for", "signed", "Instagram", "requests"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/utils/EnforceSignedRequestUtils.java#L31-L53", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/utils/MapUtils.java", "func_name": "MapUtils.sort", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sorts a Map\n\n@param map unsorted map\n@return sorted map", "docstring_tokens": ["Sorts", "a", "Map"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/utils/MapUtils.java#L23-L33", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/InstagramOembed.java", "func_name": "InstagramOembed.getOembedInformation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns information about the media associated with that link.\n\n@param url A short link, like http://instagr.am/p/BUG/.\n@return OembedInformation object\n@throws org.jinstagram.exceptions.InstagramException if any error occurs.", "docstring_tokens": ["Returns", "information", "about", "the", "media", "associated", "with", "that", "link", "."], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/InstagramOembed.java#L30-L33", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/InstagramOembed.java", "func_name": "InstagramOembed.createInstagramObject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create an Instagram object based on class-name and response.\n\n@param verbs HTTP State\n@param clazz\n@param methodName\n@param params\n@return\n@throws InstagramException", "docstring_tokens": ["Create", "an", "Instagram", "object", "based", "on", "class", "-", "name", "and", "response", "."], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/InstagramOembed.java#L45-L59", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/InstagramOembed.java", "func_name": "InstagramOembed.createObjectFromResponse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an object from the JSON response and the class which the object would be mapped to.\n\n@param clazz a class instance\n@param response a JSON feed\n@return a object of type \n@throws InstagramException if any error occurs.", "docstring_tokens": ["Creates", "an", "object", "from", "the", "JSON", "response", "and", "the", "class", "which", "the", "object", "would", "be", "mapped", "to", "."], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/InstagramOembed.java#L115-L126", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/utils/Preconditions.java", "func_name": "Preconditions.checkBothNotNull", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks that at least one of object1 or object2 is not null\n\n@param object1 any object\n@param object2 any object\n@param errorMsg error message\n@throws IllegalArgumentException if both object1 and object2 are null", "docstring_tokens": ["Checks", "that", "at", "least", "one", "of", "object1", "or", "object2", "is", "not", "null"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/utils/Preconditions.java#L37-L39", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/utils/Preconditions.java", "func_name": "Preconditions.checkEmptyString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks that a string is not null or empty\n@param string any string\n@param errorMsg error message\n@throws IllegalArgumentException if the string is null or empty", "docstring_tokens": ["Checks", "that", "a", "string", "is", "not", "null", "or", "empty"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/utils/Preconditions.java#L47-L49", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/utils/Preconditions.java", "func_name": "Preconditions.checkValidUrl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks that a URL is valid\n\n@param url any string\n@param errorMsg error message", "docstring_tokens": ["Checks", "that", "a", "URL", "is", "valid"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/utils/Preconditions.java#L57-L60", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/utils/Preconditions.java", "func_name": "Preconditions.checkValidOAuthCallback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks that a URL is a valid OAuth callback\n\n@param url any string\n@param errorMsg error message", "docstring_tokens": ["Checks", "that", "a", "URL", "is", "a", "valid", "OAuth", "callback"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/utils/Preconditions.java#L68-L74", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/auth/oauth/InstagramService.java", "func_name": "InstagramService.getSignedHeaderInstagram", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return an Instagram object with enforced signed header", "docstring_tokens": ["Return", "an", "Instagram", "object", "with", "enforced", "signed", "header"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/auth/oauth/InstagramService.java#L110-L113", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/InstagramBase.java", "func_name": "InstagramBase.configureConnectionSettings", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure the request with the connection settings of config\n@param request OAuthRequest object\n@param config InstagramConfig object", "docstring_tokens": ["Configure", "the", "request", "with", "the", "connection", "settings", "of", "config"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/InstagramBase.java#L1037-L1043", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/http/Request.java", "func_name": "Request.getBodyContents", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the body of the request\n\n@return form encoded string\n@throws OAuthException if the charset chosen is not supported", "docstring_tokens": ["Returns", "the", "body", "of", "the", "request"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/http/Request.java#L207-L213", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/utils/LogHelper.java", "func_name": "LogHelper.prettyPrintJSONResponse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Pretty print the JSON response in the logs\n\n@param logger the logger instance\n@param jsonString the json String which is to be pretty printed.", "docstring_tokens": ["Pretty", "print", "the", "JSON", "response", "in", "the", "logs"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/utils/LogHelper.java#L98-L111", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/realtime/InstagramSubscription.java", "func_name": "InstagramSubscription.callback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configures the callback url\n\n@param callback The callback for your application\n@return the {@link InstagramSubscription} instance for method chaining", "docstring_tokens": ["Configures", "the", "callback", "url"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/realtime/InstagramSubscription.java#L40-L46", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/realtime/InstagramSubscription.java", "func_name": "InstagramSubscription.clientId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configures the clientId\n\n@param clientId The clientId for your application\n@return the {@link InstagramSubscription} instance for method chaining", "docstring_tokens": ["Configures", "the", "clientId"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/realtime/InstagramSubscription.java#L54-L60", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/realtime/InstagramSubscription.java", "func_name": "InstagramSubscription.clientSecret", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure the clientSecret\n@param clientSecret The clientSecret for your application\n@return the {@link InstagramSubscription} instance for method chaining", "docstring_tokens": ["Configure", "the", "clientSecret"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/realtime/InstagramSubscription.java#L67-L73", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/realtime/InstagramSubscription.java", "func_name": "InstagramSubscription.object", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure the subscription type\n@param type The subscription type for your usage\n@return the {@link InstagramSubscription} instance for method chaining", "docstring_tokens": ["Configure", "the", "subscription", "type"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/realtime/InstagramSubscription.java#L80-L85", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/realtime/InstagramSubscription.java", "func_name": "InstagramSubscription.verifyToken", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure the verifyToken for the subscription\n\n@param verifyToken The token for the subscription\n@return the {@link InstagramSubscription} instance for method chaining", "docstring_tokens": ["Configure", "the", "verifyToken", "for", "the", "subscription"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/realtime/InstagramSubscription.java#L105-L111", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/realtime/InstagramSubscription.java", "func_name": "InstagramSubscription.aspect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure the aspect for the subscription\n\n@param aspect The aspect of the subscription\n@return the {@link InstagramSubscription} instance for method chaining", "docstring_tokens": ["Configure", "the", "aspect", "for", "the", "subscription"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/realtime/InstagramSubscription.java#L119-L125", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/realtime/InstagramSubscription.java", "func_name": "InstagramSubscription.latitute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure the latitude for geography subscription\n@param latitude The latitude for geography subscription\n@return the {@link InstagramSubscription} instance for method chaining", "docstring_tokens": ["Configure", "the", "latitude", "for", "geography", "subscription"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/realtime/InstagramSubscription.java#L132-L138", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/realtime/InstagramSubscription.java", "func_name": "InstagramSubscription.longitude", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure the longitude for geography subscription\n@param longitude The longitude for geography subscription\n@return the {@link InstagramSubscription} instance for method chaining", "docstring_tokens": ["Configure", "the", "longitude", "for", "geography", "subscription"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/realtime/InstagramSubscription.java#L145-L151", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/realtime/InstagramSubscription.java", "func_name": "InstagramSubscription.radius", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure the radius for geography subscription\n@param radius The radius for geography subscription in metre\n@return the {@link InstagramSubscription} instance for method chaining", "docstring_tokens": ["Configure", "the", "radius", "for", "geography", "subscription"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/realtime/InstagramSubscription.java#L158-L164", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/realtime/InstagramSubscription.java", "func_name": "InstagramSubscription.deleteSubscription", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes a subscription with the specified identifier.\n\n@param id the id of the subscription to remove", "docstring_tokens": ["Deletes", "a", "subscription", "with", "the", "specified", "identifier", "."], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/realtime/InstagramSubscription.java#L212-L222", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/realtime/InstagramSubscription.java", "func_name": "InstagramSubscription.deleteAllSubscription", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes all the known subscription.\n\n@return the response of this request, holding mainly the code", "docstring_tokens": ["Deletes", "all", "the", "known", "subscription", "."], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/realtime/InstagramSubscription.java#L229-L239", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/realtime/InstagramSubscription.java", "func_name": "InstagramSubscription.getSubscriptionList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the currently active subscription.\n\n@return the active subscription", "docstring_tokens": ["Returns", "the", "currently", "active", "subscription", "."], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/realtime/InstagramSubscription.java#L246-L255", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/http/URLUtils.java", "func_name": "URLUtils.formURLEncodeMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Turns a map into a form-urlencoded string\n\n@param map any map\n@return form-url-encoded string", "docstring_tokens": ["Turns", "a", "map", "into", "a", "form", "-", "urlencoded", "string"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/http/URLUtils.java#L110-L114", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/http/URLUtils.java", "func_name": "URLUtils.percentEncode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Percent encodes a string\n\n@param string plain string\n@return percent encoded string", "docstring_tokens": ["Percent", "encodes", "a", "string"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/http/URLUtils.java#L136-L144", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/http/URLUtils.java", "func_name": "URLUtils.appendParametersToQueryString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Append given parameters to the query string of the url\n\n@param url the url to append parameters to\n@param params any map\n@return new url with parameters on query string", "docstring_tokens": ["Append", "given", "parameters", "to", "the", "query", "string", "of", "the", "url"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/http/URLUtils.java#L185-L198", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/http/URLUtils.java", "func_name": "URLUtils.concatSortedPercentEncodedParams", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Concats a key-value map into a querystring-like String\n\n@param params key-value map\n@return querystring-like String", "docstring_tokens": ["Concats", "a", "key", "-", "value", "map", "into", "a", "querystring", "-", "like", "String"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/http/URLUtils.java#L206-L215", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/http/URLUtils.java", "func_name": "URLUtils.queryStringToMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses and form-urldecodes a querystring-like string into a map\n\n@param queryString querystring-like String\n@return a map with the form-urldecoded parameters", "docstring_tokens": ["Parses", "and", "form", "-", "urldecodes", "a", "querystring", "-", "like", "string", "into", "a", "map"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/http/URLUtils.java#L223-L237", "partition": "valid"} +{"repo": "sachin-handiekar/jInstagram", "path": "src/main/java/org/jinstagram/entity/common/InstagramErrorResponse.java", "func_name": "InstagramErrorResponse.throwException", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Throw instagram exception to the client\n\n@throws InstagramException", "docstring_tokens": ["Throw", "instagram", "exception", "to", "the", "client"], "sha": "82834b0ea2629913c8f2c4a76f949505c92093b9", "url": "https://github.com/sachin-handiekar/jInstagram/blob/82834b0ea2629913c8f2c4a76f949505c92093b9/src/main/java/org/jinstagram/entity/common/InstagramErrorResponse.java#L40-L54", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j/src/main/java/eu/verdelhan/ta4j/BaseTick.java", "func_name": "BaseTick.addTrade", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a trade at the end of tick period.\n@param tradeVolume the traded volume\n@param tradePrice the price", "docstring_tokens": ["Adds", "a", "trade", "at", "the", "end", "of", "tick", "period", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j/src/main/java/eu/verdelhan/ta4j/BaseTick.java#L229-L248", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j/src/main/java/eu/verdelhan/ta4j/indicators/CachedIndicator.java", "func_name": "CachedIndicator.increaseLengthTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Increases the size of cached results buffer.\n@param index the index to increase length to\n@param maxLength the maximum length of the results buffer", "docstring_tokens": ["Increases", "the", "size", "of", "cached", "results", "buffer", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j/src/main/java/eu/verdelhan/ta4j/indicators/CachedIndicator.java#L124-L139", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j/src/main/java/eu/verdelhan/ta4j/analysis/criteria/MaximumDrawdownCriterion.java", "func_name": "MaximumDrawdownCriterion.calculateMaximumDrawdown", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates the maximum drawdown from a cash flow over a series.\n@param series the time series\n@param cashFlow the cash flow\n@return the maximum drawdown from a cash flow over a series", "docstring_tokens": ["Calculates", "the", "maximum", "drawdown", "from", "a", "cash", "flow", "over", "a", "series", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j/src/main/java/eu/verdelhan/ta4j/analysis/criteria/MaximumDrawdownCriterion.java#L66-L84", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j-examples/src/main/java/ta4jexamples/walkforward/WalkForward.java", "func_name": "WalkForward.getSplitBeginIndexes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds a list of split indexes from splitDuration.\n@param series the time series to get split begin indexes of\n@param splitDuration the duration between 2 splits\n@return a list of begin indexes after split", "docstring_tokens": ["Builds", "a", "list", "of", "split", "indexes", "from", "splitDuration", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j-examples/src/main/java/ta4jexamples/walkforward/WalkForward.java#L59-L89", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j/src/main/java/eu/verdelhan/ta4j/indicators/statistics/SimpleLinearRegressionIndicator.java", "func_name": "SimpleLinearRegressionIndicator.calculateRegressionLine", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates the regression line.\n@param startIndex the start index (inclusive) in the time series\n@param endIndex the end index (inclusive) in the time series", "docstring_tokens": ["Calculates", "the", "regression", "line", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j/src/main/java/eu/verdelhan/ta4j/indicators/statistics/SimpleLinearRegressionIndicator.java#L69-L93", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j/src/main/java/eu/verdelhan/ta4j/Trade.java", "func_name": "Trade.operate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Operates the trade at the index-th position\n@param index the tick index\n@param price the price\n@param amount the amount\n@return the order", "docstring_tokens": ["Operates", "the", "trade", "at", "the", "index", "-", "th", "position"], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j/src/main/java/eu/verdelhan/ta4j/Trade.java#L127-L140", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j-examples/src/main/java/ta4jexamples/analysis/BuyAndSellSignalsToChart.java", "func_name": "BuyAndSellSignalsToChart.buildChartTimeSeries", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds a JFreeChart time series from a Ta4j time series and an indicator.\n@param tickSeries the ta4j time series\n@param indicator the indicator\n@param name the name of the chart time series\n@return the JFreeChart time series", "docstring_tokens": ["Builds", "a", "JFreeChart", "time", "series", "from", "a", "Ta4j", "time", "series", "and", "an", "indicator", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j-examples/src/main/java/ta4jexamples/analysis/BuyAndSellSignalsToChart.java#L64-L71", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j-examples/src/main/java/ta4jexamples/bots/TradingBotOnMovingTimeSeries.java", "func_name": "TradingBotOnMovingTimeSeries.randDecimal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates a random decimal number between min and max.\n@param min the minimum bound\n@param max the maximum bound\n@return a random decimal number between min and max", "docstring_tokens": ["Generates", "a", "random", "decimal", "number", "between", "min", "and", "max", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j-examples/src/main/java/ta4jexamples/bots/TradingBotOnMovingTimeSeries.java#L93-L99", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j-examples/src/main/java/ta4jexamples/bots/TradingBotOnMovingTimeSeries.java", "func_name": "TradingBotOnMovingTimeSeries.generateRandomTick", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates a random tick.\n@return a random tick", "docstring_tokens": ["Generates", "a", "random", "tick", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j-examples/src/main/java/ta4jexamples/bots/TradingBotOnMovingTimeSeries.java#L105-L113", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j/src/main/java/eu/verdelhan/ta4j/indicators/ParabolicSarIndicator.java", "func_name": "ParabolicSarIndicator.incrementAcceleration", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Increments the acceleration factor.", "docstring_tokens": ["Increments", "the", "acceleration", "factor", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j/src/main/java/eu/verdelhan/ta4j/indicators/ParabolicSarIndicator.java#L139-L145", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j/src/main/java/eu/verdelhan/ta4j/indicators/ParabolicSarIndicator.java", "func_name": "ParabolicSarIndicator.calculateSar", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates the SAR.\n@param index the tick index\n@return the SAR", "docstring_tokens": ["Calculates", "the", "SAR", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j/src/main/java/eu/verdelhan/ta4j/indicators/ParabolicSarIndicator.java#L152-L156", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j/src/main/java/eu/verdelhan/ta4j/analysis/CashFlow.java", "func_name": "CashFlow.calculate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates the cash flow for a single trade.\n@param trade a single trade", "docstring_tokens": ["Calculates", "the", "cash", "flow", "for", "a", "single", "trade", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j/src/main/java/eu/verdelhan/ta4j/analysis/CashFlow.java#L95-L112", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j/src/main/java/eu/verdelhan/ta4j/analysis/CashFlow.java", "func_name": "CashFlow.fillToTheEnd", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fills with last value till the end of the series.", "docstring_tokens": ["Fills", "with", "last", "value", "till", "the", "end", "of", "the", "series", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j/src/main/java/eu/verdelhan/ta4j/analysis/CashFlow.java#L128-L133", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j-examples/src/main/java/ta4jexamples/logging/StrategyExecutionLogging.java", "func_name": "StrategyExecutionLogging.loadLoggerConfiguration", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads the Logback configuration from a resource file.\nOnly here to avoid polluting other examples with logs. Could be replaced by a simple logback.xml file in the resource folder.", "docstring_tokens": ["Loads", "the", "Logback", "configuration", "from", "a", "resource", "file", ".", "Only", "here", "to", "avoid", "polluting", "other", "examples", "with", "logs", ".", "Could", "be", "replaced", "by", "a", "simple", "logback", ".", "xml", "file", "in", "the", "resource", "folder", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j-examples/src/main/java/ta4jexamples/logging/StrategyExecutionLogging.java#L51-L62", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j-examples/src/main/java/ta4jexamples/indicators/CandlestickChart.java", "func_name": "CandlestickChart.createOHLCDataset", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds a JFreeChart OHLC dataset from a ta4j time series.\n@param series a time series\n@return an Open-High-Low-Close dataset", "docstring_tokens": ["Builds", "a", "JFreeChart", "OHLC", "dataset", "from", "a", "ta4j", "time", "series", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j-examples/src/main/java/ta4jexamples/indicators/CandlestickChart.java#L56-L79", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j-examples/src/main/java/ta4jexamples/indicators/CandlestickChart.java", "func_name": "CandlestickChart.createAdditionalDataset", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds an additional JFreeChart dataset from a ta4j time series.\n@param series a time series\n@return an additional dataset", "docstring_tokens": ["Builds", "an", "additional", "JFreeChart", "dataset", "from", "a", "ta4j", "time", "series", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j-examples/src/main/java/ta4jexamples/indicators/CandlestickChart.java#L86-L96", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j-examples/src/main/java/ta4jexamples/analysis/CashFlowToChart.java", "func_name": "CashFlowToChart.addCashFlowAxis", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the cash flow axis to the plot.\n@param plot the plot\n@param dataset the cash flow dataset", "docstring_tokens": ["Adds", "the", "cash", "flow", "axis", "to", "the", "plot", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j-examples/src/main/java/ta4jexamples/analysis/CashFlowToChart.java#L78-L87", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j-examples/src/main/java/ta4jexamples/analysis/CashFlowToChart.java", "func_name": "CashFlowToChart.displayChart", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Displays a chart in a frame.\n@param chart the chart to be displayed", "docstring_tokens": ["Displays", "a", "chart", "in", "a", "frame", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j-examples/src/main/java/ta4jexamples/analysis/CashFlowToChart.java#L93-L105", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j/src/main/java/eu/verdelhan/ta4j/BaseTimeSeries.java", "func_name": "BaseTimeSeries.removeExceedingTicks", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the N first ticks which exceed the maximum tick count.", "docstring_tokens": ["Removes", "the", "N", "first", "ticks", "which", "exceed", "the", "maximum", "tick", "count", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j/src/main/java/eu/verdelhan/ta4j/BaseTimeSeries.java#L233-L244", "partition": "valid"} +{"repo": "mdeverdelhan/ta4j-origins", "path": "ta4j-examples/src/main/java/ta4jexamples/loaders/CsvTradesLoader.java", "func_name": "CsvTradesLoader.buildEmptyTicks", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds a list of empty ticks.\n@param beginTime the begin time of the whole period\n@param endTime the end time of the whole period\n@param duration the tick duration (in seconds)\n@return the list of empty ticks", "docstring_tokens": ["Builds", "a", "list", "of", "empty", "ticks", "."], "sha": "0441468c09cfd98754497cd9c0f1da9cf70fc4b9", "url": "https://github.com/mdeverdelhan/ta4j-origins/blob/0441468c09cfd98754497cd9c0f1da9cf70fc4b9/ta4j-examples/src/main/java/ta4jexamples/loaders/CsvTradesLoader.java#L116-L128", "partition": "valid"} +{"repo": "airbnb/RxGroups", "path": "rxgroups/src/main/java/com/airbnb/rxgroups/ObservableGroup.java", "func_name": "ObservableGroup.destroy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Cancels all subscriptions and releases references to Observables and Observers. No more\nObservables can be added to this group after it has been destroyed and it becomes unusable.", "docstring_tokens": ["Cancels", "all", "subscriptions", "and", "releases", "references", "to", "Observables", "and", "Observers", ".", "No", "more", "Observables", "can", "be", "added", "to", "this", "group", "after", "it", "has", "been", "destroyed", "and", "it", "becomes", "unusable", "."], "sha": "9478b5ea52e7926173d742b61d0cb24b05082ff9", "url": "https://github.com/airbnb/RxGroups/blob/9478b5ea52e7926173d742b61d0cb24b05082ff9/rxgroups/src/main/java/com/airbnb/rxgroups/ObservableGroup.java#L167-L177", "partition": "valid"} +{"repo": "airbnb/RxGroups", "path": "rxgroups-android/src/main/java/com/airbnb/rxgroups/GroupLifecycleManager.java", "func_name": "GroupLifecycleManager.onSaveInstanceState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call this method from your Activity or Fragment's onSaveInstanceState method", "docstring_tokens": ["Call", "this", "method", "from", "your", "Activity", "or", "Fragment", "s", "onSaveInstanceState", "method"], "sha": "9478b5ea52e7926173d742b61d0cb24b05082ff9", "url": "https://github.com/airbnb/RxGroups/blob/9478b5ea52e7926173d742b61d0cb24b05082ff9/rxgroups-android/src/main/java/com/airbnb/rxgroups/GroupLifecycleManager.java#L214-L217", "partition": "valid"} +{"repo": "gmethvin/directory-watcher", "path": "core/src/main/java/io/methvin/watchservice/AbstractWatchKey.java", "func_name": "AbstractWatchKey.signalEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "WatchEvent not WatchEvent.Kind", "docstring_tokens": ["WatchEvent", "not", "WatchEvent", ".", "Kind"], "sha": "cad969d2b9c89dc8a1388236b1474828ee5bf5d7", "url": "https://github.com/gmethvin/directory-watcher/blob/cad969d2b9c89dc8a1388236b1474828ee5bf5d7/core/src/main/java/io/methvin/watchservice/AbstractWatchKey.java#L148-L151", "partition": "valid"} +{"repo": "gmethvin/directory-watcher", "path": "core/src/main/java/io/methvin/watcher/DirectoryWatcher.java", "func_name": "DirectoryWatcher.watchAsync", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asynchronously watch the directories.\n\n@param executor the executor to use to watch asynchronously", "docstring_tokens": ["Asynchronously", "watch", "the", "directories", "."], "sha": "cad969d2b9c89dc8a1388236b1474828ee5bf5d7", "url": "https://github.com/gmethvin/directory-watcher/blob/cad969d2b9c89dc8a1388236b1474828ee5bf5d7/core/src/main/java/io/methvin/watcher/DirectoryWatcher.java#L192-L199", "partition": "valid"} +{"repo": "gmethvin/directory-watcher", "path": "core/src/main/java/io/methvin/watcher/DirectoryWatcher.java", "func_name": "DirectoryWatcher.register", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Internal method to be used by registerAll", "docstring_tokens": ["Internal", "method", "to", "be", "used", "by", "registerAll"], "sha": "cad969d2b9c89dc8a1388236b1474828ee5bf5d7", "url": "https://github.com/gmethvin/directory-watcher/blob/cad969d2b9c89dc8a1388236b1474828ee5bf5d7/core/src/main/java/io/methvin/watcher/DirectoryWatcher.java#L332-L343", "partition": "valid"} +{"repo": "mojohaus/exec-maven-plugin", "path": "src/main/java/org/codehaus/mojo/exec/ExecJavaMojo.java", "func_name": "ExecJavaMojo.getClassLoader", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set up a classloader for the execution of the main class.\n\n@return the classloader\n@throws MojoExecutionException if a problem happens", "docstring_tokens": ["Set", "up", "a", "classloader", "for", "the", "execution", "of", "the", "main", "class", "."], "sha": "3296fc845b000b8f4584a5e21805c65c9338fe57", "url": "https://github.com/mojohaus/exec-maven-plugin/blob/3296fc845b000b8f4584a5e21805c65c9338fe57/src/main/java/org/codehaus/mojo/exec/ExecJavaMojo.java#L488-L505", "partition": "valid"} +{"repo": "mojohaus/exec-maven-plugin", "path": "src/main/java/org/codehaus/mojo/exec/ExecJavaMojo.java", "func_name": "ExecJavaMojo.addRelevantPluginDependenciesToClasspath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add any relevant project dependencies to the classpath. Indirectly takes includePluginDependencies and\nExecutableDependency into consideration.\n\n@param path classpath of {@link java.net.URL} objects\n@throws MojoExecutionException if a problem happens", "docstring_tokens": ["Add", "any", "relevant", "project", "dependencies", "to", "the", "classpath", ".", "Indirectly", "takes", "includePluginDependencies", "and", "ExecutableDependency", "into", "consideration", "."], "sha": "3296fc845b000b8f4584a5e21805c65c9338fe57", "url": "https://github.com/mojohaus/exec-maven-plugin/blob/3296fc845b000b8f4584a5e21805c65c9338fe57/src/main/java/org/codehaus/mojo/exec/ExecJavaMojo.java#L531-L545", "partition": "valid"} +{"repo": "mojohaus/exec-maven-plugin", "path": "src/main/java/org/codehaus/mojo/exec/ExecJavaMojo.java", "func_name": "ExecJavaMojo.addRelevantProjectDependenciesToClasspath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add any relevant project dependencies to the classpath. Takes includeProjectDependencies into consideration.\n\n@param path classpath of {@link java.net.URL} objects\n@throws MojoExecutionException if a problem happens", "docstring_tokens": ["Add", "any", "relevant", "project", "dependencies", "to", "the", "classpath", ".", "Takes", "includeProjectDependencies", "into", "consideration", "."], "sha": "3296fc845b000b8f4584a5e21805c65c9338fe57", "url": "https://github.com/mojohaus/exec-maven-plugin/blob/3296fc845b000b8f4584a5e21805c65c9338fe57/src/main/java/org/codehaus/mojo/exec/ExecJavaMojo.java#L553-L583", "partition": "valid"} +{"repo": "mojohaus/exec-maven-plugin", "path": "src/main/java/org/codehaus/mojo/exec/ExecJavaMojo.java", "func_name": "ExecJavaMojo.resolveExecutableDependencies", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resolve the executable dependencies for the specified project\n\n@param executablePomArtifact the project's POM\n@return a set of Artifacts\n@throws MojoExecutionException if a failure happens", "docstring_tokens": ["Resolve", "the", "executable", "dependencies", "for", "the", "specified", "project"], "sha": "3296fc845b000b8f4584a5e21805c65c9338fe57", "url": "https://github.com/mojohaus/exec-maven-plugin/blob/3296fc845b000b8f4584a5e21805c65c9338fe57/src/main/java/org/codehaus/mojo/exec/ExecJavaMojo.java#L625-L649", "partition": "valid"} +{"repo": "mojohaus/exec-maven-plugin", "path": "src/main/java/org/codehaus/mojo/exec/AbstractExecMojo.java", "func_name": "AbstractExecMojo.findExecutableArtifact", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Examine the plugin dependencies to find the executable artifact.\n\n@return an artifact which refers to the actual executable tool (not a POM)\n@throws MojoExecutionException if no executable artifact was found", "docstring_tokens": ["Examine", "the", "plugin", "dependencies", "to", "find", "the", "executable", "artifact", "."], "sha": "3296fc845b000b8f4584a5e21805c65c9338fe57", "url": "https://github.com/mojohaus/exec-maven-plugin/blob/3296fc845b000b8f4584a5e21805c65c9338fe57/src/main/java/org/codehaus/mojo/exec/AbstractExecMojo.java#L271-L293", "partition": "valid"} +{"repo": "mojohaus/exec-maven-plugin", "path": "src/main/java/org/codehaus/mojo/exec/ExecMojo.java", "func_name": "ExecMojo.handleWorkingDirectory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This is a convenient method to make the execute method a little bit more readable. It will define the\nworkingDirectory to be the baseDir in case of workingDirectory is null. If the workingDirectory does not exist it\nwill created.\n\n@throws MojoExecutionException", "docstring_tokens": ["This", "is", "a", "convenient", "method", "to", "make", "the", "execute", "method", "a", "little", "bit", "more", "readable", ".", "It", "will", "define", "the", "workingDirectory", "to", "be", "the", "baseDir", "in", "case", "of", "workingDirectory", "is", "null", ".", "If", "the", "workingDirectory", "does", "not", "exist", "it", "will", "created", "."], "sha": "3296fc845b000b8f4584a5e21805c65c9338fe57", "url": "https://github.com/mojohaus/exec-maven-plugin/blob/3296fc845b000b8f4584a5e21805c65c9338fe57/src/main/java/org/codehaus/mojo/exec/ExecMojo.java#L407-L424", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/stats/FeedStats.java", "func_name": "FeedStats.getCalendarServiceRangeStart", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "returns null for schedules without calendar service schedules", "docstring_tokens": ["returns", "null", "for", "schedules", "without", "calendar", "service", "schedules"], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/stats/FeedStats.java#L70-L85", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/stats/FeedStats.java", "func_name": "FeedStats.getBounds", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the bounding box of this GTFS feed.\nWe use a Rectangle2D rather than a Geotools envelope because GTFS is always in WGS 84.\nNote that stops do not have agencies in GTFS.", "docstring_tokens": ["Get", "the", "bounding", "box", "of", "this", "GTFS", "feed", ".", "We", "use", "a", "Rectangle2D", "rather", "than", "a", "Geotools", "envelope", "because", "GTFS", "is", "always", "in", "WGS", "84", ".", "Note", "that", "stops", "do", "not", "have", "agencies", "in", "GTFS", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/stats/FeedStats.java#L302-L320", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/validator/SpeedTripValidator.java", "func_name": "SpeedTripValidator.checkDistanceAndTime", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This just pulls some of the range checking logic out of the main trip checking loop so it's more readable.\n@return true if all values are OK", "docstring_tokens": ["This", "just", "pulls", "some", "of", "the", "range", "checking", "logic", "out", "of", "the", "main", "trip", "checking", "loop", "so", "it", "s", "more", "readable", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/validator/SpeedTripValidator.java#L131-L149", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcGtfsLoader.java", "func_name": "JdbcGtfsLoader.load", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This wraps the main internal table loader method to catch exceptions and figure out how many errors happened.", "docstring_tokens": ["This", "wraps", "the", "main", "internal", "table", "loader", "method", "to", "catch", "exceptions", "and", "figure", "out", "how", "many", "errors", "happened", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcGtfsLoader.java#L267-L294", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcGtfsLoader.java", "func_name": "JdbcGtfsLoader.getTableSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the uncompressed file size in bytes for the specified GTFS table.", "docstring_tokens": ["Get", "the", "uncompressed", "file", "size", "in", "bytes", "for", "the", "specified", "GTFS", "table", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcGtfsLoader.java#L299-L303", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcGtfsLoader.java", "func_name": "JdbcGtfsLoader.setFieldToNull", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets field to null in statement or string array depending on whether postgres is being used.", "docstring_tokens": ["Sets", "field", "to", "null", "in", "statement", "or", "string", "array", "depending", "on", "whether", "postgres", "is", "being", "used", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcGtfsLoader.java#L538-L549", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcGtfsSnapshotter.java", "func_name": "JdbcGtfsSnapshotter.copyTables", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copy primary entity tables as well as Pattern and PatternStops tables.", "docstring_tokens": ["Copy", "primary", "entity", "tables", "as", "well", "as", "Pattern", "and", "PatternStops", "tables", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcGtfsSnapshotter.java#L61-L114", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcGtfsSnapshotter.java", "func_name": "JdbcGtfsSnapshotter.tableExists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method to determine if a table exists within a namespace.", "docstring_tokens": ["Helper", "method", "to", "determine", "if", "a", "table", "exists", "within", "a", "namespace", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcGtfsSnapshotter.java#L321-L338", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcGtfsSnapshotter.java", "func_name": "JdbcGtfsSnapshotter.addEditorSpecificFields", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add columns for any required, optional, or editor fields that don't already exist as columns on the table.\nThis method contains a SQL statement that requires PostgreSQL 9.6+.", "docstring_tokens": ["Add", "columns", "for", "any", "required", "optional", "or", "editor", "fields", "that", "don", "t", "already", "exist", "as", "columns", "on", "the", "table", ".", "This", "method", "contains", "a", "SQL", "statement", "that", "requires", "PostgreSQL", "9", ".", "6", "+", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcGtfsSnapshotter.java#L344-L356", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcGtfsSnapshotter.java", "func_name": "JdbcGtfsSnapshotter.registerSnapshot", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a line to the list of loaded feeds to record the snapshot and which feed the snapshot replicates.", "docstring_tokens": ["Add", "a", "line", "to", "the", "list", "of", "loaded", "feeds", "to", "record", "the", "snapshot", "and", "which", "feed", "the", "snapshot", "replicates", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcGtfsSnapshotter.java#L418-L437", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/model/Frequency.java", "func_name": "Frequency.getId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Frequency entries have no ID in GTFS so we define one based on the fields in the frequency entry.\n\nIt is possible to have two identical frequency entries in the GTFS, which under our understanding of the situation\nwould mean that two sets of vehicles were randomly running the same trip at the same headway, but uncorrelated\nwith each other, which is almost certain to be an error.", "docstring_tokens": ["Frequency", "entries", "have", "no", "ID", "in", "GTFS", "so", "we", "define", "one", "based", "on", "the", "fields", "in", "the", "frequency", "entry", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/model/Frequency.java#L21-L32", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/BatchTracker.java", "func_name": "BatchTracker.executeRemaining", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute any remaining statements and return the total records processed.", "docstring_tokens": ["Execute", "any", "remaining", "statements", "and", "return", "the", "total", "records", "processed", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/BatchTracker.java#L40-L50", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcGtfsExporter.java", "func_name": "JdbcGtfsExporter.cleanUpZipFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes any empty zip files from the final zip file.", "docstring_tokens": ["Removes", "any", "empty", "zip", "files", "from", "the", "final", "zip", "file", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcGtfsExporter.java#L321-L346", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcGtfsExporter.java", "func_name": "JdbcGtfsExporter.export", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Export a table to the zipOutputStream to be written to the GTFS.", "docstring_tokens": ["Export", "a", "table", "to", "the", "zipOutputStream", "to", "be", "written", "to", "the", "GTFS", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcGtfsExporter.java#L370-L411", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/validator/Validator.java", "func_name": "Validator.registerError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Store an error that affects a single line of a single table. Wraps the underlying error factory method.", "docstring_tokens": ["Store", "an", "error", "that", "affects", "a", "single", "line", "of", "a", "single", "table", ".", "Wraps", "the", "underlying", "error", "factory", "method", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/validator/Validator.java#L36-L38", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/validator/Validator.java", "func_name": "Validator.registerError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Store an error that affects a single line of a single table.\nAdd a bad value to it.", "docstring_tokens": ["Store", "an", "error", "that", "affects", "a", "single", "line", "of", "a", "single", "table", ".", "Add", "a", "bad", "value", "to", "it", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/validator/Validator.java#L68-L70", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/GTFS.java", "func_name": "GTFS.export", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Export a feed ID from the database to a zipped GTFS file in the specified export directory.", "docstring_tokens": ["Export", "a", "feed", "ID", "from", "the", "database", "to", "a", "zipped", "GTFS", "file", "in", "the", "specified", "export", "directory", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/GTFS.java#L48-L52", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/GTFS.java", "func_name": "GTFS.load", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load the GTFS data in the specified file into the given JDBC DataSource.\n\nAbout loading from an object on S3:\nWe've got a problem with keeping the identifier on S3 the same as the identifier in the database.\nQuestion: do we really want to load the feed from S3 or do we just want to move the local file to S3 when done?\ni.e. user uploads to the datatools back end,\nThe advantage of having the end users upload to s3, then is that only the files currently being processed need\nto be held on our backend server, not the whole queue waiting to be processed.\nBut I think currently we have some hack where the end user gets a token to upload to S3, which seems bad.\nProbably we should have end users upload directly to the backend server, which then loads the feed into RDBMS,\nuploads the file to S3 with the unique name supplied by gtfs-lib, and deletes the local file.\n\n@return a unique identifier for the newly loaded feed in the database", "docstring_tokens": ["Load", "the", "GTFS", "data", "in", "the", "specified", "file", "into", "the", "given", "JDBC", "DataSource", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/GTFS.java#L69-L73", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/GTFS.java", "func_name": "GTFS.validate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Once a feed has been loaded into the database, examine its contents looking for various problems and errors.", "docstring_tokens": ["Once", "a", "feed", "has", "been", "loaded", "into", "the", "database", "examine", "its", "contents", "looking", "for", "various", "problems", "and", "errors", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/GTFS.java#L96-L100", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/GTFS.java", "func_name": "GTFS.delete", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes all tables for the specified feed. Simply put, this is a \"drop schema\" SQL statement called on the feed's\nnamespace.", "docstring_tokens": ["Deletes", "all", "tables", "for", "the", "specified", "feed", ".", "Simply", "put", "this", "is", "a", "drop", "schema", "SQL", "statement", "called", "on", "the", "feed", "s", "namespace", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/GTFS.java#L106-L130", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/GTFS.java", "func_name": "GTFS.createDataSource", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create an automatically managed pool of database connections to the supplied JDBC database URL.\n\nCreating new database connections is usually an expensive operation,\ntaking up to seconds to prepare for a transaction that only lasts milliseconds.\nThe JDBC in Java 7 and 8 support connection pooling, which is critical for performance.\nWe are using the standard JDBC DataSource interface, with the Apache commons-dbcp implementation.\nThis should be roughly the same connection pooling used in the Tomcat application server.\n\nHere are some sample database URLs to serve as patterns:\nH2_FILE_URL = \"jdbc:h2:file:~/test-db\"; // H2 memory does not seem faster than H2 file\nSQLITE_FILE_URL = \"jdbc:sqlite:/Users/abyrd/test-db\";\nPOSTGRES_LOCAL_URL = \"jdbc:postgresql://localhost/catalogue\";\n\nFor local Postgres connections, you can supply a null username and password to use host-based authentication.", "docstring_tokens": ["Create", "an", "automatically", "managed", "pool", "of", "database", "connections", "to", "the", "supplied", "JDBC", "database", "URL", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/GTFS.java#L148-L176", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/error/NewGTFSError.java", "func_name": "NewGTFSError.addInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a single key-value pair of supplemental info to this error.\n@return the modified object (builder pattern that allows adding info to newly created error object without assigning to a variable).", "docstring_tokens": ["Add", "a", "single", "key", "-", "value", "pair", "of", "supplemental", "info", "to", "this", "error", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/error/NewGTFSError.java#L59-L62", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/error/NewGTFSError.java", "func_name": "NewGTFSError.forLine", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Factory Builder for cases where an entity has not yet been constructed, but we know the line number.", "docstring_tokens": ["Factory", "Builder", "for", "cases", "where", "an", "entity", "has", "not", "yet", "been", "constructed", "but", "we", "know", "the", "line", "number", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/error/NewGTFSError.java#L76-L81", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/error/NewGTFSError.java", "func_name": "NewGTFSError.forEntity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Factory Builder for cases where the entity has already been decoded and an error is discovered during validation", "docstring_tokens": ["Factory", "Builder", "for", "cases", "where", "the", "entity", "has", "already", "been", "decoded", "and", "an", "error", "is", "discovered", "during", "validation"], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/error/NewGTFSError.java#L84-L90", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/error/NewGTFSError.java", "func_name": "NewGTFSError.forFeed", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Factory Builder for feed-wide error", "docstring_tokens": ["Factory", "Builder", "for", "feed", "-", "wide", "error"], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/error/NewGTFSError.java#L98-L100", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/stats/PatternStats.java", "func_name": "PatternStats.getPatternSpeed", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the pattern speed for a given pattern for a specified date and time window.\n@param pattern_id pattern ID\n@param date service date\n@param from beginning of time window\n@param to end of time window\n@return", "docstring_tokens": ["Gets", "the", "pattern", "speed", "for", "a", "given", "pattern", "for", "a", "specified", "date", "and", "time", "window", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/stats/PatternStats.java#L42-L47", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/stats/PatternStats.java", "func_name": "PatternStats.getAverageSpeedForTrips", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get average speed for set of trips that begin within the time window in meters per second.\n@param trips\n@param from\n@param to\n@return avg. speed (meters per second)", "docstring_tokens": ["Get", "average", "speed", "for", "set", "of", "trips", "that", "begin", "within", "the", "time", "window", "in", "meters", "per", "second", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/stats/PatternStats.java#L56-L78", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/stats/PatternStats.java", "func_name": "PatternStats.getStartTimeForTrips", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get earliest departure time for a set of trips.\n@param trips\n@return earliest departure time", "docstring_tokens": ["Get", "earliest", "departure", "time", "for", "a", "set", "of", "trips", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/stats/PatternStats.java#L85-L102", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/stats/PatternStats.java", "func_name": "PatternStats.getEndTimeForTrips", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get last arrival time for a set of trips.\n@param trips\n@return last arrival time (if arrival occurs after midnight, time is expressed in terms of following day, e.g., 2:00 AM)", "docstring_tokens": ["Get", "last", "arrival", "time", "for", "a", "set", "of", "trips", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/stats/PatternStats.java#L109-L122", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/stats/PatternStats.java", "func_name": "PatternStats.getPatternDistance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get distance for a pattern. Uses the first trip associated with the pattern.\n@param pattern_id\n@return distance (in meters)", "docstring_tokens": ["Get", "distance", "for", "a", "pattern", ".", "Uses", "the", "first", "trip", "associated", "with", "the", "pattern", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/stats/PatternStats.java#L174-L178", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/stats/PatternStats.java", "func_name": "PatternStats.getAverageStopSpacing", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get average stop spacing for a pattern.\n@param pattern_id\n@return avg. stop spacing (in meters)", "docstring_tokens": ["Get", "average", "stop", "spacing", "for", "a", "pattern", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/stats/PatternStats.java#L185-L188", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcGTFSFeedConverter.java", "func_name": "JdbcGTFSFeedConverter.copyEntityToSql", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates table for the specified Table, inserts all entities for the iterable in batches, and, finally, creates\nindexes on the table.", "docstring_tokens": ["Creates", "table", "for", "the", "specified", "Table", "inserts", "all", "entities", "for", "the", "iterable", "in", "batches", "and", "finally", "creates", "indexes", "on", "the", "table", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcGTFSFeedConverter.java#L211-L234", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/ValidateFieldResult.java", "func_name": "ValidateFieldResult.from", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builder method that constructs a ValidateFieldResult with type String from the input result.", "docstring_tokens": ["Builder", "method", "that", "constructs", "a", "ValidateFieldResult", "with", "type", "String", "from", "the", "input", "result", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/ValidateFieldResult.java#L28-L33", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/error/SQLErrorStorage.java", "func_name": "SQLErrorStorage.getErrorCount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Commits any outstanding error inserts and returns the error count via a SQL query.", "docstring_tokens": ["Commits", "any", "outstanding", "error", "inserts", "and", "returns", "the", "error", "count", "via", "a", "SQL", "query", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/error/SQLErrorStorage.java#L99-L112", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/error/SQLErrorStorage.java", "func_name": "SQLErrorStorage.commit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This executes any remaining inserts and commits the transaction.", "docstring_tokens": ["This", "executes", "any", "remaining", "inserts", "and", "commits", "the", "transaction", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/error/SQLErrorStorage.java#L117-L126", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/TimeField.java", "func_name": "TimeField.validateAndConvert", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Actually this is converting the string. Can we use some JDBC existing functions for this?", "docstring_tokens": ["Actually", "this", "is", "converting", "the", "string", ".", "Can", "we", "use", "some", "JDBC", "existing", "functions", "for", "this?"], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/TimeField.java#L34-L37", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/error/ReferentialIntegrityError.java", "func_name": "ReferentialIntegrityError.compareTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "must be comparable to put into mapdb", "docstring_tokens": ["must", "be", "comparable", "to", "put", "into", "mapdb"], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/error/ReferentialIntegrityError.java#L18-L23", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/validator/service/GeoUtils.java", "func_name": "GeoUtils.getDistance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the length of a linestring in meters", "docstring_tokens": ["Get", "the", "length", "of", "a", "linestring", "in", "meters"], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/validator/service/GeoUtils.java#L202-L213", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/graphql/fetchers/RowCountFetcher.java", "func_name": "RowCountFetcher.field", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convenience method to create a field in a GraphQL schema that fetches the number of rows in a table.\nMust be on a type that has a \"namespace\" field for context.", "docstring_tokens": ["Convenience", "method", "to", "create", "a", "field", "in", "a", "GraphQL", "schema", "that", "fetches", "the", "number", "of", "rows", "in", "a", "table", ".", "Must", "be", "on", "a", "type", "that", "has", "a", "namespace", "field", "for", "context", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/graphql/fetchers/RowCountFetcher.java#L149-L155", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/graphql/fetchers/RowCountFetcher.java", "func_name": "RowCountFetcher.groupedField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A GraphQL field used to deliver lists of group counts. Currently the primary use of this field is for delivering\ntrip counts grouped by either service_id, pattern_id, or route_id. These quantities can also be filtered by\nproviding a string value for pattern_id", "docstring_tokens": ["A", "GraphQL", "field", "used", "to", "deliver", "lists", "of", "group", "counts", ".", "Currently", "the", "primary", "use", "of", "this", "field", "is", "for", "delivering", "trip", "counts", "grouped", "by", "either", "service_id", "pattern_id", "or", "route_id", ".", "These", "quantities", "can", "also", "be", "filtered", "by", "providing", "a", "string", "value", "for", "pattern_id"], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/graphql/fetchers/RowCountFetcher.java#L208-L216", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/util/Deduplicator.java", "func_name": "Deduplicator.deduplicateIntArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Used to deduplicate time and stop sequence arrays. The same times may occur in many trips.", "docstring_tokens": ["Used", "to", "deduplicate", "time", "and", "stop", "sequence", "arrays", ".", "The", "same", "times", "may", "occur", "in", "many", "trips", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/util/Deduplicator.java#L31-L40", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/stats/StopStats.java", "func_name": "StopStats.getTripsForDate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get list of trips that visit a stop for a specified date of service.\n@param stop_id\n@param date\n@return list of trips for date", "docstring_tokens": ["Get", "list", "of", "trips", "that", "visit", "a", "stop", "for", "a", "specified", "date", "of", "service", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/stats/StopStats.java#L73-L81", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/stats/StopStats.java", "func_name": "StopStats.getAverageHeadwayForStop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the average headway, in seconds, for all trips at a stop over a time window.\n@param stop_id\n@param date\n@param from\n@param to\n@return avg. headway (in seconds)", "docstring_tokens": ["Get", "the", "average", "headway", "in", "seconds", "for", "all", "trips", "at", "a", "stop", "over", "a", "time", "window", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/stats/StopStats.java#L91-L95", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/stats/StopStats.java", "func_name": "StopStats.getRouteHeadwaysForStop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the route headway for a given service date at a stop over a time window, in seconds", "docstring_tokens": ["Get", "the", "route", "headway", "for", "a", "given", "service", "date", "at", "a", "stop", "over", "a", "time", "window", "in", "seconds"], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/stats/StopStats.java#L98-L109", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/stats/StopStats.java", "func_name": "StopStats.getHeadwayForStopByRoute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the average headway, in seconds, for a route at a stop over a time window.\n@param stop_id\n@param route_id\n@param date\n@param from\n@param to\n@return avg. headway (in seconds)", "docstring_tokens": ["Get", "the", "average", "headway", "in", "seconds", "for", "a", "route", "at", "a", "stop", "over", "a", "time", "window", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/stats/StopStats.java#L169-L177", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java", "func_name": "JdbcTableWriter.getJsonNode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wrapper method to call Jackson to deserialize a JSON string into JsonNode.", "docstring_tokens": ["Wrapper", "method", "to", "call", "Jackson", "to", "deserialize", "a", "JSON", "string", "into", "JsonNode", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java#L100-L107", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java", "func_name": "JdbcTableWriter.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new entity in the database from the provided JSON string. Note, any call to create or update must provide\na JSON string with the full set of fields matching the definition of the GTFS table in the Table class.", "docstring_tokens": ["Create", "a", "new", "entity", "in", "the", "database", "from", "the", "provided", "JSON", "string", ".", "Note", "any", "call", "to", "create", "or", "update", "must", "provide", "a", "JSON", "string", "with", "the", "full", "set", "of", "fields", "matching", "the", "definition", "of", "the", "GTFS", "table", "in", "the", "Table", "class", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java#L113-L116", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java", "func_name": "JdbcTableWriter.updateStopTimesForPatternStop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Updates the stop times that reference the specified pattern stop.\n@param patternStop the pattern stop for which to update stop times\n@param previousTravelTime the travel time accumulated up to the previous stop_time's departure time (or the\nprevious pattern stop's dwell time)\n@return the travel and dwell time added by this pattern stop\n@throws SQLException", "docstring_tokens": ["Updates", "the", "stop", "times", "that", "reference", "the", "specified", "pattern", "stop", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java#L682-L707", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java", "func_name": "JdbcTableWriter.verifyReferencesExist", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks that a set of string references to a set of reference tables are all valid. For each set of references\nmapped to a reference table, the method queries for all of the references. If there are any references that were\nnot returned in the query, one of the original references was invalid and an exception is thrown.\n@param referringTableName name of the table which contains references for logging/exception message only\n@param referencesPerTable string references mapped to the tables to which they refer\n@throws SQLException", "docstring_tokens": ["Checks", "that", "a", "set", "of", "string", "references", "to", "a", "set", "of", "reference", "tables", "are", "all", "valid", ".", "For", "each", "set", "of", "references", "mapped", "to", "a", "reference", "table", "the", "method", "queries", "for", "all", "of", "the", "references", ".", "If", "there", "are", "any", "references", "that", "were", "not", "returned", "in", "the", "query", "one", "of", "the", "original", "references", "was", "invalid", "and", "an", "exception", "is", "thrown", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java#L779-L817", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java", "func_name": "JdbcTableWriter.verifyInteriorStopsAreUnchanged", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check the stops in the changed region to ensure they remain in the same order. If not, throw an exception to\ncancel the transaction.", "docstring_tokens": ["Check", "the", "stops", "in", "the", "changed", "region", "to", "ensure", "they", "remain", "in", "the", "same", "order", ".", "If", "not", "throw", "an", "exception", "to", "cancel", "the", "transaction", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java#L1065-L1090", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java", "func_name": "JdbcTableWriter.insertBlankStopTimes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "You must call this method after updating sequences for any stop times following the starting stop sequence to\navoid overwriting these other stop times.", "docstring_tokens": ["You", "must", "call", "this", "method", "after", "updating", "sequences", "for", "any", "stop", "times", "following", "the", "starting", "stop", "sequence", "to", "avoid", "overwriting", "these", "other", "stop", "times", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java#L1096-L1135", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java", "func_name": "JdbcTableWriter.delete", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes an entity for the specified ID.", "docstring_tokens": ["Deletes", "an", "entity", "for", "the", "specified", "ID", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java#L1181-L1211", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java", "func_name": "JdbcTableWriter.handleStatementExecution", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle executing a prepared statement and return the ID for the newly-generated or updated entity.", "docstring_tokens": ["Handle", "executing", "a", "prepared", "statement", "and", "return", "the", "ID", "for", "the", "newly", "-", "generated", "or", "updated", "entity", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java#L1239-L1262", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java", "func_name": "JdbcTableWriter.getRowCount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get number of rows for a table. This is currently just used to check the number of entities for the agency table.", "docstring_tokens": ["Get", "number", "of", "rows", "for", "a", "table", ".", "This", "is", "currently", "just", "used", "to", "check", "the", "number", "of", "entities", "for", "the", "agency", "table", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java#L1343-L1351", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java", "func_name": "JdbcTableWriter.getReferencingTables", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds the set of tables that reference the parent entity being updated.", "docstring_tokens": ["Finds", "the", "set", "of", "tables", "that", "reference", "the", "parent", "entity", "being", "updated", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java#L1381-L1394", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java", "func_name": "JdbcTableWriter.getValueForId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "For a given integer ID, return the value for the specified field name for that entity.", "docstring_tokens": ["For", "a", "given", "integer", "ID", "return", "the", "value", "for", "the", "specified", "field", "name", "for", "that", "entity", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/JdbcTableWriter.java#L1399-L1410", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/BaseGTFSCache.java", "func_name": "BaseGTFSCache.put", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a GTFS feed to this cache with the given ID. NB this is not the feed ID, because feed IDs are not\nunique when you load multiple versions of the same feed.", "docstring_tokens": ["Add", "a", "GTFS", "feed", "to", "this", "cache", "with", "the", "given", "ID", ".", "NB", "this", "is", "not", "the", "feed", "ID", "because", "feed", "IDs", "are", "not", "unique", "when", "you", "load", "multiple", "versions", "of", "the", "same", "feed", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/BaseGTFSCache.java#L102-L104", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/BaseGTFSCache.java", "func_name": "BaseGTFSCache.put", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a GTFS feed to this cache where the ID is calculated from the feed itself", "docstring_tokens": ["Add", "a", "GTFS", "feed", "to", "this", "cache", "where", "the", "ID", "is", "calculated", "from", "the", "feed", "itself"], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/BaseGTFSCache.java#L107-L109", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/model/Service.java", "func_name": "Service.activeOn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Is this service active on the specified date?", "docstring_tokens": ["Is", "this", "service", "active", "on", "the", "specified", "date?"], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/model/Service.java#L90-L122", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/graphql/GTFSGraphQL.java", "func_name": "GTFSGraphQL.initialize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Username and password can be null if connecting to a local instance with host-based authentication.", "docstring_tokens": ["Username", "and", "password", "can", "be", "null", "if", "connecting", "to", "a", "local", "instance", "with", "host", "-", "based", "authentication", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/graphql/GTFSGraphQL.java#L23-L27", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/Table.java", "func_name": "Table.editorFields", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get only those fields included in the official GTFS specification for this table or used by the editor.", "docstring_tokens": ["Get", "only", "those", "fields", "included", "in", "the", "official", "GTFS", "specification", "for", "this", "table", "or", "used", "by", "the", "editor", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/Table.java#L388-L394", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/Table.java", "func_name": "Table.requiredFields", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get only those fields marked as required in the official GTFS specification for this table.", "docstring_tokens": ["Get", "only", "those", "fields", "marked", "as", "required", "in", "the", "official", "GTFS", "specification", "for", "this", "table", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/Table.java#L399-L404", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/Table.java", "func_name": "Table.specFields", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get only those fields included in the official GTFS specification for this table, i.e., filter out fields used\nin the editor or extensions.", "docstring_tokens": ["Get", "only", "those", "fields", "included", "in", "the", "official", "GTFS", "specification", "for", "this", "table", "i", ".", "e", ".", "filter", "out", "fields", "used", "in", "the", "editor", "or", "extensions", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/Table.java#L410-L414", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/Table.java", "func_name": "Table.createSqlTable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create an SQL table with all the fields specified by this table object,\nplus an integer CSV line number field in the first position.", "docstring_tokens": ["Create", "an", "SQL", "table", "with", "all", "the", "fields", "specified", "by", "this", "table", "object", "plus", "an", "integer", "CSV", "line", "number", "field", "in", "the", "first", "position", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/Table.java#L437-L460", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/Table.java", "func_name": "Table.generateInsertSql", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create SQL string for use in insert statement. Note, this filters table's fields to only those used in editor.", "docstring_tokens": ["Create", "SQL", "string", "for", "use", "in", "insert", "statement", ".", "Note", "this", "filters", "table", "s", "fields", "to", "only", "those", "used", "in", "editor", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/Table.java#L477-L490", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/Table.java", "func_name": "Table.commaSeparatedNames", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prepend a prefix string to each field and join them with a comma + space separator.\nAlso, if an export to GTFS is being performed, certain fields need a translation from the database format to the\nGTFS format. Otherwise, the fields are assumed to be asked in order to do a database-to-database export and so\nthe verbatim values of the fields are needed.", "docstring_tokens": ["Prepend", "a", "prefix", "string", "to", "each", "field", "and", "join", "them", "with", "a", "comma", "+", "space", "separator", ".", "Also", "if", "an", "export", "to", "GTFS", "is", "being", "performed", "certain", "fields", "need", "a", "translation", "from", "the", "database", "format", "to", "the", "GTFS", "format", ".", "Otherwise", "the", "fields", "are", "assumed", "to", "be", "asked", "in", "order", "to", "do", "a", "database", "-", "to", "-", "database", "export", "and", "so", "the", "verbatim", "values", "of", "the", "fields", "are", "needed", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/Table.java#L542-L549", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/Table.java", "func_name": "Table.generateUpdateSql", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create SQL string for use in update statement. Note, this filters table's fields to only those used in editor.", "docstring_tokens": ["Create", "SQL", "string", "for", "use", "in", "update", "statement", ".", "Note", "this", "filters", "table", "s", "fields", "to", "only", "those", "used", "in", "editor", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/Table.java#L561-L570", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/Table.java", "func_name": "Table.generateSelectSql", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate select all SQL string. The minimum requirement parameter is used to determine which fields ought to be\nincluded in the select statement. For example, if \"OPTIONAL\" is passed in, both optional and required fields\nare included in the select. If \"EDITOR\" is the minimum requirement, editor, optional, and required fields will\nall be included.", "docstring_tokens": ["Generate", "select", "all", "SQL", "string", ".", "The", "minimum", "requirement", "parameter", "is", "used", "to", "determine", "which", "fields", "ought", "to", "be", "included", "in", "the", "select", "statement", ".", "For", "example", "if", "OPTIONAL", "is", "passed", "in", "both", "optional", "and", "required", "fields", "are", "included", "in", "the", "select", ".", "If", "EDITOR", "is", "the", "minimum", "requirement", "editor", "optional", "and", "required", "fields", "will", "all", "be", "included", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/Table.java#L578-L590", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/Table.java", "func_name": "Table.generateSelectAllExistingFieldsSql", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate a select statement from the columns that actually exist in the database table. This method is intended\nto be used when exporting to a GTFS and eventually generates the select all with each individual field and\napplicable transformations listed out.", "docstring_tokens": ["Generate", "a", "select", "statement", "from", "the", "columns", "that", "actually", "exist", "in", "the", "database", "table", ".", "This", "method", "is", "intended", "to", "be", "used", "when", "exporting", "to", "a", "GTFS", "and", "eventually", "generates", "the", "select", "all", "with", "each", "individual", "field", "and", "applicable", "transformations", "listed", "out", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/Table.java#L597-L619", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/Table.java", "func_name": "Table.generateDeleteSql", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate delete SQL string.", "docstring_tokens": ["Generate", "delete", "SQL", "string", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/Table.java#L686-L689", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/Table.java", "func_name": "Table.createSqlTableFrom", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a SQL table from the table to clone. This uses the SQL syntax \"create table x as y\" not only copies the\ntable structure, but also the data from the original table. Creating table indexes is not handled by this method.", "docstring_tokens": ["Creates", "a", "SQL", "table", "from", "the", "table", "to", "clone", ".", "This", "uses", "the", "SQL", "syntax", "create", "table", "x", "as", "y", "not", "only", "copies", "the", "table", "structure", "but", "also", "the", "data", "from", "the", "original", "table", ".", "Creating", "table", "indexes", "is", "not", "handled", "by", "this", "method", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/Table.java#L824-L868", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/Table.java", "func_name": "Table.normalizeAndCloneStopTimes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Normalize stop sequences for stop times table so that sequences are all zero-based and increment\nby one. This ensures that sequence values for stop_times and pattern_stops are not initially out\nof sync for feeds imported into the editor.\n\nNOTE: This happens here instead of as part of post-processing because it's much faster overall to perform\nthis as an INSERT vs. an UPDATE. It also needs to be done before creating table indexes. There may be some\nmessiness here as far as using the column metadata to perform the SELECT query with the correct column names, but\nit is about an order of magnitude faster than the UPDATE approach.\n\nFor example, with the Bronx bus feed, the UPDATE approach took 53 seconds on an un-normalized table (i.e., snapshotting\na table from a direct GTFS load), but it only takes about 8 seconds with the INSERT approach. Additionally, this\nINSERT approach seems to dramatically cut down on the time needed for indexing large tables.", "docstring_tokens": ["Normalize", "stop", "sequences", "for", "stop", "times", "table", "so", "that", "sequences", "are", "all", "zero", "-", "based", "and", "increment", "by", "one", ".", "This", "ensures", "that", "sequence", "values", "for", "stop_times", "and", "pattern_stops", "are", "not", "initially", "out", "of", "sync", "for", "feeds", "imported", "into", "the", "editor", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/Table.java#L884-L908", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/Table.java", "func_name": "Table.getKeyFieldIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the index of the key field within the array of fields provided for a given table.\n@param fields array of fields (intended to be derived from the headers of a csv text file)", "docstring_tokens": ["Returns", "the", "index", "of", "the", "key", "field", "within", "the", "array", "of", "fields", "provided", "for", "a", "given", "table", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/Table.java#L973-L976", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/util/Util.java", "func_name": "Util.ensureValidNamespace", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Ensures namespace is valid by ensuring it only has alphanumeric characters or the underscore\nfor all characters in the string\n@param namespace", "docstring_tokens": ["Ensures", "namespace", "is", "valid", "by", "ensuring", "it", "only", "has", "alphanumeric", "characters", "or", "the", "underscore", "for", "all", "characters", "in", "the", "string"], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/util/Util.java#L93-L99", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/loader/Field.java", "func_name": "Field.getFieldIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds the index of the field given a string name.\n@return the index of the field or -1 if no match is found", "docstring_tokens": ["Finds", "the", "index", "of", "the", "field", "given", "a", "string", "name", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/loader/Field.java#L76-L80", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/model/ShapeMap.java", "func_name": "ShapeMap.keySet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "We currently just expose them as immutable sets in RAM, since all of the modification operations are optional.", "docstring_tokens": ["We", "currently", "just", "expose", "them", "as", "immutable", "sets", "in", "RAM", "since", "all", "of", "the", "modification", "operations", "are", "optional", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/model/ShapeMap.java#L82-L93", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/GTFSFeed.java", "func_name": "GTFSFeed.fromFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Static factory method returning a new instance of GTFSFeed containing the contents of\nthe GTFS file at the supplied filesystem path. Forces the feedId to the\nsupplied value if the parameter is non-null.", "docstring_tokens": ["Static", "factory", "method", "returning", "a", "new", "instance", "of", "GTFSFeed", "containing", "the", "contents", "of", "the", "GTFS", "file", "at", "the", "supplied", "filesystem", "path", ".", "Forces", "the", "feedId", "to", "the", "supplied", "value", "if", "the", "parameter", "is", "non", "-", "null", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/GTFSFeed.java#L319-L336", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/GTFSFeed.java", "func_name": "GTFSFeed.findPatterns", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "MapDB-based implementation to find patterns.\n\nFIXME: Remove and make pattern finding happen during validation? We want to share the pattern finder between the\ntwo implementations (MapDB and RDBMS), apply the same validation process to both kinds of storage, and produce\nPatterns in the same way in both cases, during validation. This prevents us from iterating over every stopTime\ntwice, since we're already iterating over all of them in validation. However, in this case it might not be costly\nto simply retrieve the stop times from the stop_times map.", "docstring_tokens": ["MapDB", "-", "based", "implementation", "to", "find", "patterns", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/GTFSFeed.java#L407-L417", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/GTFSFeed.java", "func_name": "GTFSFeed.getTripDistance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the length of a trip in meters.", "docstring_tokens": ["Get", "the", "length", "of", "a", "trip", "in", "meters", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/GTFSFeed.java#L577-L581", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/GTFSFeed.java", "func_name": "GTFSFeed.getTripSpeed", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get trip speed in meters per second.", "docstring_tokens": ["Get", "trip", "speed", "in", "meters", "per", "second", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/GTFSFeed.java#L589-L605", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/GTFSFeed.java", "func_name": "GTFSFeed.getStopTimesForStop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get list of stop_times for a given stop_id.", "docstring_tokens": ["Get", "list", "of", "stop_times", "for", "a", "given", "stop_id", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/GTFSFeed.java#L608-L615", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/GTFSFeed.java", "func_name": "GTFSFeed.getServicesForDate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get list of services for each date of service.", "docstring_tokens": ["Get", "list", "of", "services", "for", "each", "date", "of", "service", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/GTFSFeed.java#L627-L635", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/GTFSFeed.java", "func_name": "GTFSFeed.getAgencyTimeZoneForStop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the likely time zone for a stop using the agency of the first stop time encountered for the stop.", "docstring_tokens": ["Get", "the", "likely", "time", "zone", "for", "a", "stop", "using", "the", "agency", "of", "the", "first", "stop", "time", "encountered", "for", "the", "stop", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/GTFSFeed.java#L652-L660", "partition": "valid"} +{"repo": "conveyal/gtfs-lib", "path": "src/main/java/com/conveyal/gtfs/PatternFinder.java", "func_name": "PatternFinder.createPatternObjects", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Once all trips have been processed, call this method to produce the final Pattern objects representing all the\nunique sequences of stops encountered. Returns map of patterns to their keys so that downstream functions can\nmake use of trip pattern keys for constructing pattern stops or other derivative objects.", "docstring_tokens": ["Once", "all", "trips", "have", "been", "processed", "call", "this", "method", "to", "produce", "the", "final", "Pattern", "objects", "representing", "all", "the", "unique", "sequences", "of", "stops", "encountered", ".", "Returns", "map", "of", "patterns", "to", "their", "keys", "so", "that", "downstream", "functions", "can", "make", "use", "of", "trip", "pattern", "keys", "for", "constructing", "pattern", "stops", "or", "other", "derivative", "objects", "."], "sha": "ba9e19563af9f52d4eb0eac60327d9f39ebd19f7", "url": "https://github.com/conveyal/gtfs-lib/blob/ba9e19563af9f52d4eb0eac60327d9f39ebd19f7/src/main/java/com/conveyal/gtfs/PatternFinder.java#L85-L114", "partition": "valid"} +{"repo": "evant/JobSchedulerCompat", "path": "jobscheduler/src/main/java/me/tatarka/support/internal/receivers/IdleReceiver.java", "func_name": "IdleReceiver.setAnywayTimer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "We can't get idle broadcasts while the app is not running. Since our app will probably be\nkilled before the device becomes idle, let's set an alarm sometime in the future that will\nforce an idle check.", "docstring_tokens": ["We", "can", "t", "get", "idle", "broadcasts", "while", "the", "app", "is", "not", "running", ".", "Since", "our", "app", "will", "probably", "be", "killed", "before", "the", "device", "becomes", "idle", "let", "s", "set", "an", "alarm", "sometime", "in", "the", "future", "that", "will", "force", "an", "idle", "check", "."], "sha": "afa59227b33824700f11bc575ca535b0e78babec", "url": "https://github.com/evant/JobSchedulerCompat/blob/afa59227b33824700f11bc575ca535b0e78babec/jobscheduler/src/main/java/me/tatarka/support/internal/receivers/IdleReceiver.java#L102-L110", "partition": "valid"} +{"repo": "evant/JobSchedulerCompat", "path": "jobscheduler/src/main/java/me/tatarka/support/internal/receivers/IdleReceiver.java", "func_name": "IdleReceiver.enableReceiver", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call this as soon as we get a chance, it will be unregistered whenever our app is killed.", "docstring_tokens": ["Call", "this", "as", "soon", "as", "we", "get", "a", "chance", "it", "will", "be", "unregistered", "whenever", "our", "app", "is", "killed", "."], "sha": "afa59227b33824700f11bc575ca535b0e78babec", "url": "https://github.com/evant/JobSchedulerCompat/blob/afa59227b33824700f11bc575ca535b0e78babec/jobscheduler/src/main/java/me/tatarka/support/internal/receivers/IdleReceiver.java#L126-L130", "partition": "valid"} +{"repo": "evant/JobSchedulerCompat", "path": "jobscheduler/src/main/java/me/tatarka/support/internal/receivers/IdleReceiver.java", "func_name": "IdleReceiver.reportNewIdleState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Interaction with the task manager service", "docstring_tokens": ["Interaction", "with", "the", "task", "manager", "service"], "sha": "afa59227b33824700f11bc575ca535b0e78babec", "url": "https://github.com/evant/JobSchedulerCompat/blob/afa59227b33824700f11bc575ca535b0e78babec/jobscheduler/src/main/java/me/tatarka/support/internal/receivers/IdleReceiver.java#L152-L162", "partition": "valid"} +{"repo": "evant/JobSchedulerCompat", "path": "jobscheduler/src/main/java/me/tatarka/support/internal/job/JobStore.java", "func_name": "JobStore.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a job to the master list, persisting it if necessary. If the JobStatus already exists,\nit will be replaced.\n\n@param jobStatus Job to add.\n@return Whether or not an equivalent JobStatus was replaced by this operation.", "docstring_tokens": ["Add", "a", "job", "to", "the", "master", "list", "persisting", "it", "if", "necessary", ".", "If", "the", "JobStatus", "already", "exists", "it", "will", "be", "replaced", "."], "sha": "afa59227b33824700f11bc575ca535b0e78babec", "url": "https://github.com/evant/JobSchedulerCompat/blob/afa59227b33824700f11bc575ca535b0e78babec/jobscheduler/src/main/java/me/tatarka/support/internal/job/JobStore.java#L118-L126", "partition": "valid"} +{"repo": "evant/JobSchedulerCompat", "path": "jobscheduler/src/main/java/me/tatarka/support/internal/job/JobStore.java", "func_name": "JobStore.containsJobId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Whether this jobStatus object already exists in the JobStore.", "docstring_tokens": ["Whether", "this", "jobStatus", "object", "already", "exists", "in", "the", "JobStore", "."], "sha": "afa59227b33824700f11bc575ca535b0e78babec", "url": "https://github.com/evant/JobSchedulerCompat/blob/afa59227b33824700f11bc575ca535b0e78babec/jobscheduler/src/main/java/me/tatarka/support/internal/job/JobStore.java#L131-L139", "partition": "valid"} +{"repo": "evant/JobSchedulerCompat", "path": "jobscheduler/src/main/java/me/tatarka/support/internal/job/JobStore.java", "func_name": "JobStore.remove", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove the provided job. Will also delete the job if it was persisted.\n\n@return Whether or not the job existed to be removed.", "docstring_tokens": ["Remove", "the", "provided", "job", ".", "Will", "also", "delete", "the", "job", "if", "it", "was", "persisted", "."], "sha": "afa59227b33824700f11bc575ca535b0e78babec", "url": "https://github.com/evant/JobSchedulerCompat/blob/afa59227b33824700f11bc575ca535b0e78babec/jobscheduler/src/main/java/me/tatarka/support/internal/job/JobStore.java#L154-L164", "partition": "valid"} +{"repo": "evant/JobSchedulerCompat", "path": "jobscheduler/src/main/java/me/tatarka/support/internal/job/JobSchedulerService.java", "func_name": "JobSchedulerService.rescheduleFailedJob", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A job is rescheduled with exponential back-off if the client requests this from their\nexecution logic.\nA caveat is for idle-mode jobs, for which the idle-mode constraint will usurp the\ntimeliness of the reschedule. For an idle-mode job, no deadline is given.\n@return A newly instantiated JobStatus with the same constraints as the last job except\nwith adjusted timing constraints.", "docstring_tokens": ["A", "job", "is", "rescheduled", "with", "exponential", "back", "-", "off", "if", "the", "client", "requests", "this", "from", "their", "execution", "logic", ".", "A", "caveat", "is", "for", "idle", "-", "mode", "jobs", "for", "which", "the", "idle", "-", "mode", "constraint", "will", "usurp", "the", "timeliness", "of", "the", "reschedule", ".", "For", "an", "idle", "-", "mode", "job", "no", "deadline", "is", "given", "."], "sha": "afa59227b33824700f11bc575ca535b0e78babec", "url": "https://github.com/evant/JobSchedulerCompat/blob/afa59227b33824700f11bc575ca535b0e78babec/jobscheduler/src/main/java/me/tatarka/support/internal/job/JobSchedulerService.java#L249-L273", "partition": "valid"} +{"repo": "evant/JobSchedulerCompat", "path": "jobscheduler/src/main/java/me/tatarka/support/internal/util/ArraySet.java", "func_name": "ArraySet.clear", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Make the array map empty. All storage is released.", "docstring_tokens": ["Make", "the", "array", "map", "empty", ".", "All", "storage", "is", "released", "."], "sha": "afa59227b33824700f11bc575ca535b0e78babec", "url": "https://github.com/evant/JobSchedulerCompat/blob/afa59227b33824700f11bc575ca535b0e78babec/jobscheduler/src/main/java/me/tatarka/support/internal/util/ArraySet.java#L238-L246", "partition": "valid"} +{"repo": "evant/JobSchedulerCompat", "path": "app/src/main/java/me/tatarka/support/job/sample/MainActivity.java", "func_name": "MainActivity.onReceivedStartJob", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Receives callback from the service when a job has landed on the app. Colours the UI and post\na message to uncolour it after a second.", "docstring_tokens": ["Receives", "callback", "from", "the", "service", "when", "a", "job", "has", "landed", "on", "the", "app", ".", "Colours", "the", "UI", "and", "post", "a", "message", "to", "uncolour", "it", "after", "a", "second", "."], "sha": "afa59227b33824700f11bc575ca535b0e78babec", "url": "https://github.com/evant/JobSchedulerCompat/blob/afa59227b33824700f11bc575ca535b0e78babec/app/src/main/java/me/tatarka/support/job/sample/MainActivity.java#L219-L224", "partition": "valid"} +{"repo": "evant/JobSchedulerCompat", "path": "app/src/main/java/me/tatarka/support/job/sample/MainActivity.java", "func_name": "MainActivity.onReceivedStopJob", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Receives callback from the service when a job that previously landed on the app must stop\nexecuting. Colours the UI and post a message to uncolour it after a second.", "docstring_tokens": ["Receives", "callback", "from", "the", "service", "when", "a", "job", "that", "previously", "landed", "on", "the", "app", "must", "stop", "executing", ".", "Colours", "the", "UI", "and", "post", "a", "message", "to", "uncolour", "it", "after", "a", "second", "."], "sha": "afa59227b33824700f11bc575ca535b0e78babec", "url": "https://github.com/evant/JobSchedulerCompat/blob/afa59227b33824700f11bc575ca535b0e78babec/app/src/main/java/me/tatarka/support/job/sample/MainActivity.java#L230-L235", "partition": "valid"} +{"repo": "evant/JobSchedulerCompat", "path": "jobscheduler/src/main/java/me/tatarka/support/internal/receivers/TimeReceiver.java", "func_name": "TimeReceiver.canStopTrackingJob", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines whether this controller can stop tracking the given job.\nThe controller is no longer interested in a job once its time constraint is satisfied, and\nthe job's deadline is fulfilled - unlike other controllers a time constraint can't toggle\nback and forth.", "docstring_tokens": ["Determines", "whether", "this", "controller", "can", "stop", "tracking", "the", "given", "job", ".", "The", "controller", "is", "no", "longer", "interested", "in", "a", "job", "once", "its", "time", "constraint", "is", "satisfied", "and", "the", "job", "s", "deadline", "is", "fulfilled", "-", "unlike", "other", "controllers", "a", "time", "constraint", "can", "t", "toggle", "back", "and", "forth", "."], "sha": "afa59227b33824700f11bc575ca535b0e78babec", "url": "https://github.com/evant/JobSchedulerCompat/blob/afa59227b33824700f11bc575ca535b0e78babec/jobscheduler/src/main/java/me/tatarka/support/internal/receivers/TimeReceiver.java#L199-L204", "partition": "valid"} +{"repo": "evant/JobSchedulerCompat", "path": "jobscheduler/src/main/java/me/tatarka/support/os/PersistableBundle.java", "func_name": "PersistableBundle.putString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inserts a String value into the mapping of this Bundle, replacing any existing value for the\ngiven key. Either key or value may be null.\n\n@param key a String, or null\n@param value a String, or null", "docstring_tokens": ["Inserts", "a", "String", "value", "into", "the", "mapping", "of", "this", "Bundle", "replacing", "any", "existing", "value", "for", "the", "given", "key", ".", "Either", "key", "or", "value", "may", "be", "null", "."], "sha": "afa59227b33824700f11bc575ca535b0e78babec", "url": "https://github.com/evant/JobSchedulerCompat/blob/afa59227b33824700f11bc575ca535b0e78babec/jobscheduler/src/main/java/me/tatarka/support/os/PersistableBundle.java#L177-L179", "partition": "valid"} +{"repo": "evant/JobSchedulerCompat", "path": "jobscheduler/src/main/java/me/tatarka/support/os/PersistableBundle.java", "func_name": "PersistableBundle.putStringArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inserts a String array value into the mapping of this Bundle, replacing any existing value\nfor the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a String array object, or null", "docstring_tokens": ["Inserts", "a", "String", "array", "value", "into", "the", "mapping", "of", "this", "Bundle", "replacing", "any", "existing", "value", "for", "the", "given", "key", ".", "Either", "key", "or", "value", "may", "be", "null", "."], "sha": "afa59227b33824700f11bc575ca535b0e78babec", "url": "https://github.com/evant/JobSchedulerCompat/blob/afa59227b33824700f11bc575ca535b0e78babec/jobscheduler/src/main/java/me/tatarka/support/os/PersistableBundle.java#L221-L223", "partition": "valid"} +{"repo": "evant/JobSchedulerCompat", "path": "jobscheduler/src/main/java/me/tatarka/support/os/PersistableBundle.java", "func_name": "PersistableBundle.getString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the value associated with the given key, or defaultValue if no mapping of the desired\ntype exists for the given key or if a null value is explicitly associated with the given\nkey.\n\n@param key a String, or null\n@param defaultValue Value to return if key does not exist or if a null value is associated\nwith the given key.\n@return the String value associated with the given key, or defaultValue if no valid String\nobject is currently mapped to that key.", "docstring_tokens": ["Returns", "the", "value", "associated", "with", "the", "given", "key", "or", "defaultValue", "if", "no", "mapping", "of", "the", "desired", "type", "exists", "for", "the", "given", "key", "or", "if", "a", "null", "value", "is", "explicitly", "associated", "with", "the", "given", "key", "."], "sha": "afa59227b33824700f11bc575ca535b0e78babec", "url": "https://github.com/evant/JobSchedulerCompat/blob/afa59227b33824700f11bc575ca535b0e78babec/jobscheduler/src/main/java/me/tatarka/support/os/PersistableBundle.java#L316-L318", "partition": "valid"} +{"repo": "evant/JobSchedulerCompat", "path": "jobscheduler/src/main/java/me/tatarka/support/os/PersistableBundle.java", "func_name": "PersistableBundle.putPersistableBundle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inserts a PersistableBundle value into the mapping of this Bundle, replacing any existing\nvalue for the given key. Either key or value may be null.\n\n@param key a String, or null\n@param value a Bundle object, or null", "docstring_tokens": ["Inserts", "a", "PersistableBundle", "value", "into", "the", "mapping", "of", "this", "Bundle", "replacing", "any", "existing", "value", "for", "the", "given", "key", ".", "Either", "key", "or", "value", "may", "be", "null", "."], "sha": "afa59227b33824700f11bc575ca535b0e78babec", "url": "https://github.com/evant/JobSchedulerCompat/blob/afa59227b33824700f11bc575ca535b0e78babec/jobscheduler/src/main/java/me/tatarka/support/os/PersistableBundle.java#L371-L373", "partition": "valid"} +{"repo": "MrEngineer13/SnackBar", "path": "snackbar/src/main/java/com/github/mrengineer13/snackbar/Snack.java", "func_name": "Snack.writeToParcel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "writes data to parcel", "docstring_tokens": ["writes", "data", "to", "parcel"], "sha": "a0a6b599cd6b3a9779ada199c138d143514f8d77", "url": "https://github.com/MrEngineer13/SnackBar/blob/a0a6b599cd6b3a9779ada199c138d143514f8d77/snackbar/src/main/java/com/github/mrengineer13/snackbar/Snack.java#L56-L66", "partition": "valid"} +{"repo": "MrEngineer13/SnackBar", "path": "snackbar/src/main/java/com/github/mrengineer13/snackbar/SnackBar.java", "func_name": "SnackBar.getHeight", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates the height of the SnackBar\n\n@return the height of the SnackBar", "docstring_tokens": ["Calculates", "the", "height", "of", "the", "SnackBar"], "sha": "a0a6b599cd6b3a9779ada199c138d143514f8d77", "url": "https://github.com/MrEngineer13/SnackBar/blob/a0a6b599cd6b3a9779ada199c138d143514f8d77/snackbar/src/main/java/com/github/mrengineer13/snackbar/SnackBar.java#L361-L365", "partition": "valid"} +{"repo": "IMSGlobal/basiclti-util-java", "path": "src/main/java/org/imsglobal/lti/BasicLTIUtil.java", "func_name": "BasicLTIUtil.dPrint", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Simple Debug Print Mechanism", "docstring_tokens": ["Simple", "Debug", "Print", "Mechanism"], "sha": "903343b38dfe15cfcb46ced13d34148cabfaabc1", "url": "https://github.com/IMSGlobal/basiclti-util-java/blob/903343b38dfe15cfcb46ced13d34148cabfaabc1/src/main/java/org/imsglobal/lti/BasicLTIUtil.java#L114-L119", "partition": "valid"} +{"repo": "IMSGlobal/basiclti-util-java", "path": "src/main/java/org/imsglobal/lti/BasicLTIUtil.java", "func_name": "BasicLTIUtil.checkProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if the properties are properly signed\n\n@deprecated See:\n{@link BasicLTIUtil#checkProperties(Map, String, String, String, String)}\n\n@param postProp\n@param url\n@param method\n@param oauth_consumer_key\n@param oauth_consumer_secret\n@return", "docstring_tokens": ["Check", "if", "the", "properties", "are", "properly", "signed"], "sha": "903343b38dfe15cfcb46ced13d34148cabfaabc1", "url": "https://github.com/IMSGlobal/basiclti-util-java/blob/903343b38dfe15cfcb46ced13d34148cabfaabc1/src/main/java/org/imsglobal/lti/BasicLTIUtil.java#L449-L454", "partition": "valid"} +{"repo": "IMSGlobal/basiclti-util-java", "path": "src/main/java/org/imsglobal/lti/BasicLTIUtil.java", "func_name": "BasicLTIUtil.checkProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if the fields are properly signed\n\n@param postProp\n@param url\n@param method\n@param oauth_consumer_key\n@param oauth_consumer_secret\n\n@return", "docstring_tokens": ["Check", "if", "the", "fields", "are", "properly", "signed"], "sha": "903343b38dfe15cfcb46ced13d34148cabfaabc1", "url": "https://github.com/IMSGlobal/basiclti-util-java/blob/903343b38dfe15cfcb46ced13d34148cabfaabc1/src/main/java/org/imsglobal/lti/BasicLTIUtil.java#L467-L498", "partition": "valid"} +{"repo": "IMSGlobal/basiclti-util-java", "path": "src/main/java/org/imsglobal/lti/BasicLTIUtil.java", "func_name": "BasicLTIUtil.prepareForExport", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove fields that should not be exported", "docstring_tokens": ["Remove", "fields", "that", "should", "not", "be", "exported"], "sha": "903343b38dfe15cfcb46ced13d34148cabfaabc1", "url": "https://github.com/IMSGlobal/basiclti-util-java/blob/903343b38dfe15cfcb46ced13d34148cabfaabc1/src/main/java/org/imsglobal/lti/BasicLTIUtil.java#L735-L751", "partition": "valid"} +{"repo": "IMSGlobal/basiclti-util-java", "path": "src/main/java/org/imsglobal/lti/BasicLTIUtil.java", "func_name": "BasicLTIUtil.setProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Mutates the passed Properties props variable. Puts the key,value into the\nMap if the value is not null and is not empty.\n\n@deprecated See: {@link #setProperty(Map, String, String)}\n@param props Variable is mutated by this method.\n@param key\n@param value", "docstring_tokens": ["Mutates", "the", "passed", "Properties", "props", "variable", ".", "Puts", "the", "key", "value", "into", "the", "Map", "if", "the", "value", "is", "not", "null", "and", "is", "not", "empty", "."], "sha": "903343b38dfe15cfcb46ced13d34148cabfaabc1", "url": "https://github.com/IMSGlobal/basiclti-util-java/blob/903343b38dfe15cfcb46ced13d34148cabfaabc1/src/main/java/org/imsglobal/lti/BasicLTIUtil.java#L806-L814", "partition": "valid"} +{"repo": "IMSGlobal/basiclti-util-java", "path": "src/main/java/org/imsglobal/lti/BasicLTIUtil.java", "func_name": "BasicLTIUtil.htmlspecialchars", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Basic utility to encode form text - handle the \"safe cases\"", "docstring_tokens": ["Basic", "utility", "to", "encode", "form", "text", "-", "handle", "the", "safe", "cases"], "sha": "903343b38dfe15cfcb46ced13d34148cabfaabc1", "url": "https://github.com/IMSGlobal/basiclti-util-java/blob/903343b38dfe15cfcb46ced13d34148cabfaabc1/src/main/java/org/imsglobal/lti/BasicLTIUtil.java#L817-L828", "partition": "valid"} +{"repo": "IMSGlobal/basiclti-util-java", "path": "src/main/java/org/imsglobal/lti/BasicLTIUtil.java", "func_name": "BasicLTIUtil.getRealPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Simple utility method deal with a request that has the wrong URL when\nbehind a proxy.\n\n@param extUrl The url that the external world sees us as responding to.\nThis needs to be up to but not including the last slash like and not\ninclude any path information http://www.sakaiproject.org - although we do\ncompensate for extra stuff at the end.\n@return The full path of the request with extUrl in place of whatever the\nrequest thinks is the current URL.", "docstring_tokens": ["Simple", "utility", "method", "deal", "with", "a", "request", "that", "has", "the", "wrong", "URL", "when", "behind", "a", "proxy", "."], "sha": "903343b38dfe15cfcb46ced13d34148cabfaabc1", "url": "https://github.com/IMSGlobal/basiclti-util-java/blob/903343b38dfe15cfcb46ced13d34148cabfaabc1/src/main/java/org/imsglobal/lti/BasicLTIUtil.java#L841-L851", "partition": "valid"} +{"repo": "IMSGlobal/basiclti-util-java", "path": "src/main/java/org/imsglobal/lti/launch/LtiOauthVerifier.java", "func_name": "LtiOauthVerifier.verify", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method verifies the signed HttpServletRequest\n@param request the HttpServletRequest that will be verified\n@param secret the secret to verify the properties with\n@return the result of the verification, along with contextual\ninformation\n@throws LtiVerificationException", "docstring_tokens": ["This", "method", "verifies", "the", "signed", "HttpServletRequest"], "sha": "903343b38dfe15cfcb46ced13d34148cabfaabc1", "url": "https://github.com/IMSGlobal/basiclti-util-java/blob/903343b38dfe15cfcb46ced13d34148cabfaabc1/src/main/java/org/imsglobal/lti/launch/LtiOauthVerifier.java#L30-L50", "partition": "valid"} +{"repo": "IMSGlobal/basiclti-util-java", "path": "src/main/java/org/imsglobal/lti/launch/LtiOauthVerifier.java", "func_name": "LtiOauthVerifier.verifyParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method will verify a collection of parameters\n@param parameters the parameters that will be verified. mapped by key & value\n@param url the url this request was made at\n@param method the method this url was requested with\n@param secret the secret to verify the propertihes with\n@return\n@throws LtiVerificationException", "docstring_tokens": ["This", "method", "will", "verify", "a", "collection", "of", "parameters"], "sha": "903343b38dfe15cfcb46ced13d34148cabfaabc1", "url": "https://github.com/IMSGlobal/basiclti-util-java/blob/903343b38dfe15cfcb46ced13d34148cabfaabc1/src/main/java/org/imsglobal/lti/launch/LtiOauthVerifier.java#L61-L74", "partition": "valid"} +{"repo": "IMSGlobal/basiclti-util-java", "path": "src/main/java/org/imsglobal/pox/IMSPOXRequest.java", "func_name": "IMSPOXRequest.validateRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Assumes data is all loaded", "docstring_tokens": ["Assumes", "data", "is", "all", "loaded"], "sha": "903343b38dfe15cfcb46ced13d34148cabfaabc1", "url": "https://github.com/IMSGlobal/basiclti-util-java/blob/903343b38dfe15cfcb46ced13d34148cabfaabc1/src/main/java/org/imsglobal/pox/IMSPOXRequest.java#L308-L311", "partition": "valid"} +{"repo": "IMSGlobal/basiclti-util-java", "path": "src/main/java/org/imsglobal/lti2/LTI2Servlet.java", "func_name": "LTI2Servlet.doLaunch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "the profile and do a launch.", "docstring_tokens": ["the", "profile", "and", "do", "a", "launch", "."], "sha": "903343b38dfe15cfcb46ced13d34148cabfaabc1", "url": "https://github.com/IMSGlobal/basiclti-util-java/blob/903343b38dfe15cfcb46ced13d34148cabfaabc1/src/main/java/org/imsglobal/lti2/LTI2Servlet.java#L230-L294", "partition": "valid"} +{"repo": "IMSGlobal/basiclti-util-java", "path": "src/main/java/org/imsglobal/lti2/LTI2Servlet.java", "func_name": "LTI2Servlet.buildToolConsumerProfile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "it is always null and we allow everything", "docstring_tokens": ["it", "is", "always", "null", "and", "we", "allow", "everything"], "sha": "903343b38dfe15cfcb46ced13d34148cabfaabc1", "url": "https://github.com/IMSGlobal/basiclti-util-java/blob/903343b38dfe15cfcb46ced13d34148cabfaabc1/src/main/java/org/imsglobal/lti2/LTI2Servlet.java#L323-L350", "partition": "valid"} +{"repo": "IMSGlobal/basiclti-util-java", "path": "src/main/java/org/imsglobal/lti2/LTI2Util.java", "func_name": "LTI2Util.validateServices", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validate the incoming tool_services against a tool consumer", "docstring_tokens": ["Validate", "the", "incoming", "tool_services", "against", "a", "tool", "consumer"], "sha": "903343b38dfe15cfcb46ced13d34148cabfaabc1", "url": "https://github.com/IMSGlobal/basiclti-util-java/blob/903343b38dfe15cfcb46ced13d34148cabfaabc1/src/main/java/org/imsglobal/lti2/LTI2Util.java#L52-L83", "partition": "valid"} +{"repo": "IMSGlobal/basiclti-util-java", "path": "src/main/java/org/imsglobal/lti2/LTI2Util.java", "func_name": "LTI2Util.validateCapabilities", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validate incoming capabilities requested against out ToolConsumer", "docstring_tokens": ["Validate", "incoming", "capabilities", "requested", "against", "out", "ToolConsumer"], "sha": "903343b38dfe15cfcb46ced13d34148cabfaabc1", "url": "https://github.com/IMSGlobal/basiclti-util-java/blob/903343b38dfe15cfcb46ced13d34148cabfaabc1/src/main/java/org/imsglobal/lti2/LTI2Util.java#L86-L114", "partition": "valid"} +{"repo": "IMSGlobal/basiclti-util-java", "path": "src/main/java/org/imsglobal/lti2/LTI2Util.java", "func_name": "LTI2Util.addCustomToLaunch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Place the custom values into the launch", "docstring_tokens": ["Place", "the", "custom", "values", "into", "the", "launch"], "sha": "903343b38dfe15cfcb46ced13d34148cabfaabc1", "url": "https://github.com/IMSGlobal/basiclti-util-java/blob/903343b38dfe15cfcb46ced13d34148cabfaabc1/src/main/java/org/imsglobal/lti2/LTI2Util.java#L577-L585", "partition": "valid"} +{"repo": "jpardogo/ListBuddies", "path": "library/src/main/java/com/jpardogo/listbuddies/lib/views/ListBuddiesLayout.java", "func_name": "ListBuddiesLayout.toogleListView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Each time we touch the opposite ListView than the last one we have selected\nwe need to activate it as the enable one", "docstring_tokens": ["Each", "time", "we", "touch", "the", "opposite", "ListView", "than", "the", "last", "one", "we", "have", "selected", "we", "need", "to", "activate", "it", "as", "the", "enable", "one"], "sha": "86c8510f9f923e1b11c16785e8b1ae6b2be4754b", "url": "https://github.com/jpardogo/ListBuddies/blob/86c8510f9f923e1b11c16785e8b1ae6b2be4754b/library/src/main/java/com/jpardogo/listbuddies/lib/views/ListBuddiesLayout.java#L323-L333", "partition": "valid"} +{"repo": "jpardogo/ListBuddies", "path": "library/src/main/java/com/jpardogo/listbuddies/lib/views/ListBuddiesLayout.java", "func_name": "ListBuddiesLayout.onListScroll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Receives the distance scroll on listView.", "docstring_tokens": ["Receives", "the", "distance", "scroll", "on", "listView", "."], "sha": "86c8510f9f923e1b11c16785e8b1ae6b2be4754b", "url": "https://github.com/jpardogo/ListBuddies/blob/86c8510f9f923e1b11c16785e8b1ae6b2be4754b/library/src/main/java/com/jpardogo/listbuddies/lib/views/ListBuddiesLayout.java#L419-L430", "partition": "valid"} +{"repo": "google/safe-html-types", "path": "types/src/main/java/com/google/common/html/types/SafeUrls.java", "func_name": "SafeUrls.toProto", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Serializes a SafeUrl into its opaque protocol message representation.\n\n

Protocol message forms of this type are intended to be opaque. The fields of the returned\nprotocol message should be considered encapsulated and are not intended for direct inspection\nor manipulation. Protocol messages can be converted back into a SafeUrl using\n{@link #fromProto(SafeUrlProto)}.", "docstring_tokens": ["Serializes", "a", "SafeUrl", "into", "its", "opaque", "protocol", "message", "representation", "."], "sha": "8507735457ea41a37dfa027fb176d49d5783c4ba", "url": "https://github.com/google/safe-html-types/blob/8507735457ea41a37dfa027fb176d49d5783c4ba/types/src/main/java/com/google/common/html/types/SafeUrls.java#L81-L85", "partition": "valid"} +{"repo": "google/safe-html-types", "path": "types/src/main/java/com/google/common/html/types/SafeStyles.java", "func_name": "SafeStyles.toProto", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Serializes a SafeStyle into its opaque protocol message representation.\n\n

Protocol message forms of this type are intended to be opaque. The fields of the returned\nprotocol message should be considered encapsulated and are not intended for direct inspection\nor manipulation. Protocol messages can be converted back into a SafeStyle using\n{@link #fromProto(SafeStyleProto)}.", "docstring_tokens": ["Serializes", "a", "SafeStyle", "into", "its", "opaque", "protocol", "message", "representation", "."], "sha": "8507735457ea41a37dfa027fb176d49d5783c4ba", "url": "https://github.com/google/safe-html-types/blob/8507735457ea41a37dfa027fb176d49d5783c4ba/types/src/main/java/com/google/common/html/types/SafeStyles.java#L94-L97", "partition": "valid"} +{"repo": "google/safe-html-types", "path": "types/src/main/java/com/google/common/html/types/SafeScripts.java", "func_name": "SafeScripts.toProto", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Serializes a SafeScript into its opaque protocol message representation.\n\n

Protocol message forms of this type are intended to be opaque. The fields of the returned\nprotocol message should be considered encapsulated and are not intended for direct inspection\nor manipulation. Protocol messages can be converted back into a SafeScript using\n{@link #fromProto(SafeScriptProto)}.", "docstring_tokens": ["Serializes", "a", "SafeScript", "into", "its", "opaque", "protocol", "message", "representation", "."], "sha": "8507735457ea41a37dfa027fb176d49d5783c4ba", "url": "https://github.com/google/safe-html-types/blob/8507735457ea41a37dfa027fb176d49d5783c4ba/types/src/main/java/com/google/common/html/types/SafeScripts.java#L91-L94", "partition": "valid"} +{"repo": "google/safe-html-types", "path": "types/src/main/java/com/google/common/html/types/SafeStyleSheets.java", "func_name": "SafeStyleSheets.toProto", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Serializes a SafeStyleSheet into its opaque protocol message representation.\n\n

Protocol message forms of this type are intended to be opaque. The fields of the returned\nprotocol message should be considered encapsulated and are not intended for direct inspection\nor manipulation. Protocol messages can be converted back into a SafeStyleSheet using\n{@link #fromProto(SafeStyleSheetProto)}.", "docstring_tokens": ["Serializes", "a", "SafeStyleSheet", "into", "its", "opaque", "protocol", "message", "representation", "."], "sha": "8507735457ea41a37dfa027fb176d49d5783c4ba", "url": "https://github.com/google/safe-html-types/blob/8507735457ea41a37dfa027fb176d49d5783c4ba/types/src/main/java/com/google/common/html/types/SafeStyleSheets.java#L104-L109", "partition": "valid"} +{"repo": "google/safe-html-types", "path": "types/src/main/java/com/google/common/html/types/TrustedResourceUrls.java", "func_name": "TrustedResourceUrls.toProto", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Serializes a TrustedResourceUrl into its opaque protocol message representation.\n\n

Protocol message forms of this type are intended to be opaque. The fields of the returned\nprotocol message should be considered encapsulated and are not intended for direct inspection\nor manipulation. Protocol messages can be converted back into a TrustedResourceUrl using\n{@link #fromProto(TrustedResourceUrlProto)}.", "docstring_tokens": ["Serializes", "a", "TrustedResourceUrl", "into", "its", "opaque", "protocol", "message", "representation", "."], "sha": "8507735457ea41a37dfa027fb176d49d5783c4ba", "url": "https://github.com/google/safe-html-types/blob/8507735457ea41a37dfa027fb176d49d5783c4ba/types/src/main/java/com/google/common/html/types/TrustedResourceUrls.java#L63-L68", "partition": "valid"} +{"repo": "google/safe-html-types", "path": "types/src/main/java/com/google/common/html/types/SafeHtmls.java", "func_name": "SafeHtmls.toProto", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Serializes a SafeHtml into its opaque protocol message representation.\n\n

Protocol message forms of this type are intended to be opaque. The fields of the returned\nprotocol message should be considered encapsulated and are not intended for direct inspection\nor manipulation. Protocol messages can be converted back into a SafeHtml using\n{@link #fromProto(SafeHtmlProto)}.", "docstring_tokens": ["Serializes", "a", "SafeHtml", "into", "its", "opaque", "protocol", "message", "representation", "."], "sha": "8507735457ea41a37dfa027fb176d49d5783c4ba", "url": "https://github.com/google/safe-html-types/blob/8507735457ea41a37dfa027fb176d49d5783c4ba/types/src/main/java/com/google/common/html/types/SafeHtmls.java#L138-L141", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.wrapAngleRad", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wraps the radian between -PI and PI\n\n@param angle to wrap\n@return -PI < radian <= PI", "docstring_tokens": ["Wraps", "the", "radian", "between", "-", "PI", "and", "PI"], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L81-L90", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.round", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Rounds a number to the amount of decimals specified\n\n@param input to round\n@param decimals to round to\n@return the rounded number", "docstring_tokens": ["Rounds", "a", "number", "to", "the", "amount", "of", "decimals", "specified"], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L130-L133", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.lerp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates the value at x using linear interpolation\n\n@param x the X coord of the value to interpolate\n@param x1 the X coord of q0\n@param x2 the X coord of q1\n@param q0 the first known value (x1)\n@param q1 the second known value (x2)\n@return the interpolated value", "docstring_tokens": ["Calculates", "the", "value", "at", "x", "using", "linear", "interpolation"], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L229-L231", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.slerp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Interpolates a quaternion between two others using spherical linear interpolation.\n\n@param a The first quaternion\n@param b The second quaternion\n@param percent The percent for the interpolation, between 0 and 1 inclusively\n@return The interpolated quaternion", "docstring_tokens": ["Interpolates", "a", "quaternion", "between", "two", "others", "using", "spherical", "linear", "interpolation", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L257-L274", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.biLerp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates the value at x,y using bilinear interpolation\n\n@param x the X coord of the value to interpolate\n@param y the Y coord of the value to interpolate\n@param q00 the first known value (x1, y1)\n@param q01 the second known value (x1, y2)\n@param q10 the third known value (x2, y1)\n@param q11 the fourth known value (x2, y2)\n@param x1 the X coord of q00 and q01\n@param x2 the X coord of q10 and q11\n@param y1 the Y coord of q00 and q10\n@param y2 the Y coord of q01 and q11\n@return the interpolated value", "docstring_tokens": ["Calculates", "the", "value", "at", "x", "y", "using", "bilinear", "interpolation"], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L342-L347", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.triLerp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates the value at x,y,z using trilinear interpolation\n\n@param x the X coord of the value to interpolate\n@param y the Y coord of the value to interpolate\n@param z the Z coord of the value to interpolate\n@param q000 the first known value (x1, y1, z1)\n@param q001 the second known value (x1, y2, z1)\n@param q010 the third known value (x1, y1, z2)\n@param q011 the fourth known value (x1, y2, z2)\n@param q100 the fifth known value (x2, y1, z1)\n@param q101 the sixth known value (x2, y2, z1)\n@param q110 the seventh known value (x2, y1, z2)\n@param q111 the eighth known value (x2, y2, z2)\n@param x1 the X coord of q000, q001, q010 and q011\n@param x2 the X coord of q100, q101, q110 and q111\n@param y1 the Y coord of q000, q010, q100 and q110\n@param y2 the Y coord of q001, q011, q101 and q111\n@param z1 the Z coord of q000, q001, q100 and q101\n@param z2 the Z coord of q010, q011, q110 and q111\n@return the interpolated value", "docstring_tokens": ["Calculates", "the", "value", "at", "x", "y", "z", "using", "trilinear", "interpolation"], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L371-L381", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.blend", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Blends two colors into one.\n\n@param a The first color\n@param b The second color\n@return The blended color", "docstring_tokens": ["Blends", "two", "colors", "into", "one", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L390-L392", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.clamp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Clamps the value between the low and high boundaries\n\n@param value The value to clamp\n@param low The low bound of the clamp\n@param high The high bound of the clamp\n@return the clamped value", "docstring_tokens": ["Clamps", "the", "value", "between", "the", "low", "and", "high", "boundaries"], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L402-L410", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.inverseSqrt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a fast estimate of the inverse square root of the value\n\n@param a The value\n@return The estimate of the inverse square root", "docstring_tokens": ["Returns", "a", "fast", "estimate", "of", "the", "inverse", "square", "root", "of", "the", "value"], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L436-L440", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.castFloat", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Casts a value to a float. May return null.\n\n@param o The object to attempt to cast\n@return The object as a float", "docstring_tokens": ["Casts", "a", "value", "to", "a", "float", ".", "May", "return", "null", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L572-L584", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.castByte", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Casts a value to a byte. May return null.\n\n@param o The object to attempt to cast\n@return The object as a byte", "docstring_tokens": ["Casts", "a", "value", "to", "a", "byte", ".", "May", "return", "null", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L592-L604", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.castShort", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Casts a value to a short. May return null.\n\n@param o The object to attempt to cast\n@return The object as a short", "docstring_tokens": ["Casts", "a", "value", "to", "a", "short", ".", "May", "return", "null", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L612-L624", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.castInt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Casts a value to an integer. May return null.\n\n@param o The object to attempt to cast\n@return The object as an int", "docstring_tokens": ["Casts", "a", "value", "to", "an", "integer", ".", "May", "return", "null", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L632-L644", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.castDouble", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Casts a value to a double. May return null.\n\n@param o The object to attempt to cast\n@return The object as a double", "docstring_tokens": ["Casts", "a", "value", "to", "a", "double", ".", "May", "return", "null", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L652-L664", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.castLong", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Casts a value to a long. May return null.\n\n@param o The object to attempt to cast\n@return The object as a long", "docstring_tokens": ["Casts", "a", "value", "to", "a", "long", ".", "May", "return", "null", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L672-L684", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.castBoolean", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Casts a value to a boolean. May return null.\n\n@param o The object to attempt to cast\n@return The object as a boolean", "docstring_tokens": ["Casts", "a", "value", "to", "a", "boolean", ".", "May", "return", "null", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L692-L707", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.mean", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates the mean of a set of values\n\n@param values to calculate the mean of\n@return the mean of the values", "docstring_tokens": ["Calculates", "the", "mean", "of", "a", "set", "of", "values"], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L715-L721", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.mod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the modulo of 'a' by 'div' with corrections for negative numbers.\n\n@param a The dividend\n@param div The divider\n@return The corrected modulo", "docstring_tokens": ["Returns", "the", "modulo", "of", "a", "by", "div", "with", "corrections", "for", "negative", "numbers", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L783-L786", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/GenericMath.java", "func_name": "GenericMath.multiplyToShift", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts a multiplication into a shift.\n\n@param a the multiplicand\n@return the left shift required to multiply by the multiplicand", "docstring_tokens": ["Converts", "a", "multiplication", "into", "a", "shift", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/GenericMath.java#L812-L821", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java", "func_name": "Quaterniond.mul", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Multiplies the components of this quaternion by a double scalar.\n\n@param a The multiplication scalar\n@return A new quaternion, which has each component multiplied by the scalar", "docstring_tokens": ["Multiplies", "the", "components", "of", "this", "quaternion", "by", "a", "double", "scalar", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java#L198-L201", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java", "func_name": "Quaterniond.div", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Divides the components of this quaternion by a double scalar.\n\n@param a The division scalar\n@return A new quaternion, which has each component divided by the scalar", "docstring_tokens": ["Divides", "the", "components", "of", "this", "quaternion", "by", "a", "double", "scalar", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java#L259-L262", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java", "func_name": "Quaterniond.rotate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Rotates the double components of a vector by this quaternion.\n\n@param x The x component of the vector\n@param y The y component of the vector\n@param z The z component of the vector\n@return The rotated vector", "docstring_tokens": ["Rotates", "the", "double", "components", "of", "a", "vector", "by", "this", "quaternion", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java#L371-L388", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java", "func_name": "Quaterniond.lengthSquared", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the square of the length of this quaternion.\n\n@return The square of the length", "docstring_tokens": ["Returns", "the", "square", "of", "the", "length", "of", "this", "quaternion", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java#L473-L476", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java", "func_name": "Quaterniond.normalize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Normalizes this quaternion.\n\n@return A new quaternion of unit length", "docstring_tokens": ["Normalizes", "this", "quaternion", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java#L493-L500", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java", "func_name": "Quaterniond.fromImaginary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new quaternion from the double imaginary components.\n\n

The {@link #ZERO} constant is re-used when {@code x}, {@code y}, and {@code z} are 0.

\n\n@param x The x (imaginary) component\n@param y The y (imaginary) component\n@param z The z (imaginary) component\n@return The quaternion created from the double imaginary components", "docstring_tokens": ["Creates", "a", "new", "quaternion", "from", "the", "double", "imaginary", "components", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java#L597-L599", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java", "func_name": "Quaterniond.from", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new quaternion from the double components.\n\n

The {@link #ZERO} constant is re-used when {@code x}, {@code y}, {@code z}, and {@code w} are 0.

\n\n@param x The x (imaginary) component\n@param y The y (imaginary) component\n@param z The z (imaginary) component\n@param w The w (real) component\n@return The quaternion created from the double components", "docstring_tokens": ["Creates", "a", "new", "quaternion", "from", "the", "double", "components", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java#L612-L614", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java", "func_name": "Quaterniond.fromAxesAnglesDeg", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new quaternion from the double angles in degrees around the x, y and z axes.\n\n@param pitch The rotation around x\n@param yaw The rotation around y\n@param roll The rotation around z\n@return The quaternion defined by the rotations around the axes", "docstring_tokens": ["Creates", "a", "new", "quaternion", "from", "the", "double", "angles", "in", "degrees", "around", "the", "x", "y", "and", "z", "axes", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java#L648-L652", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java", "func_name": "Quaterniond.fromAxesAnglesRad", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new quaternion from the double angles in radians around the x, y and z axes.\n\n@param pitch The rotation around x\n@param yaw The rotation around y\n@param roll The rotation around z\n@return The quaternion defined by the rotations around the axes", "docstring_tokens": ["Creates", "a", "new", "quaternion", "from", "the", "double", "angles", "in", "radians", "around", "the", "x", "y", "and", "z", "axes", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java#L662-L666", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java", "func_name": "Quaterniond.fromAngleRadAxis", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new quaternion from the rotation double angle in radians around the axis vector.\n\n@param angle The rotation angle in radians\n@param axis The axis of rotation\n@return The quaternion defined by the rotation around the axis", "docstring_tokens": ["Creates", "a", "new", "quaternion", "from", "the", "rotation", "double", "angle", "in", "radians", "around", "the", "axis", "vector", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java#L719-L721", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java", "func_name": "Quaterniond.fromAngleDegAxis", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new quaternion from the rotation float angle in degrees around the axis vector float components.\n\n@param angle The rotation angle in degrees\n@param x The x component of the axis vector\n@param y The y component of the axis vector\n@param z The z component of the axis vector\n@return The quaternion defined by the rotation around the axis", "docstring_tokens": ["Creates", "a", "new", "quaternion", "from", "the", "rotation", "float", "angle", "in", "degrees", "around", "the", "axis", "vector", "float", "components", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaterniond.java#L732-L734", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/vector/Vector4i.java", "func_name": "Vector4i.getMinAxis", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the axis with the minimal value.\n\n@return {@link int} axis with minimal value", "docstring_tokens": ["Return", "the", "axis", "with", "the", "minimal", "value", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/vector/Vector4i.java#L267-L283", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Complexf.java", "func_name": "Complexf.mul", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Multiplies the float components of another complex with this one.\n\n@param x The x (real) component of the complex to multiply with\n@param y The y (imaginary) component of the complex to multiply with\n@return A new complex, which is the product of both", "docstring_tokens": ["Multiplies", "the", "float", "components", "of", "another", "complex", "with", "this", "one", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Complexf.java#L199-L203", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Complexf.java", "func_name": "Complexf.div", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Divides this complex by the float components of another one.\n\n@param x The x (real) component of the complex to divide with\n@param y The y (imaginary) component of the complex to divide with\n@return The quotient of the two complexes", "docstring_tokens": ["Divides", "this", "complex", "by", "the", "float", "components", "of", "another", "one", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Complexf.java#L254-L259", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Complexf.java", "func_name": "Complexf.rotate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Rotates the float components of a vector by this complex.\n\n@param x The x component of the vector\n@param y The y component of the vector\n@return The rotated vector", "docstring_tokens": ["Rotates", "the", "float", "components", "of", "a", "vector", "by", "this", "complex", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Complexf.java#L321-L329", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Complexf.java", "func_name": "Complexf.normalize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Normalizes this complex.\n\n@return A new complex of unit length", "docstring_tokens": ["Normalizes", "this", "complex", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Complexf.java#L410-L417", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Complexf.java", "func_name": "Complexf.toQuaternion", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts this complex to a quaternion by\nusing the provided float components vector\nas a rotation axis.\n\n@param x The x component of the axis vector\n@param y The y component of the axis vector\n@param z The z component of the axis vector\n@return A quaternion of this rotation around the given axis", "docstring_tokens": ["Converts", "this", "complex", "to", "a", "quaternion", "by", "using", "the", "provided", "float", "components", "vector", "as", "a", "rotation", "axis", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Complexf.java#L464-L466", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Complexf.java", "func_name": "Complexf.from", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new complex from the float components.\n\n

The {@link #ZERO} constant is re-used when both {@code x} and {@code z} are 0.

\n\n@param x The x (real) component\n@param y The y (imaginary) component\n@return The complex created from the float components", "docstring_tokens": ["Creates", "a", "new", "complex", "from", "the", "float", "components", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Complexf.java#L554-L556", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Complexf.java", "func_name": "Complexf.fromAngleRad", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new complex from the float angle in radians.\n\n@param angle The angle in radians\n@return The complex defined by the angle", "docstring_tokens": ["Creates", "a", "new", "complex", "from", "the", "float", "angle", "in", "radians", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Complexf.java#L616-L618", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/vector/Vector4l.java", "func_name": "Vector4l.getMaxAxis", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the axis with the maximum value.\n\n@return {@link int} axis with maximum value", "docstring_tokens": ["Return", "the", "axis", "with", "the", "maximum", "value", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/vector/Vector4l.java#L290-L306", "partition": "valid"} +{"repo": "flow/math", "path": "src/main/java/com/flowpowered/math/HashFunctions.java", "func_name": "HashFunctions.hash", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a hashcode for the specified value.\n\n@return a hash code value for the specified value.", "docstring_tokens": ["Returns", "a", "hashcode", "for", "the", "specified", "value", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/src/main/java/com/flowpowered/math/HashFunctions.java#L48-L55", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java", "func_name": "Quaternionf.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the float components of another quaternion to this one.\n\n@param x The x (imaginary) component of the quaternion to add\n@param y The y (imaginary) component of the quaternion to add\n@param z The z (imaginary) component of the quaternion to add\n@param w The w (real) component of the quaternion to add\n@return A new quaternion, which is the sum of both", "docstring_tokens": ["Adds", "the", "float", "components", "of", "another", "quaternion", "to", "this", "one", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java#L142-L144", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java", "func_name": "Quaternionf.mul", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Multiplies the components of this quaternion by a float scalar.\n\n@param a The multiplication scalar\n@return A new quaternion, which has each component multiplied by the scalar", "docstring_tokens": ["Multiplies", "the", "components", "of", "this", "quaternion", "by", "a", "float", "scalar", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java#L198-L201", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java", "func_name": "Quaternionf.div", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Divides the components of this quaternion by a float scalar.\n\n@param a The division scalar\n@return A new quaternion, which has each component divided by the scalar", "docstring_tokens": ["Divides", "the", "components", "of", "this", "quaternion", "by", "a", "float", "scalar", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java#L259-L262", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java", "func_name": "Quaternionf.getAxis", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the axis of rotation for this quaternion.\n\n@return The axis of rotation", "docstring_tokens": ["Returns", "the", "axis", "of", "rotation", "for", "this", "quaternion", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java#L404-L407", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java", "func_name": "Quaternionf.getAxesAnglesRad", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the angles in radians around the x, y and z axes that correspond to the rotation represented by this quaternion.\n\n@return The angle in radians for each axis, stored in a vector, in the corresponding component", "docstring_tokens": ["Returns", "the", "angles", "in", "radians", "around", "the", "x", "y", "and", "z", "axes", "that", "correspond", "to", "the", "rotation", "represented", "by", "this", "quaternion", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java#L423-L439", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java", "func_name": "Quaternionf.fromImaginary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new quaternion from the float imaginary components.\n\n

The {@link #ZERO} constant is re-used when {@code x}, {@code y}, and {@code z} are 0.

\n\n@param x The x (imaginary) component\n@param y The y (imaginary) component\n@param z The z (imaginary) component\n@return The quaternion created from the float imaginary components", "docstring_tokens": ["Creates", "a", "new", "quaternion", "from", "the", "float", "imaginary", "components", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java#L597-L599", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java", "func_name": "Quaternionf.from", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new quaternion from the float components.\n\n

The {@link #ZERO} constant is re-used when {@code x}, {@code y}, {@code z}, and {@code w} are 0.

\n\n@param x The x (imaginary) component\n@param y The y (imaginary) component\n@param z The z (imaginary) component\n@param w The w (real) component\n@return The quaternion created from the float components", "docstring_tokens": ["Creates", "a", "new", "quaternion", "from", "the", "float", "components", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java#L612-L614", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java", "func_name": "Quaternionf.fromAxesAnglesDeg", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new quaternion from the float angles in degrees around the x, y and z axes.\n\n@param pitch The rotation around x\n@param yaw The rotation around y\n@param roll The rotation around z\n@return The quaternion defined by the rotations around the axes", "docstring_tokens": ["Creates", "a", "new", "quaternion", "from", "the", "float", "angles", "in", "degrees", "around", "the", "x", "y", "and", "z", "axes", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java#L648-L652", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java", "func_name": "Quaternionf.fromAxesAnglesRad", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new quaternion from the float angles in radians around the x, y and z axes.\n\n@param pitch The rotation around x\n@param yaw The rotation around y\n@param roll The rotation around z\n@return The quaternion defined by the rotations around the axes", "docstring_tokens": ["Creates", "a", "new", "quaternion", "from", "the", "float", "angles", "in", "radians", "around", "the", "x", "y", "and", "z", "axes", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java#L662-L666", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java", "func_name": "Quaternionf.fromAngleRadAxis", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new quaternion from the rotation float angle in radians around the axis vector.\n\n@param angle The rotation angle in radians\n@param axis The axis of rotation\n@return The quaternion defined by the rotation around the axis", "docstring_tokens": ["Creates", "a", "new", "quaternion", "from", "the", "rotation", "float", "angle", "in", "radians", "around", "the", "axis", "vector", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java#L719-L721", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java", "func_name": "Quaternionf.fromAngleRadAxis", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new quaternion from the rotation double angle in radians around the axis vector double components.\n\n@param angle The rotation angle in radians\n@param x The x component of the axis vector\n@param y The y component of the axis vector\n@param z The z component of the axis vector\n@return The quaternion defined by the rotation around the axis", "docstring_tokens": ["Creates", "a", "new", "quaternion", "from", "the", "rotation", "double", "angle", "in", "radians", "around", "the", "axis", "vector", "double", "components", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Quaternionf.java#L745-L747", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Complexd.java", "func_name": "Complexd.mul", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Multiplies the double components of another complex with this one.\n\n@param x The x (real) component of the complex to multiply with\n@param y The y (imaginary) component of the complex to multiply with\n@return A new complex, which is the product of both", "docstring_tokens": ["Multiplies", "the", "double", "components", "of", "another", "complex", "with", "this", "one", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Complexd.java#L199-L203", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Complexd.java", "func_name": "Complexd.div", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Divides this complex by the double components of another one.\n\n@param x The x (real) component of the complex to divide with\n@param y The y (imaginary) component of the complex to divide with\n@return The quotient of the two complexes", "docstring_tokens": ["Divides", "this", "complex", "by", "the", "double", "components", "of", "another", "one", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Complexd.java#L254-L259", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Complexd.java", "func_name": "Complexd.rotate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Rotates the double components of a vector by this complex.\n\n@param x The x component of the vector\n@param y The y component of the vector\n@return The rotated vector", "docstring_tokens": ["Rotates", "the", "double", "components", "of", "a", "vector", "by", "this", "complex", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Complexd.java#L321-L329", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Complexd.java", "func_name": "Complexd.toQuaternion", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts this complex to a quaternion by\nusing the provided double components vector\nas a rotation axis.\n\n@param x The x component of the axis vector\n@param y The y component of the axis vector\n@param z The z component of the axis vector\n@return A quaternion of this rotation around the given axis", "docstring_tokens": ["Converts", "this", "complex", "to", "a", "quaternion", "by", "using", "the", "provided", "double", "components", "vector", "as", "a", "rotation", "axis", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Complexd.java#L464-L466", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Complexd.java", "func_name": "Complexd.from", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new complex from the double components.\n\n

The {@link #ZERO} constant is re-used when both {@code x} and {@code z} are 0.

\n\n@param x The x (real) component\n@param y The y (imaginary) component\n@return The complex created from the double components", "docstring_tokens": ["Creates", "a", "new", "complex", "from", "the", "double", "components", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Complexd.java#L554-L556", "partition": "valid"} +{"repo": "flow/math", "path": "target/generated-sources/template/com/flowpowered/math/imaginary/Complexd.java", "func_name": "Complexd.fromAngleRad", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new complex from the double angle in radians.\n\n@param angle The angle in radians\n@return The complex defined by the angle", "docstring_tokens": ["Creates", "a", "new", "complex", "from", "the", "double", "angle", "in", "radians", "."], "sha": "12c1a809720aced976ed22de34fb1457d8eda78f", "url": "https://github.com/flow/math/blob/12c1a809720aced976ed22de34fb1457d8eda78f/target/generated-sources/template/com/flowpowered/math/imaginary/Complexd.java#L616-L618", "partition": "valid"} +{"repo": "ssomai/ScalableLayout", "path": "library_scalablelayout/src/main/java/com/ssomai/android/scalablelayout/ScalableLayout.java", "func_name": "ScalableLayout.moveChildView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "move childView inside ScalableLayout\n@param pChildView view to move. should be child of ScaleLayout\n@param pScale_Left\n@param pScale_Top", "docstring_tokens": ["move", "childView", "inside", "ScalableLayout"], "sha": "b4517b832efb20f8c8308a696839f8237bcea871", "url": "https://github.com/ssomai/ScalableLayout/blob/b4517b832efb20f8c8308a696839f8237bcea871/library_scalablelayout/src/main/java/com/ssomai/android/scalablelayout/ScalableLayout.java#L243-L248", "partition": "valid"} +{"repo": "ssomai/ScalableLayout", "path": "library_scalablelayout/src/main/java/com/ssomai/android/scalablelayout/ScalableLayout.java", "func_name": "ScalableLayout.moveChildView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "move and resize childView inside ScalableLayout\n@param pChildView view to move. should be child of ScaleLayout\n@param pScale_Left\n@param pScale_Top\n@param pScale_Width\n@param pScale_Height", "docstring_tokens": ["move", "and", "resize", "childView", "inside", "ScalableLayout"], "sha": "b4517b832efb20f8c8308a696839f8237bcea871", "url": "https://github.com/ssomai/ScalableLayout/blob/b4517b832efb20f8c8308a696839f8237bcea871/library_scalablelayout/src/main/java/com/ssomai/android/scalablelayout/ScalableLayout.java#L258-L265", "partition": "valid"} +{"repo": "Uncodin/bypass", "path": "platform/android/library/src/in/uncod/android/bypass/Bypass.java", "func_name": "Bypass.setBlockSpan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "These have trailing newlines that we want to avoid spanning", "docstring_tokens": ["These", "have", "trailing", "newlines", "that", "we", "want", "to", "avoid", "spanning"], "sha": "271e067d09c64eed8c72f1093d398dc2b9d69fc1", "url": "https://github.com/Uncodin/bypass/blob/271e067d09c64eed8c72f1093d398dc2b9d69fc1/platform/android/library/src/in/uncod/android/bypass/Bypass.java#L295-L298", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ConstraintFormulaSet.java", "func_name": "ConstraintFormulaSet.reduce", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Takes a compatibility assertion about an expression or type, called a constraint formula, and reduces it to a\nset of bounds on inference variables. Often, a constraint formula reduces to other constraint formulas,\nwhich must be recursively reduced. A procedure is followed to identify these additional constraint formulas and,\nultimately, to express via a bound set the conditions under which the choices for inferred types would render\neach constraint formula true.", "docstring_tokens": ["Takes", "a", "compatibility", "assertion", "about", "an", "expression", "or", "type", "called", "a", "constraint", "formula", "and", "reduces", "it", "to", "a", "set", "of", "bounds", "on", "inference", "variables", ".", "Often", "a", "constraint", "formula", "reduces", "to", "other", "constraint", "formulas", "which", "must", "be", "recursively", "reduced", ".", "A", "procedure", "is", "followed", "to", "identify", "these", "additional", "constraint", "formulas", "and", "ultimately", "to", "express", "via", "a", "bound", "set", "the", "conditions", "under", "which", "the", "choices", "for", "inferred", "types", "would", "render", "each", "constraint", "formula", "true", "."], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ConstraintFormulaSet.java#L38-L48", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/model/typesystem/ReferenceTypeImpl.java", "func_name": "ReferenceTypeImpl.transformTypeParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute a transformation on all the type parameters of this element.", "docstring_tokens": ["Execute", "a", "transformation", "on", "all", "the", "type", "parameters", "of", "this", "element", "."], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/model/typesystem/ReferenceTypeImpl.java#L173-L188", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-model/src/main/java/com/github/javaparser/symbolsolver/model/resolution/SymbolReference.java", "func_name": "SymbolReference.solved", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a solve reference to the given symbol.", "docstring_tokens": ["Create", "a", "solve", "reference", "to", "the", "given", "symbol", "."], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-model/src/main/java/com/github/javaparser/symbolsolver/model/resolution/SymbolReference.java#L40-L42", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-model/src/main/java/com/github/javaparser/symbolsolver/model/resolution/SymbolReference.java", "func_name": "SymbolReference.unsolved", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create an unsolved reference specifying the type of the value expected.", "docstring_tokens": ["Create", "an", "unsolved", "reference", "specifying", "the", "type", "of", "the", "value", "expected", "."], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-model/src/main/java/com/github/javaparser/symbolsolver/model/resolution/SymbolReference.java#L47-L49", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeHelper.java", "func_name": "TypeHelper.isProperType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The term proper type excludes such \"types\" that mention inference variables.", "docstring_tokens": ["The", "term", "proper", "type", "excludes", "such", "types", "that", "mention", "inference", "variables", "."], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeHelper.java#L30-L57", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeHelper.java", "func_name": "TypeHelper.leastUpperBound", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "See JLS 4.10.4. Least Upper Bound.", "docstring_tokens": ["See", "JLS", "4", ".", "10", ".", "4", ".", "Least", "Upper", "Bound", "."], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeHelper.java#L188-L286", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeHelper.java", "func_name": "TypeHelper.groundTargetTypeOfLambda", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "See JLS 15.27.3. Type of a Lambda Expression\n@return", "docstring_tokens": ["See", "JLS", "15", ".", "27", ".", "3", ".", "Type", "of", "a", "Lambda", "Expression"], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeHelper.java#L292-L318", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeHelper.java", "func_name": "TypeHelper.nonWildcardParameterizationOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "See JLS 9.9", "docstring_tokens": ["See", "JLS", "9", ".", "9"], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeHelper.java#L323-L382", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeHelper.java", "func_name": "TypeHelper.glb", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "See JLS 5.1.10. Capture Conversion.", "docstring_tokens": ["See", "JLS", "5", ".", "1", ".", "10", ".", "Capture", "Conversion", "."], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeHelper.java#L396-L404", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/TypeExtractor.java", "func_name": "TypeExtractor.solveDotExpressionType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Java Parser can't differentiate between packages, internal types, and fields.\nAll three are lumped together into FieldAccessExpr. We need to differentiate them.", "docstring_tokens": ["Java", "Parser", "can", "t", "differentiate", "between", "packages", "internal", "types", "and", "fields", ".", "All", "three", "are", "lumped", "together", "into", "FieldAccessExpr", ".", "We", "need", "to", "differentiate", "them", "."], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/TypeExtractor.java#L170-L180", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacade.java", "func_name": "JavaParserFacade.solve", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Given a constructor call find out to which constructor declaration it corresponds.", "docstring_tokens": ["Given", "a", "constructor", "call", "find", "out", "to", "which", "constructor", "declaration", "it", "corresponds", "."], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacade.java#L208-L223", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacade.java", "func_name": "JavaParserFacade.solve", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Given a method call find out to which method declaration it corresponds.", "docstring_tokens": ["Given", "a", "method", "call", "find", "out", "to", "which", "method", "declaration", "it", "corresponds", "."], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacade.java#L250-L261", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacade.java", "func_name": "JavaParserFacade.find", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "For some reasons LambdaExprs are duplicate and the equals method is not implemented correctly.\n\n@param map\n@return", "docstring_tokens": ["For", "some", "reasons", "LambdaExprs", "are", "duplicate", "and", "the", "equals", "method", "is", "not", "implemented", "correctly", "."], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacade.java#L339-L349", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacade.java", "func_name": "JavaParserFacade.qName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This is an hack around an issue in JavaParser", "docstring_tokens": ["This", "is", "an", "hack", "around", "an", "issue", "in", "JavaParser"], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacade.java#L439-L446", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacade.java", "func_name": "JavaParserFacade.getTypeOfThisIn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "\"this\" inserted in the given point, which type would have?", "docstring_tokens": ["this", "inserted", "in", "the", "given", "point", "which", "type", "would", "have?"], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFacade.java#L548-L561", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ControlFlowLogic.java", "func_name": "ControlFlowLogic.exitTheStatement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A reachable break statement exits a statement if, within the break target, either there are no try statements\nwhose try blocks contain the break statement, or there are try statements whose try blocks contain the break\nstatement and all finally clauses of those try statements can complete normally.", "docstring_tokens": ["A", "reachable", "break", "statement", "exits", "a", "statement", "if", "within", "the", "break", "target", "either", "there", "are", "no", "try", "statements", "whose", "try", "blocks", "contain", "the", "break", "statement", "or", "there", "are", "try", "statements", "whose", "try", "blocks", "contain", "the", "break", "statement", "and", "all", "finally", "clauses", "of", "those", "try", "statements", "can", "complete", "normally", "."], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ControlFlowLogic.java#L55-L68", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ControlFlowLogic.java", "func_name": "ControlFlowLogic.canCompleteNormally", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "See JLS 14.21", "docstring_tokens": ["See", "JLS", "14", ".", "21"], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ControlFlowLogic.java#L98-L167", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/SymbolSolver.java", "func_name": "SymbolSolver.solveTypeInType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Try to solve a symbol just in the declaration, it does not delegate to the container.", "docstring_tokens": ["Try", "to", "solve", "a", "symbol", "just", "in", "the", "declaration", "it", "does", "not", "delegate", "to", "the", "container", "."], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/SymbolSolver.java#L162-L171", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/MethodResolutionLogic.java", "func_name": "MethodResolutionLogic.solveMethodInType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Replace TypeDeclaration.solveMethod\n\n@param typeDeclaration\n@param name\n@param argumentsTypes\n@param staticOnly\n@return", "docstring_tokens": ["Replace", "TypeDeclaration", ".", "solveMethod"], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/MethodResolutionLogic.java#L596-L637", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-model/src/main/java/com/github/javaparser/symbolsolver/model/resolution/Value.java", "func_name": "Value.from", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a Value from a ValueDeclaration.", "docstring_tokens": ["Create", "a", "Value", "from", "a", "ValueDeclaration", "."], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-model/src/main/java/com/github/javaparser/symbolsolver/model/resolution/Value.java#L39-L42", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeInference.java", "func_name": "TypeInference.invocationApplicabilityInference", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determine whether a potentially applicable generic method m is applicable for a method invocation that\nprovides no explicit type arguments.", "docstring_tokens": ["Determine", "whether", "a", "potentially", "applicable", "generic", "method", "m", "is", "applicable", "for", "a", "method", "invocation", "that", "provides", "no", "explicit", "type", "arguments", "."], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeInference.java#L148-L177", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeInference.java", "func_name": "TypeInference.moreSpecificMethodInference", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return if m2 is more specific than m1\n@param methodCall\n@param m1\n@param m2", "docstring_tokens": ["Return", "if", "m2", "is", "more", "specific", "than", "m1"], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/TypeInference.java#L387-L474", "partition": "valid"} +{"repo": "javaparser/javasymbolsolver", "path": "java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ExpressionHelper.java", "func_name": "ExpressionHelper.appearsInAssignmentContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Not sure if should look if the parent is an assignment context", "docstring_tokens": ["Not", "sure", "if", "should", "look", "if", "the", "parent", "is", "an", "assignment", "context"], "sha": "e264a20a8c434363a8f224ab259a6baf48d1265a", "url": "https://github.com/javaparser/javasymbolsolver/blob/e264a20a8c434363a8f224ab259a6baf48d1265a/java-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ExpressionHelper.java#L95-L110", "partition": "valid"} +{"repo": "h2oai/xgboost-predictor", "path": "xgboost-predictor/src/main/java/biz/k11i/xgboost/Predictor.java", "func_name": "Predictor.predict", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates predictions for given feature vector.\n\n@param feat feature vector\n@param output_margin whether to only predict margin value instead of transformed prediction\n@param ntree_limit limit the number of trees used in prediction\n@return prediction values", "docstring_tokens": ["Generates", "predictions", "for", "given", "feature", "vector", "."], "sha": "5db857786c7d07f6d2b050166522e50594b37ee1", "url": "https://github.com/h2oai/xgboost-predictor/blob/5db857786c7d07f6d2b050166522e50594b37ee1/xgboost-predictor/src/main/java/biz/k11i/xgboost/Predictor.java#L155-L161", "partition": "valid"} +{"repo": "h2oai/xgboost-predictor", "path": "xgboost-predictor/src/main/java/biz/k11i/xgboost/tree/RegTreeImpl.java", "func_name": "RegTreeImpl.loadModel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads model from stream.\n\n@param reader input stream\n@throws IOException If an I/O error occurs", "docstring_tokens": ["Loads", "model", "from", "stream", "."], "sha": "5db857786c7d07f6d2b050166522e50594b37ee1", "url": "https://github.com/h2oai/xgboost-predictor/blob/5db857786c7d07f6d2b050166522e50594b37ee1/xgboost-predictor/src/main/java/biz/k11i/xgboost/tree/RegTreeImpl.java#L24-L36", "partition": "valid"} +{"repo": "h2oai/xgboost-predictor", "path": "xgboost-predictor/src/main/java/biz/k11i/xgboost/tree/RegTreeImpl.java", "func_name": "RegTreeImpl.getLeafIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves nodes from root to leaf and returns leaf index.\n\n@param feat feature vector\n@param root_id starting root index\n@return leaf index", "docstring_tokens": ["Retrieves", "nodes", "from", "root", "to", "leaf", "and", "returns", "leaf", "index", "."], "sha": "5db857786c7d07f6d2b050166522e50594b37ee1", "url": "https://github.com/h2oai/xgboost-predictor/blob/5db857786c7d07f6d2b050166522e50594b37ee1/xgboost-predictor/src/main/java/biz/k11i/xgboost/tree/RegTreeImpl.java#L45-L55", "partition": "valid"} +{"repo": "h2oai/xgboost-predictor", "path": "xgboost-predictor/src/main/java/biz/k11i/xgboost/tree/RegTreeImpl.java", "func_name": "RegTreeImpl.getLeafValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves nodes from root to leaf and returns leaf value.\n\n@param feat feature vector\n@param root_id starting root index\n@return leaf value", "docstring_tokens": ["Retrieves", "nodes", "from", "root", "to", "leaf", "and", "returns", "leaf", "value", "."], "sha": "5db857786c7d07f6d2b050166522e50594b37ee1", "url": "https://github.com/h2oai/xgboost-predictor/blob/5db857786c7d07f6d2b050166522e50594b37ee1/xgboost-predictor/src/main/java/biz/k11i/xgboost/tree/RegTreeImpl.java#L64-L72", "partition": "valid"} +{"repo": "wnameless/json-flattener", "path": "src/main/java/com/github/wnameless/json/unflattener/JsonUnflattener.java", "func_name": "JsonUnflattener.unflatten", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a JSON string of nested objects by the given flattened JSON string.\n\n@return a JSON string of nested objects", "docstring_tokens": ["Returns", "a", "JSON", "string", "of", "nested", "objects", "by", "the", "given", "flattened", "JSON", "string", "."], "sha": "86dbe3a5711ca7804fecfbbefbc7ea24df7e3ace", "url": "https://github.com/wnameless/json-flattener/blob/86dbe3a5711ca7804fecfbbefbc7ea24df7e3ace/src/main/java/com/github/wnameless/json/unflattener/JsonUnflattener.java#L220-L279", "partition": "valid"} +{"repo": "wnameless/json-flattener", "path": "src/main/java/com/github/wnameless/json/flattener/JsonFlattener.java", "func_name": "JsonFlattener.flatten", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a flattened JSON string.\n\n@return a flattened JSON string", "docstring_tokens": ["Returns", "a", "flattened", "JSON", "string", "."], "sha": "86dbe3a5711ca7804fecfbbefbc7ea24df7e3ace", "url": "https://github.com/wnameless/json-flattener/blob/86dbe3a5711ca7804fecfbbefbc7ea24df7e3ace/src/main/java/com/github/wnameless/json/flattener/JsonFlattener.java#L249-L256", "partition": "valid"} +{"repo": "wnameless/json-flattener", "path": "src/main/java/com/github/wnameless/json/flattener/JsonFlattener.java", "func_name": "JsonFlattener.flattenAsMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a flattened JSON as Map.\n\n@return a flattened JSON as Map", "docstring_tokens": ["Returns", "a", "flattened", "JSON", "as", "Map", "."], "sha": "86dbe3a5711ca7804fecfbbefbc7ea24df7e3ace", "url": "https://github.com/wnameless/json-flattener/blob/86dbe3a5711ca7804fecfbbefbc7ea24df7e3ace/src/main/java/com/github/wnameless/json/flattener/JsonFlattener.java#L285-L305", "partition": "valid"} +{"repo": "TomasMikula/ReactFX", "path": "reactfx/src/main/java/org/reactfx/util/Lists.java", "func_name": "Lists.concatView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a list that is a concatenation of the given lists. The returned\nlist is a view of the underlying lists, without copying the elements.\nThe returned list is unmodifiable. Modifications to underlying lists\nwill be visible through the concatenation view.", "docstring_tokens": ["Returns", "a", "list", "that", "is", "a", "concatenation", "of", "the", "given", "lists", ".", "The", "returned", "list", "is", "a", "view", "of", "the", "underlying", "lists", "without", "copying", "the", "elements", ".", "The", "returned", "list", "is", "unmodifiable", ".", "Modifications", "to", "underlying", "lists", "will", "be", "visible", "through", "the", "concatenation", "view", "."], "sha": "537fffdbb2958a77dfbca08b712bb2192862e960", "url": "https://github.com/TomasMikula/ReactFX/blob/537fffdbb2958a77dfbca08b712bb2192862e960/reactfx/src/main/java/org/reactfx/util/Lists.java#L202-L208", "partition": "valid"} +{"repo": "TomasMikula/ReactFX", "path": "reactfx/src/main/java/org/reactfx/EventStreams.java", "func_name": "EventStreams.invalidationsOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an event stream that emits an impulse on every invalidation\nof the given observable.", "docstring_tokens": ["Creates", "an", "event", "stream", "that", "emits", "an", "impulse", "on", "every", "invalidation", "of", "the", "given", "observable", "."], "sha": "537fffdbb2958a77dfbca08b712bb2192862e960", "url": "https://github.com/TomasMikula/ReactFX/blob/537fffdbb2958a77dfbca08b712bb2192862e960/reactfx/src/main/java/org/reactfx/EventStreams.java#L63-L72", "partition": "valid"} +{"repo": "TomasMikula/ReactFX", "path": "reactfx/src/main/java/org/reactfx/EventStreams.java", "func_name": "EventStreams.repeatOnInvalidation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an event stream that emits the given observable immediately for\nevery subscriber and re-emits it on every subsequent invalidation of the\nobservable.", "docstring_tokens": ["Creates", "an", "event", "stream", "that", "emits", "the", "given", "observable", "immediately", "for", "every", "subscriber", "and", "re", "-", "emits", "it", "on", "every", "subsequent", "invalidation", "of", "the", "observable", "."], "sha": "537fffdbb2958a77dfbca08b712bb2192862e960", "url": "https://github.com/TomasMikula/ReactFX/blob/537fffdbb2958a77dfbca08b712bb2192862e960/reactfx/src/main/java/org/reactfx/EventStreams.java#L79-L94", "partition": "valid"} +{"repo": "TomasMikula/ReactFX", "path": "reactfx/src/main/java/org/reactfx/EventStreams.java", "func_name": "EventStreams.animationFrames", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a stream that, on each animation frame, emits the duration\nelapsed since the previous animation frame, in nanoseconds.", "docstring_tokens": ["Returns", "a", "stream", "that", "on", "each", "animation", "frame", "emits", "the", "duration", "elapsed", "since", "the", "previous", "animation", "frame", "in", "nanoseconds", "."], "sha": "537fffdbb2958a77dfbca08b712bb2192862e960", "url": "https://github.com/TomasMikula/ReactFX/blob/537fffdbb2958a77dfbca08b712bb2192862e960/reactfx/src/main/java/org/reactfx/EventStreams.java#L437-L443", "partition": "valid"} +{"repo": "TomasMikula/ReactFX", "path": "reactfx/src/main/java/org/reactfx/EventStreams.java", "func_name": "EventStreams.merge", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an event stream that emits all the events emitted from any of\nthe event streams in the given observable set. When an event stream is\nadded to the set, the returned stream will start emitting its events.\nWhen an event stream is removed from the set, its events will no longer\nbe emitted from the returned stream.", "docstring_tokens": ["Returns", "an", "event", "stream", "that", "emits", "all", "the", "events", "emitted", "from", "any", "of", "the", "event", "streams", "in", "the", "given", "observable", "set", ".", "When", "an", "event", "stream", "is", "added", "to", "the", "set", "the", "returned", "stream", "will", "start", "emitting", "its", "events", ".", "When", "an", "event", "stream", "is", "removed", "from", "the", "set", "its", "events", "will", "no", "longer", "be", "emitted", "from", "the", "returned", "stream", "."], "sha": "537fffdbb2958a77dfbca08b712bb2192862e960", "url": "https://github.com/TomasMikula/ReactFX/blob/537fffdbb2958a77dfbca08b712bb2192862e960/reactfx/src/main/java/org/reactfx/EventStreams.java#L469-L477", "partition": "valid"} +{"repo": "TomasMikula/ReactFX", "path": "reactfx/src/main/java/org/reactfx/inhibeans/collection/Collections.java", "func_name": "Collections.wrap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an ObservableList wrapper that is able to temporarily block\nlist change notifications.\n@param delegate the underlying observable list.\n@deprecated Use {@link LiveList#suspendable(javafx.collections.ObservableList)} instead.", "docstring_tokens": ["Creates", "an", "ObservableList", "wrapper", "that", "is", "able", "to", "temporarily", "block", "list", "change", "notifications", "."], "sha": "537fffdbb2958a77dfbca08b712bb2192862e960", "url": "https://github.com/TomasMikula/ReactFX/blob/537fffdbb2958a77dfbca08b712bb2192862e960/reactfx/src/main/java/org/reactfx/inhibeans/collection/Collections.java#L17-L20", "partition": "valid"} +{"repo": "TomasMikula/ReactFX", "path": "reactfx/src/main/java/org/reactfx/Indicator.java", "func_name": "Indicator.onWhile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs the given computation, making sure this indicator is on.\nWhen done, this indicator is reset to the previous state.\n\n
\nT t = indicator.onWhile(f);\n
\n\nis equivalent to\n\n
\nT t;\ntry(Guard g = on()) {\nt = f.get();\n}\n
", "docstring_tokens": ["Runs", "the", "given", "computation", "making", "sure", "this", "indicator", "is", "on", ".", "When", "done", "this", "indicator", "is", "reset", "to", "the", "previous", "state", "."], "sha": "537fffdbb2958a77dfbca08b712bb2192862e960", "url": "https://github.com/TomasMikula/ReactFX/blob/537fffdbb2958a77dfbca08b712bb2192862e960/reactfx/src/main/java/org/reactfx/Indicator.java#L85-L89", "partition": "valid"} +{"repo": "TomasMikula/ReactFX", "path": "reactfx/src/main/java/org/reactfx/ProxyObservable.java", "func_name": "ProxyObservable.observe", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Overridden to avoid second transformation on removeObserver", "docstring_tokens": ["Overridden", "to", "avoid", "second", "transformation", "on", "removeObserver"], "sha": "537fffdbb2958a77dfbca08b712bb2192862e960", "url": "https://github.com/TomasMikula/ReactFX/blob/537fffdbb2958a77dfbca08b712bb2192862e960/reactfx/src/main/java/org/reactfx/ProxyObservable.java#L56-L61", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "api-servlet/src/main/java/org/ocpsoft/rewrite/servlet/util/Metadata.java", "func_name": "Metadata.copy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return a copy of this Metadata", "docstring_tokens": ["Return", "a", "copy", "of", "this", "Metadata"], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/api-servlet/src/main/java/org/ocpsoft/rewrite/servlet/util/Metadata.java#L36-L43", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "annotations-impl/src/main/java/org/ocpsoft/rewrite/annotation/scan/AbstractClassFinder.java", "func_name": "AbstractClassFinder.stripKnownPrefix", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Strip everything up to and including a given prefix from a string.\n\n@param str The string to process\n@param prefix The prefix\n@return the stripped string or null if the prefix has not been found", "docstring_tokens": ["Strip", "everything", "up", "to", "and", "including", "a", "given", "prefix", "from", "a", "string", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/annotations-impl/src/main/java/org/ocpsoft/rewrite/annotation/scan/AbstractClassFinder.java#L82-L92", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/DigesterPrettyConfigParser.java", "func_name": "DigesterPrettyConfigParser.configureDigester", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure the digester. Assume that the builder object will be pushed\nafter this method is called.", "docstring_tokens": ["Configure", "the", "digester", ".", "Assume", "that", "the", "builder", "object", "will", "be", "pushed", "after", "this", "method", "is", "called", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/DigesterPrettyConfigParser.java#L76-L136", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/annotation/PrettyAnnotationHandler.java", "func_name": "PrettyAnnotationHandler.processClassMappingAnnotations", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks for PrettyFaces mapping annotations on a single class\n\n@param clazz Class to scan\n@return The IDs of the mappings found on the class", "docstring_tokens": ["Checks", "for", "PrettyFaces", "mapping", "annotations", "on", "a", "single", "class"], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/annotation/PrettyAnnotationHandler.java#L141-L175", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/annotation/PrettyAnnotationHandler.java", "func_name": "PrettyAnnotationHandler.join", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Joins the list of values.\n\n@param values values to join\n@param separator the separator to use\n@return joined list of values", "docstring_tokens": ["Joins", "the", "list", "of", "values", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/annotation/PrettyAnnotationHandler.java#L591-L606", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java", "func_name": "UserAgentUtil.initDeviceScan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initialize Key Stored Values.", "docstring_tokens": ["Initialize", "Key", "Stored", "Values", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java#L272-L290", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java", "func_name": "UserAgentUtil.detectIphone", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Detects if the current device is an iPhone.\n\n@return detection of an iPhone", "docstring_tokens": ["Detects", "if", "the", "current", "device", "is", "an", "iPhone", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java#L297-L310", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java", "func_name": "UserAgentUtil.detectWebkit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Detects if the current browser is based on WebKit.\n\n@return detection of a WebKit browser", "docstring_tokens": ["Detects", "if", "the", "current", "browser", "is", "based", "on", "WebKit", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java#L468-L478", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java", "func_name": "UserAgentUtil.detectWindowsMobile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Detects if the current browser is a Windows Mobile device. Excludes Windows Phone 7.x and 8 devices. Focuses on\nWindows Mobile 6.xx and earlier.\n\n@return detection of Windows Mobile", "docstring_tokens": ["Detects", "if", "the", "current", "browser", "is", "a", "Windows", "Mobile", "device", ".", "Excludes", "Windows", "Phone", "7", ".", "x", "and", "8", "devices", ".", "Focuses", "on", "Windows", "Mobile", "6", ".", "xx", "and", "earlier", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java#L525-L548", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java", "func_name": "UserAgentUtil.detectBlackBerry", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Detects if the current browser is any BlackBerry. Includes BB10 OS, but excludes the PlayBook.\n\n@return detection of Blackberry", "docstring_tokens": ["Detects", "if", "the", "current", "browser", "is", "any", "BlackBerry", ".", "Includes", "BB10", "OS", "but", "excludes", "the", "PlayBook", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java#L555-L565", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java", "func_name": "UserAgentUtil.detectS60OssBrowser", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Detects if the current browser is the Symbian S60 Open Source Browser.\n\n@return detection of Symbian S60 Browser", "docstring_tokens": ["Detects", "if", "the", "current", "browser", "is", "the", "Symbian", "S60", "Open", "Source", "Browser", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java#L680-L689", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java", "func_name": "UserAgentUtil.detectPalmOS", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Detects if the current browser is on a PalmOS device.\n\n@return detection of a PalmOS device", "docstring_tokens": ["Detects", "if", "the", "current", "browser", "is", "on", "a", "PalmOS", "device", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java#L715-L728", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java", "func_name": "UserAgentUtil.detectOperaAndroidPhone", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Detects Opera Mobile on an Android phone.\n\n@return detection of an Opera browser on an Android phone", "docstring_tokens": ["Detects", "Opera", "Mobile", "on", "an", "Android", "phone", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java#L777-L785", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java", "func_name": "UserAgentUtil.detectOperaAndroidTablet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Detects Opera Mobile on an Android tablet.\n\n@return detection of an Opera browser on an Android tablet", "docstring_tokens": ["Detects", "Opera", "Mobile", "on", "an", "Android", "tablet", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java#L792-L800", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java", "func_name": "UserAgentUtil.detectMaemoTablet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Detects if the current device is on one of the Maemo-based Nokia Internet Tablets.\n\n@return detection of a Maemo OS tablet", "docstring_tokens": ["Detects", "if", "the", "current", "device", "is", "on", "one", "of", "the", "Maemo", "-", "based", "Nokia", "Internet", "Tablets", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java#L916-L928", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java", "func_name": "UserAgentUtil.detectMobileQuick", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Detects if the current device is a mobile device. This method catches most of the popular modern devices. Excludes\nApple iPads and other modern tablets.\n\n@return detection of any mobile device using the quicker method", "docstring_tokens": ["Detects", "if", "the", "current", "device", "is", "a", "mobile", "device", ".", "This", "method", "catches", "most", "of", "the", "popular", "modern", "devices", ".", "Excludes", "Apple", "iPads", "and", "other", "modern", "tablets", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java#L1081-L1125", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java", "func_name": "UserAgentUtil.detectTierIphone", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The quick way to detect for a tier of devices. This method detects for devices which can display iPhone-optimized\nweb content. Includes iPhone, iPod Touch, Android, Windows Phone 7 and 8, BB10, WebOS, Playstation Vita, etc.\n\n@return detection of any device in the iPhone/Android/Windows Phone/BlackBerry/WebOS Tier", "docstring_tokens": ["The", "quick", "way", "to", "detect", "for", "a", "tier", "of", "devices", ".", "This", "method", "detects", "for", "devices", "which", "can", "display", "iPhone", "-", "optimized", "web", "content", ".", "Includes", "iPhone", "iPod", "Touch", "Android", "Windows", "Phone", "7", "and", "8", "BB10", "WebOS", "Playstation", "Vita", "etc", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java#L1193-L1212", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java", "func_name": "UserAgentUtil.detectTierOtherPhones", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The quick way to detect for a tier of devices. This method detects for all other types of phones, but excludes the\niPhone and RichCSS Tier devices.\n\n@return detection of a mobile device in the less capable tier", "docstring_tokens": ["The", "quick", "way", "to", "detect", "for", "a", "tier", "of", "devices", ".", "This", "method", "detects", "for", "all", "other", "types", "of", "phones", "but", "excludes", "the", "iPhone", "and", "RichCSS", "Tier", "devices", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/UserAgentUtil.java#L1257-L1270", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/el/Expressions.java", "func_name": "Expressions.isEL", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return true if the value is an EL expression.", "docstring_tokens": ["Return", "true", "if", "the", "value", "is", "an", "EL", "expression", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/el/Expressions.java#L61-L68", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/el/Expressions.java", "func_name": "Expressions.containsEL", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return true if the value contains an EL expression.", "docstring_tokens": ["Return", "true", "if", "the", "value", "contains", "an", "EL", "expression", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/el/Expressions.java#L73-L81", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces2/component/LocationBehavior.java", "func_name": "LocationBehavior.buildScriptInternal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the required script for the supplied URL\n\n@param url The URL\n@return The script", "docstring_tokens": ["Creates", "the", "required", "script", "for", "the", "supplied", "URL"], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces2/component/LocationBehavior.java#L101-L108", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "api-el/src/main/java/org/ocpsoft/rewrite/el/El.java", "func_name": "El.method", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new EL Method binding using distinct expressions to submit and retrieve values. The method intended for\nuse in submission must accept a single parameter of the expected type.", "docstring_tokens": ["Create", "a", "new", "EL", "Method", "binding", "using", "distinct", "expressions", "to", "submit", "and", "retrieve", "values", ".", "The", "method", "intended", "for", "use", "in", "submission", "must", "accept", "a", "single", "parameter", "of", "the", "expected", "type", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/api-el/src/main/java/org/ocpsoft/rewrite/el/El.java#L49-L52", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "annotations-impl/src/main/java/org/ocpsoft/rewrite/annotation/scan/ByteCodeFilter.java", "func_name": "ByteCodeFilter.containsFieldDescriptor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if the given string contains a field descriptor of one of the annotations we are looking for.", "docstring_tokens": ["Returns", "true", "if", "the", "given", "string", "contains", "a", "field", "descriptor", "of", "one", "of", "the", "annotations", "we", "are", "looking", "for", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/annotations-impl/src/main/java/org/ocpsoft/rewrite/annotation/scan/ByteCodeFilter.java#L299-L307", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-proxy/src/main/java/org/ocpsoft/rewrite/servlet/config/proxy/ProxyServlet.java", "func_name": "ProxyServlet.copyResponseHeaders", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copy proxied response headers back to the servlet client.", "docstring_tokens": ["Copy", "proxied", "response", "headers", "back", "to", "the", "servlet", "client", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-proxy/src/main/java/org/ocpsoft/rewrite/servlet/config/proxy/ProxyServlet.java#L370-L378", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-proxy/src/main/java/org/ocpsoft/rewrite/servlet/config/proxy/ProxyServlet.java", "func_name": "ProxyServlet.encodeUriQuery", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encodes characters in the query or fragment part of the URI.\n\n

\nUnfortunately, an incoming URI sometimes has characters disallowed by the spec. HttpClient insists that the\noutgoing proxied request has a valid URI because it uses Java's {@link URI}. To be more forgiving, we must escape\nthe problematic characters. See the URI class for the spec.\n\n@param in example: name=value&foo=bar#fragment", "docstring_tokens": ["Encodes", "characters", "in", "the", "query", "or", "fragment", "part", "of", "the", "URI", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-proxy/src/main/java/org/ocpsoft/rewrite/servlet/config/proxy/ProxyServlet.java#L434-L483", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "api-servlet/src/main/java/org/ocpsoft/rewrite/servlet/util/URLBuilder.java", "func_name": "URLBuilder.toURI", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return a URI representation of this URL including path and query string", "docstring_tokens": ["Return", "a", "URI", "representation", "of", "this", "URL", "including", "path", "and", "query", "string"], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/api-servlet/src/main/java/org/ocpsoft/rewrite/servlet/util/URLBuilder.java#L313-L322", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/url/QueryString.java", "func_name": "QueryString.build", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Build a query string from the given URL. If a '?' character is encountered in the URL, the any characters up to\nand including the first '?' will be ignored.", "docstring_tokens": ["Build", "a", "query", "string", "from", "the", "given", "URL", ".", "If", "a", "?", "character", "is", "encountered", "in", "the", "URL", "the", "any", "characters", "up", "to", "and", "including", "the", "first", "?", "will", "be", "ignored", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/url/QueryString.java#L74-L79", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/url/QueryString.java", "func_name": "QueryString.getParameter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the first value of given parameter name.\n\n@return The value of the parameter, null if the parameter does not exist, or \"\" if the parameter exists but has no\nvalues.", "docstring_tokens": ["Get", "the", "first", "value", "of", "given", "parameter", "name", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/url/QueryString.java#L101-L115", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/url/QueryString.java", "func_name": "QueryString.getParameterValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the array of values for a given parameter name.\n\n@return The values of the parameter, null if the parameter does not exist.", "docstring_tokens": ["Get", "the", "array", "of", "values", "for", "a", "given", "parameter", "name", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/url/QueryString.java#L122-L131", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/url/QueryString.java", "func_name": "QueryString.addParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add parameters from the given URL. If a '?' character is encountered in the URL, the any characters up to and\nincluding the first '?' will be ignored. If a parameter already exists, append new values to the existing list of\nvalues for that parameter.", "docstring_tokens": ["Add", "parameters", "from", "the", "given", "URL", ".", "If", "a", "?", "character", "is", "encountered", "in", "the", "URL", "the", "any", "characters", "up", "to", "and", "including", "the", "first", "?", "will", "be", "ignored", ".", "If", "a", "parameter", "already", "exists", "append", "new", "values", "to", "the", "existing", "list", "of", "values", "for", "that", "parameter", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/url/QueryString.java#L221-L276", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "integration-faces/src/main/java/org/ocpsoft/rewrite/faces/RewriteViewHandler.java", "func_name": "RewriteViewHandler.deriveViewId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Canonicalize the given viewId, then pass that viewId to the next ViewHandler in the chain.", "docstring_tokens": ["Canonicalize", "the", "given", "viewId", "then", "pass", "that", "viewId", "to", "the", "next", "ViewHandler", "in", "the", "chain", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/integration-faces/src/main/java/org/ocpsoft/rewrite/faces/RewriteViewHandler.java#L208-L213", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/mapping/UrlMapping.java", "func_name": "UrlMapping.getPatternParser", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get this patterns pattern parser instance.", "docstring_tokens": ["Get", "this", "patterns", "pattern", "parser", "instance", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/mapping/UrlMapping.java#L54-L61", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/mapping/UrlMapping.java", "func_name": "UrlMapping.getValidatorsForPathParam", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return a list of validators that belong to the given parameter.", "docstring_tokens": ["Return", "a", "list", "of", "validators", "that", "belong", "to", "the", "given", "parameter", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/mapping/UrlMapping.java#L66-L77", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "api-servlet/src/main/java/org/ocpsoft/rewrite/servlet/util/QueryStringBuilder.java", "func_name": "QueryStringBuilder.createFromEncoded", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Build a query string from the given URL. If a '?' character is encountered in the URL, the any characters up to\nand including the first '?' will be ignored. This method assumes that the given parameters have already been URL\nencoded.", "docstring_tokens": ["Build", "a", "query", "string", "from", "the", "given", "URL", ".", "If", "a", "?", "character", "is", "encountered", "in", "the", "URL", "the", "any", "characters", "up", "to", "and", "including", "the", "first", "?", "will", "be", "ignored", ".", "This", "method", "assumes", "that", "the", "given", "parameters", "have", "already", "been", "URL", "encoded", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/api-servlet/src/main/java/org/ocpsoft/rewrite/servlet/util/QueryStringBuilder.java#L62-L67", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "api-servlet/src/main/java/org/ocpsoft/rewrite/servlet/util/QueryStringBuilder.java", "func_name": "QueryStringBuilder.extractQuery", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the query string portion of the given URL. If no query string separator character '?' can be found, return the\nstring unchanged.", "docstring_tokens": ["Get", "the", "query", "string", "portion", "of", "the", "given", "URL", ".", "If", "no", "query", "string", "separator", "character", "?", "can", "be", "found", "return", "the", "string", "unchanged", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/api-servlet/src/main/java/org/ocpsoft/rewrite/servlet/util/QueryStringBuilder.java#L91-L102", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "api-servlet/src/main/java/org/ocpsoft/rewrite/servlet/util/QueryStringBuilder.java", "func_name": "QueryStringBuilder.addParameter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a single parameter with the given values.", "docstring_tokens": ["Add", "a", "single", "parameter", "with", "the", "given", "values", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/api-servlet/src/main/java/org/ocpsoft/rewrite/servlet/util/QueryStringBuilder.java#L174-L179", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/DispatchType.java", "func_name": "DispatchType.getDispatcherTypeProviders", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Simple caching mechanism for the providers on a per request basis", "docstring_tokens": ["Simple", "caching", "mechanism", "for", "the", "providers", "on", "a", "per", "request", "basis"], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/DispatchType.java#L76-L87", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "api/src/main/java/org/ocpsoft/rewrite/config/Conditions.java", "func_name": "Conditions.getNegationCount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the number of \"Not\"s that have been evaluated in the current evaluation process.\n\nFor example, when(Not.any(MyCondition)) would have a \"NotCount\" of \"1\" during the evaluation of \"MyCondition\".\n\nwhen(Not.any(Not.any(MyCondition))) would have a \"NotCount\" of \"2\" during the evaluation of \"MyCondition\".\n\nThis is useful for conditions that may have side effects, as they will know whether or not their condition is being\nnegated.", "docstring_tokens": ["Returns", "the", "number", "of", "Not", "s", "that", "have", "been", "evaluated", "in", "the", "current", "evaluation", "process", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/api/src/main/java/org/ocpsoft/rewrite/config/Conditions.java#L67-L74", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "integration-faces/src/main/java/org/ocpsoft/rewrite/faces/navigate/Navigate.java", "func_name": "Navigate.with", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set a query parameter to be passed to the specified View Id.\n\n@param The query parameter name.\n@param The query parameter value.", "docstring_tokens": ["Set", "a", "query", "parameter", "to", "be", "passed", "to", "the", "specified", "View", "Id", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/integration-faces/src/main/java/org/ocpsoft/rewrite/faces/navigate/Navigate.java#L93-L100", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "integration-faces/src/main/java/org/ocpsoft/rewrite/faces/navigate/Navigate.java", "func_name": "Navigate.buildStandardOutcome", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds a standard JSF 2.0 implicit navigation outcome", "docstring_tokens": ["Builds", "a", "standard", "JSF", "2", ".", "0", "implicit", "navigation", "outcome"], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/integration-faces/src/main/java/org/ocpsoft/rewrite/faces/navigate/Navigate.java#L141-L164", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "annotations-impl/src/main/java/org/ocpsoft/rewrite/annotation/scan/WebClassesFinder.java", "func_name": "WebClassesFinder.handleClassEntry", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handles class entry in a WEB-INF.", "docstring_tokens": ["Handles", "class", "entry", "in", "a", "WEB", "-", "INF", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/annotations-impl/src/main/java/org/ocpsoft/rewrite/annotation/scan/WebClassesFinder.java#L151-L207", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "addressbuilder/src/main/java/org/ocpsoft/urlbuilder/AddressBuilder.java", "func_name": "AddressBuilder.queryLiteral", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set a literal query string without additional encoding or decoding. A leading '?' character is optional; the\nbuilder will add one if necessary.", "docstring_tokens": ["Set", "a", "literal", "query", "string", "without", "additional", "encoding", "or", "decoding", ".", "A", "leading", "?", "character", "is", "optional", ";", "the", "builder", "will", "add", "one", "if", "necessary", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/addressbuilder/src/main/java/org/ocpsoft/urlbuilder/AddressBuilder.java#L236-L292", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/EncodeQuery.java", "func_name": "EncodeQuery.excluding", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Exclude the given query-parameter names from encoding.", "docstring_tokens": ["Exclude", "the", "given", "query", "-", "parameter", "names", "from", "encoding", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/EncodeQuery.java#L86-L91", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/beans/ExtractedValuesURLBuilder.java", "func_name": "ExtractedValuesURLBuilder.buildURL", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "For all required values of the given PrettyUrlMapping, extract values from their mapped backing beans and create a\nURL based on the url-pattern.\n\n@param mapping Mapping for which to extract values and generate URL\n@return The fully constructed URL", "docstring_tokens": ["For", "all", "required", "values", "of", "the", "given", "PrettyUrlMapping", "extract", "values", "from", "their", "mapped", "backing", "beans", "and", "create", "a", "URL", "based", "on", "the", "url", "-", "pattern", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/beans/ExtractedValuesURLBuilder.java#L49-L99", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/PrettyContext.java", "func_name": "PrettyContext.sendError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sends an error response to the client using the specified HTTP status\ncode.\n\n@param code the error status code\n@param message the descriptive message\n@param response\n@see HttpServletResponse#sendError(int, String)", "docstring_tokens": ["Sends", "an", "error", "response", "to", "the", "client", "using", "the", "specified", "HTTP", "status", "code", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/PrettyContext.java#L400-L418", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "annotations-impl/src/main/java/org/ocpsoft/rewrite/annotation/ClassVisitorImpl.java", "func_name": "ClassVisitorImpl.visit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Processes the annotation on the supplied class.", "docstring_tokens": ["Processes", "the", "annotation", "on", "the", "supplied", "class", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/annotations-impl/src/main/java/org/ocpsoft/rewrite/annotation/ClassVisitorImpl.java#L75-L123", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "integration-faces/src/main/java/org/ocpsoft/rewrite/faces/RewriteNavigationHandler.java", "func_name": "RewriteNavigationHandler.prependContextPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the context path to the given context-relative URL.", "docstring_tokens": ["Adds", "the", "context", "path", "to", "the", "given", "context", "-", "relative", "URL", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/integration-faces/src/main/java/org/ocpsoft/rewrite/faces/RewriteNavigationHandler.java#L168-L175", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/org/ocpsoft/rewrite/prettyfaces/OutboundRewriteRuleAdaptor.java", "func_name": "OutboundRewriteRuleAdaptor.stripContextPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the given URL is prefixed with this request's context-path, return the URI without the context path. Otherwise\nreturn the URI unchanged.", "docstring_tokens": ["If", "the", "given", "URL", "is", "prefixed", "with", "this", "request", "s", "context", "-", "path", "return", "the", "URI", "without", "the", "context", "path", ".", "Otherwise", "return", "the", "URI", "unchanged", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/org/ocpsoft/rewrite/prettyfaces/OutboundRewriteRuleAdaptor.java#L53-L60", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "api/src/main/java/org/ocpsoft/rewrite/transposition/LocaleTransposition.java", "func_name": "LocaleTransposition.translate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Translate a value into the matching one from a resource bundle in specified language.\n\n@param lang\n@param value\n@return translated value or null if no bundle can be found for the specified language or no entries in the bundle\nmatch the given value.", "docstring_tokens": ["Translate", "a", "value", "into", "the", "matching", "one", "from", "a", "resource", "bundle", "in", "specified", "language", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/api/src/main/java/org/ocpsoft/rewrite/transposition/LocaleTransposition.java#L77-L109", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/dynaview/DynaviewEngine.java", "func_name": "DynaviewEngine.buildDynaViewId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Given the string value of the Faces Servlet mapping, return a string that is guaranteed to match when a servlet\nforward is issued. It doesn't matter which FacesServlet we get to, as long as we get to one.", "docstring_tokens": ["Given", "the", "string", "value", "of", "the", "Faces", "Servlet", "mapping", "return", "a", "string", "that", "is", "guaranteed", "to", "match", "when", "a", "servlet", "forward", "is", "issued", ".", "It", "doesn", "t", "matter", "which", "FacesServlet", "we", "get", "to", "as", "long", "as", "we", "get", "to", "one", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/dynaview/DynaviewEngine.java#L47-L82", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/dynaview/DynaviewEngine.java", "func_name": "DynaviewEngine.processDynaView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle DynaView processing. This method will end the Faces life-cycle.", "docstring_tokens": ["Handle", "DynaView", "processing", ".", "This", "method", "will", "end", "the", "Faces", "life", "-", "cycle", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/config-prettyfaces/src/main/java/com/ocpsoft/pretty/faces/config/dynaview/DynaviewEngine.java#L87-L112", "partition": "valid"} +{"repo": "ocpsoft/rewrite", "path": "integration-cdi/src/main/java/org/ocpsoft/rewrite/cdi/CdiServiceLocator.java", "func_name": "CdiServiceLocator.getRequiredType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds the correct \"required type\" including actual type arguments in case of parameterized types.\n\n@see https://github.com/ocpsoft/rewrite/issues/137", "docstring_tokens": ["Builds", "the", "correct", "required", "type", "including", "actual", "type", "arguments", "in", "case", "of", "parameterized", "types", "."], "sha": "eded0bad0101d119a3a1e67ed3f97a3bc9a8222e", "url": "https://github.com/ocpsoft/rewrite/blob/eded0bad0101d119a3a1e67ed3f97a3bc9a8222e/integration-cdi/src/main/java/org/ocpsoft/rewrite/cdi/CdiServiceLocator.java#L73-L90", "partition": "valid"} +{"repo": "ehcache/sizeof", "path": "src/main/java/org/ehcache/sizeof/annotations/AnnotationProxyFactory.java", "func_name": "AnnotationProxyFactory.getAnnotationProxy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a proxy on the customAnnotation, having the same type than the referenceAnnotation\n\n@param customAnnotation annotation proxied\n@param referenceAnnotation type of the returned annotation\n@return proxied customAnnotation with the type of referenceAnnotation", "docstring_tokens": ["Returns", "a", "proxy", "on", "the", "customAnnotation", "having", "the", "same", "type", "than", "the", "referenceAnnotation"], "sha": "481bf8f991caa62771d4e04c864cdcc775cf41e0", "url": "https://github.com/ehcache/sizeof/blob/481bf8f991caa62771d4e04c864cdcc775cf41e0/src/main/java/org/ehcache/sizeof/annotations/AnnotationProxyFactory.java#L57-L61", "partition": "valid"} +{"repo": "ehcache/sizeof", "path": "src/main/java/org/ehcache/sizeof/ObjectGraphWalker.java", "func_name": "ObjectGraphWalker.getFilteredFields", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the filtered fields for a particular type\n\n@param refClass the type\n@return A collection of fields to be visited", "docstring_tokens": ["Returns", "the", "filtered", "fields", "for", "a", "particular", "type"], "sha": "481bf8f991caa62771d4e04c864cdcc775cf41e0", "url": "https://github.com/ehcache/sizeof/blob/481bf8f991caa62771d4e04c864cdcc775cf41e0/src/main/java/org/ehcache/sizeof/ObjectGraphWalker.java#L213-L231", "partition": "valid"} +{"repo": "ehcache/sizeof", "path": "src/main/java/org/ehcache/sizeof/ObjectGraphWalker.java", "func_name": "ObjectGraphWalker.getAllFields", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns all non-primitive fields for the entire class hierarchy of a type\n\n@param refClass the type\n@return all fields for that type", "docstring_tokens": ["Returns", "all", "non", "-", "primitive", "fields", "for", "the", "entire", "class", "hierarchy", "of", "a", "type"], "sha": "481bf8f991caa62771d4e04c864cdcc775cf41e0", "url": "https://github.com/ehcache/sizeof/blob/481bf8f991caa62771d4e04c864cdcc775cf41e0/src/main/java/org/ehcache/sizeof/ObjectGraphWalker.java#L254-L272", "partition": "valid"} +{"repo": "ehcache/sizeof", "path": "src/main/java/org/ehcache/sizeof/util/WeakIdentityConcurrentMap.java", "func_name": "WeakIdentityConcurrentMap.put", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Puts into the underlying\n\n@param key key with which the specified value is to be associated\n@param value value to be associated with the specified key\n@return the previous value associated with key, or\nnull if there was no mapping for key.\n(A null return can also indicate that the map\npreviously associated null with key,\nif the implementation supports null values.)", "docstring_tokens": ["Puts", "into", "the", "underlying"], "sha": "481bf8f991caa62771d4e04c864cdcc775cf41e0", "url": "https://github.com/ehcache/sizeof/blob/481bf8f991caa62771d4e04c864cdcc775cf41e0/src/main/java/org/ehcache/sizeof/util/WeakIdentityConcurrentMap.java#L67-L70", "partition": "valid"} +{"repo": "ehcache/sizeof", "path": "src/main/java/org/ehcache/sizeof/util/WeakIdentityConcurrentMap.java", "func_name": "WeakIdentityConcurrentMap.remove", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove from the underlying\n\n@param key key whose mapping is to be removed from the map\n@return the previous value associated with key, or\nnull if there was no mapping for key.", "docstring_tokens": ["Remove", "from", "the", "underlying"], "sha": "481bf8f991caa62771d4e04c864cdcc775cf41e0", "url": "https://github.com/ehcache/sizeof/blob/481bf8f991caa62771d4e04c864cdcc775cf41e0/src/main/java/org/ehcache/sizeof/util/WeakIdentityConcurrentMap.java#L79-L82", "partition": "valid"} +{"repo": "ehcache/sizeof", "path": "src/main/java/org/ehcache/sizeof/impl/AgentLoader.java", "func_name": "AgentLoader.loadAgent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Attempts to load the agent through the Attach API\n\n@return true if agent was loaded (which could have happened thought the -javaagent switch)", "docstring_tokens": ["Attempts", "to", "load", "the", "agent", "through", "the", "Attach", "API"], "sha": "481bf8f991caa62771d4e04c864cdcc775cf41e0", "url": "https://github.com/ehcache/sizeof/blob/481bf8f991caa62771d4e04c864cdcc775cf41e0/src/main/java/org/ehcache/sizeof/impl/AgentLoader.java#L126-L156", "partition": "valid"} +{"repo": "ehcache/sizeof", "path": "src/main/java/org/ehcache/sizeof/impl/AgentLoader.java", "func_name": "AgentLoader.agentIsAvailable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether the agent is available\n\n@return true if available", "docstring_tokens": ["Checks", "whether", "the", "agent", "is", "available"], "sha": "481bf8f991caa62771d4e04c864cdcc775cf41e0", "url": "https://github.com/ehcache/sizeof/blob/481bf8f991caa62771d4e04c864cdcc775cf41e0/src/main/java/org/ehcache/sizeof/impl/AgentLoader.java#L199-L220", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/util/ResourceUtils.java", "func_name": "ResourceUtils.copyFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copies the sources contents to the given destination file.", "docstring_tokens": ["Copies", "the", "sources", "contents", "to", "the", "given", "destination", "file", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/util/ResourceUtils.java#L77-L93", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/util/ResourceUtils.java", "func_name": "ResourceUtils.isSame", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks, whether the resource and the file are identical.", "docstring_tokens": ["Checks", "whether", "the", "resource", "and", "the", "file", "are", "identical", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/util/ResourceUtils.java#L117-L125", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/war/WarArchiver.java", "func_name": "WarArchiver.addWebinf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "files to add under WEB-INF;", "docstring_tokens": ["files", "to", "add", "under", "WEB", "-", "INF", ";"], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/war/WarArchiver.java#L146-L150", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/war/WarArchiver.java", "func_name": "WarArchiver.initZipOutputStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "override of parent; validates configuration\nbefore initializing the output stream.", "docstring_tokens": ["override", "of", "parent", ";", "validates", "configuration", "before", "initializing", "the", "output", "stream", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/war/WarArchiver.java#L156-L165", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/war/WarArchiver.java", "func_name": "WarArchiver.zipFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Overridden from ZipArchiver class to deal with web.xml", "docstring_tokens": ["Overridden", "from", "ZipArchiver", "class", "to", "deal", "with", "web", ".", "xml"], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/war/WarArchiver.java#L170-L198", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java", "func_name": "Manifest.getDefaultManifest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Construct a manifest from Ant's default manifest file.\n\n@return the default manifest.\n@throws ArchiverException if there is a problem loading the\ndefault manifest", "docstring_tokens": ["Construct", "a", "manifest", "from", "Ant", "s", "default", "manifest", "file", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java#L739-L774", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java", "func_name": "Manifest.addConfiguredSection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a section to the manifest\n\n@param section the manifest section to be added\n@throws ManifestException if the secti0on is not valid.", "docstring_tokens": ["Add", "a", "section", "to", "the", "manifest"], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java#L817-L832", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java", "func_name": "Manifest.write", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write the manifest out to a print writer.\n\n@param writer the Writer to which the manifest is written\n@throws IOException if the manifest cannot be written", "docstring_tokens": ["Write", "the", "manifest", "out", "to", "a", "print", "writer", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java#L863-L872", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java", "func_name": "Manifest.getWarnings", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the warnings for this manifest.\n\n@return an enumeration of warning strings", "docstring_tokens": ["Get", "the", "warnings", "for", "this", "manifest", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java#L899-L910", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java", "func_name": "Manifest.getSection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a particular section from the manifest\n\n@param name the name of the section desired.\n@return the specified section or null if that section\ndoes not exist in the manifest", "docstring_tokens": ["Get", "a", "particular", "section", "from", "the", "manifest"], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java#L942-L950", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/dir/DirectoryArchiver.java", "func_name": "DirectoryArchiver.copyFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copies the specified file to the specified path, creating any ancestor directory structure as necessary.\n\n@param file\nThe file to copy (IOException will be thrown if this does not exist)\n@param vPath\nThe fully qualified path to copy the file to.\n@throws ArchiverException\nIf there is a problem creating the directory structure\n@throws IOException\nIf there is a problem copying the file", "docstring_tokens": ["Copies", "the", "specified", "file", "to", "the", "specified", "path", "creating", "any", "ancestor", "directory", "structure", "as", "necessary", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/dir/DirectoryArchiver.java#L104-L162", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java", "func_name": "JarArchiver.addConfiguredManifest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Allows the manifest for the archive file to be provided inline\nin the build file rather than in an external file.\n\n@param newManifest The new manifest\n@throws ManifestException .", "docstring_tokens": ["Allows", "the", "manifest", "for", "the", "archive", "file", "to", "be", "provided", "inline", "in", "the", "build", "file", "rather", "than", "in", "an", "external", "file", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java#L182-L194", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java", "func_name": "JarArchiver.zipFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Overridden from Zip class to deal with manifests and index lists.", "docstring_tokens": ["Overridden", "from", "Zip", "class", "to", "deal", "with", "manifests", "and", "index", "lists", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java#L458-L482", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java", "func_name": "JarArchiver.cleanUp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Make sure we don't think we already have a MANIFEST next time this task\ngets executed.\n\n@see ZipArchiver#cleanUp", "docstring_tokens": ["Make", "sure", "we", "don", "t", "think", "we", "already", "have", "a", "MANIFEST", "next", "time", "this", "task", "gets", "executed", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java#L574-L588", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java", "func_name": "JarArchiver.reset", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "reset to default values.\n\n@see ZipArchiver#reset", "docstring_tokens": ["reset", "to", "default", "values", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java#L595-L603", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java", "func_name": "JarArchiver.writeIndexLikeList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the directory entries from the first and the filenames\nfrom the second list to the given writer, one entry per line.\n\n@param dirs The directories\n@param files The files\n@param writer The printwriter ;)", "docstring_tokens": ["Writes", "the", "directory", "entries", "from", "the", "first", "and", "the", "filenames", "from", "the", "second", "list", "to", "the", "given", "writer", "one", "entry", "per", "line", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java#L618-L655", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java", "func_name": "JarArchiver.grabFilesAndDirs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Grab lists of all root-level files and all directories\ncontained in the given archive.\n\n@param file .\n@param files .\n@param dirs .\n@throws java.io.IOException .", "docstring_tokens": ["Grab", "lists", "of", "all", "root", "-", "level", "files", "and", "all", "directories", "contained", "in", "the", "given", "archive", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/jar/JarArchiver.java#L731-L789", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/tar/TarUnArchiver.java", "func_name": "TarUnArchiver.decompress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method wraps the input stream with the\ncorresponding decompression method\n\n@param file provides location information for BuildException\n@param istream input stream\n@return input stream with on-the-fly decompression\n@throws IOException thrown by GZIPInputStream constructor", "docstring_tokens": ["This", "method", "wraps", "the", "input", "stream", "with", "the", "corresponding", "decompression", "method"], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/tar/TarUnArchiver.java#L137-L153", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/gzip/GZipCompressor.java", "func_name": "GZipCompressor.compress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "perform the GZip compression operation.", "docstring_tokens": ["perform", "the", "GZip", "compression", "operation", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/gzip/GZipCompressor.java#L40-L53", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/jar/JdkManifestFactory.java", "func_name": "JdkManifestFactory.mergeAttributes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Merge in another section\n\n@param target The target manifest of the merge\n@param section the section to be merged with this one.", "docstring_tokens": ["Merge", "in", "another", "section"], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/jar/JdkManifestFactory.java#L103-L112", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/ear/EarArchiver.java", "func_name": "EarArchiver.setAppxml", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "File to incorporate as application.xml.", "docstring_tokens": ["File", "to", "incorporate", "as", "application", ".", "xml", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/ear/EarArchiver.java#L52-L62", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/ear/EarArchiver.java", "func_name": "EarArchiver.addArchive", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds archive.", "docstring_tokens": ["Adds", "archive", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/ear/EarArchiver.java#L67-L71", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/ear/EarArchiver.java", "func_name": "EarArchiver.addArchives", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds archives.", "docstring_tokens": ["Adds", "archives", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/ear/EarArchiver.java#L76-L80", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/snappy/SnappyCompressor.java", "func_name": "SnappyCompressor.compress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "perform the Snappy compression operation.", "docstring_tokens": ["perform", "the", "Snappy", "compression", "operation", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/snappy/SnappyCompressor.java#L41-L54", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java", "func_name": "AbstractZipArchiver.addResources", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the given resources.\n\n@param resources the resources to add\n@param zOut the stream to write to", "docstring_tokens": ["Add", "the", "given", "resources", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java#L361-L394", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java", "func_name": "AbstractZipArchiver.addParentDirs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Ensure all parent dirs of a given entry have been added.\n\nThis method is computed in terms of the potentially remapped entry (that may be disconnected from the file system)\nwe do not *relly* know the entry's connection to the file system so establishing the attributes of the parents can\nbe impossible and is not really supported.", "docstring_tokens": ["Ensure", "all", "parent", "dirs", "of", "a", "given", "entry", "have", "been", "added", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java#L404-L447", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java", "func_name": "AbstractZipArchiver.zipFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a new entry to the archive, takes care of duplicates as well.\n\n@param in the stream to read data for the entry from.\n@param zOut the stream to write to.\n@param vPath the name this entry shall have in the archive.\n@param lastModified last modification time for the entry.\n@param fromArchive the original archive we are copying this\n@param symlinkDestination", "docstring_tokens": ["Adds", "a", "new", "entry", "to", "the", "archive", "takes", "care", "of", "duplicates", "as", "well", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java#L504-L570", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java", "func_name": "AbstractZipArchiver.createEmptyZip", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create an empty zip file\n\n@param zipFile The file\n@return true for historic reasons", "docstring_tokens": ["Create", "an", "empty", "zip", "file"], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java#L703-L733", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java", "func_name": "AbstractZipArchiver.reset", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Makes this instance reset all attributes to their default\nvalues and forget all children.\n\n@see #cleanUp", "docstring_tokens": ["Makes", "this", "instance", "reset", "all", "attributes", "to", "their", "default", "values", "and", "forget", "all", "children", "."], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java#L769-L778", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/util/Compressor.java", "func_name": "Compressor.compressFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "compress a stream to an output stream\n\n@param in\n@param zOut\n@throws IOException", "docstring_tokens": ["compress", "a", "stream", "to", "an", "output", "stream"], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/util/Compressor.java#L82-L93", "partition": "valid"} +{"repo": "sonatype/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/util/Compressor.java", "func_name": "Compressor.compress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "compress a resource to an output stream", "docstring_tokens": ["compress", "a", "resource", "to", "an", "output", "stream"], "sha": "b174ef5d935c94fe58da2b48913fde1f2b972a97", "url": "https://github.com/sonatype/plexus-archiver/blob/b174ef5d935c94fe58da2b48913fde1f2b972a97/src/main/java/org/codehaus/plexus/archiver/util/Compressor.java#L98-L110", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/Decoder.java", "func_name": "Decoder.setMaxHeaderTableSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the maximum table size.\nIf this is below the maximum size of the dynamic table used by the encoder,\nthe beginning of the next header block MUST signal this change.", "docstring_tokens": ["Set", "the", "maximum", "table", "size", ".", "If", "this", "is", "below", "the", "maximum", "size", "of", "the", "dynamic", "table", "used", "by", "the", "encoder", "the", "beginning", "of", "the", "next", "header", "block", "MUST", "signal", "this", "change", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/Decoder.java#L400-L408", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/Decoder.java", "func_name": "Decoder.decodeULE128", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unsigned Little Endian Base 128 Variable-Length Integer Encoding", "docstring_tokens": ["Unsigned", "Little", "Endian", "Base", "128", "Variable", "-", "Length", "Integer", "Encoding"], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/Decoder.java#L531-L555", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/StaticTable.java", "func_name": "StaticTable.getIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the lowest index value for the given header field name in the static table.\nReturns -1 if the header field name is not in the static table.", "docstring_tokens": ["Returns", "the", "lowest", "index", "value", "for", "the", "given", "header", "field", "name", "in", "the", "static", "table", ".", "Returns", "-", "1", "if", "the", "header", "field", "name", "is", "not", "in", "the", "static", "table", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/StaticTable.java#L113-L120", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/StaticTable.java", "func_name": "StaticTable.getIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the index value for the given header field in the static table.\nReturns -1 if the header field is not in the static table.", "docstring_tokens": ["Returns", "the", "index", "value", "for", "the", "given", "header", "field", "in", "the", "static", "table", ".", "Returns", "-", "1", "if", "the", "header", "field", "is", "not", "in", "the", "static", "table", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/StaticTable.java#L126-L145", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/StaticTable.java", "func_name": "StaticTable.createMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "create a map of header name to index value to allow quick lookup", "docstring_tokens": ["create", "a", "map", "of", "header", "name", "to", "index", "value", "to", "allow", "quick", "lookup"], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/StaticTable.java#L148-L159", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/HuffmanEncoder.java", "func_name": "HuffmanEncoder.getEncodedLength", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the number of bytes required to Huffman encode the input string literal.\n@param data the string literal to be Huffman encoded\n@return the number of bytes required to Huffman encode data", "docstring_tokens": ["Returns", "the", "number", "of", "bytes", "required", "to", "Huffman", "encode", "the", "input", "string", "literal", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/HuffmanEncoder.java#L98-L107", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/DynamicTable.java", "func_name": "DynamicTable.length", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the number of header fields in the dynamic table.", "docstring_tokens": ["Return", "the", "number", "of", "header", "fields", "in", "the", "dynamic", "table", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/DynamicTable.java#L39-L47", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/DynamicTable.java", "func_name": "DynamicTable.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the header field to the dynamic table.\nEntries are evicted from the dynamic table until the size of the table\nand the new header field is less than or equal to the table's capacity.\nIf the size of the new entry is larger than the table's capacity,\nthe dynamic table will be cleared.", "docstring_tokens": ["Add", "the", "header", "field", "to", "the", "dynamic", "table", ".", "Entries", "are", "evicted", "from", "the", "dynamic", "table", "until", "the", "size", "of", "the", "table", "and", "the", "new", "header", "field", "is", "less", "than", "or", "equal", "to", "the", "table", "s", "capacity", ".", "If", "the", "size", "of", "the", "new", "entry", "is", "larger", "than", "the", "table", "s", "capacity", "the", "dynamic", "table", "will", "be", "cleared", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/DynamicTable.java#L88-L102", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/DynamicTable.java", "func_name": "DynamicTable.setCapacity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the maximum size of the dynamic table.\nEntries are evicted from the dynamic table until the size of the table\nis less than or equal to the maximum size.", "docstring_tokens": ["Set", "the", "maximum", "size", "of", "the", "dynamic", "table", ".", "Entries", "are", "evicted", "from", "the", "dynamic", "table", "until", "the", "size", "of", "the", "table", "is", "less", "than", "or", "equal", "to", "the", "maximum", "size", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/DynamicTable.java#L140-L186", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/Encoder.java", "func_name": "Encoder.encodeHeader", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encode the header field into the header block.", "docstring_tokens": ["Encode", "the", "header", "field", "into", "the", "header", "block", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/Encoder.java#L69-L121", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/Encoder.java", "func_name": "Encoder.setMaxHeaderTableSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the maximum table size.", "docstring_tokens": ["Set", "the", "maximum", "table", "size", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/Encoder.java#L126-L136", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/Encoder.java", "func_name": "Encoder.encodeInteger", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encode integer according to Section 5.1.", "docstring_tokens": ["Encode", "integer", "according", "to", "Section", "5", ".", "1", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/Encoder.java#L148-L168", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/Encoder.java", "func_name": "Encoder.encodeStringLiteral", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encode string literal according to Section 5.2.", "docstring_tokens": ["Encode", "string", "literal", "according", "to", "Section", "5", ".", "2", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/Encoder.java#L173-L182", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/Encoder.java", "func_name": "Encoder.encodeLiteral", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encode literal header field according to Section 6.2.", "docstring_tokens": ["Encode", "literal", "header", "field", "according", "to", "Section", "6", ".", "2", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/Encoder.java#L187-L212", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/Encoder.java", "func_name": "Encoder.ensureCapacity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Ensure that the dynamic table has enough room to hold 'headerSize' more bytes.\nRemoves the oldest entry from the dynamic table until sufficient space is available.", "docstring_tokens": ["Ensure", "that", "the", "dynamic", "table", "has", "enough", "room", "to", "hold", "headerSize", "more", "bytes", ".", "Removes", "the", "oldest", "entry", "from", "the", "dynamic", "table", "until", "sufficient", "space", "is", "available", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/Encoder.java#L229-L237", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/Encoder.java", "func_name": "Encoder.getHeaderField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the header field at the given index.\nExposed for testing.", "docstring_tokens": ["Return", "the", "header", "field", "at", "the", "given", "index", ".", "Exposed", "for", "testing", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/Encoder.java#L259-L265", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/Encoder.java", "func_name": "Encoder.getEntry", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the header entry with the lowest index value for the header field.\nReturns null if header field is not in the dynamic table.", "docstring_tokens": ["Returns", "the", "header", "entry", "with", "the", "lowest", "index", "value", "for", "the", "header", "field", ".", "Returns", "null", "if", "header", "field", "is", "not", "in", "the", "dynamic", "table", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/Encoder.java#L271-L285", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/Encoder.java", "func_name": "Encoder.getIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the lowest index value for the header field name in the dynamic table.\nReturns -1 if the header field name is not in the dynamic table.", "docstring_tokens": ["Returns", "the", "lowest", "index", "value", "for", "the", "header", "field", "name", "in", "the", "dynamic", "table", ".", "Returns", "-", "1", "if", "the", "header", "field", "name", "is", "not", "in", "the", "dynamic", "table", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/Encoder.java#L291-L305", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/Encoder.java", "func_name": "Encoder.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the header field to the dynamic table.\nEntries are evicted from the dynamic table until the size of the table\nand the new header field is less than the table's capacity.\nIf the size of the new entry is larger than the table's capacity,\nthe dynamic table will be cleared.", "docstring_tokens": ["Add", "the", "header", "field", "to", "the", "dynamic", "table", ".", "Entries", "are", "evicted", "from", "the", "dynamic", "table", "until", "the", "size", "of", "the", "table", "and", "the", "new", "header", "field", "is", "less", "than", "the", "table", "s", "capacity", ".", "If", "the", "size", "of", "the", "new", "entry", "is", "larger", "than", "the", "table", "s", "capacity", "the", "dynamic", "table", "will", "be", "cleared", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/Encoder.java#L324-L349", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/Encoder.java", "func_name": "Encoder.hash", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the hash code for the given header field name.", "docstring_tokens": ["Returns", "the", "hash", "code", "for", "the", "given", "header", "field", "name", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/Encoder.java#L393-L405", "partition": "valid"} +{"repo": "twitter/hpack", "path": "hpack/src/main/java/com/twitter/hpack/HuffmanDecoder.java", "func_name": "HuffmanDecoder.decode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Decompresses the given Huffman coded string literal.\n@param buf the string literal to be decoded\n@return the output stream for the compressed data\n@throws IOException if an I/O error occurs. In particular,\nan IOException may be thrown if the\noutput stream has been closed.", "docstring_tokens": ["Decompresses", "the", "given", "Huffman", "coded", "string", "literal", "."], "sha": "d58ac0c4dff6a228c4f93a8b31587392918a7a8e", "url": "https://github.com/twitter/hpack/blob/d58ac0c4dff6a228c4f93a8b31587392918a7a8e/hpack/src/main/java/com/twitter/hpack/HuffmanDecoder.java#L48-L93", "partition": "valid"} +{"repo": "bazhenov/groovy-shell-server", "path": "groovy-shell-server/src/main/java/me/bazhenov/groovysh/spring/GroovyShellServiceBean.java", "func_name": "GroovyShellServiceBean.setDefaultScriptNames", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the comma delimited list of default scripts\n\n@param scriptNames script names", "docstring_tokens": ["Set", "the", "comma", "delimited", "list", "of", "default", "scripts"], "sha": "678ebb8c6b2f8bd6583346321a4c250692fcd714", "url": "https://github.com/bazhenov/groovy-shell-server/blob/678ebb8c6b2f8bd6583346321a4c250692fcd714/groovy-shell-server/src/main/java/me/bazhenov/groovysh/spring/GroovyShellServiceBean.java#L75-L78", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Shorts.java", "func_name": "Shorts.assertEqualTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that two shorts are equal.\n\n@param description the description of the actual value.\n@param actual the actual value.\n@param expected the expected value.", "docstring_tokens": ["Verifies", "that", "two", "shorts", "are", "equal", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Shorts.java#L63-L68", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Shorts.java", "func_name": "Shorts.assertNotEqualTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that two integers are not equal.\n\n@param description the description of the actual value.\n@param actual the actual value.\n@param expected the expected value.", "docstring_tokens": ["Verifies", "that", "two", "integers", "are", "not", "equal", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Shorts.java#L77-L82", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Shorts.java", "func_name": "Shorts.assertGreaterThan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the actual value is greater than the expected one.\n\n@param description the description of the actual value.\n@param actual the actual value.\n@param expected the expected value.", "docstring_tokens": ["Verifies", "that", "the", "actual", "value", "is", "greater", "than", "the", "expected", "one", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Shorts.java#L91-L96", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Floats.java", "func_name": "Floats.assertGreaterThan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the actual value is great than the expected one.\n\n@param description the description of the actual value.\n@param actual the actual value.\n@param expected the expected value.", "docstring_tokens": ["Verifies", "that", "the", "actual", "value", "is", "great", "than", "the", "expected", "one", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Floats.java#L126-L131", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Characters.java", "func_name": "Characters.assertEqual", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that two characters are equal.\n\n@param description contains information about the assertion.\n@param actual the actual value.\n@param expected the expected value.\n@throws AssertionError if the actual value is {@code null}.\n@throws AssertionError if the actual value is not equal to the expected one. This method will throw a\n{@code org.junit.ComparisonFailure} instead if JUnit is in the classpath and the expected and actual\nvalues are not equal.", "docstring_tokens": ["Asserts", "that", "two", "characters", "are", "equal", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Characters.java#L69-L74", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Characters.java", "func_name": "Characters.assertNotEqual", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that two characters are not equal.\n\n@param description contains information about the assertion.\n@param actual the actual value.\n@param other the value to compare the actual value to.\n@throws AssertionError if the actual value is {@code null}.\n@throws AssertionError if the actual value is equal to the other one.", "docstring_tokens": ["Asserts", "that", "two", "characters", "are", "not", "equal", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Characters.java#L85-L90", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Characters.java", "func_name": "Characters.assertLessThan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the actual value is less than the other one.\n\n@param description contains information about the assertion.\n@param actual the actual value.\n@param other the value to compare the actual value to.\n@throws AssertionError if the actual value is {@code null}.\n@throws AssertionError if the actual value is not less than the other one: this assertion will fail if the actual\nvalue is equal to or greater than the other value.", "docstring_tokens": ["Asserts", "that", "the", "actual", "value", "is", "less", "than", "the", "other", "one", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Characters.java#L102-L107", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Characters.java", "func_name": "Characters.assertNotGreaterThan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the actual value is less than or equal to the other one.\n\n@param description contains information about the assertion.\n@param actual the actual value.\n@param other the value to compare the actual value to.\n@throws AssertionError if the actual value is {@code null}.\n@throws AssertionError if the actual value is greater than the other one.", "docstring_tokens": ["Asserts", "that", "the", "actual", "value", "is", "less", "than", "or", "equal", "to", "the", "other", "one", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Characters.java#L118-L123", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Characters.java", "func_name": "Characters.assertGreaterThan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the actual value is greater than the other one.\n\n@param description contains information about the assertion.\n@param actual the actual value.\n@param other the value to compare the actual value to.\n@throws AssertionError if the actual value is {@code null}.\n@throws AssertionError if the actual value is not greater than the other one: this assertion will fail if the\nactual value is equal to or less than the other value.", "docstring_tokens": ["Asserts", "that", "the", "actual", "value", "is", "greater", "than", "the", "other", "one", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Characters.java#L135-L140", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Characters.java", "func_name": "Characters.assertNotLessThan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the actual value is greater than or equal to the other one.\n\n@param description contains information about the assertion.\n@param actual the actual value.\n@param other the value to compare the actual value to.\n@throws AssertionError if the actual value is {@code null}.\n@throws AssertionError if the actual value is less than the other one.", "docstring_tokens": ["Asserts", "that", "the", "actual", "value", "is", "greater", "than", "or", "equal", "to", "the", "other", "one", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Characters.java#L151-L156", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Characters.java", "func_name": "Characters.assertLowerCase", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the actual value is a lowercase character.\n\n@param description contains information about the assertion.\n@param actual the actual value.\n@throws AssertionError if the actual value is {@code null}.\n@throws AssertionError if the actual value is not a lowercase character.", "docstring_tokens": ["Asserts", "that", "the", "actual", "value", "is", "a", "lowercase", "character", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Characters.java#L166-L171", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Characters.java", "func_name": "Characters.assertUpperCase", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the actual value is a uppercase character.\n\n@param description contains information about the assertion.\n@param actual the actual value.\n@throws AssertionError if the actual value is {@code null}.\n@throws AssertionError if the actual value is not a uppercase character.", "docstring_tokens": ["Asserts", "that", "the", "actual", "value", "is", "a", "uppercase", "character", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Characters.java#L181-L186", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/IntArrays.java", "func_name": "IntArrays.assertHasSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the number of elements in the given array is equal to the expected one.\n\n@param description contains information about the assertion.\n@param actual the given array.\n@param expectedSize the expected size of {@code actual}.\n@throws AssertionError if the given array is {@code null}.\n@throws AssertionError if the number of elements in the given array is different than the expected one.", "docstring_tokens": ["Asserts", "that", "the", "number", "of", "elements", "in", "the", "given", "array", "is", "equal", "to", "the", "expected", "one", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/IntArrays.java#L93-L95", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/IntArrays.java", "func_name": "IntArrays.assertContains", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the given array contains the given values, in any order.\n\n@param description contains information about the assertion.\n@param actual the given array.\n@param values the values that are expected to be in the given array.\n@throws NullPointerException if the array of values is {@code null}.\n@throws IllegalArgumentException if the array of values is empty.\n@throws AssertionError if the given array is {@code null}.\n@throws AssertionError if the given array does not contain the given values.", "docstring_tokens": ["Asserts", "that", "the", "given", "array", "contains", "the", "given", "values", "in", "any", "order", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/IntArrays.java#L108-L110", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Maps.java", "func_name": "Maps.assertContainsKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the actual map contain the given key.\n\n@param description contains information about the assertion.\n@param actual the given {@code Map}.\n@param key the given key\n@throws AssertionError if the actual map is {@code null}.\n@throws AssertionError if the actual map not contains the given key.", "docstring_tokens": ["Asserts", "that", "the", "actual", "map", "contain", "the", "given", "key", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Maps.java#L211-L216", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Maps.java", "func_name": "Maps.assertDoesNotContainKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the actual map not contains the given key.\n\n@param description contains information about the assertion.\n@param actual the given {@code Map}.\n@param key the given key\n@throws AssertionError if the actual map is {@code null}.\n@throws AssertionError if the actual map contains the given key.", "docstring_tokens": ["Asserts", "that", "the", "actual", "map", "not", "contains", "the", "given", "key", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Maps.java#L227-L232", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Maps.java", "func_name": "Maps.assertContainsValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the actual map contain the given value.\n\n@param description contains information about the assertion.\n@param actual the given {@code Map}.\n@param value the given value\n@throws AssertionError if the actual map is {@code null}.\n@throws AssertionError if the actual map not contains the given value.", "docstring_tokens": ["Asserts", "that", "the", "actual", "map", "contain", "the", "given", "value", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Maps.java#L243-L248", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Maps.java", "func_name": "Maps.assertDoesNotContainValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the actual map does not contain the given value.\n\n@param description contains information about the assertion.\n@param actual the given {@code Map}.\n@param value the given value\n@throws AssertionError if the actual map is {@code null}.\n@throws AssertionError if the actual map contains the given value.", "docstring_tokens": ["Asserts", "that", "the", "actual", "map", "does", "not", "contain", "the", "given", "value", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Maps.java#L259-L264", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Maps.java", "func_name": "Maps.assertDoesNotContainDuplicateValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the actual map does not contain the duplicate values.\n\n@param description contains information about the assertion.\n@param actual the given {@code Map}.\n@throws AssertionError if the actual map is {@code null}.\n@throws AssertionError if the actual map contains the given value.", "docstring_tokens": ["Asserts", "that", "the", "actual", "map", "does", "not", "contain", "the", "duplicate", "values", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Maps.java#L274-L280", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/BigDecimals.java", "func_name": "BigDecimals.assertEqual", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that two BigDecimals are equal.\n\n@param description the description of the actual value.\n@param actual the actual value.\n@param expected the expected value.", "docstring_tokens": ["Verifies", "that", "two", "BigDecimals", "are", "equal", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/BigDecimals.java#L61-L65", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/BigDecimals.java", "func_name": "BigDecimals.assertIsZero", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the actual value is zero.\n\n@param description the description of the actual value.\n@param actual the actual value.", "docstring_tokens": ["Verifies", "that", "the", "actual", "value", "is", "zero", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/BigDecimals.java#L138-L140", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/BigDecimals.java", "func_name": "BigDecimals.assertIsNotZero", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the actual value is not zero.\n\n@param description the description of the actual value.\n@param actual the actual value.", "docstring_tokens": ["Verifies", "that", "the", "actual", "value", "is", "not", "zero", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/BigDecimals.java#L148-L150", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/BigDecimals.java", "func_name": "BigDecimals.assertIsPositive", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the actual value is positive.\n\n@param description the description of the actual value.\n@param actual the actual value.", "docstring_tokens": ["Verifies", "that", "the", "actual", "value", "is", "positive", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/BigDecimals.java#L158-L160", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/BigDecimals.java", "func_name": "BigDecimals.assertIsNegative", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the actual value is negative.\n\n@param description the description of the actual value.\n@param actual the actual value.", "docstring_tokens": ["Verifies", "that", "the", "actual", "value", "is", "negative", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/BigDecimals.java#L168-L170", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/api/FloatAssert.java", "func_name": "FloatAssert.isEqualTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the actual value is equal to the given one, within a positive offset.\n\n@param expected the given value to compare the actual value to.\n@param offset the given positive offset.\n@return {@code this} assertion object.\n@throws NullPointerException if the given offset is {@code null}.\n@throws AssertionError if the actual value is {@code null}.\n@throws AssertionError if the actual value is not equal to the given one.", "docstring_tokens": ["Verifies", "that", "the", "actual", "value", "is", "equal", "to", "the", "given", "one", "within", "a", "positive", "offset", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/api/FloatAssert.java#L98-L101", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/api/ByteArrayAssert.java", "func_name": "ByteArrayAssert.contains", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the given array contains the given value at the given index.\n\n@param value the value to look for.\n@param index the index where the value should be stored in the given array.\n@return {@code this} assertion object.\n@throws AssertionError if the given array is {@code null} or empty.\n@throws NullPointerException if the given {@code Index} is {@code null}.\n@throws IndexOutOfBoundsException if the value of the given {@code Index} is equal to or greater than the size of\nthe given array.\n@throws AssertionError if the given array does not contain the given value at the given index.", "docstring_tokens": ["Verifies", "that", "the", "given", "array", "contains", "the", "given", "value", "at", "the", "given", "index", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/api/ByteArrayAssert.java#L109-L112", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Doubles.java", "func_name": "Doubles.assertNotEqual", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that two doubles are not equal.\n\n@param description the description of the actual value.\n@param actual the actual value.\n@param expected the expected value.\n@param offset the given positive offset.", "docstring_tokens": ["Verifies", "that", "two", "doubles", "are", "not", "equal", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Doubles.java#L121-L128", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Doubles.java", "func_name": "Doubles.assertNotGreaterThan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the actual value is not greater than the expected.\n\n@param description the description of the actual value.\n@param actual the actual value.\n@param expected the expected value.", "docstring_tokens": ["Verifies", "that", "the", "actual", "value", "is", "not", "greater", "than", "the", "expected", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Doubles.java#L158-L163", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Doubles.java", "func_name": "Doubles.assertLessThan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the actual value is less than the expected.\n\n@param description the description of the actual value.\n@param actual the actual value.\n@param expected the expected value.", "docstring_tokens": ["Verifies", "that", "the", "actual", "value", "is", "less", "than", "the", "expected", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Doubles.java#L172-L177", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Doubles.java", "func_name": "Doubles.assertNotLessThan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the actual value is not less than the expected.\n\n@param description the description of the actual value.\n@param actual the actual value.\n@param expected the expected value.", "docstring_tokens": ["Verifies", "that", "the", "actual", "value", "is", "not", "less", "than", "the", "expected", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Doubles.java#L186-L191", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/ByteArrays.java", "func_name": "ByteArrays.assertContainsOnly", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the given array contains only the given values and nothing else, in any order.\n\n@param description contains information about the assertion.\n@param actual the given array.\n@param values the values that are expected to be in the given array.\n@throws NullPointerException if the array of values is {@code null}.\n@throws IllegalArgumentException if the array of values is empty.\n@throws AssertionError if the given array is {@code null}.\n@throws AssertionError if the given array does not contain the given values or if the given array contains values\nthat are not in the given array.", "docstring_tokens": ["Asserts", "that", "the", "given", "array", "contains", "only", "the", "given", "values", "and", "nothing", "else", "in", "any", "order", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/ByteArrays.java#L156-L158", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/ByteArrays.java", "func_name": "ByteArrays.assertContainsSequence", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the given array contains the given sequence of values, without any other values between them.\n\n@param description contains information about the assertion.\n@param actual the given array.\n@param sequence the sequence of values to look for.\n@throws AssertionError if the given array is {@code null}.\n@throws NullPointerException if the given sequence is {@code null}.\n@throws IllegalArgumentException if the given sequence is empty.\n@throws AssertionError if the given array does not contain the given sequence of values.", "docstring_tokens": ["Verifies", "that", "the", "given", "array", "contains", "the", "given", "sequence", "of", "values", "without", "any", "other", "values", "between", "them", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/ByteArrays.java#L171-L173", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Objects.java", "func_name": "Objects.assertEqual", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that two objects are equal.\n\n@param description the description of the actual object.\n@param actual the actual object.\n@param expected the expected object.\n@throws AssertionError if {@code actual} is not equal to {@code expected}. This method will throw a\n{@code org.junit.ComparisonFailure} instead if JUnit is in the classpath and the given objects are not\nequal.", "docstring_tokens": ["Asserts", "that", "two", "objects", "are", "equal", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Objects.java#L81-L85", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Objects.java", "func_name": "Objects.assertNotEqual", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that two objects are not equal.\n\n@param description the description of the actual object.\n@param actual the actual object.\n@param other the object to compare {@code actual} to.\n@throws AssertionError if {@code actual} is equal to {@code other}.", "docstring_tokens": ["Asserts", "that", "two", "objects", "are", "not", "equal", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Objects.java#L95-L99", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Objects.java", "func_name": "Objects.assertSame", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that two objects refer to the same instance.\n\n@param description the description of the actual object.\n@param actual the actual object.\n@param expected the expected object.\n@throws AssertionError if the given objects do not refer to the same instance.", "docstring_tokens": ["Asserts", "that", "two", "objects", "refer", "to", "the", "same", "instance", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Objects.java#L109-L114", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/Objects.java", "func_name": "Objects.assertNotSame", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that two objects do not refer to the same instance.\n\n@param description the description of the actual object.\n@param actual the actual object.\n@param other the object to compare {@code actual} to.\n@throws AssertionError if the given objects refer to the same instance.", "docstring_tokens": ["Asserts", "that", "two", "objects", "do", "not", "refer", "to", "the", "same", "instance", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/Objects.java#L124-L129", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/CharArrays.java", "func_name": "CharArrays.assertDoesNotContain", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the given array does not contain the given values.\n\n@param description contains information about the assertion.\n@param actual the given array.\n@param values the values that are expected not to be in the given array.\n@throws NullPointerException if the array of values is {@code null}.\n@throws IllegalArgumentException if the array of values is empty.\n@throws AssertionError if the given array is {@code null}.\n@throws AssertionError if the given array contains any of given values.", "docstring_tokens": ["Asserts", "that", "the", "given", "array", "does", "not", "contain", "the", "given", "values", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/CharArrays.java#L187-L189", "partition": "valid"} +{"repo": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/CharArrays.java", "func_name": "CharArrays.assertIsSorted", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the actual is sorted into ascending order according to the natural ordering of its elements.\nEmpty arrays are considered sorted.\n\n@param description contains the information about the assertion.\n@param actual the given array.\n@throws AssertionError if the {@code actual} is {@code null}.", "docstring_tokens": ["Verifies", "that", "the", "actual", "is", "sorted", "into", "ascending", "order", "according", "to", "the", "natural", "ordering", "of", "its", "elements", ".", "Empty", "arrays", "are", "considered", "sorted", "."], "sha": "bff5925af00fc732ba3a0e85f6774acba77ec7c8", "url": "https://github.com/alexruiz/fest-assert-2.x/blob/bff5925af00fc732ba3a0e85f6774acba77ec7c8/src/main/java/org/fest/assertions/internal/CharArrays.java#L247-L259", "partition": "valid"} +{"repo": "valid4j/valid4j", "path": "src/main/java/org/valid4j/matchers/ArgumentMatchers.java", "func_name": "ArgumentMatchers.named", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wraps an existing matcher, decorating its description with the name specified. All other functions are\ndelegated to the decorated matcher, including its mismatch description.\n\nExample:\n

named(\"theNameOfMyArgument\", notNullValue())
\n\n@param \nthe type of object to match\n@param name\nthe given name of the wrapped matcher\n@param matcher\nthe matcher to decorate with a name\n@return\nthe decorated matcher", "docstring_tokens": ["Wraps", "an", "existing", "matcher", "decorating", "its", "description", "with", "the", "name", "specified", ".", "All", "other", "functions", "are", "delegated", "to", "the", "decorated", "matcher", "including", "its", "mismatch", "description", "."], "sha": "2f3dd5e5ed0cc61bfbd08106f081891dd6fc0d3a", "url": "https://github.com/valid4j/valid4j/blob/2f3dd5e5ed0cc61bfbd08106f081891dd6fc0d3a/src/main/java/org/valid4j/matchers/ArgumentMatchers.java#L35-L39", "partition": "valid"} +{"repo": "valid4j/valid4j", "path": "src/main/java/org/valid4j/matchers/ArgumentMatchers.java", "func_name": "ArgumentMatchers.notEmptyString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A matcher matching non-null and non-empty strings\n\nExample:\n
assertThat(\"this is not an empty string\", notEmptyString())
\n\n@return\nmatcher for a not empty string", "docstring_tokens": ["A", "matcher", "matching", "non", "-", "null", "and", "non", "-", "empty", "strings"], "sha": "2f3dd5e5ed0cc61bfbd08106f081891dd6fc0d3a", "url": "https://github.com/valid4j/valid4j/blob/2f3dd5e5ed0cc61bfbd08106f081891dd6fc0d3a/src/main/java/org/valid4j/matchers/ArgumentMatchers.java#L50-L58", "partition": "valid"} +{"repo": "resty-gwt/resty-gwt", "path": "restygwt/src/main/java/org/fusesource/restygwt/rebind/JsonEncoderDecoderClassCreator.java", "func_name": "JsonEncoderDecoderClassCreator.getMiddleNameForPrefixingAsAccessorMutatorJavaBeansSpecCompliance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the middle part of the method name in compliance with the naming convention in the JavaBeans API\nspecification.\n\n@param fieldName\n@return", "docstring_tokens": ["Get", "the", "middle", "part", "of", "the", "method", "name", "in", "compliance", "with", "the", "naming", "convention", "in", "the", "JavaBeans", "API", "specification", "."], "sha": "44b644aa1512afbc5d496a12f03579ad4ba730a1", "url": "https://github.com/resty-gwt/resty-gwt/blob/44b644aa1512afbc5d496a12f03579ad4ba730a1/restygwt/src/main/java/org/fusesource/restygwt/rebind/JsonEncoderDecoderClassCreator.java#L807-L812", "partition": "valid"} +{"repo": "resty-gwt/resty-gwt", "path": "restygwt/src/main/java/org/fusesource/restygwt/rebind/JsonEncoderDecoderClassCreator.java", "func_name": "JsonEncoderDecoderClassCreator.exists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "checks whether a getter or setter exists on the specified type or any of\nits super classes excluding Object. respects JsonIgnore accordingly.\n\n@param type\n@param field\n@param fieldName\n@param isSetter\n@return", "docstring_tokens": ["checks", "whether", "a", "getter", "or", "setter", "exists", "on", "the", "specified", "type", "or", "any", "of", "its", "super", "classes", "excluding", "Object", ".", "respects", "JsonIgnore", "accordingly", "."], "sha": "44b644aa1512afbc5d496a12f03579ad4ba730a1", "url": "https://github.com/resty-gwt/resty-gwt/blob/44b644aa1512afbc5d496a12f03579ad4ba730a1/restygwt/src/main/java/org/fusesource/restygwt/rebind/JsonEncoderDecoderClassCreator.java#L869-L907", "partition": "valid"} +{"repo": "resty-gwt/resty-gwt", "path": "restygwt/src/main/java/org/fusesource/restygwt/rebind/BindingDefaults.java", "func_name": "BindingDefaults.getAnnotationResolvers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "access all annotationresolvers that are registered\n\n@return a copy of all AnnotationResolvers", "docstring_tokens": ["access", "all", "annotationresolvers", "that", "are", "registered"], "sha": "44b644aa1512afbc5d496a12f03579ad4ba730a1", "url": "https://github.com/resty-gwt/resty-gwt/blob/44b644aa1512afbc5d496a12f03579ad4ba730a1/restygwt/src/main/java/org/fusesource/restygwt/rebind/BindingDefaults.java#L61-L108", "partition": "valid"} +{"repo": "resty-gwt/resty-gwt", "path": "restygwt/src/main/java/org/fusesource/restygwt/client/Method.java", "func_name": "Method.expect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "sets the expected response status code. If the response status code does not match\nany of the values specified then the request is considered to have failed. Defaults to accepting\n200,201,204. If set to -1 then any status code is considered a success.", "docstring_tokens": ["sets", "the", "expected", "response", "status", "code", ".", "If", "the", "response", "status", "code", "does", "not", "match", "any", "of", "the", "values", "specified", "then", "the", "request", "is", "considered", "to", "have", "failed", ".", "Defaults", "to", "accepting", "200", "201", "204", ".", "If", "set", "to", "-", "1", "then", "any", "status", "code", "is", "considered", "a", "success", "."], "sha": "44b644aa1512afbc5d496a12f03579ad4ba730a1", "url": "https://github.com/resty-gwt/resty-gwt/blob/44b644aa1512afbc5d496a12f03579ad4ba730a1/restygwt/src/main/java/org/fusesource/restygwt/client/Method.java#L180-L191", "partition": "valid"} +{"repo": "resty-gwt/resty-gwt", "path": "restygwt/src/main/java/org/fusesource/restygwt/rebind/BaseSourceCreator.java", "func_name": "BaseSourceCreator.reduceName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Lets have class name less than 200 to allow new generators safelly to add more sufixes there if needed", "docstring_tokens": ["Lets", "have", "class", "name", "less", "than", "200", "to", "allow", "new", "generators", "safelly", "to", "add", "more", "sufixes", "there", "if", "needed"], "sha": "44b644aa1512afbc5d496a12f03579ad4ba730a1", "url": "https://github.com/resty-gwt/resty-gwt/blob/44b644aa1512afbc5d496a12f03579ad4ba730a1/restygwt/src/main/java/org/fusesource/restygwt/rebind/BaseSourceCreator.java#L107-L144", "partition": "valid"} +{"repo": "resty-gwt/resty-gwt", "path": "restygwt/src/main/java/org/fusesource/restygwt/rebind/BaseSourceCreator.java", "func_name": "BaseSourceCreator.getBooleanProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the boolean value of the property or the default value.", "docstring_tokens": ["Returns", "the", "boolean", "value", "of", "the", "property", "or", "the", "default", "value", "."], "sha": "44b644aa1512afbc5d496a12f03579ad4ba730a1", "url": "https://github.com/resty-gwt/resty-gwt/blob/44b644aa1512afbc5d496a12f03579ad4ba730a1/restygwt/src/main/java/org/fusesource/restygwt/rebind/BaseSourceCreator.java#L288-L298", "partition": "valid"} +{"repo": "resty-gwt/resty-gwt", "path": "restygwt/src/main/java/org/fusesource/restygwt/client/callback/CachingCallbackFilter.java", "func_name": "CachingCallbackFilter.filter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "the real filter method, called independent of the response code\n\nTODO method.getResponse() is not equal to response. unfortunately", "docstring_tokens": ["the", "real", "filter", "method", "called", "independent", "of", "the", "response", "code"], "sha": "44b644aa1512afbc5d496a12f03579ad4ba730a1", "url": "https://github.com/resty-gwt/resty-gwt/blob/44b644aa1512afbc5d496a12f03579ad4ba730a1/restygwt/src/main/java/org/fusesource/restygwt/client/callback/CachingCallbackFilter.java#L53-L111", "partition": "valid"} +{"repo": "resty-gwt/resty-gwt", "path": "restygwt/src/main/java/org/fusesource/restygwt/rebind/ModelChangeAnnotationResolver.java", "func_name": "ModelChangeAnnotationResolver.getAnnotationsAsStringArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "convert an array of classes to an array of strings to be usable in js context.\n\n@param classes\n@return", "docstring_tokens": ["convert", "an", "array", "of", "classes", "to", "an", "array", "of", "strings", "to", "be", "usable", "in", "js", "context", "."], "sha": "44b644aa1512afbc5d496a12f03579ad4ba730a1", "url": "https://github.com/resty-gwt/resty-gwt/blob/44b644aa1512afbc5d496a12f03579ad4ba730a1/restygwt/src/main/java/org/fusesource/restygwt/rebind/ModelChangeAnnotationResolver.java#L123-L136", "partition": "valid"} +{"repo": "resty-gwt/resty-gwt", "path": "restygwt/src/main/java/org/fusesource/restygwt/client/JsonpMethod.java", "func_name": "JsonpMethod.send", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "helper method to make RestServiceClassCreator easier to maintain\n@param callback", "docstring_tokens": ["helper", "method", "to", "make", "RestServiceClassCreator", "easier", "to", "maintain"], "sha": "44b644aa1512afbc5d496a12f03579ad4ba730a1", "url": "https://github.com/resty-gwt/resty-gwt/blob/44b644aa1512afbc5d496a12f03579ad4ba730a1/restygwt/src/main/java/org/fusesource/restygwt/client/JsonpMethod.java#L98-L100", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/TokenRequestHandler.java", "func_name": "TokenRequestHandler.process", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Process the parameters of the token request.", "docstring_tokens": ["Process", "the", "parameters", "of", "the", "token", "request", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/TokenRequestHandler.java#L172-L232", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/TokenRequestHandler.java", "func_name": "TokenRequestHandler.handlePassword", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Process the token request whose flow is \"Resource Owner Password Credentials\".", "docstring_tokens": ["Process", "the", "token", "request", "whose", "flow", "is", "Resource", "Owner", "Password", "Credentials", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/TokenRequestHandler.java#L238-L263", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/AuthorizationDecisionHandler.java", "func_name": "AuthorizationDecisionHandler.handle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle an end-user's decision on an authorization request.\n\n@param ticket\nA ticket that was issued by Authlete's {@code /api/auth/authorization} API.\n\n@param claimNames\nNames of requested claims. Use the value of the {@code claims}\nparameter in a response from Authlete's {@code /api/auth/authorization} API.\n\n@param claimLocales\nRequested claim locales. Use the value of the {@code claimsLocales}\nparameter in a response from Authlete's {@code /api/auth/authorization} API.\n\n@return\nA response to the client application. Basically, the response\nwill trigger redirection to the client's redirection endpoint.\n\n@throws WebApplicationException\nAn error occurred.", "docstring_tokens": ["Handle", "an", "end", "-", "user", "s", "decision", "on", "an", "authorization", "request", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/AuthorizationDecisionHandler.java#L95-L111", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/AuthorizationDecisionHandler.java", "func_name": "AuthorizationDecisionHandler.process", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Process the end-user's decision.", "docstring_tokens": ["Process", "the", "end", "-", "user", "s", "decision", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/AuthorizationDecisionHandler.java#L117-L158", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/AuthorizationDecisionHandler.java", "func_name": "AuthorizationDecisionHandler.collectClaims", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Collect claims of the end-user.", "docstring_tokens": ["Collect", "claims", "of", "the", "end", "-", "user", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/AuthorizationDecisionHandler.java#L164-L225", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/BaseAuthorizationDecisionEndpoint.java", "func_name": "BaseAuthorizationDecisionEndpoint.handle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle an authorization decision request.\n\n

\nThis method internally creates a {@link AuthorizationDecisionHandler} instance and\ncalls its {@link AuthorizationDecisionHandler#handle(String, String[], String[])}\nmethod. Then, this method uses the value returned from the {@code handle()} method\nas a response from this method.\n

\n\n

\nWhen {@code AuthorizationDecisionHandler.handle()} method raises a {@link\nWebApplicationException}, this method calls {@link #onError(WebApplicationException)\nonError()} method with the exception. The default implementation of {@code onError()}\ncalls {@code printStackTrace()} of the exception and does nothing else. You\ncan override the method as necessary. After calling {@code onError()} method,\nthis method calls {@code getResponse()} method of the exception and uses the\nreturned value as a response from this method.\n

\n\n@param api\nAn implementation of {@link AuthleteApi}.\n\n@param spi\nAn implementation of {@link AuthorizationDecisionHandlerSpi}.\n\n@param ticket\nA ticket that was issued by Authlete's {@code /api/auth/authorization} API.\n\n@param claimNames\nNames of requested claims. Use the value of the {@code claims}\nparameter in a response from Authlete's {@code /api/auth/authorization} API.\n\n@param claimLocales\nRequested claim locales. Use the value of the {@code claimsLocales}\nparameter in a response from Authlete's {@code /api/auth/authorization} API.\n\n@return\nA response that should be returned to the client application.", "docstring_tokens": ["Handle", "an", "authorization", "decision", "request", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/BaseAuthorizationDecisionEndpoint.java#L75-L95", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/AuthleteApiCaller.java", "func_name": "AuthleteApiCaller.userInfoIssue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Issue a JSON or a JWT containing user information.", "docstring_tokens": ["Issue", "a", "JSON", "or", "a", "JWT", "containing", "user", "information", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/AuthleteApiCaller.java#L699-L743", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/AuthorizationPageModel.java", "func_name": "AuthorizationPageModel.computeLoginId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Compute the initial value for the login ID field in the\nauthorization page.", "docstring_tokens": ["Compute", "the", "initial", "value", "for", "the", "login", "ID", "field", "in", "the", "authorization", "page", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/AuthorizationPageModel.java#L496-L504", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/BaseJwksEndpoint.java", "func_name": "BaseJwksEndpoint.handle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle a request for a JWK Set document.\n\n

\nThis method internally creates a {@link JwksRequestHandler} instance and\ncalls its {@link JwksRequestHandler#handle()} method. Then, this method\nuses the value returned from the {@code handle()} method as a response\nfrom this method.\n

\n\n

\nWhen {@code JwksRequestHandler.handle()} method raises a {@link\nWebApplicationException}, this method calls {@link #onError(WebApplicationException)\nonError()} method with the exception. The default implementation of {@code onError()}\ncalls {@code printStackTrace()} of the exception and does nothing else. You\ncan override the method as necessary. After calling {@code onError()} method,\nthis method calls {@code getResponse()} method of the exception and uses the\nreturned value as a response from this method.\n

\n\n@param api\nAn implementation of {@link AuthleteApi}.\n\n@return\nA response that should be returned to the client application.", "docstring_tokens": ["Handle", "a", "request", "for", "a", "JWK", "Set", "document", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/BaseJwksEndpoint.java#L80-L98", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/BaseIntrospectionEndpoint.java", "func_name": "BaseIntrospectionEndpoint.handle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle an introspection request.\n\n

\nThis method internally creates an {@link IntrospectionRequestHandler}\ninstance and calls its {@link IntrospectionRequestHandler#handle(MultivaluedMap)\nhandle()} method with the {@code parameters} argument. Then, this\nmethod uses the value returned from the {@code handle()} method as a\nresponse from this method.\n

\n\n

\nWhen {@code IntrospectionRequestHandler.handle()} method raises a\n{@link WebApplicationException}, this method calls {@link\n#onError(WebApplicationException) onError()} method with the exception.\nThe default implementation of {@code onError()} calls {@code\nprintStackTrace()} of the exception and does nothing else. You can\noverride the method as necessary. After calling {@code onError()}\nmethod, this method calls {@code getResponse()} method of the\nexception and uses the returned value as a response from this method.\n

\n\n@param api\nAn implementation of {@link AuthleteApi}.\n\n@param parameters\nRequest parameters of an introspection request.\n\n@return\nA response that should be returned to the client application.", "docstring_tokens": ["Handle", "an", "introspection", "request", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/BaseIntrospectionEndpoint.java#L71-L89", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/api/AuthleteApiImpl.java", "func_name": "AuthleteApiImpl.createServiceOwnerCredentials", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create an authorization header for the service owner.", "docstring_tokens": ["Create", "an", "authorization", "header", "for", "the", "service", "owner", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/api/AuthleteApiImpl.java#L195-L208", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/api/AuthleteApiImpl.java", "func_name": "AuthleteApiImpl.createServiceCredentials", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create an authorization header for the service.", "docstring_tokens": ["Create", "an", "authorization", "header", "for", "the", "service", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/api/AuthleteApiImpl.java#L214-L227", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/api/AuthleteApiImpl.java", "func_name": "AuthleteApiImpl.getJaxRsClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get an instance of JAX-RS client.", "docstring_tokens": ["Get", "an", "instance", "of", "JAX", "-", "RS", "client", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/api/AuthleteApiImpl.java#L233-L257", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/api/AuthleteApiImpl.java", "func_name": "AuthleteApiImpl.createJaxRsClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create an instance of JAX-RS client.", "docstring_tokens": ["Create", "an", "instance", "of", "JAX", "-", "RS", "client", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/api/AuthleteApiImpl.java#L263-L272", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/api/AuthleteApiImpl.java", "func_name": "AuthleteApiImpl.setConnectionTimeout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set a connection timeout.", "docstring_tokens": ["Set", "a", "connection", "timeout", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/api/AuthleteApiImpl.java#L278-L314", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/api/AuthleteApiImpl.java", "func_name": "AuthleteApiImpl.setReadTimeout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set a read timeout.", "docstring_tokens": ["Set", "a", "read", "timeout", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/api/AuthleteApiImpl.java#L320-L356", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/api/AuthleteApiImpl.java", "func_name": "AuthleteApiImpl.executeApiCall", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute an Authlete API call.", "docstring_tokens": ["Execute", "an", "Authlete", "API", "call", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/api/AuthleteApiImpl.java#L368-L390", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/BaseAuthorizationEndpoint.java", "func_name": "BaseAuthorizationEndpoint.handle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle an authorization request.\n\n

\nThis method internally creates a {@link AuthorizationRequestHandler} instance and\ncalls its {@link AuthorizationRequestHandler#handle(MultivaluedMap)} method.\nThen, this method uses the value returned from the {@code handle()} method\nas a response from this method.\n

\n\n

\nWhen {@code AuthorizationRequestHandler.handle()} method raises a {@link\nWebApplicationException}, this method calls {@link #onError(WebApplicationException)\nonError()} method with the exception. The default implementation of {@code onError()}\ncalls {@code printStackTrace()} of the exception and does nothing else. You\ncan override the method as necessary. After calling {@code onError()} method,\nthis method calls {@code getResponse()} method of the exception and uses the\nreturned value as a response from this method.\n

\n\n@param api\nAn implementation of {@link AuthleteApi}.\n\n@param spi\nAn implementation of {@link AuthorizationRequestHandlerSpi}.\n\n@param parameters\nRequest parameters of the authorization request.\n\n@return\nA response that should be returned to the client application.", "docstring_tokens": ["Handle", "an", "authorization", "request", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/BaseAuthorizationEndpoint.java#L80-L100", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/IntrospectionRequestHandler.java", "func_name": "IntrospectionRequestHandler.process", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Process the parameters of the introspection request.", "docstring_tokens": ["Process", "the", "parameters", "of", "the", "introspection", "request", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/IntrospectionRequestHandler.java#L96-L127", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/UserInfoRequestHandler.java", "func_name": "UserInfoRequestHandler.process", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Process the userinfo request with the access token.", "docstring_tokens": ["Process", "the", "userinfo", "request", "with", "the", "access", "token", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/UserInfoRequestHandler.java#L128-L167", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/BaseUserInfoEndpoint.java", "func_name": "BaseUserInfoEndpoint.handle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle a userinfo request.\n\n

\nThis method internally creates a {@link UserInfoRequestHandler} instance\nand calls its {@link UserInfoRequestHandler#handle(String)} method.\nThen, this method uses the value returned from the {@code handle()} method\nas a response from this method.\n

\n\n

\nWhen {@code UserInfoRequestHandler.handle()} method raises a {@link\nWebApplicationException}, this method calls {@link #onError(WebApplicationException)\nonError()} method with the exception. The default implementation of {@code onError()}\ncalls {@code printStackTrace()} of the exception and does nothing else. You\ncan override the method as necessary. After calling {@code onError()} method,\nthis method calls {@code getResponse()} method of the exception and uses the\nreturned value as a response from this method.\n

\n\n@param api\nAn implementation of {@link AuthleteApi}.\n\n@param spi\nAn implementation of {@link UserInfoRequestHandlerSpi}.\n\n@param accessToken\nAn access token.\n\n@return\nA response that should be returned to the client application.", "docstring_tokens": ["Handle", "a", "userinfo", "request", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/BaseUserInfoEndpoint.java#L70-L89", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/AuthorizationRequestHandler.java", "func_name": "AuthorizationRequestHandler.process", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Process the authorization request.", "docstring_tokens": ["Process", "the", "authorization", "request", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/AuthorizationRequestHandler.java#L110-L156", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/AuthorizationRequestHandler.java", "func_name": "AuthorizationRequestHandler.noInteractionCheckAuthentication", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check whether an end-user has already logged in or not.", "docstring_tokens": ["Check", "whether", "an", "end", "-", "user", "has", "already", "logged", "in", "or", "not", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/AuthorizationRequestHandler.java#L216-L227", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/RevocationRequestHandler.java", "func_name": "RevocationRequestHandler.process", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Process the parameters of the revocation request.", "docstring_tokens": ["Process", "the", "parameters", "of", "the", "revocation", "request", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/RevocationRequestHandler.java#L117-L152", "partition": "valid"} +{"repo": "authlete/authlete-java-jaxrs", "path": "src/main/java/com/authlete/jaxrs/BaseEndpoint.java", "func_name": "BaseEndpoint.extractClientCertificate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Utility method for extracting a single client certificate from the default\ncertificate extractors. Calls extractClientCertificateChain and returns the\nfirst entry in the array, if any, null otherwise.\n\n@param request\nThe incoming HTTP request to search for the client's certificate.\n\n@return\nThe client's mutual TLS certificate.\n\n@since 2.8", "docstring_tokens": ["Utility", "method", "for", "extracting", "a", "single", "client", "certificate", "from", "the", "default", "certificate", "extractors", ".", "Calls", "extractClientCertificateChain", "and", "returns", "the", "first", "entry", "in", "the", "array", "if", "any", "null", "otherwise", "."], "sha": "9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad", "url": "https://github.com/authlete/authlete-java-jaxrs/blob/9b043732c57b5ad2aebb8ffebb5ab56b9c5d86ad/src/main/java/com/authlete/jaxrs/BaseEndpoint.java#L99-L111", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "addons/implied-repos/common/src/main/java/org/commonjava/indy/implrepo/change/ImpliedRepoMaintainer.java", "func_name": "ImpliedRepoMaintainer.updateImpliedStores", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "We cannot currently remove formerly implied repos because we can't distinguish between the above states.", "docstring_tokens": ["We", "cannot", "currently", "remove", "formerly", "implied", "repos", "because", "we", "can", "t", "distinguish", "between", "the", "above", "states", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/addons/implied-repos/common/src/main/java/org/commonjava/indy/implrepo/change/ImpliedRepoMaintainer.java#L104-L133", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "addons/httprox/common/src/main/java/org/commonjava/indy/httprox/util/CertUtils.java", "func_name": "CertUtils.generateX509Certificate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a self-signed X.509 cert\n\n@param dn the X.509 Distinguished Name, eg \"CN=Test, L=London, C=GB\"\n@param days how many days from now the cert is valid for\n@param algorithm the signing algorithm, eg \"SHA256withRSA\"", "docstring_tokens": ["Create", "a", "self", "-", "signed", "X", ".", "509", "cert"], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/addons/httprox/common/src/main/java/org/commonjava/indy/httprox/util/CertUtils.java#L80-L111", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "subsys/metrics/core/src/main/java/org/commonjava/indy/metrics/IndyMetricsConstants.java", "func_name": "IndyMetricsConstants.getName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the metric fullname.\n@param name user specified name\n@param defaultName 'class name + method name', not null.", "docstring_tokens": ["Get", "the", "metric", "fullname", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/subsys/metrics/core/src/main/java/org/commonjava/indy/metrics/IndyMetricsConstants.java#L69-L76", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "addons/relate/common/src/main/java/org/commonjava/indy/relate/util/RelateGenerationManager.java", "func_name": "RelateGenerationManager.generateRelationshipFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate relationship file for pom transfer.\n@param transfer\n@param op\n@return transfer pointing to the generated rel file.", "docstring_tokens": ["Generate", "relationship", "file", "for", "pom", "transfer", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/addons/relate/common/src/main/java/org/commonjava/indy/relate/util/RelateGenerationManager.java#L85-L162", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "subsys/git/src/main/java/org/commonjava/indy/subsys/git/GitManager.java", "func_name": "GitManager.commit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Commit the changelog entries\n@return size of changelog entries being committed", "docstring_tokens": ["Commit", "the", "changelog", "entries"], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/subsys/git/src/main/java/org/commonjava/indy/subsys/git/GitManager.java#L389-L419", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "subsys/metrics/reporter/src/main/java/org/commonjava/indy/metrics/zabbix/reporter/IndyZabbixReporter.java", "func_name": "IndyZabbixReporter.addSnapshotDataObject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "for histograms.\n\n@param key\n@param snapshot\n@param dataObjectList", "docstring_tokens": ["for", "histograms", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/subsys/metrics/reporter/src/main/java/org/commonjava/indy/metrics/zabbix/reporter/IndyZabbixReporter.java#L223-L235", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "addons/httprox/common/src/main/java/org/commonjava/indy/httprox/util/ProxyResponseHelper.java", "func_name": "ProxyResponseHelper.getRemoteRepositoryName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "if repo with this name already exists, we need to use a different name", "docstring_tokens": ["if", "repo", "with", "this", "name", "already", "exists", "we", "need", "to", "use", "a", "different", "name"], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/addons/httprox/common/src/main/java/org/commonjava/indy/httprox/util/ProxyResponseHelper.java#L218-L248", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "addons/httprox/common/src/main/java/org/commonjava/indy/httprox/handler/AbstractProxyRepositoryCreator.java", "func_name": "AbstractProxyRepositoryCreator.getNextName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the next distinct name based on the query result by filter of getNameFilter\n@param names\n@return", "docstring_tokens": ["Get", "the", "next", "distinct", "name", "based", "on", "the", "query", "result", "by", "filter", "of", "getNameFilter"], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/addons/httprox/common/src/main/java/org/commonjava/indy/httprox/handler/AbstractProxyRepositoryCreator.java#L142-L157", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "subsys/kafka/src/main/java/org/commonjava/indy/subsys/kafka/IndyKafkaProducer.java", "func_name": "IndyKafkaProducer.send", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Non-blocking send with a logback formatter to format the message.", "docstring_tokens": ["Non", "-", "blocking", "send", "with", "a", "logback", "formatter", "to", "format", "the", "message", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/subsys/kafka/src/main/java/org/commonjava/indy/subsys/kafka/IndyKafkaProducer.java#L91-L94", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "subsys/kafka/src/main/java/org/commonjava/indy/subsys/kafka/IndyKafkaProducer.java", "func_name": "IndyKafkaProducer.send", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Blocking send. The message will be available to consumers immediately. Wait for at most the given time\nfor the operation to complete.", "docstring_tokens": ["Blocking", "send", ".", "The", "message", "will", "be", "available", "to", "consumers", "immediately", ".", "Wait", "for", "at", "most", "the", "given", "time", "for", "the", "operation", "to", "complete", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/subsys/kafka/src/main/java/org/commonjava/indy/subsys/kafka/IndyKafkaProducer.java#L100-L104", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "subsys/kafka/src/main/java/org/commonjava/indy/subsys/kafka/IndyKafkaProducer.java", "func_name": "IndyKafkaProducer.send", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Blocking send with a logback formatter to format the message.", "docstring_tokens": ["Blocking", "send", "with", "a", "logback", "formatter", "to", "format", "the", "message", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/subsys/kafka/src/main/java/org/commonjava/indy/subsys/kafka/IndyKafkaProducer.java#L109-L117", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "addons/koji/common/src/main/java/org/commonjava/indy/koji/content/IndyKojiContentProvider.java", "func_name": "IndyKojiContentProvider.getCacheNames", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This is to register ISPN caches produced by this provider so that the Metrics knows them.", "docstring_tokens": ["This", "is", "to", "register", "ISPN", "caches", "produced", "by", "this", "provider", "so", "that", "the", "Metrics", "knows", "them", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/addons/koji/common/src/main/java/org/commonjava/indy/koji/content/IndyKojiContentProvider.java#L64-L76", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "addons/folo/common/src/main/java/org/commonjava/indy/folo/FoloUtils.java", "func_name": "FoloUtils.zipTrackedContent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write sealed records to a zip file.", "docstring_tokens": ["Write", "sealed", "records", "to", "a", "zip", "file", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/addons/folo/common/src/main/java/org/commonjava/indy/folo/FoloUtils.java#L46-L61", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "addons/folo/common/src/main/java/org/commonjava/indy/folo/FoloUtils.java", "func_name": "FoloUtils.readZipInputStreamAnd", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read records from input stream and execute consumer function.\n@param inputStream\n@param consumer\n@return count of records read from the stream", "docstring_tokens": ["Read", "records", "from", "input", "stream", "and", "execute", "consumer", "function", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/addons/folo/common/src/main/java/org/commonjava/indy/folo/FoloUtils.java#L80-L106", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "addons/promote/common/src/main/java/org/commonjava/indy/promote/data/PromotionManager.java", "func_name": "PromotionManager.getTargetKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Provides target group store key for a given group name. This is meant to provide the same instance of the key\nfor a name to be able to synchronize promotion requests based on this instance.\n\n@param targetName the target group name\n@return the group store key", "docstring_tokens": ["Provides", "target", "group", "store", "key", "for", "a", "given", "group", "name", ".", "This", "is", "meant", "to", "provide", "the", "same", "instance", "of", "the", "key", "for", "a", "name", "to", "be", "able", "to", "synchronize", "promotion", "requests", "based", "on", "this", "instance", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/addons/promote/common/src/main/java/org/commonjava/indy/promote/data/PromotionManager.java#L338-L343", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "core/src/main/java/org/commonjava/indy/core/content/PathMaskChecker.java", "func_name": "PathMaskChecker.checkListingMask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "path mask checking", "docstring_tokens": ["path", "mask", "checking"], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/core/src/main/java/org/commonjava/indy/core/content/PathMaskChecker.java#L63-L99", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "addons/pkg-maven/common/src/main/java/org/commonjava/indy/pkg/maven/content/MavenMetadataGenerator.java", "func_name": "MavenMetadataGenerator.clearObsoleteFiles", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Clear obsolete files after a meta is generated. This may be http download metadata, etc.\n@param item", "docstring_tokens": ["Clear", "obsolete", "files", "after", "a", "meta", "is", "generated", ".", "This", "may", "be", "http", "download", "metadata", "etc", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/addons/pkg-maven/common/src/main/java/org/commonjava/indy/pkg/maven/content/MavenMetadataGenerator.java#L675-L687", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "addons/koji/common/src/main/java/org/commonjava/indy/koji/data/DefaultKojiRepoNameParser.java", "func_name": "DefaultKojiRepoNameParser.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve what is behind koji- or koji-binary-\n@param repoName\n@return koji build nvr", "docstring_tokens": ["Retrieve", "what", "is", "behind", "koji", "-", "or", "koji", "-", "binary", "-"], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/addons/koji/common/src/main/java/org/commonjava/indy/koji/data/DefaultKojiRepoNameParser.java#L33-L50", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "bindings/jaxrs/src/main/java/org/commonjava/indy/core/bind/jaxrs/admin/StoreAdminHandler.java", "func_name": "StoreAdminHandler.exists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "private HttpServletRequest request;", "docstring_tokens": ["private", "HttpServletRequest", "request", ";"], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/bindings/jaxrs/src/main/java/org/commonjava/indy/core/bind/jaxrs/admin/StoreAdminHandler.java#L106-L133", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "db/flat/src/main/java/org/commonjava/indy/flat/data/DataFileStoreUtils.java", "func_name": "DataFileStoreUtils.loadFromDiskAnd", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load all store definitions from disk and apply consumer function.", "docstring_tokens": ["Load", "all", "store", "definitions", "from", "disk", "and", "apply", "consumer", "function", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/db/flat/src/main/java/org/commonjava/indy/flat/data/DataFileStoreUtils.java#L28-L32", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "db/flat/src/main/java/org/commonjava/indy/flat/data/DataFileStoreUtils.java", "func_name": "DataFileStoreUtils.loadFromDiskAnd", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load store definitions from disk and apply consumer function.\n@param manager\n@param serializer\n@param key if null, load all.\n@param summary\n@param consumer", "docstring_tokens": ["Load", "store", "definitions", "from", "disk", "and", "apply", "consumer", "function", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/db/flat/src/main/java/org/commonjava/indy/flat/data/DataFileStoreUtils.java#L42-L108", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "addons/hosted-by-archive/common/src/main/java/org/commonjava/indy/hostedbyarc/HostedByArchiveManager.java", "func_name": "HostedByArchiveManager.createStoreByArc", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "private ExecutorService executors;", "docstring_tokens": ["private", "ExecutorService", "executors", ";"], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/addons/hosted-by-archive/common/src/main/java/org/commonjava/indy/hostedbyarc/HostedByArchiveManager.java#L62-L71", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "subsys/http/src/main/java/org/commonjava/indy/subsys/http/IndyHttpProvider.java", "func_name": "IndyHttpProvider.createContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create http request context and apply site config.\n@param siteId ID to represent the site. It is generally the hostname of target site.\n@return\n@throws IndyHttpException", "docstring_tokens": ["Create", "http", "request", "context", "and", "apply", "site", "config", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/subsys/http/src/main/java/org/commonjava/indy/subsys/http/IndyHttpProvider.java#L91-L101", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "subsys/http/src/main/java/org/commonjava/indy/subsys/http/IndyHttpProvider.java", "func_name": "IndyHttpProvider.createClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create http client and apply site config.\n@param siteId ID to represent the site. It is generally the hostname of target site.\n@return\n@throws IndyHttpException", "docstring_tokens": ["Create", "http", "client", "and", "apply", "site", "config", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/subsys/http/src/main/java/org/commonjava/indy/subsys/http/IndyHttpProvider.java#L109-L119", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "addons/koji/common/src/main/java/org/commonjava/indy/koji/data/KojiRepairManager.java", "func_name": "KojiRepairManager.doRepair", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Repair one remote repository.\n@param packageType\n@param repository repository to be repaired. If null, the repository name will be retrieved according to\nthe buildInfo and the naming format in koji.conf.\n@param buildInfo koji build which this repository proxies\n@param user the user does the repair\n@param isDryRun\n@return\n@throws KojiRepairException", "docstring_tokens": ["Repair", "one", "remote", "repository", "."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/addons/koji/common/src/main/java/org/commonjava/indy/koji/data/KojiRepairManager.java#L428-L492", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "addons/pkg-maven/common/src/main/java/org/commonjava/indy/pkg/maven/content/MetadataStoreListener.java", "func_name": "MetadataStoreListener.handleGroupMembersChanged", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If group members changed, should clear the cascading groups metadata cache", "docstring_tokens": ["If", "group", "members", "changed", "should", "clear", "the", "cascading", "groups", "metadata", "cache"], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/addons/pkg-maven/common/src/main/java/org/commonjava/indy/pkg/maven/content/MetadataStoreListener.java#L172-L220", "partition": "valid"} +{"repo": "Commonjava/indy", "path": "subsys/keycloak/src/main/java/org/commonjava/indy/subsys/keycloak/conf/KeycloakConfig.java", "func_name": "KeycloakConfig.setSystemProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set system properties for keycloak to use when filtering keycloak.json...", "docstring_tokens": ["Set", "system", "properties", "for", "keycloak", "to", "use", "when", "filtering", "keycloak", ".", "json", "..."], "sha": "38bf28dfce3bc25745ed239a5cd74efc56cf5c01", "url": "https://github.com/Commonjava/indy/blob/38bf28dfce3bc25745ed239a5cd74efc56cf5c01/subsys/keycloak/src/main/java/org/commonjava/indy/subsys/keycloak/conf/KeycloakConfig.java#L154-L183", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRangeHandler.java", "func_name": "FileRangeHandler.getFileRanges", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an ArrayList of File Ranges for the given stream.\n\n@return an ArrayList of File Ranges for the given stream.\n@throws SAXException\n@throws ParserConfigurationException\n@throws IOException", "docstring_tokens": ["Returns", "an", "ArrayList", "of", "File", "Ranges", "for", "the", "given", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRangeHandler.java#L54-L61", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueMessageHandler.java", "func_name": "QueueMessageHandler.readMessages", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Populates CloudQueueMessage objects from the XMLStreamReader; the reader must be at the Start element of\nQueuesElement.\n\n@param stream\nThe InputStream object to deserialize from.\n@param shouldEncodeMessage\nA flag indicating whether messages should be base-64 encoded.\n\n@return An ArrayList of {@link CloudQueueMessage} from the\nstream.\n\n@throws IOException\n@throws SAXException\n@throws ParserConfigurationException", "docstring_tokens": ["Populates", "CloudQueueMessage", "objects", "from", "the", "XMLStreamReader", ";", "the", "reader", "must", "be", "at", "the", "Start", "element", "of", "QueuesElement", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueMessageHandler.java#L67-L74", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTable.java", "func_name": "CloudTable.createIfNotExists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the table in the storage service with the specified request options and operation context, if it does not\nalready exist.\n\n@param options\nA {@link TableRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudTableClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return true if the table did not already exist and was created; otherwise false .\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Creates", "the", "table", "in", "the", "storage", "service", "with", "the", "specified", "request", "options", "and", "operation", "context", "if", "it", "does", "not", "already", "exist", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTable.java#L283-L306", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTable.java", "func_name": "CloudTable.delete", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes the table from the storage service, using the specified request options and operation context.\n\n@param options\nA {@link TableRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudTableClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Deletes", "the", "table", "from", "the", "storage", "service", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTable.java#L334-L349", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTable.java", "func_name": "CloudTable.deleteIfExists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes the table from the storage service using the specified request options and operation context, if it\nexists.\n\n@param options\nA {@link TableRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudTableClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return A value of true if the table existed in the storage service and has been deleted, otherwise\nfalse.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Deletes", "the", "table", "from", "the", "storage", "service", "using", "the", "specified", "request", "options", "and", "operation", "context", "if", "it", "exists", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTable.java#L384-L406", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTable.java", "func_name": "CloudTable.uploadPermissions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Uploads the table's permissions using the specified request options and operation context.\n\n@param permissions\nA {@link TablePermissions} object that represents the permissions to upload.\n@param options\nA {@link TableRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudTableClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Uploads", "the", "table", "s", "permissions", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTable.java#L928-L940", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTable.java", "func_name": "CloudTable.downloadPermissions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Downloads the permissions settings for the table using the specified request options and operation context.\n\n@param options\nA {@link TableRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudTableClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return A {@link TablePermissions} object that represents the table's permissions.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Downloads", "the", "permissions", "settings", "for", "the", "table", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTable.java#L1034-L1046", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/RequestOptions.java", "func_name": "RequestOptions.applyBaseDefaultsInternal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Populates the default timeout, retry policy, and location mode from client if they are null.\n\n@param modifiedOptions\nThe input options to copy from when applying defaults", "docstring_tokens": ["Populates", "the", "default", "timeout", "retry", "policy", "and", "location", "mode", "from", "client", "if", "they", "are", "null", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/RequestOptions.java#L84-L93", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/StorageErrorHandler.java", "func_name": "StorageErrorHandler.getExtendedErrorInformation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the Extended Error information from the response stream.\n\n@return the Extended Error information from the response stream\n@throws ParserConfigurationException\n@throws IOException\n@throws SAXException", "docstring_tokens": ["Gets", "the", "Extended", "Error", "information", "from", "the", "response", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/StorageErrorHandler.java#L49-L56", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java", "func_name": "AccessCondition.generateIfSequenceNumberLessThanOrEqualCondition", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an access condition such that an operation will be performed only if resource's current sequence\nnumber is less than or equal to the specified value. This condition only applies to page blobs.\n\n@param sequenceNumber\nThe value to compare to the current sequence number.\n\n@return An AccessCondition object that represents the If-Sequence-Number-LE condition.", "docstring_tokens": ["Returns", "an", "access", "condition", "such", "that", "an", "operation", "will", "be", "performed", "only", "if", "resource", "s", "current", "sequence", "number", "is", "less", "than", "or", "equal", "to", "the", "specified", "value", ".", "This", "condition", "only", "applies", "to", "page", "blobs", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java#L136-L140", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java", "func_name": "AccessCondition.generateIfSequenceNumberLessThanCondition", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an access condition such that an operation will be performed only if resource's current sequence\nnumber is less than the specified value. This condition only applies to page blobs.\n\n@param sequenceNumber\nThe value to compare to the current sequence number.\n\n@return An AccessCondition object that represents the If-Sequence-Number-LT condition.", "docstring_tokens": ["Returns", "an", "access", "condition", "such", "that", "an", "operation", "will", "be", "performed", "only", "if", "resource", "s", "current", "sequence", "number", "is", "less", "than", "the", "specified", "value", ".", "This", "condition", "only", "applies", "to", "page", "blobs", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java#L151-L155", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java", "func_name": "AccessCondition.generateIfSequenceNumberEqualCondition", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an access condition such that an operation will be performed only if resource's current sequence\nnumber is equal to the specified value. This condition only applies to page blobs.\n\n@param sequenceNumber\nThe value to compare to the current sequence number.\n\n@return An AccessCondition object that represents the If-Sequence-Number-EQ condition.", "docstring_tokens": ["Returns", "an", "access", "condition", "such", "that", "an", "operation", "will", "be", "performed", "only", "if", "resource", "s", "current", "sequence", "number", "is", "equal", "to", "the", "specified", "value", ".", "This", "condition", "only", "applies", "to", "page", "blobs", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java#L166-L170", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java", "func_name": "AccessCondition.applyConditionToRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "RESERVED FOR INTERNAL USE. Applies the access conditions to the request.\n\n@param request\nA java.net.HttpURLConnection object that represents the request\nto which the condition is being applied.", "docstring_tokens": ["RESERVED", "FOR", "INTERNAL", "USE", ".", "Applies", "the", "access", "conditions", "to", "the", "request", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java#L284-L304", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java", "func_name": "AccessCondition.applySourceConditionToRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "RESERVED FOR INTERNAL USE. Applies the source access conditions to the request.\n\n@param request\nA java.net.HttpURLConnection object that represents the request\nto which the condition is being applied.", "docstring_tokens": ["RESERVED", "FOR", "INTERNAL", "USE", ".", "Applies", "the", "source", "access", "conditions", "to", "the", "request", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java#L313-L341", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java", "func_name": "AccessCondition.applyAppendConditionToRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "RESERVED FOR INTERNAL USE. Applies the access condition to the request.\n\n@param request\nA java.net.HttpURLConnection object that represents the request to which the condition is\nbeing applied.\n\n@throws StorageException\nIf there is an error parsing the date value of the access condition.", "docstring_tokens": ["RESERVED", "FOR", "INTERNAL", "USE", ".", "Applies", "the", "access", "condition", "to", "the", "request", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java#L353-L363", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java", "func_name": "AccessCondition.applyLeaseConditionToRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "RESERVED FOR INTERNAL USE. Applies the lease access condition to the request.\n\n@param request\nA java.net.HttpURLConnection object that represents the request\nto which the condition is being applied.", "docstring_tokens": ["RESERVED", "FOR", "INTERNAL", "USE", ".", "Applies", "the", "lease", "access", "condition", "to", "the", "request", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java#L372-L376", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java", "func_name": "AccessCondition.applySequenceConditionToRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "RESERVED FOR INTERNAL USE. Applies the sequence number access conditions to the request.\n\n@param request\nA java.net.HttpURLConnection object that represents the request\nto which the condition is being applied.", "docstring_tokens": ["RESERVED", "FOR", "INTERNAL", "USE", ".", "Applies", "the", "sequence", "number", "access", "conditions", "to", "the", "request", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java#L385-L403", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java", "func_name": "AccessCondition.verifyConditional", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "RESERVED FOR INTERNAL USE. Verifies the condition is satisfied.\n\n@param etag\nA String that represents the ETag to check.\n@param lastModified\nA java.util.Date object that represents the last modified date/time.\n\n@return true if the condition is satisfied; otherwise, false.", "docstring_tokens": ["RESERVED", "FOR", "INTERNAL", "USE", ".", "Verifies", "the", "condition", "is", "satisfied", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/AccessCondition.java#L620-L648", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableQuery.java", "func_name": "TableQuery.combineFilters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a filter condition using the specified logical operator on two filter conditions.\n\n@param filterA\nA String which specifies the first formatted filter condition.\n@param operator\nA String which specifies Operators.AND or Operators.OR.\n@param filterB\nA String which specifies the first formatted filter condition.\n@return\nA String which represents the combined filter expression.", "docstring_tokens": ["Creates", "a", "filter", "condition", "using", "the", "specified", "logical", "operator", "on", "two", "filter", "conditions", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableQuery.java#L439-L441", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/ServiceClient.java", "func_name": "ServiceClient.setStorageUri", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the list of URIs for all locations.\n\n@param storageUri\nA {@link StorageUri} object which represents the list of URIs for all locations.", "docstring_tokens": ["Sets", "the", "list", "of", "URIs", "for", "all", "locations", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/ServiceClient.java#L214-L217", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/SharedAccessPolicySerializer.java", "func_name": "SharedAccessPolicySerializer.writeSharedAccessIdentifiersToStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "RESERVED FOR INTERNAL USE. Writes a collection of shared access policies to the specified stream in XML format.\n\n@param \n\n@param sharedAccessPolicies\nA collection of shared access policies\n@param outWriter\na sink to write the output to.\n@throws IOException\nif there is an error writing the shared access identifiers.\n@throws IllegalStateException\nif there is an error writing the shared access identifiers.\n@throws IllegalArgumentException\nif there is an error writing the shared access identifiers.", "docstring_tokens": ["RESERVED", "FOR", "INTERNAL", "USE", ".", "Writes", "a", "collection", "of", "shared", "access", "policies", "to", "the", "specified", "stream", "in", "XML", "format", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/SharedAccessPolicySerializer.java#L47-L96", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueMessageSerializer.java", "func_name": "QueueMessageSerializer.generateMessageRequestBody", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates the message request body from a string containing the message.\nThe message must be encodable as UTF-8. To be included in a web request,\nthis message request body must be written to the output stream of the web\nrequest.\n\n@param message\nA String containing the message to wrap in a message request body.\n\n@return An array of byte containing the message request body\nencoded as UTF-8.\n@throws IOException\nif there is an error writing the queue message.\n@throws IllegalStateException\nif there is an error writing the queue message.\n@throws IllegalArgumentException\nif there is an error writing the queue message.", "docstring_tokens": ["Generates", "the", "message", "request", "body", "from", "a", "string", "containing", "the", "message", ".", "The", "message", "must", "be", "encodable", "as", "UTF", "-", "8", ".", "To", "be", "included", "in", "a", "web", "request", "this", "message", "request", "body", "must", "be", "written", "to", "the", "output", "stream", "of", "the", "web", "request", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueMessageSerializer.java#L48-L66", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Canonicalizer.java", "func_name": "Canonicalizer.addCanonicalizedHeaders", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add x-ms- prefixed headers in a fixed order.\n\n@param conn\nthe HttpURLConnection for the operation\n@param canonicalizedString\nthe canonicalized string to add the canonicalized headerst to.", "docstring_tokens": ["Add", "x", "-", "ms", "-", "prefixed", "headers", "in", "a", "fixed", "order", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Canonicalizer.java#L60-L107", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Canonicalizer.java", "func_name": "Canonicalizer.appendCanonicalizedElement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Append a string to a string builder with a newline constant\n\n@param builder\nthe StringBuilder object\n@param element\nthe string to append.", "docstring_tokens": ["Append", "a", "string", "to", "a", "string", "builder", "with", "a", "newline", "constant"], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Canonicalizer.java#L117-L120", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Canonicalizer.java", "func_name": "Canonicalizer.canonicalizeHttpRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a canonicalized string from the request's headers that will be used to construct the signature string\nfor signing a Blob or Queue service request under the Shared Key Full authentication scheme.\n\n@param address\nthe request URI\n@param accountName\nthe account name associated with the request\n@param method\nthe verb to be used for the HTTP request.\n@param contentType\nthe content type of the HTTP request.\n@param contentLength\nthe length of the content written to the outputstream in bytes, -1 if unknown\n@param date\nthe date/time specification for the HTTP request\n@param conn\nthe HttpURLConnection for the operation.\n@return A canonicalized string.\n@throws StorageException", "docstring_tokens": ["Constructs", "a", "canonicalized", "string", "from", "the", "request", "s", "headers", "that", "will", "be", "used", "to", "construct", "the", "signature", "string", "for", "signing", "a", "Blob", "or", "Queue", "service", "request", "under", "the", "Shared", "Key", "Full", "authentication", "scheme", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Canonicalizer.java#L143-L185", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Canonicalizer.java", "func_name": "Canonicalizer.canonicalizeTableHttpRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a canonicalized string that will be used to construct the signature string\nfor signing a Table service request under the Shared Key authentication scheme.\n\n@param address\nthe request URI\n@param accountName\nthe account name associated with the request\n@param method\nthe verb to be used for the HTTP request.\n@param contentType\nthe content type of the HTTP request.\n@param contentLength\nthe length of the content written to the outputstream in bytes, -1 if unknown\n@param date\nthe date/time specification for the HTTP request\n@param conn\nthe HttpURLConnection for the operation.\n@return A canonicalized string.\n@throws StorageException", "docstring_tokens": ["Constructs", "a", "canonicalized", "string", "that", "will", "be", "used", "to", "construct", "the", "signature", "string", "for", "signing", "a", "Table", "service", "request", "under", "the", "Shared", "Key", "authentication", "scheme", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Canonicalizer.java#L208-L235", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/StorageCredentialsHelper.java", "func_name": "StorageCredentialsHelper.computeHmac256", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Computes a signature for the specified string using the HMAC-SHA256 algorithm.\n\n@param value\nThe UTF-8-encoded string to sign.\n\n@return A String that contains the HMAC-SHA256-encoded signature.\n\n@throws InvalidKeyException\nIf the key is not a valid Base64-encoded string.", "docstring_tokens": ["Computes", "a", "signature", "for", "the", "specified", "string", "using", "the", "HMAC", "-", "SHA256", "algorithm", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/StorageCredentialsHelper.java#L66-L80", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/StorageCredentialsHelper.java", "func_name": "StorageCredentialsHelper.signTableRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Signs a request using the specified operation context under the Shared Key authentication scheme.\n\n@param request\nAn HttpURLConnection object that represents the request to sign.\n@param contentLength\nThe length of the content written to the output stream. If unknown, specify -1.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws InvalidKeyException\nIf the given key is invalid.\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Signs", "a", "request", "using", "the", "specified", "operation", "context", "under", "the", "Shared", "Key", "authentication", "scheme", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/StorageCredentialsHelper.java#L136-L153", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.getFirstOrNull", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the first message from a list of queue messages, if any.\n\n@param messages\nThe Iterable collection of {@link CloudQueueMessage} objects to get the first message\nfrom.\n\n@return The first {@link CloudQueueMessage} from the list of queue messages, or null if the list is\nempty.", "docstring_tokens": ["Gets", "the", "first", "message", "from", "a", "list", "of", "queue", "messages", "if", "any", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L67-L73", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.addMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a message to the back of the queue with the specified options.\n\n@param message\nA {@link CloudQueueMessage} object that specifies the message to add.\nThe message object is modified to include the message ID and pop receipt,\nand can be used in subsequent calls to updateMessage and deleteMessage.\n\n@param timeToLiveInSeconds\nThe maximum time to allow the message to be in the queue. A value of zero will set the time-to-live to\nthe service default value of seven days.\n\n@param initialVisibilityDelayInSeconds\nThe length of time during which the message will be invisible, starting when it is added to the queue,\nor 0 to make the message visible immediately. This value must be greater than or equal to zero and\nless than or equal to the time-to-live value.\n\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueueClient}).\n\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Adds", "a", "message", "to", "the", "back", "of", "the", "queue", "with", "the", "specified", "options", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L245-L269", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.clear", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Clears all messages from the queue, using the specified request options and operation context.\n\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueueClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Clears", "all", "messages", "from", "the", "queue", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L365-L376", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the queue, using the specified request options and operation context.\n\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueueClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Creates", "the", "queue", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L435-L446", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.createIfNotExists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the queue if it does not already exist, using the specified request options and operation context.\n\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueueClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return A value of true if the queue is created in the storage service, otherwise false\n.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Creates", "the", "queue", "if", "it", "does", "not", "already", "exist", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L518-L541", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.delete", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes the queue, using the specified request options and operation context.\n\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueueClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Deletes", "the", "queue", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L569-L580", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.deleteIfExists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes the queue if it exists, using the specified request options and operation context.\n\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueueClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return A value of true if the queue existed in the storage service and has been deleted, otherwise\nfalse.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Deletes", "the", "queue", "if", "it", "exists", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L645-L669", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.deleteMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes the specified message from the queue, using the specified request options and operation context.\n\n@param message\nA {@link CloudQueueMessage} object that specifies the message to delete.\n\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueueClient}).\n\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Deletes", "the", "specified", "message", "from", "the", "queue", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L704-L720", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.downloadAttributes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Downloads the queue's metadata and approximate message count value, using the specified request options and\noperation context.\n\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueue}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Downloads", "the", "queue", "s", "metadata", "and", "approximate", "message", "count", "value", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L785-L796", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.exists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a value that indicates whether the queue existse, using the specified request options and operation\ncontext.\n\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueueClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return true if the queue exists in the storage service, otherwise false.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Returns", "a", "value", "that", "indicates", "whether", "the", "queue", "existse", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L868-L871", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.peekMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Peeks a message from the queue, using the specified request options and operation context. A peek request\nretrieves a message from the front of the queue without changing its visibility.\n\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueueClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return An {@link CloudQueueMessage} object that represents the requested message from the queue.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Peeks", "a", "message", "from", "the", "queue", "using", "the", "specified", "request", "options", "and", "operation", "context", ".", "A", "peek", "request", "retrieves", "a", "message", "from", "the", "front", "of", "the", "queue", "without", "changing", "its", "visibility", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L1062-L1066", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.peekMessages", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Peeks a specified number of messages from the queue. A peek request retrieves messages from the front of the\nqueue without changing their visibility.\n\n@param numberOfMessages\nThe number of messages to retrieve.\n\n@return An enumerable collection of {@link CloudQueueMessage} objects that represents the requested messages from\nthe queue.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Peeks", "a", "specified", "number", "of", "messages", "from", "the", "queue", ".", "A", "peek", "request", "retrieves", "messages", "from", "the", "front", "of", "the", "queue", "without", "changing", "their", "visibility", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L1081-L1084", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.peekMessages", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Peeks a set of messages from the queue, using the specified request options and operation context. A peek request\nretrieves messages from the front of the queue without changing their visibility.\n\n@param numberOfMessages\nThe number of messages to retrieve.\n\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueueClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return An enumerable collection of {@link CloudQueueMessage} objects that represents the requested messages from\nthe queue.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Peeks", "a", "set", "of", "messages", "from", "the", "queue", "using", "the", "specified", "request", "options", "and", "operation", "context", ".", "A", "peek", "request", "retrieves", "messages", "from", "the", "front", "of", "the", "queue", "without", "changing", "their", "visibility", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L1108-L1122", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.retrieveMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves a message from the front of the queue, using the specified request options and operation context. This\noperation marks the retrieved message as invisible in the queue for the specified visibility timeout period.\n\n@param visibilityTimeoutInSeconds\nSpecifies the visibility timeout for the message, in seconds.\n\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueueClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return An {@link CloudQueueMessage} object that represents a message in this queue.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Retrieves", "a", "message", "from", "the", "front", "of", "the", "queue", "using", "the", "specified", "request", "options", "and", "operation", "context", ".", "This", "operation", "marks", "the", "retrieved", "message", "as", "invisible", "in", "the", "queue", "for", "the", "specified", "visibility", "timeout", "period", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L1202-L1206", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.retrieveMessages", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves the specified number of messages from the front of the queue using the default request options. This\noperation marks the retrieved messages as invisible in the queue for the default visibility timeout period.\n\n@param numberOfMessages\nThe number of messages to retrieve.\n\n@return An enumerable collection of {@link CloudQueueMessage} objects that represents the retrieved messages from\nthe queue.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Retrieves", "the", "specified", "number", "of", "messages", "from", "the", "front", "of", "the", "queue", "using", "the", "default", "request", "options", ".", "This", "operation", "marks", "the", "retrieved", "messages", "as", "invisible", "in", "the", "queue", "for", "the", "default", "visibility", "timeout", "period", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L1221-L1225", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.retrieveMessages", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves the specified number of messages from the front of the queue using the specified request options and\noperation context. This operation marks the retrieved messages as invisible in the queue for the default\nvisibility timeout period.\n\n@param numberOfMessages\nThe number of messages to retrieve.\n\n@param visibilityTimeoutInSeconds\nSpecifies the visibility timeout for the retrieved messages, in seconds.\n\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueueClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return An enumerable collection of {@link CloudQueueMessage} objects that represents the messages retrieved from\nthe queue.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Retrieves", "the", "specified", "number", "of", "messages", "from", "the", "front", "of", "the", "queue", "using", "the", "specified", "request", "options", "and", "operation", "context", ".", "This", "operation", "marks", "the", "retrieved", "messages", "as", "invisible", "in", "the", "queue", "for", "the", "default", "visibility", "timeout", "period", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L1253-L1271", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.updateMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Updates the specified message in the queue with a new visibility timeout value in seconds.\n\n@param message\nThe {@link CloudQueueMessage} to update in the queue.\n\n@param visibilityTimeoutInSeconds\nSpecifies the new visibility timeout for the message, in seconds.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Updates", "the", "specified", "message", "in", "the", "queue", "with", "a", "new", "visibility", "timeout", "value", "in", "seconds", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L1343-L1347", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.updateMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Updates a message in the queue, using the specified request options and operation context.\n\n@param message\nThe {@link CloudQueueMessage} to update in the queue.\n\n@param visibilityTimeoutInSeconds\nSpecifies the new visibility timeout for the message, in seconds.\n\n@param messageUpdateFields\nAn EnumSet of {@link MessageUpdateFields} values that specifies which parts of the\nmessage are to be updated.\n\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueueClient}).\n\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Updates", "a", "message", "in", "the", "queue", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L1375-L1396", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.uploadPermissions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Uploads the queue's permissions using the specified request options and operation context.\n\n@param permissions\nA {@link QueuePermissions} object that represents the permissions to upload.\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueueClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Uploads", "the", "queue", "s", "permissions", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L1579-L1591", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.downloadPermissions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Downloads the permissions settings for the queue using the specified request options and operation context.\n\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudQueueClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return A {@link QueuePermissions} object that represents the container's permissions.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Downloads", "the", "permissions", "settings", "for", "the", "queue", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L1682-L1694", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java", "func_name": "CloudQueue.getTransformedAddress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the transformed URI for the resource if the given credentials require transformation.\n\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return A java.net.URI object that represents the transformed URI.\n\n@throws IllegalArgumentException\nIf the URI is not absolute.\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException\nIf the resource URI is invalid.", "docstring_tokens": ["Returns", "the", "transformed", "URI", "for", "the", "resource", "if", "the", "given", "credentials", "require", "transformation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueue.java#L1843-L1846", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/CloudAnalyticsClient.java", "func_name": "CloudAnalyticsClient.getHourMetricsTable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the hour metrics table for a specific storage service.\n\n@param service\nA {@link StorageService} enumeration value that indicates which storage service to use.\n@param location\nA {@link StorageLocation} enumeration value that indicates which storage location to use.\n@return\nThe {@link CloudTable} object for the storage service.\n@throws URISyntaxException\n@throws StorageException", "docstring_tokens": ["Gets", "the", "hour", "metrics", "table", "for", "a", "specific", "storage", "service", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/CloudAnalyticsClient.java#L126-L177", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/CloudAnalyticsClient.java", "func_name": "CloudAnalyticsClient.getMinuteMetricsTable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the minute metrics table for a specific storage service.\n\n@param service\nA {@link StorageService} enumeration value that indicates which storage service to use.\n@param location\nA {@link StorageLocation} enumeration value that indicates which storage location to use.\n@return\nThe CloudTable object for the storage service.\n@throws URISyntaxException\n@throws StorageException", "docstring_tokens": ["Gets", "the", "minute", "metrics", "table", "for", "a", "specific", "storage", "service", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/CloudAnalyticsClient.java#L205-L252", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueueMessage.java", "func_name": "CloudQueueMessage.getMessageContentAsByte", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the content of the message as a byte array.\n\n@return A byte array which contains the content of the message.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Gets", "the", "content", "of", "the", "message", "as", "a", "byte", "array", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueueMessage.java#L144-L160", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueueMessage.java", "func_name": "CloudQueueMessage.getMessageContentAsString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the content of the message as a string.\n\n@return A String which contains the content of the message.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Gets", "the", "content", "of", "the", "message", "as", "a", "string", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueueMessage.java#L170-L186", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileListHandler.java", "func_name": "FileListHandler.getFileAndDirectoryList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse and return the response.\n\n@param stream\n@param directory\n@return\n@throws ParserConfigurationException\n@throws SAXException\n@throws IOException", "docstring_tokens": ["Parse", "and", "return", "the", "response", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileListHandler.java#L66-L73", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableRequest.java", "func_name": "TableRequest.applyContinuationToQueryBuilder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Adds continuation token values to the specified query builder, if set.\n\n@param builder\nThe {@link UriQueryBuilder} object to apply the continuation token properties to.\n@param continuationToken\nThe {@link ResultContinuation} object containing the continuation token values to apply to the query\nbuilder. Specify null if no continuation token values are set.\n\n@throws StorageException\nif an error occurs in accessing the query builder or continuation token.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Adds", "continuation", "token", "values", "to", "the", "specified", "query", "builder", "if", "set", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableRequest.java#L48-L63", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableRequest.java", "func_name": "TableRequest.merge", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Constructs an HttpURLConnection to perform a merge operation.\n\n@param rootUri\nA java.net.URI containing an absolute URI to the resource.\n@param tableOptions\nA {@link TableRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudTableClient}.\n@param queryBuilder\nThe {@link UriQueryBuilder} for the operation.\n@param opContext\nAn {@link OperationContext} object for tracking the current operation. Specify null to\nsafely ignore operation context.\n@param tableName\nThe name of the table.\n@param identity\nThe identity of the entity. The resulting request will be formatted as /tableName(identity) if not\nnull or empty.\n@param eTag\nThe etag of the entity.\n@return\nAn HttpURLConnection to use to perform the operation.\n\n@throws IOException\nif there is an error opening the connection.\n@throws URISyntaxException\nif the resource URI is invalid.\n@throws StorageException\nif a storage service error occurred during the operation.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Constructs", "an", "HttpURLConnection", "to", "perform", "a", "merge", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableRequest.java#L306-L314", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableRequest.java", "func_name": "TableRequest.query", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Constructs an HttpURLConnection to perform a single entity query operation.\n\n@param rootUri\nA java.net.URI containing an absolute URI to the resource.\n@param tableOptions\nA {@link TableRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudTableClient}.\n@param queryBuilder\nThe {@link UriQueryBuilder} for the operation.\n@param opContext\nAn {@link OperationContext} object for tracking the current operation. Specify null to\nsafely ignore operation context.\n@param tableName\nThe name of the table.\n@param identity\nThe identity of the entity. The resulting request will be formatted as /tableName(identity) if not\nnull or empty.\n@return\nAn HttpURLConnection to use to perform the operation.\n\n@throws IOException\nif there is an error opening the connection.\n@throws URISyntaxException\nif the resource URI is invalid.\n@throws StorageException\nif a storage service error occurred during the operation.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Constructs", "an", "HttpURLConnection", "to", "perform", "a", "single", "entity", "query", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableRequest.java#L345-L358", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableRequest.java", "func_name": "TableRequest.update", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Constructs an HttpURLConnection to perform an update operation.\n\n@param rootUri\nA java.net.URI containing an absolute URI to the resource.\n@param tableOptions\nA {@link TableRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudTableClient}.\n@param queryBuilder\nThe {@link UriQueryBuilder} for the operation.\n@param opContext\nAn {@link OperationContext} object for tracking the current operation. Specify null to\nsafely ignore operation context.\n@param tableName\nThe name of the table.\n@param identity\nA String representing the identity of the entity. The resulting request will be formatted\nusing /tableName(identity) if identity is not >code>null or empty.\n@param eTag\nThe etag of the entity.\n@return\nAn HttpURLConnection to use to perform the operation.\n\n@throws IOException\nif there is an error opening the connection.\n@throws URISyntaxException\nif the resource URI is invalid.\n@throws StorageException\nif a storage service error occurred during the operation.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Constructs", "an", "HttpURLConnection", "to", "perform", "an", "update", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableRequest.java#L391-L399", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableRequest.java", "func_name": "TableRequest.setAcl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the ACL for the table. Sign with length of aclBytes.\n\n@param rootUri\nA java.net.URI containing an absolute URI to the resource.\n@param tableOptions\nA {@link TableRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudTableClient}.\n@param opContext\nAn {@link OperationContext} object for tracking the current operation. Specify null to\nsafely ignore operation context.\n\n@return a HttpURLConnection configured for the operation.\n@throws StorageException", "docstring_tokens": ["Sets", "the", "ACL", "for", "the", "table", ".", "Sign", "with", "length", "of", "aclBytes", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableRequest.java#L417-L429", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/ServicePropertiesSerializer.java", "func_name": "ServicePropertiesSerializer.serializeToByteArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the contents of the ServiceProperties to the stream in xml format.\n\n@return a byte array of the content to write to the stream.\n@throws IOException\nif there is an error writing the service properties.\n@throws IllegalStateException\nif there is an error writing the service properties.\n@throws IllegalArgumentException\nif there is an error writing the service properties.", "docstring_tokens": ["Writes", "the", "contents", "of", "the", "ServiceProperties", "to", "the", "stream", "in", "xml", "format", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/ServicePropertiesSerializer.java#L42-L85", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/ServicePropertiesSerializer.java", "func_name": "ServicePropertiesSerializer.writeRetentionPolicy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the retention policy to the XMLStreamWriter.\n\n@param xmlw\nthe XMLStreamWriter to write to.\n@param val\nthe nullable Integer indicating if the retention policy is enabled, and how long\n@throws IOException\nif there is an error writing the service properties.\n@throws IllegalStateException\nif there is an error writing the service properties.\n@throws IllegalArgumentException\nif there is an error writing the service properties.", "docstring_tokens": ["Writes", "the", "retention", "policy", "to", "the", "XMLStreamWriter", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/ServicePropertiesSerializer.java#L101-L116", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/ServicePropertiesSerializer.java", "func_name": "ServicePropertiesSerializer.writeCorsProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the given CORS properties to the XMLStreamWriter.\n\n@param xmlw\nthe XMLStreamWriter to write to.\n@param cors\nthe CORS Properties to be written.\n@throws IOException\nif there is an error writing the service properties.\n@throws IllegalStateException\nif there is an error writing the service properties.\n@throws IllegalArgumentException\nif there is an error writing the service properties.", "docstring_tokens": ["Writes", "the", "given", "CORS", "properties", "to", "the", "XMLStreamWriter", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/ServicePropertiesSerializer.java#L132-L167", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/ServicePropertiesSerializer.java", "func_name": "ServicePropertiesSerializer.writeMetricsProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the given metrics properties to the XMLStreamWriter.\n\n@param xmlw\nthe XMLStreamWriter to write to.\n@param metrics\nthe metrics properties to be written.\n@param metricsName\nthe type of metrics properties to be written (Hour or Minute)\n@throws IOException\nif there is an error writing the service properties.\n@throws IllegalStateException\nif there is an error writing the service properties.\n@throws IllegalArgumentException\nif there is an error writing the service properties.", "docstring_tokens": ["Writes", "the", "given", "metrics", "properties", "to", "the", "XMLStreamWriter", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/ServicePropertiesSerializer.java#L185-L210", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/ServicePropertiesSerializer.java", "func_name": "ServicePropertiesSerializer.writeLoggingProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the given logging properties to the XMLStreamWriter.\n\n@param xmlw\nthe XMLStreamWriter to write to.\n@param cors\nthe logging properties to be written.\n@throws IOException\nif there is an error writing the service properties.\n@throws IllegalStateException\nif there is an error writing the service properties.\n@throws IllegalArgumentException\nif there is an error writing the service properties.", "docstring_tokens": ["Writes", "the", "given", "logging", "properties", "to", "the", "XMLStreamWriter", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/ServicePropertiesSerializer.java#L226-L253", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.abortCopy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates a web request to abort a copy operation.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nThe access condition to apply to the request. Only lease conditions are supported for this operation.\n@param copyId\nA String object that identifying the copy operation.\n@return a HttpURLConnection configured for the operation.\n@throws StorageException\nAn exception representing any error which occurred during the operation.\n@throws IllegalArgumentException\n@throws IOException\n@throws URISyntaxException", "docstring_tokens": ["Generates", "a", "web", "request", "to", "abort", "a", "copy", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L68-L91", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.addShareSnapshot", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the share snapshot if present.\nOnly for listing files and directories which requires a different query param.\n\n@param builder\na query builder.\n@param snapshotVersion\nthe share snapshot version to the query builder.\n@throws StorageException", "docstring_tokens": ["Adds", "the", "share", "snapshot", "if", "present", ".", "Only", "for", "listing", "files", "and", "directories", "which", "requires", "a", "different", "query", "param", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L134-L139", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.copyFrom", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a request to copy a file, Sign with 0 length.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param source\nThe canonical path to the source file,\nin the form ////.\n@param sourceAccessConditionType\nA type of condition to check on the source file.\n@param sourceAccessConditionValue\nThe value of the condition to check on the source file\n@return a HttpURLConnection configured for the operation.\n@throws StorageException\nan exception representing any error which occurred during the operation.\n@throws IllegalArgumentException\n@throws IOException\n@throws URISyntaxException", "docstring_tokens": ["Creates", "a", "request", "to", "copy", "a", "file", "Sign", "with", "0", "length", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L168-L190", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.createShare", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to create a new share. Sign with 0 length.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param properties\nThe properties to set for the share.\n@return a HttpURLConnection configured for the operation.\n@throws StorageException\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "create", "a", "new", "share", ".", "Sign", "with", "0", "length", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L225-L232", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.deleteShare", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to delete the share and all of the directories and files within it. Sign with no length\nspecified.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the share.\n@return a HttpURLConnection configured for the operation.\n@throws StorageException\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "delete", "the", "share", "and", "all", "of", "the", "directories", "and", "files", "within", "it", ".", "Sign", "with", "no", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L290-L313", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.getAcl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to return the ACL for this share. Sign with no length specified.\n\n@param uri\nThe absolute URI to the share.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the share.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@return a HttpURLConnection configured for the operation.\n@throws StorageException", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "return", "the", "ACL", "for", "this", "share", ".", "Sign", "with", "no", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L333-L348", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.getFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a HttpURLConnection to download the file, Sign with no length specified.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the file.\n@param snapshotVersion\nThe snapshot version, if the share is a snapshot.\n@param offset\nThe offset at which to begin returning content.\n@param count\nThe number of bytes to return.\n@param requestRangeContentMD5\nIf set to true, request an MD5 header for the specified range.\n@return a HttpURLConnection to use to perform the operation.\n@throws IOException\nif there is an error opening the connection\n@throws URISyntaxException\nif the resource URI is invalid\n@throws StorageException\nan exception representing any error which occurred during the operation.\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "HttpURLConnection", "to", "download", "the", "file", "Sign", "with", "no", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L382-L419", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.getFileProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a HttpURLConnection to return the file's system properties, Sign with no length specified.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the file.\n@return a HttpURLConnection to use to perform the operation.\n@param snapshotVersion\nthe snapshot version to the query builder.\n@throws IOException\nif there is an error opening the connection\n@throws URISyntaxException\nif the resource URI is invalid\n@throws StorageException\nan exception representing any error which occurred during the operation.\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "HttpURLConnection", "to", "return", "the", "file", "s", "system", "properties", "Sign", "with", "no", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L447-L452", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.getFileRanges", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a HttpURLConnection to return a list of the file's file ranges. Sign with no length specified.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the file.\n@return a HttpURLConnection to use to perform the operation.\n@throws IOException\nif there is an error opening the connection\n@throws URISyntaxException\nif the resource URI is invalid\n@throws StorageException\nan exception representing any error which occurred during the operation.\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "HttpURLConnection", "to", "return", "a", "list", "of", "the", "file", "s", "file", "ranges", ".", "Sign", "with", "no", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L478-L494", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.getShareProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to return the user-defined metadata for this share. Sign with no length specified.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the share.\n@param snapshotVersion\nthe snapshot version to the query builder.\n@return a HttpURLConnection configured for the operation.\n@throws StorageException", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "return", "the", "user", "-", "defined", "metadata", "for", "this", "share", ".", "Sign", "with", "no", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L516-L522", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.getShareStats", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to return the stats, such as usage, for this share. Sign with no length specified.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param options\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return a HttpURLConnection configured for the operation.\n@throws StorageException", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "return", "the", "stats", "such", "as", "usage", "for", "this", "share", ".", "Sign", "with", "no", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L541-L551", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.getShareUriQueryBuilder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the share Uri query builder.\n\nA UriQueryBuilder for the share.\n\n@throws StorageException", "docstring_tokens": ["Gets", "the", "share", "Uri", "query", "builder", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L560-L569", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.getProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to return the user-defined metadata. Sign with no length specified.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the share.\n@param snapshotVersion\nthe snapshot version to the query builder.\n@return a HttpURLConnection configured for the operation.\n@throws StorageException", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "return", "the", "user", "-", "defined", "metadata", ".", "Sign", "with", "no", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L609-L621", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.listShares", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a request to return a listing of all shares in this storage account. Sign with no length\nspecified.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param listingContext\nA set of parameters for the listing operation.\n@param detailsIncluded\nA java.util.EnumSet object that contains {@link ShareListingDetails} values that indicate\nwhether share snapshots and/or metadata will be returned.\n@return a HttpURLConnection configured for the operation.\n@throws IOException\n@throws URISyntaxException\n@throws StorageException\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "request", "to", "return", "a", "listing", "of", "all", "shares", "in", "this", "storage", "account", ".", "Sign", "with", "no", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L648-L679", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.setShareMetadata", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to set user-defined metadata for the share, Sign with 0 Length.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the share.\n@return a HttpURLConnection configured for the operation.\n@throws StorageException", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "set", "user", "-", "defined", "metadata", "for", "the", "share", "Sign", "with", "0", "Length", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L699-L704", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.setDirectoryMetadata", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to set user-defined metadata for the directory, Sign with 0 Length.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the directory.\n@return a HttpURLConnection configured for the operation.\n@throws IOException\nif there is an error opening the connection\n@throws URISyntaxException\nif the resource URI is invalid\n@throws StorageException\nan exception representing any error which occurred during the operation.", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "set", "user", "-", "defined", "metadata", "for", "the", "directory", "Sign", "with", "0", "Length", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L729-L734", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.createDirectory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to create a new directory. Sign with 0 length.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@return a HttpURLConnection configured for the operation.\n@throws StorageException\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "create", "a", "new", "directory", ".", "Sign", "with", "0", "length", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L753-L757", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.deleteDirectory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to delete the directory and all of the directories and files within it. Sign with no\nlength\nspecified.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the directory.\n@return a HttpURLConnection configured for the operation.\n@throws StorageException\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "delete", "the", "directory", "and", "all", "of", "the", "directories", "and", "files", "within", "it", ".", "Sign", "with", "no", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L780-L790", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.getDirectoryProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to return the properties for this directory. Sign with no length specified.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the directory.\n@param snapshotVersion\nthe snapshot version to the query builder.\n@return a HttpURLConnection configured for the operation.\n@throws StorageException", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "return", "the", "properties", "for", "this", "directory", ".", "Sign", "with", "no", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L812-L817", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.listFilesAndDirectories", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a request to return a listing of all files and directories in this storage account. Sign with no\nlength specified.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param listingContext\nA set of parameters for the listing operation.\n@param snapshotVersion\nthe snapshot version to the query builder.\n@return a HttpURLConnection configured for the operation.\n@throws IOException\n@throws URISyntaxException\n@throws StorageException\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "request", "to", "return", "a", "listing", "of", "all", "files", "and", "directories", "in", "this", "storage", "account", ".", "Sign", "with", "no", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L843-L870", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.putFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a HttpURLConnection to upload a file.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the file.\n@param properties\nThe properties to set for the file.\n@param fileSize\nThe size of the file.\n@return a HttpURLConnection to use to perform the operation.\n@throws IOException\nif there is an error opening the connection\n@throws URISyntaxException\nif the resource URI is invalid\n@throws StorageException\nan exception representing any error which occurred during the operation.\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "HttpURLConnection", "to", "upload", "a", "file", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L900-L924", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.putRange", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a HttpURLConnection to upload a file range. Sign with file size for update, or 0 for clear.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the file.\n@param range\na {link @FileRange} representing the file range\n@param operationType\na {link @FileRangeOperationType} enumeration value representing the file range operation type.\n\n@return a HttpURLConnection to use to perform the operation.\n@throws IOException\nif there is an error opening the connection\n@throws URISyntaxException\nif the resource URI is invalid\n@throws StorageException\nan exception representing any error which occurred during the operation.\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "HttpURLConnection", "to", "upload", "a", "file", "range", ".", "Sign", "with", "file", "size", "for", "update", "or", "0", "for", "clear", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L955-L979", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.resize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a HttpURLConnection to set the file's size, Sign with zero length specified.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the file.\n@param newFileSize\nThe new file size. Set this parameter to null to keep the existing file size.\n@return a HttpURLConnection to use to perform the operation.\n@throws IOException\nif there is an error opening the connection\n@throws URISyntaxException\nif the resource URI is invalid\n@throws StorageException\nan exception representing any error which occurred during the operation.\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "HttpURLConnection", "to", "set", "the", "file", "s", "size", "Sign", "with", "zero", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L1056-L1066", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.setMetadata", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a HttpURLConnection to set metadata, Sign with 0 length.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions.\n@return a HttpURLConnection to use to perform the operation.\n@throws IOException\nif there is an error opening the connection\n@throws URISyntaxException\nif the resource URI is invalid\n@throws StorageException\nan exception representing any error which occurred during the operation.\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "HttpURLConnection", "to", "set", "metadata", "Sign", "with", "0", "length", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L1128-L1138", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.setFileMetadata", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a HttpURLConnection to set the file's metadata, Sign with 0 length.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the file.\n@return a HttpURLConnection to use to perform the operation.\n@throws IOException\nif there is an error opening the connection\n@throws URISyntaxException\nif the resource URI is invalid\n@throws StorageException\nan exception representing any error which occurred during the operation.\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "HttpURLConnection", "to", "set", "the", "file", "s", "metadata", "Sign", "with", "0", "length", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L1164-L1168", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.snapshotShare", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a HttpURLConnection to create a snapshot of the share.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the share.\n@return a HttpURLConnection to use to perform the operation.\n@throws IOException\nif there is an error opening the connection\n@throws URISyntaxException\nif the resource URI is invalid\n@throws StorageException\nan exception representing any error which occurred during the operation.\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "HttpURLConnection", "to", "create", "a", "snapshot", "of", "the", "share", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L1194-L1211", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "func_name": "FileRequest.setFileProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a HttpURLConnection to set the file's properties, Sign with zero length specified.\n\n@param uri\nA java.net.URI object that specifies the absolute URI.\n@param fileOptions\nA {@link FileRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudFileClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the file.\n@param properties\nThe properties to upload.\n@return a HttpURLConnection to use to perform the operation.\n@throws IOException\nif there is an error opening the connection\n@throws URISyntaxException\nif the resource URI is invalid\n@throws StorageException\nan exception representing any error which occurred during the operation.\n@throws IllegalArgumentException", "docstring_tokens": ["Constructs", "a", "HttpURLConnection", "to", "set", "the", "file", "s", "properties", "Sign", "with", "zero", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java#L1239-L1260", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileInputStream.java", "func_name": "FileInputStream.close", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Closes this input stream and releases any system resources associated with the stream.\n\n@throws IOException\nIf an I/O error occurs.", "docstring_tokens": ["Closes", "this", "input", "stream", "and", "releases", "any", "system", "resources", "associated", "with", "the", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileInputStream.java#L221-L226", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileInputStream.java", "func_name": "FileInputStream.dispatchRead", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Dispatches a read operation of N bytes.\n\n@param readLength\nAn int which represents the number of bytes to read.\n\n@throws IOException\nIf an I/O error occurs.", "docstring_tokens": ["Dispatches", "a", "read", "operation", "of", "N", "bytes", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileInputStream.java#L237-L262", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileInputStream.java", "func_name": "FileInputStream.read", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads the next byte of data from the input stream. The value byte is returned as an int in the range 0 to 255. If\nno byte is available because the end of the stream has been reached, the value -1 is returned. This method blocks\nuntil input data is available, the end of the stream is detected, or an exception is thrown.\n\n@return An int which represents the total number of bytes read into the buffer, or -1 if\nthere is no more data because the end of the stream has been reached.\n\n@throws IOException\nIf an I/O error occurs.", "docstring_tokens": ["Reads", "the", "next", "byte", "of", "data", "from", "the", "input", "stream", ".", "The", "value", "byte", "is", "returned", "as", "an", "int", "in", "the", "range", "0", "to", "255", ".", "If", "no", "byte", "is", "available", "because", "the", "end", "of", "the", "stream", "has", "been", "reached", "the", "value", "-", "1", "is", "returned", ".", "This", "method", "blocks", "until", "input", "data", "is", "available", "the", "end", "of", "the", "stream", "is", "detected", "or", "an", "exception", "is", "thrown", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileInputStream.java#L302-L317", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileInputStream.java", "func_name": "FileInputStream.readInternal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Performs internal read to the given byte buffer.\n\n@param b\nA byte array which represents the buffer into which the data is read.\n@param off\nAn int which represents the start offset in the byte array b at\nwhich the data is written.\n@param len\nAn int which represents the maximum number of bytes to read.\n\n@return An int which represents the total number of bytes read into the buffer, or -1 if\nthere is no more data because the end of the stream has been reached.\n\n@throws IOException\nIf the first byte cannot be read for any reason other than end of file, or if the input stream has\nbeen closed, or if some other I/O error occurs.", "docstring_tokens": ["Performs", "internal", "read", "to", "the", "given", "byte", "buffer", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileInputStream.java#L426-L472", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileInputStream.java", "func_name": "FileInputStream.reset", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Repositions this stream to the position at the time the mark method was last called on this input stream. Note\nrepositioning the file read stream will disable file MD5 checking.\n\n@throws IOException\nIf this stream has not been marked or if the mark has been invalidated.", "docstring_tokens": ["Repositions", "this", "stream", "to", "the", "position", "at", "the", "time", "the", "mark", "method", "was", "last", "called", "on", "this", "input", "stream", ".", "Note", "repositioning", "the", "file", "read", "stream", "will", "disable", "file", "MD5", "checking", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileInputStream.java#L492-L501", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileInputStream.java", "func_name": "FileInputStream.skip", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Skips over and discards n bytes of data from this input stream. The skip method may, for a variety of reasons,\nend up skipping over some smaller number of bytes, possibly 0. This may result from any of a number of\nconditions; reaching end of file before n bytes have been skipped is only one possibility. The actual number of\nbytes skipped is returned. If n is negative, no bytes are skipped.\n\nNote repositioning the file read stream will disable file MD5 checking.\n\n@param n\nA long which represents the number of bytes to skip.", "docstring_tokens": ["Skips", "over", "and", "discards", "n", "bytes", "of", "data", "from", "this", "input", "stream", ".", "The", "skip", "method", "may", "for", "a", "variety", "of", "reasons", "end", "up", "skipping", "over", "some", "smaller", "number", "of", "bytes", "possibly", "0", ".", "This", "may", "result", "from", "any", "of", "a", "number", "of", "conditions", ";", "reaching", "end", "of", "file", "before", "n", "bytes", "have", "been", "skipped", "is", "only", "one", "possibility", ".", "The", "actual", "number", "of", "bytes", "skipped", "is", "returned", ".", "If", "n", "is", "negative", "no", "bytes", "are", "skipped", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileInputStream.java#L514-L528", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java", "func_name": "MainActivity.runBlobGettingStartedSample", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs the blob getting started sample.", "docstring_tokens": ["Runs", "the", "blob", "getting", "started", "sample", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java#L72-L75", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java", "func_name": "MainActivity.runQueueGettingStartedSample", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs the queue getting started sample.", "docstring_tokens": ["Runs", "the", "queue", "getting", "started", "sample", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java#L80-L83", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java", "func_name": "MainActivity.runTableGettingStartedSample", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs the table getting started sample.", "docstring_tokens": ["Runs", "the", "table", "getting", "started", "sample", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java#L88-L91", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java", "func_name": "MainActivity.runTablePayloadFormatSample", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs the table payload format sample.", "docstring_tokens": ["Runs", "the", "table", "payload", "format", "sample", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java#L96-L99", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java", "func_name": "MainActivity.outputText", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prints the specified text value to the view and to LogCat.\n\n@param view\nThe view to print to.\n@param value\nThe value to print.", "docstring_tokens": ["Prints", "the", "specified", "text", "value", "to", "the", "view", "and", "to", "LogCat", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java#L126-L134", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java", "func_name": "MainActivity.printException", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prints out the exception information .", "docstring_tokens": ["Prints", "out", "the", "exception", "information", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java#L154-L163", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java", "func_name": "MainActivity.printSampleStartInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prints out the sample start information .", "docstring_tokens": ["Prints", "out", "the", "sample", "start", "information", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java#L168-L174", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java", "func_name": "MainActivity.printSampleCompleteInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prints out the sample complete information .", "docstring_tokens": ["Prints", "out", "the", "sample", "complete", "information", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/MainActivity.java#L179-L183", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/TableCanonicalizer.java", "func_name": "TableCanonicalizer.canonicalize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a canonicalized string for signing a request.\n\n@param conn\nthe HttpURLConnection to canonicalize\n@param accountName\nthe account name associated with the request\n@param contentLength\nthe length of the content written to the outputstream in bytes, -1 if unknown\n@return a canonicalized string.\n@throws StorageException", "docstring_tokens": ["Constructs", "a", "canonicalized", "string", "for", "signing", "a", "request", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/TableCanonicalizer.java#L41-L52", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/OperationContext.java", "func_name": "OperationContext.getLastResult", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the last request result encountered for the operation.\n\n@return A {@link RequestResult} object which represents the last request result.", "docstring_tokens": ["Gets", "the", "last", "request", "result", "encountered", "for", "the", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/OperationContext.java#L203-L210", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogBlobIterator.java", "func_name": "LogBlobIterator.isCorrectLogType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validates that the log given is of the correct log type.\n\n@param current\nthe current log\n@return whether or not the log is of the correct type.", "docstring_tokens": ["Validates", "that", "the", "log", "given", "is", "of", "the", "correct", "log", "type", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogBlobIterator.java#L241-L262", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogBlobIterator.java", "func_name": "LogBlobIterator.updateIterator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Makes the next listBlob call if necessary and updates the currentIterator.\n\n@throws StorageException\n@throws URISyntaxException", "docstring_tokens": ["Makes", "the", "next", "listBlob", "call", "if", "necessary", "and", "updates", "the", "currentIterator", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogBlobIterator.java#L270-L292", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.startCopy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Requests the service to start copying a blob's contents, properties, and metadata to a new file.\n\n@param sourceBlob\nA CloudBlob object that represents the source blob to copy.\n\n@return A String which represents the copy ID associated with the copy operation.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Requests", "the", "service", "to", "start", "copying", "a", "blob", "s", "contents", "properties", "and", "metadata", "to", "a", "new", "file", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L325-L329", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.startCopy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Requests the service to start copying a file's contents, properties, and metadata to a new file,\nusing the specified access conditions, lease ID, request options, and operation context.\n\n@param sourceBlob\nA CloudBlob object that represents the source blob to copy.\n@param sourceAccessCondition\nAn {@link AccessCondition} object that represents the access conditions for the source blob.\n@param destinationAccessCondition\nAn {@link AccessCondition} object that represents the access conditions for the destination file.\n@param options\nA {@link BlobRequestOptions} object that specifies any additional options for the request.\nSpecifying null will use the default request options from the associated\nservice client ({@link CloudBlobClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation.\nThis object is used to track requests to the storage service, and to provide additional\nruntime information about the operation.\n\n@return A String which represents the copy ID associated with the copy operation.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Requests", "the", "service", "to", "start", "copying", "a", "file", "s", "contents", "properties", "and", "metadata", "to", "a", "new", "file", "using", "the", "specified", "access", "conditions", "lease", "ID", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L357-L370", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.startCopy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Requests the service to start copying an Azure File's contents, properties, and metadata to a new Azure File.\n\n@param sourceFile\nA CloudFile object that represents the source Azure File to copy.\n\n@return A String which represents the copy ID associated with the copy operation.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Requests", "the", "service", "to", "start", "copying", "an", "Azure", "File", "s", "contents", "properties", "and", "metadata", "to", "a", "new", "Azure", "File", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L384-L388", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.startCopy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Requests the service to start copying an Azure File's contents, properties, and metadata to a new Azure File,\nusing the specified access conditions, lease ID, request options, and operation context.\n\n@param sourceFile\nA CloudFile object that represents the source file to copy.\n@param sourceAccessCondition\nAn {@link AccessCondition} object that represents the access conditions for the source.\n@param destinationAccessCondition\nAn {@link AccessCondition} object that represents the access conditions for the destination.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request.\nSpecifying null will use the default request options from the associated\nservice client ({@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation.\nThis object is used to track requests to the storage service, and to provide additional\nruntime information about the operation.\n\n@return A String which represents the copy ID associated with the copy operation.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Requests", "the", "service", "to", "start", "copying", "an", "Azure", "File", "s", "contents", "properties", "and", "metadata", "to", "a", "new", "Azure", "File", "using", "the", "specified", "access", "conditions", "lease", "ID", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L416-L424", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.startCopy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Requests the service to start copying a URI's contents, properties, and metadata to a new Azure File.\n\n@param source\nThe source's java.net.URI.\n\n@return A String which represents the copy ID associated with the copy operation.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Requests", "the", "service", "to", "start", "copying", "a", "URI", "s", "contents", "properties", "and", "metadata", "to", "a", "new", "Azure", "File", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L438-L442", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.startCopy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Requests the service to start copying a URI's contents, properties, and metadata to a new Azure File,\nusing the specified access conditions, lease ID, request options, and operation context.\n\n@param source\nThe source's java.net.URI.\n@param sourceAccessCondition\nAn {@link AccessCondition} object that represents the access conditions for the source.\n@param destinationAccessCondition\nAn {@link AccessCondition} object that represents the access conditions for the destination.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request.\nSpecifying null will use the default request options from the associated\nservice client ({@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation.\nThis object is used to track requests to the storage service, and to provide additional\nruntime information about the operation.\n\n@return A String which represents the copy ID associated with the copy operation.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Requests", "the", "service", "to", "start", "copying", "a", "URI", "s", "contents", "properties", "and", "metadata", "to", "a", "new", "Azure", "File", "using", "the", "specified", "access", "conditions", "lease", "ID", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L470-L486", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a file. If the file already exists, this will replace it.\n\n@param size\nA long which represents the size, in bytes, of the file.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Creates", "a", "file", ".", "If", "the", "file", "already", "exists", "this", "will", "replace", "it", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L607-L610", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a file using the specified access condition, request options and operation context. If the file already\nexists, this will replace it.\n\n@param size\nA long which represents the size, in bytes, of the file.\n@param accessCondition\nAn {@link AccessCondition} object which represents the access conditions for the file.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object which represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Creates", "a", "file", "using", "the", "specified", "access", "condition", "request", "options", "and", "operation", "context", ".", "If", "the", "file", "already", "exists", "this", "will", "replace", "it", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L633-L647", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.deleteEmptyFileOnException", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper to delete an empty file in the case of an exception\n\n@param outputStream\n@param path\n@throws IOException", "docstring_tokens": ["Helper", "to", "delete", "an", "empty", "file", "in", "the", "case", "of", "an", "exception"], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L1174-L1183", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.downloadText", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Downloads a file to a string using the specified encoding.\n\n@param charsetName\nA String which represents the name of the charset to use to encode the content.\nIf null, the platform's default encoding is used.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the file.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return A String which represents the file's contents.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws IOException", "docstring_tokens": ["Downloads", "a", "file", "to", "a", "string", "using", "the", "specified", "encoding", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L1222-L1228", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.downloadFileRanges", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a collection of file ranges and their starting and ending byte offsets using the specified request\noptions and operation context.\n\n@param accessCondition\nAn {@link AccessCondition} object which represents the access conditions for the file.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object which represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return An ArrayList object which represents the set of file ranges and their starting\nand ending byte offsets.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Returns", "a", "collection", "of", "file", "ranges", "and", "their", "starting", "and", "ending", "byte", "offsets", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L1267-L1278", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.openWriteExisting", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Opens an output stream object to write data to the file. The file must already exist and any existing data may\nbe overwritten.\n\n@return A {@link FileOutputStream} object used to write data to the file.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Opens", "an", "output", "stream", "object", "to", "write", "data", "to", "the", "file", ".", "The", "file", "must", "already", "exist", "and", "any", "existing", "data", "may", "be", "overwritten", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L1857-L1861", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.openWriteExisting", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Opens an output stream object to write data to the file, using specified request options and\noperation context. The file must already exist and any existing data may be overwritten.\n\n@param accessCondition\nAn {@link AccessCondition} object which represents the access conditions for the file.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object which represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return A {@link FileOutputStream} object used to write data to the file.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Opens", "an", "output", "stream", "object", "to", "write", "data", "to", "the", "file", "using", "specified", "request", "options", "and", "operation", "context", ".", "The", "file", "must", "already", "exist", "and", "any", "existing", "data", "may", "be", "overwritten", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L1884-L1888", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.openOutputStreamInternal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Opens an output stream object to write data to the file, using the specified lease ID, request options and\noperation context. If the length is specified, a new file will be created with the length specified.\nOtherwise, the file must already exist and a stream of its current length will be opened.\n\n@param length\nA long which represents the length, in bytes, of the stream to create. This value must be\nnull if the file already exists.\n@param accessCondition\nAn {@link AccessCondition} object which represents the access conditions for the file.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object which represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return A {@link FileOutputStream} object used to write data to the file.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Opens", "an", "output", "stream", "object", "to", "write", "data", "to", "the", "file", "using", "the", "specified", "lease", "ID", "request", "options", "and", "operation", "context", ".", "If", "the", "length", "is", "specified", "a", "new", "file", "will", "be", "created", "with", "the", "length", "specified", ".", "Otherwise", "the", "file", "must", "already", "exist", "and", "a", "stream", "of", "its", "current", "length", "will", "be", "opened", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L1971-L1998", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.uploadFromFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Uploads a local file. If the file already exists on the service, it will be overwritten.\n\n@param path\nA String which represents the path to the file to be uploaded.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws IOException\n@throws URISyntaxException", "docstring_tokens": ["Uploads", "a", "local", "file", ".", "If", "the", "file", "already", "exists", "on", "the", "service", "it", "will", "be", "overwritten", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L2064-L2066", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.uploadFromFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Uploads a file from a local file. If the file already exists on the service, it will be overwritten.\n\n@param path\nA String which represents the path to the file to be uploaded.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the file.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws IOException\n@throws URISyntaxException", "docstring_tokens": ["Uploads", "a", "file", "from", "a", "local", "file", ".", "If", "the", "file", "already", "exists", "on", "the", "service", "it", "will", "be", "overwritten", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L2089-L2096", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.uploadText", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Uploads a file from a string using the platform's default encoding. If the file already exists on the service, it\nwill be overwritten.\n\n@param content\nA String which represents the content that will be uploaded to the file.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws IOException\n@throws URISyntaxException", "docstring_tokens": ["Uploads", "a", "file", "from", "a", "string", "using", "the", "platform", "s", "default", "encoding", ".", "If", "the", "file", "already", "exists", "on", "the", "service", "it", "will", "be", "overwritten", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L2110-L2112", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.uploadText", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Uploads a file from a string using the specified encoding. If the file already exists on the service, it will be\noverwritten.\n\n@param content\nA String which represents the content that will be uploaded to the file.\n@param charsetName\nA String which represents the name of the charset to use to encode the content.\nIf null, the platform's default encoding is used.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the file.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws IOException\n@throws URISyntaxException", "docstring_tokens": ["Uploads", "a", "file", "from", "a", "string", "using", "the", "specified", "encoding", ".", "If", "the", "file", "already", "exists", "on", "the", "service", "it", "will", "be", "overwritten", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L2139-L2143", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.uploadRange", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Uploads a range to a file.\n\n@param sourceStream\nAn {@link InputStream} object which represents the input stream to write to the file.\n@param offset\nA long which represents the offset, in number of bytes, at which to begin writing the\ndata.\n@param length\nA long which represents the length, in bytes, of the data to write.\n\n@throws IOException\nIf an I/O exception occurred.\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Uploads", "a", "range", "to", "a", "file", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L2162-L2166", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.uploadRange", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Uploads a range to a file using the specified lease ID, request options, and operation context.\n\n@param sourceStream\nAn {@link InputStream} object which represents the input stream to write to the file.\n@param offset\nA long which represents the offset, in number of bytes, at which to begin writing the\ndata.\n@param length\nA long which represents the length, in bytes, of the data to write.\n@param accessCondition\nAn {@link AccessCondition} object which represents the access conditions for the file.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object which represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws IOException\nIf an I/O exception occurred.\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Uploads", "a", "range", "to", "a", "file", "using", "the", "specified", "lease", "ID", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L2195-L2232", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.putRangeInternal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Used for both uploadRange and clearRange.\n\n@param range\nA {@link FileRange} object that specifies the file range.\n@param operationType\nA {@link FileRangeOperationType} enumeration value that specifies the operation type.\n@param data\nA byte array which represents the data to write.\n@param length\nA long which represents the number of bytes to write.\n@param md5\nA String which represents the MD5 hash for the data.\n@param accessCondition\nAn {@link AccessCondition} object which represents the access conditions for the file.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object which represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Used", "for", "both", "uploadRange", "and", "clearRange", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L2261-L2268", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.resize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resizes the file to the specified size.\n\n@param size\nA long which represents the size of the file, in bytes.\n@param accessCondition\nAn {@link AccessCondition} object which represents the access conditions for the file.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object which represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Resizes", "the", "file", "to", "the", "specified", "size", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L2543-L2556", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.upload", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Uploads the source stream data to the file. If the file already exists on the service, it will be overwritten.\n\n@param sourceStream\nAn {@link InputStream} object to read from.\n@param length\nA long which represents the length, in bytes, of the stream data. Must be non zero.\n\n@throws IOException\nIf an I/O exception occurred.\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Uploads", "the", "source", "stream", "data", "to", "the", "file", ".", "If", "the", "file", "already", "exists", "on", "the", "service", "it", "will", "be", "overwritten", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L2608-L2611", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.upload", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Uploads the source stream data to the file using the specified access condition, request options, and operation\ncontext. If the file already exists on the service, it will be overwritten.\n\n@param sourceStream\nAn {@link InputStream} object to read from.\n@param length\nA long which represents the length, in bytes, of the stream data. This must be greater than\nor equal to zero.\n@param accessCondition\nAn {@link AccessCondition} object which represents the access conditions for the file.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object which represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws IOException\nIf an I/O exception occurred.\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Uploads", "the", "source", "stream", "data", "to", "the", "file", "using", "the", "specified", "access", "condition", "request", "options", "and", "operation", "context", ".", "If", "the", "file", "already", "exists", "on", "the", "service", "it", "will", "be", "overwritten", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L2639-L2666", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.getParentNameFromURI", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves the parent name for a file URI.\n\n@param resourceAddress\nA {@link StorageUri} object which represents the resource URI.\n@param delimiter\nA String which specifies the directory delimiter to use.\n@param usePathStyleUris\nA Boolean which specifies whether path style URIs are used.\n@param share\nA {@link CloudFileShare} object which represents the file share.\n\n@return A String which represents the parent address for a file URI.\n\n@throws URISyntaxException", "docstring_tokens": ["Retrieves", "the", "parent", "name", "for", "a", "file", "URI", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L2684-L2725", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java", "func_name": "CloudFile.getShare", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the file's share.\n\n@return A {@link CloudFileShare} object that represents the share of the file.\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException\nIf the resource URI is invalid.", "docstring_tokens": ["Returns", "the", "file", "s", "share", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java#L2802-L2811", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java", "func_name": "PathUtility.appendPathToSingleUri", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Appends a path to a URI correctly using the given separator.\n\n@param uri\nThe base Uri.\n@param relativeUri\nThe relative URI.\n@param separator\nthe separator to use.\n@return The appended Uri.\n@throws URISyntaxException\na valid Uri cannot be constructed", "docstring_tokens": ["Appends", "a", "path", "to", "a", "URI", "correctly", "using", "the", "given", "separator", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java#L155-L180", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java", "func_name": "PathUtility.getBlobNameFromURI", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the blob name from the URI.\n\n@param inURI\nthe resource address\n@param usePathStyleUris\na value indicating if the address is a path style uri.\n@return the blobs name\n@throws URISyntaxException", "docstring_tokens": ["Gets", "the", "blob", "name", "from", "the", "URI", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java#L192-L195", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java", "func_name": "PathUtility.getCanonicalPathFromCredentials", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the canonical path for an object from the credentials.\n\n@param credentials\nthe credentials to use.\n@param absolutePath\nthe Absolute path of the object.\n@return the canonical path for an object from the credentials", "docstring_tokens": ["Gets", "the", "canonical", "path", "for", "an", "object", "from", "the", "credentials", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java#L206-L217", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java", "func_name": "PathUtility.getContainerNameFromUri", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the container name from address from the URI.\n\n@param resourceAddress\nThe container Uri.\n@param usePathStyleUris\na value indicating if the address is a path style uri.\n@return container name from address from the URI.\n@throws IllegalArgumentException", "docstring_tokens": ["Get", "the", "container", "name", "from", "address", "from", "the", "URI", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java#L229-L232", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java", "func_name": "PathUtility.getFileNameFromURI", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the file name from the URI.\n\n@param resourceAddress\nthe file URI\n@param usePathStyleUris\na value indicating if the address is a path style URI\n@return the file's name", "docstring_tokens": ["Gets", "the", "file", "name", "from", "the", "URI", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java#L243-L258", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java", "func_name": "PathUtility.getShareNameFromUri", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the share name from address from the URI.\n\n@param resourceAddress\nThe share Uri.\n@param usePathStyleUris\na value indicating if the address is a path style uri.\n@return share name from address from the URI.\n@throws IllegalArgumentException", "docstring_tokens": ["Get", "the", "share", "name", "from", "address", "from", "the", "URI", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java#L300-L303", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java", "func_name": "PathUtility.getTableNameFromUri", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the table name from address from the URI.\n\n@param resourceAddress\nThe table Uri.\n@param usePathStyleUris\na value indicating if the address is a path style uri.\n@return table name from address from the URI.\n@throws IllegalArgumentException", "docstring_tokens": ["Get", "the", "table", "name", "from", "address", "from", "the", "URI", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java#L315-L318", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java", "func_name": "PathUtility.getResourceNameFromUri", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the container, queue or table name from address from the URI.\n\n@param resourceAddress\nThe queue Uri.\n@param usePathStyleUris\na value indicating if the address is a path style uri.\n@return container name from address from the URI.\n@throws IllegalArgumentException", "docstring_tokens": ["Get", "the", "container", "queue", "or", "table", "name", "from", "address", "from", "the", "URI", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java#L330-L345", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java", "func_name": "PathUtility.getContainerURI", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the container URI from a blob address\n\n@param blobAddress\nthe blob address\n@param usePathStyleUris\na value indicating if the address is a path style uri.\n@return the container URI from a blob address\n@throws URISyntaxException", "docstring_tokens": ["Gets", "the", "container", "URI", "from", "a", "blob", "address"], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java#L357-L364", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java", "func_name": "PathUtility.getShareURI", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the share URI from a file address\n\n@param fileAddress\nthe file address\n@param usePathStyleUris\na value indicating if the address is a path style uri.\n@return the share URI from a file address\n@throws URISyntaxException", "docstring_tokens": ["Gets", "the", "share", "URI", "from", "a", "file", "address"], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java#L376-L383", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java", "func_name": "PathUtility.parseQueryString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses a query string into a one to many hashmap.\n\n@param parseString\nthe string to parse\n@return a HashMap of the key values.\n@throws StorageException", "docstring_tokens": ["Parses", "a", "query", "string", "into", "a", "one", "to", "many", "hashmap", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/PathUtility.java#L446-L495", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/SharedAccessSignatureHelper.java", "func_name": "SharedAccessSignatureHelper.generateSharedAccessSignatureHashForBlobAndFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the signature hash embedded inside the Shared Access Signature for the blob or file service.\n\n@param policy\nThe shared access policy to hash.\n@param headers\nThe optional header values to set for a blob or file accessed with this shared access signature.\n@param accessPolicyIdentifier\nAn optional identifier for the policy.\n@param resourceName\nThe resource name.\n@param ipRange\nThe range of IP addresses to hash.\n@param protocols\nThe Internet protocols to hash.\n@param client\nThe ServiceClient associated with the object.\n\n@return The signature hash embedded inside the Shared Access Signature.\n@throws InvalidKeyException\n@throws StorageException", "docstring_tokens": ["Get", "the", "signature", "hash", "embedded", "inside", "the", "Shared", "Access", "Signature", "for", "the", "blob", "or", "file", "service", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/SharedAccessSignatureHelper.java#L285-L314", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/SharedAccessSignatureHelper.java", "func_name": "SharedAccessSignatureHelper.generateSharedAccessSignatureHashForQueue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the signature hash embedded inside the Shared Access Signature for queue service.\n\n@param policy\nThe shared access policy to hash.\n@param accessPolicyIdentifier\nAn optional identifier for the policy.\n@param resourceName\nThe resource name.\n@param ipRange\nThe range of IP addresses to hash.\n@param protocols\nThe Internet protocols to hash.\n@param client\nThe ServiceClient associated with the object.\n\n@return The signature hash embedded inside the Shared Access Signature.\n@throws InvalidKeyException\n@throws StorageException", "docstring_tokens": ["Get", "the", "signature", "hash", "embedded", "inside", "the", "Shared", "Access", "Signature", "for", "queue", "service", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/SharedAccessSignatureHelper.java#L337-L346", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/SharedAccessSignatureHelper.java", "func_name": "SharedAccessSignatureHelper.generateSharedAccessSignatureHashForTable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the signature hash embedded inside the Shared Access Signature for the table service.\n\n@param policy\nThe shared access policy to hash.\n@param accessPolicyIdentifier\nAn optional identifier for the policy.\n@param resourceName\nThe resource name.\n@param ipRange\nThe range of IP addresses to hash.\n@param protocols\nThe Internet protocols to hash.\n@param startPartitionKey\nAn optional restriction of the beginning of the range of partition keys to hash.\n@param startRowKey\nAn optional restriction of the beginning of the range of row keys to hash.\n@param endPartitionKey\nAn optional restriction of the end of the range of partition keys to hash.\n@param endRowKey\nAn optional restriction of the end of the range of row keys to hash.\n@param client\nThe ServiceClient associated with the object.\n\n@return The signature hash embedded inside the Shared Access Signature.\n@throws InvalidKeyException\n@throws StorageException", "docstring_tokens": ["Get", "the", "signature", "hash", "embedded", "inside", "the", "Shared", "Access", "Signature", "for", "the", "table", "service", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/SharedAccessSignatureHelper.java#L376-L392", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileDirectory.java", "func_name": "CloudFileDirectory.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the directory using the specified options and operation context.\n\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Creates", "the", "directory", "using", "the", "specified", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileDirectory.java#L198-L211", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileDirectory.java", "func_name": "CloudFileDirectory.createIfNotExists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the directory if it does not exist, using the specified request options and operation context.\n\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request.\nSpecifying null will use the default request options from the associated service client\n({@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return true if the directory did not already exist and was created; otherwise, false.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Creates", "the", "directory", "if", "it", "does", "not", "exist", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileDirectory.java#L288-L313", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileDirectory.java", "func_name": "CloudFileDirectory.deleteIfExists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes the directory if it exists using the specified request options and operation context.\n\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the directory.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return true if the directory existed and was deleted; otherwise, false.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException", "docstring_tokens": ["Deletes", "the", "directory", "if", "it", "exists", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileDirectory.java#L426-L450", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileDirectory.java", "func_name": "CloudFileDirectory.exists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a value that indicates whether the directory exists, using the specified request options and operation\ncontext.\n\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the share.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return true if the directory exists, otherwise false.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Returns", "a", "value", "that", "indicates", "whether", "the", "directory", "exists", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileDirectory.java#L485-L489", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileDirectory.java", "func_name": "CloudFileDirectory.listFilesAndDirectoriesSegmented", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a result segment of an enumerable collection of files and directories for this File service client.\n\n@return A {@link ResultSegment} object that contains a segment of the enumerable collection of\n{@link ListFileItem} objects that represent the files and directories.\n@throws StorageException", "docstring_tokens": ["Returns", "a", "result", "segment", "of", "an", "enumerable", "collection", "of", "files", "and", "directories", "for", "this", "File", "service", "client", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileDirectory.java#L826-L830", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileDirectory.java", "func_name": "CloudFileDirectory.getShare", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the share for this directory.\n\n@return A {@link CloudFileShare} that represents the share for this directory.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException\nIf the resource URI is invalid.", "docstring_tokens": ["Returns", "the", "share", "for", "this", "directory", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileDirectory.java#L1109-L1116", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java", "func_name": "QueueRequest.clearMessages", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to clear all the messages in the queue. Sign the\nweb request with a length of -1L.\n\n@param uri\nA URI object that specifies the absolute URI to\nthe queue.\n@param queueOptions\nA {@link QueueRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudQueueClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context\nfor the current operation. This object is used to track\nrequests to the storage service, and to provide additional\nruntime information about the operation.\n\n@return An HttpURLConnection configured for the specified\noperation.\n\n@throws IOException\n@throws URISyntaxException\nIf the URI is not valid.\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "clear", "all", "the", "messages", "in", "the", "queue", ".", "Sign", "the", "web", "request", "with", "a", "length", "of", "-", "1L", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java#L96-L99", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java", "func_name": "QueueRequest.deleteMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to delete a message from the queue. Sign the web\nrequest with a length of -1L.\n\n@param uri\nA URI object that specifies the absolute URI to\nthe queue.\n@param queueOptions\nA {@link QueueRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudQueueClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context\nfor the current operation. This object is used to track\nrequests to the storage service, and to provide additional\nruntime information about the operation.\n@param popReceipt\nA String that contains the pop receipt value\nreturned from an earlier call to {@link CloudQueueMessage#getPopReceipt} for the message to\ndelete.\n@return An HttpURLConnection configured for the specified\noperation.\n\n@throws URISyntaxException\nIf the URI is not valid.\n@throws IOException\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "delete", "a", "message", "from", "the", "queue", ".", "Sign", "the", "web", "request", "with", "a", "length", "of", "-", "1L", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java#L192-L202", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java", "func_name": "QueueRequest.downloadAttributes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to download user-defined metadata and the\napproximate message count for the queue. Sign the web request with a\nlength of -1L.\n\n@param uri\nA URI object that specifies the absolute URI to\nthe queue.\n@param queueOptions\nA {@link QueueRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudQueueClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context\nfor the current operation. This object is used to track\nrequests to the storage service, and to provide additional\nruntime information about the operation.\n\n@return An HttpURLConnection configured for the specified\noperation.\n\n@throws IOException\n@throws URISyntaxException\nIf the URI is not valid.\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "download", "user", "-", "defined", "metadata", "and", "the", "approximate", "message", "count", "for", "the", "queue", ".", "Sign", "the", "web", "request", "with", "a", "length", "of", "-", "1L", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java#L231-L241", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java", "func_name": "QueueRequest.list", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to return a listing of all queues in this\nstorage account. Sign the web request with a length of -1L.\n\n@param uri\nA URI object that specifies the absolute URI to\nthe storage account.\n@param queueOptions\nA {@link QueueRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudQueueClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context\nfor the current operation. This object is used to track\nrequests to the storage service, and to provide additional\nruntime information about the operation.\n@param listingContext\nA {@link ListingContext} object that specifies parameters for\nthe listing operation, if any. May be null.\n@param detailsIncluded\nA {@link QueueListingDetails} object that specifies additional\ndetails to return with the listing, if any. May be null.\n@return An HttpURLConnection configured for the specified\noperation.\n\n@throws IOException\n@throws URISyntaxException\nIf the URI is not valid.\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "return", "a", "listing", "of", "all", "queues", "in", "this", "storage", "account", ".", "Sign", "the", "web", "request", "with", "a", "length", "of", "-", "1L", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java#L274-L288", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java", "func_name": "QueueRequest.peekMessages", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to retrieve a specified number of messages from\nthe front of the queue without changing their visibility. Sign the web\nrequest with a length of -1L.\n\n@param uri\nA URI object that specifies the absolute URI to\nthe queue.\n@param queueOptions\nA {@link QueueRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudQueueClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context\nfor the current operation. This object is used to track\nrequests to the storage service, and to provide additional\nruntime information about the operation.\n@param numberOfMessages\nA nonzero value that specifies the number of messages to\nretrieve from the queue, up to a maximum of 32.\n@return An HttpURLConnection configured for the specified\noperation.\n\n@throws IOException\n@throws URISyntaxException\nIf the URI is not valid.\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "retrieve", "a", "specified", "number", "of", "messages", "from", "the", "front", "of", "the", "queue", "without", "changing", "their", "visibility", ".", "Sign", "the", "web", "request", "with", "a", "length", "of", "-", "1L", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java#L319-L335", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java", "func_name": "QueueRequest.retrieveMessages", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to retrieve messages from the front of the\nqueue. Sign the web request with a length of -1L.\n\n@param uri\nA URI object that specifies the absolute URI to\nthe queue.\n@param queueOptions\nA {@link QueueRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudQueueClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context\nfor the current operation. This object is used to track\nrequests to the storage service, and to provide additional\nruntime information about the operation.\n@param numberOfMessages\nA nonzero value that specifies the number of messages to\nretrieve from the queue, up to a maximum of 32.\n@param visibilityTimeoutInSeconds\nSpecifies the visibility timeout value in seconds, relative to\nserver time, to make the retrieved messages invisible until\nthe visibility timeout expires. The value must be larger than\nor equal to 0, and cannot be larger than 7 days. The\nvisibility timeout of a message can be set to a value later\nthan the expiry time, which will prevent the message from\nbeing retrieved again whether it is processed or not.\n@return An HttpURLConnection configured for the specified\noperation.\n\n@throws IOException\n@throws URISyntaxException\nIf the URI is not valid.\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "retrieve", "messages", "from", "the", "front", "of", "the", "queue", ".", "Sign", "the", "web", "request", "with", "a", "length", "of", "-", "1L", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java#L432-L449", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java", "func_name": "QueueRequest.updateMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to update the visibility timeout of a message in\nthe queue. Optionally updates the message content if a message request\nbody is written to the output stream of the web request. The web request\nshould be signed with the length of the encoded message request body if\none is included, or a length of 0 if no message request body is included.\n\n@param uri\nA URI object that specifies the absolute URI to\nthe queue.\n@param queueOptions\nA {@link QueueRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudQueueClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context\nfor the current operation. This object is used to track\nrequests to the storage service, and to provide additional\nruntime information about the operation.\n@param popReceipt\nA String that contains the pop receipt value\nreturned from an earlier call to {@link CloudQueueMessage#getPopReceipt} for the message to\nupdate.\n@param visibilityTimeoutInSeconds\nSpecifies the new visibility timeout value in seconds,\nrelative to server time, to make the retrieved messages\ninvisible until the visibility timeout expires. The value must\nbe larger than or equal to 0, and cannot be larger than 7\ndays. The visibility timeout of a message can be set to a\nvalue later than the expiry time, which will prevent the\nmessage from being retrieved again whether it is processed or\nnot.\n@return An HttpURLConnection configured for the specified\noperation.\n\n@throws IOException\n@throws URISyntaxException\nIf the URI is not valid.\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "update", "the", "visibility", "timeout", "of", "a", "message", "in", "the", "queue", ".", "Optionally", "updates", "the", "message", "content", "if", "a", "message", "request", "body", "is", "written", "to", "the", "output", "stream", "of", "the", "web", "request", ".", "The", "web", "request", "should", "be", "signed", "with", "the", "length", "of", "the", "encoded", "message", "request", "body", "if", "one", "is", "included", "or", "a", "length", "of", "0", "if", "no", "message", "request", "body", "is", "included", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java#L526-L542", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java", "func_name": "QueueRequest.setAcl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the ACL for the queue. Sign with length of aclBytes.\n\n@param uri\nThe absolute URI to the queue.\n@param queueOptions\nA {@link QueueRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudQueueClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@return a HttpURLConnection configured for the operation.\n@throws StorageException", "docstring_tokens": ["Sets", "the", "ACL", "for", "the", "queue", ".", "Sign", "with", "length", "of", "aclBytes", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java#L560-L571", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java", "func_name": "QueueRequest.getAcl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs a web request to return the ACL for this queue. Sign with no length specified.\n\n@param uri\nThe absolute URI to the container.\n@param queueOptions\nA {@link QueueRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudQueueClient}.\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n@return a HttpURLConnection configured for the operation.\n@throws StorageException", "docstring_tokens": ["Constructs", "a", "web", "request", "to", "return", "the", "ACL", "for", "this", "queue", ".", "Sign", "with", "no", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequest.java#L589-L599", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/ServicePropertiesHandler.java", "func_name": "ServicePropertiesHandler.splitToList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Split a delimiter separated string into an ArrayList\n\n@param str\nthe string to split\n@param delimiter\nthe character to split on\n@return the list of strings", "docstring_tokens": ["Split", "a", "delimiter", "separated", "string", "into", "an", "ArrayList"], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/ServicePropertiesHandler.java#L232-L239", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/ServicePropertiesHandler.java", "func_name": "ServicePropertiesHandler.splitToEnumSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Split a delimiter separated string into a EnumSet of CorsHttpMethods\n\n@param str\nthe string to split\n@param delimiter\nthe character to split on\n@return the set of CorsHttpMethods", "docstring_tokens": ["Split", "a", "delimiter", "separated", "string", "into", "a", "EnumSet", "of", "CorsHttpMethods"], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/ServicePropertiesHandler.java#L250-L257", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/StorageCredentialsAccountAndKey.java", "func_name": "StorageCredentialsAccountAndKey.updateKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the name of the access key to be used when signing the request.\n\n@param key\nA String that represents the name of the access key to be used when signing the request.", "docstring_tokens": ["Sets", "the", "name", "of", "the", "access", "key", "to", "be", "used", "when", "signing", "the", "request", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/StorageCredentialsAccountAndKey.java#L139-L146", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/StorageCredentialsAccountAndKey.java", "func_name": "StorageCredentialsAccountAndKey.getHmac256", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the HmacSha256 associated with the account key.\n\n@return A MAC created with the account key.\n\n@throws InvalidKeyException\nIf the key is not a valid storage key.", "docstring_tokens": ["Gets", "the", "HmacSha256", "associated", "with", "the", "account", "key", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/StorageCredentialsAccountAndKey.java#L181-L193", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/IPRange.java", "func_name": "IPRange.validateIPAddress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validate that the IP address is IPv4.\n\n@param ipAddress\nthe IP address to validate", "docstring_tokens": ["Validate", "that", "the", "IP", "address", "is", "IPv4", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/IPRange.java#L104-L112", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Base64.java", "func_name": "Base64.decode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Decodes a given Base64 string into its corresponding byte array.\n\n@param data\nthe Base64 string, as a String object, to decode\n\n@return the corresponding decoded byte array\n@throws IllegalArgumentException\nIf the string is not a valid base64 encoded string", "docstring_tokens": ["Decodes", "a", "given", "Base64", "string", "into", "its", "corresponding", "byte", "array", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Base64.java#L61-L116", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Base64.java", "func_name": "Base64.encode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encodes a byte array as a Base64 string.\n\n@param data\nthe byte array to encode\n@return the Base64-encoded string, as a String object", "docstring_tokens": ["Encodes", "a", "byte", "array", "as", "a", "Base64", "string", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Base64.java#L239-L281", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Base64.java", "func_name": "Base64.validateIsBase64String", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines whether the given string contains only Base64 characters.\n\n@param data\nthe string, as a String object, to validate\n@return true if data is a valid Base64 string, otherwise false", "docstring_tokens": ["Determines", "whether", "the", "given", "string", "contains", "only", "Base64", "characters", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Base64.java#L290-L315", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/NameValidator.java", "func_name": "NameValidator.validateContainerName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if a container name is valid.\n\n@param containerName\nA String representing the container name to validate.", "docstring_tokens": ["Checks", "if", "a", "container", "name", "is", "valid", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/NameValidator.java#L47-L51", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/NameValidator.java", "func_name": "NameValidator.validateBlobName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if a blob name is valid.\n\n@param blobName\nA String representing the blob name to validate.", "docstring_tokens": ["Checks", "if", "a", "blob", "name", "is", "valid", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/NameValidator.java#L95-L117", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/NameValidator.java", "func_name": "NameValidator.validateFileName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if a file name is valid.\n\n@param fileName\nA String representing the file name to validate.", "docstring_tokens": ["Checks", "if", "a", "file", "name", "is", "valid", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/NameValidator.java#L125-L137", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/NameValidator.java", "func_name": "NameValidator.validateTableName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if a table name is valid.\n\n@param tableName\nA String representing the table name to validate.", "docstring_tokens": ["Checks", "if", "a", "table", "name", "is", "valid", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/NameValidator.java#L169-L183", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileClient.java", "func_name": "CloudFileClient.listShares", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an enumerable collection of shares whose names begin with the specified prefix for this File service\nclient.\n\n@param prefix\nA String that represents the share name prefix.\n\n@return An enumerable collection of {@link CloudFileShare} objects retrieved lazily that represent the\nshares for this client whose names begin with the specified prefix.", "docstring_tokens": ["Returns", "an", "enumerable", "collection", "of", "shares", "whose", "names", "begin", "with", "the", "specified", "prefix", "for", "this", "File", "service", "client", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileClient.java#L150-L153", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileClient.java", "func_name": "CloudFileClient.listShares", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an enumerable collection of shares whose names begin with the specified prefix for this File\nservice client, using the specified details settings, request options, and operation context.\n\n@param prefix\nA String that represents the share name prefix.\n@param detailsIncluded\nA java.util.EnumSet object that contains {@link ShareListingDetails} values that indicate\nwhether share snapshots and/or metadata will be returned.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return An enumerable collection of {@link CloudFileShare} objects retrieved lazily that represents the\nshares for this client.", "docstring_tokens": ["Returns", "an", "enumerable", "collection", "of", "shares", "whose", "names", "begin", "with", "the", "specified", "prefix", "for", "this", "File", "service", "client", "using", "the", "specified", "details", "settings", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileClient.java#L176-L180", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileClient.java", "func_name": "CloudFileClient.listSharesSegmented", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a result segment of an enumerable collection of shares for this File service client.\n\n@return A {@link ResultSegment} object that contains a segment of the enumerable collection of\n{@link CloudFileShare} objects that represent the shares for this client.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Returns", "a", "result", "segment", "of", "an", "enumerable", "collection", "of", "shares", "for", "this", "File", "service", "client", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileClient.java#L191-L195", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileClient.java", "func_name": "CloudFileClient.listSharesSegmented", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a result segment of an enumerable collection of shares whose names begin with the specified\nprefix for this File service client.\n\n@param prefix\nA String that represents the prefix of the share name.\n\n@return A {@link ResultSegment} object that contains a segment of the enumerable collection of\n{@link CloudFileShare} objects that represent the shares whose names begin with the specified\nprefix.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Returns", "a", "result", "segment", "of", "an", "enumerable", "collection", "of", "shares", "whose", "names", "begin", "with", "the", "specified", "prefix", "for", "this", "File", "service", "client", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileClient.java#L211-L215", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileClient.java", "func_name": "CloudFileClient.listSharesWithPrefix", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an enumerable collection of shares whose names begin with the specified prefix, using the\nspecified details settings, request options, and operation context.\n\n@param prefix\nA String that represents the prefix of the share name.\n@param detailsIncluded\nA java.util.EnumSet object that contains {@link ShareListingDetails} values that indicate\nwhether share snapshots and/or metadata will be returned.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return An enumerable collection of {@link CloudFileShare} objects retrieved lazily that represent the\nshares whose names begin with the specified prefix.", "docstring_tokens": ["Returns", "an", "enumerable", "collection", "of", "shares", "whose", "names", "begin", "with", "the", "specified", "prefix", "using", "the", "specified", "details", "settings", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileClient.java#L277-L291", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableServiceEntity.java", "func_name": "TableServiceEntity.setReflectedEntityCacheDisabled", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets a boolean representing whether or not the reflected entity cache is disabled. For most scenarios, disabling\nthe reflected entity cache is not recommended due to its effect on performance.\n\nThe reflected entity cache stores known entity types and their respective reflected entity dictionaries. Rather\nthan using reflection on a known entity type, the values from the dictionary are used instead.\n\n@param disableReflectedEntityCache\ntrue to disable the reflected entity cache; otherwise, false.", "docstring_tokens": ["Sets", "a", "boolean", "representing", "whether", "or", "not", "the", "reflected", "entity", "cache", "is", "disabled", ".", "For", "most", "scenarios", "disabling", "the", "reflected", "entity", "cache", "is", "not", "recommended", "due", "to", "its", "effect", "on", "performance", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableServiceEntity.java#L350-L356", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseResponse.java", "func_name": "BaseResponse.getDate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the Date\n\n@param request\nThe response from server.\n@return The Date.", "docstring_tokens": ["Gets", "the", "Date"], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseResponse.java#L47-L50", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseResponse.java", "func_name": "BaseResponse.getMetadata", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the metadata from the request The response from server.\n\n@return the metadata from the request", "docstring_tokens": ["Gets", "the", "metadata", "from", "the", "request", "The", "response", "from", "server", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseResponse.java#L68-L70", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseResponse.java", "func_name": "BaseResponse.isServerRequestEncrypted", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets if the request was encrypted by the server.\n@param request\nThe response from the server.\n@return A boolean indicating if the request was encrypted by the server.", "docstring_tokens": ["Gets", "if", "the", "request", "was", "encrypted", "by", "the", "server", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseResponse.java#L89-L91", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableStorageErrorDeserializer.java", "func_name": "TableStorageErrorDeserializer.getExtendedErrorInformation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the Extended Error information.\n\n@return the Extended Error information.\n\n@param reader\nthe input stream to read error details from.\n@param format\nThe {@link TablePayloadFormat} to use for parsing\n@throws IOException\nif an error occurs while accessing the stream with Json.", "docstring_tokens": ["Gets", "the", "Extended", "Error", "information", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableStorageErrorDeserializer.java#L49-L115", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableStorageErrorDeserializer.java", "func_name": "TableStorageErrorDeserializer.parseErrorDetails", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse the table extended error information from the response body.\n\n@param request\nthe request whose body to examine for the error information.\n@return The {@link StorageExtendedErrorInformation} parsed from the body or null if parsing fails or the request\ncontains no body.", "docstring_tokens": ["Parse", "the", "table", "extended", "error", "information", "from", "the", "response", "body", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableStorageErrorDeserializer.java#L125-L137", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableStorageErrorDeserializer.java", "func_name": "TableStorageErrorDeserializer.parseJsonErrorException", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses the error exception details from the Json-formatted response.\n\n@param parser\nthe {@link JsonParser} to use for parsing\n@throws IOException\nif an error occurs while accessing the stream with Json.\n@throws JsonParseException\nif an error occurs while parsing the stream.", "docstring_tokens": ["Parses", "the", "error", "exception", "details", "from", "the", "Json", "-", "formatted", "response", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableStorageErrorDeserializer.java#L149-L179", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/SharedAccessPolicyHandler.java", "func_name": "SharedAccessPolicyHandler.getAccessIdentifiers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "RESERVED FOR INTERNAL USE. Gets the HashMap of SharedAccessPolicies from the response.\n\n@param stream\nthe stream to read from\n@param cls\nthe SharedAccessPolicy class type\n@return the HashMap of SharedAccessPolicies from the response\n@throws SAXException\n@throws ParserConfigurationException\n@throws ParseException\nif a date is incorrectly encoded in the stream\n@throws IOException", "docstring_tokens": ["RESERVED", "FOR", "INTERNAL", "USE", ".", "Gets", "the", "HashMap", "of", "SharedAccessPolicies", "from", "the", "response", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/SharedAccessPolicyHandler.java#L65-L72", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileResponse.java", "func_name": "FileResponse.getCopyState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the copyState\n\n@param request\nThe response from server.\n@return The CopyState.\n@throws URISyntaxException\n@throws ParseException", "docstring_tokens": ["Gets", "the", "copyState"], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileResponse.java#L44-L76", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileResponse.java", "func_name": "FileResponse.getFileShareAttributes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the FileShareAttributes from the given request.\n\n@param request\nthe request to get attributes from\n@param usePathStyleUris\na value indicating if the account is using pathSytleUris\n@return the FileShareAttributes from the given request.\n@throws StorageException", "docstring_tokens": ["Gets", "the", "FileShareAttributes", "from", "the", "given", "request", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileResponse.java#L88-L98", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileResponse.java", "func_name": "FileResponse.getFileDirectoryAttributes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the FileDirectoryAttributes from the given request.\n\n@param request\nthe request to get attributes from.\n@param usePathStyleUris\na value indicating if the account is using pathSytleUris.\n@return the FileDirectoryAttributes from the given request.\n@throws StorageException", "docstring_tokens": ["Gets", "the", "FileDirectoryAttributes", "from", "the", "given", "request", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileResponse.java#L110-L132", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileResponse.java", "func_name": "FileResponse.getFileAttributes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the CloudFileAttributes from the given request\n\n@param request\nThe response from server.\n@param resourceURI\nThe file uri to set.\n@return the CloudFileAttributes from the given request\n@throws ParseException\n@throws URISyntaxException", "docstring_tokens": ["Gets", "the", "CloudFileAttributes", "from", "the", "given", "request"], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileResponse.java#L145-L198", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/MimePart.java", "func_name": "MimePart.getHttpVerbForOperation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Returns the HTTP verb for a table operation.\n\n@param operationType\nThe {@link TableOperation} instance to get the HTTP verb for.\n@return\nA String containing the HTTP verb to use with the operation.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Returns", "the", "HTTP", "verb", "for", "a", "table", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/MimePart.java#L70-L89", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/StorageEventMultiCaster.java", "func_name": "StorageEventMultiCaster.fireEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fires the event to all subscribed event listeners.\n\n@param event\nAn EVENTTYPEobject that represents the event being multi-casted.", "docstring_tokens": ["Fires", "the", "event", "to", "all", "subscribed", "event", "listeners", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/StorageEventMultiCaster.java#L50-L54", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/ExecutionEngine.java", "func_name": "ExecutionEngine.fireSendingRequestEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fires events representing that a request will be sent.", "docstring_tokens": ["Fires", "events", "representing", "that", "a", "request", "will", "be", "sent", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/ExecutionEngine.java#L362-L370", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/ExecutionEngine.java", "func_name": "ExecutionEngine.fireResponseReceivedEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fires events representing that a response has been received.", "docstring_tokens": ["Fires", "events", "representing", "that", "a", "response", "has", "been", "received", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/ExecutionEngine.java#L375-L383", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/ExecutionEngine.java", "func_name": "ExecutionEngine.fireErrorReceivingResponseEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fires events representing that an error occurred when receiving the response.", "docstring_tokens": ["Fires", "events", "representing", "that", "an", "error", "occurred", "when", "receiving", "the", "response", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/ExecutionEngine.java#L388-L396", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/ExecutionEngine.java", "func_name": "ExecutionEngine.fireRequestCompletedEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fires events representing that a response received from the service is fully processed.", "docstring_tokens": ["Fires", "events", "representing", "that", "a", "response", "received", "from", "the", "service", "is", "fully", "processed", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/ExecutionEngine.java#L401-L409", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/ExecutionEngine.java", "func_name": "ExecutionEngine.fireRetryingEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fires events representing that a request will be retried.", "docstring_tokens": ["Fires", "events", "representing", "that", "a", "request", "will", "be", "retried", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/ExecutionEngine.java#L414-L422", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.assertContinuationType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts a continuation token is of the specified type.\n\n@param continuationToken\nA {@link ResultContinuation} object that represents the continuation token whose type is being\nexamined.\n@param continuationType\nA {@link ResultContinuationType} value that represents the continuation token type being asserted with\nthe specified continuation token.", "docstring_tokens": ["Asserts", "a", "continuation", "token", "is", "of", "the", "specified", "type", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L228-L238", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.assertInBounds", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the specified integer is in the valid range.\n\n@param param\nA String that represents the name of the parameter, which becomes the exception message\ntext if the value parameter is out of bounds.\n@param value\nThe value of the specified parameter.\n@param min\nThe minimum value for the specified parameter.\n@param max\nThe maximum value for the specified parameter.", "docstring_tokens": ["Asserts", "that", "the", "specified", "integer", "is", "in", "the", "valid", "range", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L287-L291", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.assertGreaterThanOrEqual", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asserts that the specified value is greater than or equal to the min value.\n\n@param param\nA String that represents the name of the parameter, which becomes the exception message\ntext if the value parameter is out of bounds.\n@param value\nThe value of the specified parameter.\n@param min\nThe minimum value for the specified parameter.", "docstring_tokens": ["Asserts", "that", "the", "specified", "value", "is", "greater", "than", "or", "equal", "to", "the", "min", "value", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L304-L308", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.validateMaxExecutionTimeout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a value representing whether the maximum execution time would be surpassed.\n\n@param operationExpiryTimeInMs\nthe time the request expires\n@param additionalInterval\nany additional time required from now\n@return true if the maximum execution time would be surpassed; otherwise, false.", "docstring_tokens": ["Returns", "a", "value", "representing", "whether", "the", "maximum", "execution", "time", "would", "be", "surpassed", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L330-L336", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.getRemainingTimeout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a value representing the remaining time before the operation expires.\n\n@param operationExpiryTimeInMs\nthe time the request expires\n@param timeoutIntervalInMs\nthe server side timeout interval\n@return the remaining time before the operation expires\n@throws StorageException\nwraps a TimeoutException if there is no more time remaining", "docstring_tokens": ["Returns", "a", "value", "representing", "the", "remaining", "time", "before", "the", "operation", "expires", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L349-L372", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.determinePathStyleFromUri", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a value that indicates whether a specified URI is a path-style URI.\n\n@param baseURI\nA java.net.URI value that represents the URI being checked.\n@return true if the specified URI is path-style; otherwise, false.", "docstring_tokens": ["Returns", "a", "value", "that", "indicates", "whether", "a", "specified", "URI", "is", "a", "path", "-", "style", "URI", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L381-L394", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.isHostDnsName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a boolean indicating whether the host of the specified URI is DNS.\n\n@param uri\nThe URI whose host to evaluate.\n@return true if the host is DNS; otherwise, false.", "docstring_tokens": ["Returns", "a", "boolean", "indicating", "whether", "the", "host", "of", "the", "specified", "URI", "is", "DNS", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L403-L412", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.formatETag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads character data for the Etag element from an XML stream reader.\n\n@param xmlr\nAn XMLStreamReader object that represents the source XML stream reader.\n\n@return A String that represents the character data for the Etag element.", "docstring_tokens": ["Reads", "character", "data", "for", "the", "Etag", "element", "from", "an", "XML", "stream", "reader", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L422-L429", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.generateNewUnexpectedStorageException", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an unexpected storage exception.\n\n@param cause\nAn Exception object that represents the initial exception that caused the unexpected\nerror.\n\n@return A {@link StorageException} object that represents the unexpected storage exception being thrown.", "docstring_tokens": ["Returns", "an", "unexpected", "storage", "exception", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L440-L446", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.getStandardHeaderValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the standard header value from the specified connection request, or an empty string if no header value\nhas been specified for the request.\n\n@param conn\nAn HttpURLConnection object that represents the request.\n@param headerName\nA String that represents the name of the header being requested.\n\n@return A String that represents the header value, or null if there is no corresponding\nheader value for headerName.", "docstring_tokens": ["Returns", "the", "standard", "header", "value", "from", "the", "specified", "connection", "request", "or", "an", "empty", "string", "if", "no", "header", "value", "has", "been", "specified", "for", "the", "request", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L533-L538", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.parseDateFromString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a GMT date in the specified format\n\n@param value\nthe string to parse\n@return the GMT date, as a Date\n@throws ParseException\nIf the specified string is invalid", "docstring_tokens": ["Returns", "a", "GMT", "date", "in", "the", "specified", "format"], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L673-L678", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.parseRFC1123DateFromStringInGMT", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a GMT date for the specified string in the RFC1123 pattern.\n\n@param value\nA String that represents the string to parse.\n\n@return A Date object that represents the GMT date in the RFC1123 pattern.\n\n@throws ParseException\nIf the specified string is invalid.", "docstring_tokens": ["Returns", "a", "GMT", "date", "for", "the", "specified", "string", "in", "the", "RFC1123", "pattern", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L691-L695", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.safeRelativize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines the relative difference between the two specified URIs.\n\n@param baseURI\nA java.net.URI object that represents the base URI for which toUri will be\nmade relative.\n@param toUri\nA java.net.URI object that represents the URI to make relative to baseURI.\n\n@return A String that either represents the relative URI of toUri to\nbaseURI, or the URI of toUri itself, depending on whether the hostname and\nscheme are identical for toUri and baseURI. If the hostname and scheme of\nbaseURI and toUri are identical, this method returns an unencoded relative URI\nsuch that if appended to baseURI, it will yield toUri. If the hostname or\nscheme of baseURI and toUri are not identical, this method returns an unencoded\nfull URI specified by toUri.\n\n@throws URISyntaxException\nIf baseURI or toUri is invalid.", "docstring_tokens": ["Determines", "the", "relative", "difference", "between", "the", "two", "specified", "URIs", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L827-L898", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.logHttpError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Serializes the parsed StorageException. If an exception is encountered, returns empty string.\n\n@param ex\nThe StorageException to serialize.\n@param opContext\nThe operation context which provides the logger.", "docstring_tokens": ["Serializes", "the", "parsed", "StorageException", ".", "If", "an", "exception", "is", "encountered", "returns", "empty", "string", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L908-L950", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.logHttpResponse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Logs the HttpURLConnection response. If an exception is encountered, logs nothing.\n\n@param conn\nThe HttpURLConnection to serialize.\n@param opContext\nThe operation context which provides the logger.", "docstring_tokens": ["Logs", "the", "HttpURLConnection", "response", ".", "If", "an", "exception", "is", "encountered", "logs", "nothing", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L1001-L1027", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.trimEnd", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Trims the specified character from the end of a string.\n\n@param value\nA String that represents the string to trim.\n@param trimChar\nThe character to trim from the end of the string.\n\n@return The string with the specified character trimmed from the end.", "docstring_tokens": ["Trims", "the", "specified", "character", "from", "the", "end", "of", "a", "string", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L1039-L1046", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.trimStart", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Trims whitespace from the beginning of a string.\n\n@param value\nA String that represents the string to trim.\n\n@return The string with whitespace trimmed from the beginning.", "docstring_tokens": ["Trims", "whitespace", "from", "the", "beginning", "of", "a", "string", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L1056-L1063", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.parseDate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Given a String representing a date in a form of the ISO8601 pattern, generates a Date representing it\nwith up to millisecond precision.\n\n@param dateString\nthe String to be interpreted as a Date\n\n@return the corresponding Date object", "docstring_tokens": ["Given", "a", "String", "representing", "a", "date", "in", "a", "form", "of", "the", "ISO8601", "pattern", "generates", "a", "Date", "representing", "it", "with", "up", "to", "millisecond", "precision", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L1272-L1308", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java", "func_name": "Utility.getListingLocationMode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines which location can the listing command target by looking at the\ncontinuation token.\n\n@param token\nContinuation token\n@return\nLocation mode", "docstring_tokens": ["Determines", "which", "location", "can", "the", "listing", "command", "target", "by", "looking", "at", "the", "continuation", "token", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java#L1353-L1369", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequestOptions.java", "func_name": "QueueRequestOptions.populateAndApplyDefaults", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Populates the default timeout and retry policy from client if they are not set.\n\n@param options\nThe input options to copy from when applying defaults\n@param client\nThe {@link CloudQueueClient} service client to populate the\ndefault values from.", "docstring_tokens": ["Populates", "the", "default", "timeout", "and", "retry", "policy", "from", "client", "if", "they", "are", "not", "set", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueRequestOptions.java#L53-L58", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java", "func_name": "LogRecordStreamReader.readString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a String from the stream.\n\n@return\nthe String read.\n@throws IOException", "docstring_tokens": ["Read", "a", "String", "from", "the", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java#L103-L112", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java", "func_name": "LogRecordStreamReader.readQuotedString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a quoted String from the stream.\n\n@return\nthe String read.\n@throws IOException", "docstring_tokens": ["Read", "a", "quoted", "String", "from", "the", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java#L121-L130", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java", "func_name": "LogRecordStreamReader.readBoolean", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Boolean from the stream.\n\n@return\nthe Boolean read.\n@throws IOException", "docstring_tokens": ["Read", "a", "Boolean", "from", "the", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java#L139-L148", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java", "func_name": "LogRecordStreamReader.readDate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Date from the stream.\n\n@param format\nthe format in which the date is stored, for parsing purposes.\n@return\nthe Date read.\n@throws IOException\n@throws ParseException", "docstring_tokens": ["Read", "a", "Date", "from", "the", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java#L160-L169", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java", "func_name": "LogRecordStreamReader.readDouble", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Double from the stream.\n\n@return\nthe Double read.\n@throws IOException", "docstring_tokens": ["Read", "a", "Double", "from", "the", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java#L178-L187", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java", "func_name": "LogRecordStreamReader.readUuid", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a UUID from the stream.\n\n@return\nthe UUID read.\n@throws IOException", "docstring_tokens": ["Read", "a", "UUID", "from", "the", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java#L196-L205", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java", "func_name": "LogRecordStreamReader.readInteger", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read an Integer from the stream.\n\n@return\nthe Integer read.\n@throws IOException", "docstring_tokens": ["Read", "an", "Integer", "from", "the", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java#L214-L223", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java", "func_name": "LogRecordStreamReader.readLong", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Long from the stream.\n\n@return\nthe Long read.\n@throws IOException", "docstring_tokens": ["Read", "a", "Long", "from", "the", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java#L232-L241", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java", "func_name": "LogRecordStreamReader.readUri", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a URI from the stream.\n\n@return\nthe URI read.\n@throws URISyntaxException\n@throws IOException", "docstring_tokens": ["Read", "a", "URI", "from", "the", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java#L251-L260", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java", "func_name": "LogRecordStreamReader.readDelimiter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a delimiter from the stream.\n\n@param delimiter\nthe delimiter to read.\n@throws IOException", "docstring_tokens": ["Read", "a", "delimiter", "from", "the", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java#L279-L289", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java", "func_name": "LogRecordStreamReader.tryPeekDelimiter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks to see if the next character is the delimiter expected.\n\n@param delimiter\nthe delimiter to try to peek.\n@return\n@throws IOException", "docstring_tokens": ["Checks", "to", "see", "if", "the", "next", "character", "is", "the", "delimiter", "expected", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java#L299-L311", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java", "func_name": "LogRecordStreamReader.readField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a field from the stream.\n\n@param isQuotedString\nwhether the field is encased in quotes and escaped.\n@return\nthe field read.\n@throws IOException", "docstring_tokens": ["Read", "a", "field", "from", "the", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecordStreamReader.java#L322-L408", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/RetryExponentialRetry.java", "func_name": "RetryExponentialRetry.createInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates a new retry policy for the current request attempt.\n\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return A {@link RetryPolicy} object that represents the retry policy for the current request attempt.", "docstring_tokens": ["Generates", "a", "new", "retry", "policy", "for", "the", "current", "request", "attempt", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/RetryExponentialRetry.java#L94-L98", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/LazySegmentedIterator.java", "func_name": "LazySegmentedIterator.hasNext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Indicates if the iterator has another element.", "docstring_tokens": ["Indicates", "if", "the", "iterator", "has", "another", "element", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/LazySegmentedIterator.java#L102-L125", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/QueryTableOperation.java", "func_name": "QueryTableOperation.setClazzType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Sets the class type of the entity returned by the query.\n\n@param clazzType\nThe java.lang.Class implementing {@link TableEntity} that represents the entity type for\nthe query.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Sets", "the", "class", "type", "of", "the", "entity", "returned", "by", "the", "query", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/QueryTableOperation.java#L257-L261", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/QueryTableOperation.java", "func_name": "QueryTableOperation.setResolver", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Sets the resolver to project the entity retrieved as a particular type.\n\n@param resolver\nThe {@link EntityResolver} instance to use.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Sets", "the", "resolver", "to", "project", "the", "entity", "retrieved", "as", "a", "particular", "type", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/QueryTableOperation.java#L279-L282", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/MimeHelper.java", "func_name": "MimeHelper.writeMIMEBoundary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Writes a MIME part boundary to the output stream.\n\n@param outWriter\nThe {@link OutputStreamWriter} to write the MIME part boundary to.\n@param boundaryID\nThe String containing the MIME part boundary string.\n@throws IOException\nif an error occurs writing to the output stream.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Writes", "a", "MIME", "part", "boundary", "to", "the", "output", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/MimeHelper.java#L402-L405", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/MimeHelper.java", "func_name": "MimeHelper.writeMIMEBoundaryClosure", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Writes a MIME part boundary closure to the output stream.\n\n@param outWriter\nThe {@link OutputStreamWriter} to write the MIME part boundary closure to.\n@param boundaryID\nThe String containing the MIME part boundary string.\n@throws IOException\nif an error occurs writing to the output stream.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Writes", "a", "MIME", "part", "boundary", "closure", "to", "the", "output", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/MimeHelper.java#L417-L420", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/MimeHelper.java", "func_name": "MimeHelper.writeMIMEContentType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Writes a MIME content type string to the output stream.\n\n@param outWriter\nThe {@link OutputStreamWriter} to write the MIME content type string to.\n@param boundaryID\nThe String containing the MIME part boundary string.\n@throws IOException\nif an error occurs writing to the output stream.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Writes", "a", "MIME", "content", "type", "string", "to", "the", "output", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/MimeHelper.java#L432-L435", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/UriQueryBuilder.java", "func_name": "UriQueryBuilder.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a value to the URI with escaping.\n\n@param name\nthe query key name.\n@param value\nthe query value.\n@throws StorageException", "docstring_tokens": ["Adds", "a", "value", "to", "the", "URI", "with", "escaping", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/UriQueryBuilder.java#L43-L49", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/UriQueryBuilder.java", "func_name": "UriQueryBuilder.addToURI", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add query parameter to an existing Uri. This takes care of any existing query parameters in the Uri.\n\n@param uri\nthe original uri.\n@return the appended uri\n@throws URISyntaxException\nif the resulting uri is invalid.\n@throws StorageException", "docstring_tokens": ["Add", "query", "parameter", "to", "an", "existing", "Uri", ".", "This", "takes", "care", "of", "any", "existing", "query", "parameters", "in", "the", "Uri", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/UriQueryBuilder.java#L61-L109", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java", "func_name": "BaseRequest.addOptionalHeader", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the optional header.\n\n@param request\na HttpURLConnection for the operation.\n@param name\nthe metadata name.\n@param value\nthe metadata value.", "docstring_tokens": ["Adds", "the", "optional", "header", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java#L100-L104", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java", "func_name": "BaseRequest.createURLConnection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the web request.\n\n@param uri\nthe request Uri.\n@param options\nA {@link RequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. This parameter is unused.\n@param builder\nthe UriQueryBuilder for the request\n@param opContext\nan object used to track the execution of the operation\n@return a HttpURLConnection to perform the operation.\n@throws IOException\nif there is an error opening the connection\n@throws URISyntaxException\nif there is an improperly formated URI\n@throws StorageException", "docstring_tokens": ["Creates", "the", "web", "request", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java#L160-L217", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java", "func_name": "BaseRequest.delete", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes the specified resource. Sign with no length specified.\n\n@param uri\nthe request Uri.\n@param timeout\nthe timeout for the request\n@param builder\nthe UriQueryBuilder for the request\n@param opContext\nan object used to track the execution of the operation\n@return a HttpURLConnection to perform the operation.\n@throws IOException\nif there is an error opening the connection\n@throws URISyntaxException\nif there is an improperly formated URI\n@throws StorageException", "docstring_tokens": ["Deletes", "the", "specified", "resource", ".", "Sign", "with", "no", "length", "specified", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java#L237-L247", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java", "func_name": "BaseRequest.getServiceProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a HttpURLConnection used to retrieve the Analytics service properties from the storage service.\n\n@param uri\nThe service endpoint.\n@param timeout\nThe timeout.\n@param builder\nThe builder.\n@param opContext\nan object used to track the execution of the operation\n@return a web request for performing the operation.\n@throws IOException\n@throws URISyntaxException\n@throws StorageException", "docstring_tokens": ["Creates", "a", "HttpURLConnection", "used", "to", "retrieve", "the", "Analytics", "service", "properties", "from", "the", "storage", "service", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java#L324-L338", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java", "func_name": "BaseRequest.getUserAgent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the user agent to send over the wire to identify the client.\n\n@return the user agent to send over the wire to identify the client.", "docstring_tokens": ["Gets", "the", "user", "agent", "to", "send", "over", "the", "wire", "to", "identify", "the", "client", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java#L377-L386", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java", "func_name": "BaseRequest.setMetadata", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the metadata. Sign with 0 length.\n\n@param uri\nThe blob Uri.\n@param timeout\nThe timeout.\n@param builder\nThe builder.\n@param opContext\nan object used to track the execution of the operation\n@return a web request for performing the operation.\n@throws StorageException\n@throws URISyntaxException\n@throws IOException", "docstring_tokens": ["Sets", "the", "metadata", ".", "Sign", "with", "0", "length", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java#L404-L419", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java", "func_name": "BaseRequest.setServiceProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a HttpURLConnection used to set the Analytics service properties on the storage service.\n\n@param uri\nThe service endpoint.\n@param timeout\nThe timeout.\n@param builder\nThe builder.\n@param opContext\nan object used to track the execution of the operation\n@return a web request for performing the operation.\n@throws IOException\n@throws URISyntaxException\n@throws StorageException", "docstring_tokens": ["Creates", "a", "HttpURLConnection", "used", "to", "set", "the", "Analytics", "service", "properties", "on", "the", "storage", "service", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/BaseRequest.java#L437-L453", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java", "func_name": "FileOutputStream.close", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Closes this output stream and releases any system resources associated with this stream. If any data remains in\nthe buffer it is committed to the service.\n\n@throws IOException\nIf an I/O error occurs.", "docstring_tokens": ["Closes", "this", "output", "stream", "and", "releases", "any", "system", "resources", "associated", "with", "this", "stream", ".", "If", "any", "data", "remains", "in", "the", "buffer", "it", "is", "committed", "to", "the", "service", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java#L189-L226", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java", "func_name": "FileOutputStream.commit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Commits the file.\n\n@throws StorageException\nAn exception representing any error which occurred during the operation.\n@throws URISyntaxException", "docstring_tokens": ["Commits", "the", "file", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java#L235-L242", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java", "func_name": "FileOutputStream.dispatchWrite", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Dispatches a write operation for a given length.\n\n@param writeLength\nAn int which represents the length of the data to write, this is the write threshold that\ntriggered the write.\n\n@throws IOException\nIf an I/O error occurs. In particular, an IOException may be thrown if the output stream has been\nclosed.", "docstring_tokens": ["Dispatches", "a", "write", "operation", "for", "a", "given", "length", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java#L255-L310", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java", "func_name": "FileOutputStream.flush", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Flushes this output stream and forces any buffered output bytes to be written out. If any data remains in the\nbuffer it is committed to the service.\n\n@throws IOException\nIf an I/O error occurs.", "docstring_tokens": ["Flushes", "this", "output", "stream", "and", "forces", "any", "buffered", "output", "bytes", "to", "be", "written", "out", ".", "If", "any", "data", "remains", "in", "the", "buffer", "it", "is", "committed", "to", "the", "service", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java#L319-L335", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java", "func_name": "FileOutputStream.waitForTaskToComplete", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Waits for one task to complete\n\n@throws IOException\nIf an I/O error occurs. In particular, an IOException may be thrown if the output stream has been\nclosed.", "docstring_tokens": ["Waits", "for", "one", "task", "to", "complete"], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java#L344-L357", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java", "func_name": "FileOutputStream.write", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes length bytes from the specified byte array starting at offset to this output stream.\n\n@param data\nA byte array which represents the data to write.\n@param offset\nAn int which represents the start offset in the data.\n@param length\nAn int which represents the number of bytes to write.\n\n@throws IOException\nIf an I/O error occurs. In particular, an IOException may be thrown if the output stream has been\nclosed.", "docstring_tokens": ["Writes", "length", "bytes", "from", "the", "specified", "byte", "array", "starting", "at", "offset", "to", "this", "output", "stream", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java#L389-L397", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java", "func_name": "FileOutputStream.write", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes all data from the InputStream to the File.\n\n@param sourceStream\nAn {@link InputStream} object which species the data to write to the File.\n\n@throws IOException\nIf an I/O error occurs. In particular, an IOException may be thrown if the output stream has been\nclosed.\n@throws StorageException\nAn exception representing any error which occurred during the operation.", "docstring_tokens": ["Writes", "all", "data", "from", "the", "InputStream", "to", "the", "File", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java#L411-L414", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java", "func_name": "FileOutputStream.writeInternal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the data to the buffer and triggers writes to the service as needed.\n\n@param data\nA byte array which represents the data to write.\n@param offset\nAn int which represents the start offset in the data.\n@param length\nAn int which represents the number of bytes to write.\n\n@throws IOException\nIf an I/O error occurs. In particular, an IOException may be thrown if the output stream has been\nclosed.", "docstring_tokens": ["Writes", "the", "data", "to", "the", "buffer", "and", "triggers", "writes", "to", "the", "service", "as", "needed", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java#L449-L471", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java", "func_name": "CloudStorageAccount.getDNS", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This generates a domain name for the given service.\n\n@param service\nthe service to connect to\n@param base\nthe suffix to use\n@return the domain name", "docstring_tokens": ["This", "generates", "a", "domain", "name", "for", "the", "given", "service", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java#L361-L367", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java", "func_name": "CloudStorageAccount.tryConfigureDevStore", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Evaluates connection settings and returns a CloudStorageAccount representing Development Storage.\n\n@param settings\nA java.util.Map of key/value pairs which represents the connection settings.\n@return A {@link CloudStorageAccount} object constructed from the values provided in the connection settings, or\nnull if\none cannot be constructed.\n@throws URISyntaxException\nif the connection settings contains an invalid URI", "docstring_tokens": ["Evaluates", "connection", "settings", "and", "returns", "a", "CloudStorageAccount", "representing", "Development", "Storage", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java#L380-L400", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java", "func_name": "CloudStorageAccount.tryConfigureServiceAccount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Evaluates connection settings and configures a CloudStorageAccount accordingly.\n\n@param settings\nA java.util.Map of key/value pairs which represents\nthe connection settings.\n@return A {@link CloudStorageAccount} represented by the settings.\n@throws URISyntaxException\nif the connectionString specifies an invalid URI.\n@throws InvalidKeyException\nif credentials in the connection settings contain an invalid key.", "docstring_tokens": ["Evaluates", "connection", "settings", "and", "configures", "a", "CloudStorageAccount", "accordingly", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java#L587-L680", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java", "func_name": "CloudStorageAccount.createCloudAnalyticsClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new Analytics service client.\n\n@return An analytics client object that uses the Blob and Table service endpoints.", "docstring_tokens": ["Creates", "a", "new", "Analytics", "service", "client", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java#L1025-L1039", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java", "func_name": "CloudStorageAccount.createCloudBlobClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new Blob service client.\n\n@return A {@link CloudBlobClient} that represents the cloud Blob client.", "docstring_tokens": ["Creates", "a", "new", "Blob", "service", "client", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java#L1047-L1057", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java", "func_name": "CloudStorageAccount.createCloudFileClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new File service client.\n\n@return A {@link CloudFileClient} that represents the cloud File client.", "docstring_tokens": ["Creates", "a", "new", "File", "service", "client", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java#L1065-L1080", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java", "func_name": "CloudStorageAccount.createCloudQueueClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new Queue service client.\n\n@return A client object that uses the Queue service endpoint.", "docstring_tokens": ["Creates", "a", "new", "Queue", "service", "client", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java#L1087-L1102", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java", "func_name": "CloudStorageAccount.createCloudTableClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new Table service client.\n\n@return A client object that uses the Table service endpoint.", "docstring_tokens": ["Creates", "a", "new", "Table", "service", "client", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java#L1109-L1124", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java", "func_name": "CloudStorageAccount.generateSharedAccessSignature", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a shared access signature for the account.\n\n@param policy\nA {@link SharedAccessAccountPolicy} specifying the access policy for the shared access signature.\n\n@return The query string returned includes the leading question mark.\n@throws StorageException\nIf a storage service error occurred.\n@throws InvalidKeyException\nIf the key is invalid.", "docstring_tokens": ["Returns", "a", "shared", "access", "signature", "for", "the", "account", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/CloudStorageAccount.java#L1247-L1258", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableOperation.java", "func_name": "TableOperation.generateRequestIdentity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Generates the request identity, consisting of the specified entry name, or the\nPartitionKey and RowKey pair from the operation, to identify the operation target.\n\n@param isSingleIndexEntry\nPass true to use the specified entryName parameter, or false to\nuse PartitionKey and RowKey values from the operation as the request identity.\n@param entryName\nThe entry name to use as the request identity if the isSingleIndexEntry parameter is\ntrue.\n@return\nA String which represents the formatted request identity string.\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Generates", "the", "request", "identity", "consisting", "of", "the", "specified", "entry", "name", "or", "the", "PartitionKey", "and", "RowKey", "pair", "from", "the", "operation", "to", "identify", "the", "operation", "target", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableOperation.java#L718-L745", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableOperation.java", "func_name": "TableOperation.generateRequestIdentityWithTable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Generates the request identity string for the specified table. The request identity\nstring combines the table name with the PartitionKey and RowKey from the operation to identify specific table\nentities. This request identity is already UrlEncoded.\n\n@param tableName\nA String which specifies the name of the table.\n@return\nA String which represents the formatted request identity string for the specified table.\n@throws StorageException", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Generates", "the", "request", "identity", "string", "for", "the", "specified", "table", ".", "The", "request", "identity", "string", "combines", "the", "table", "name", "with", "the", "PartitionKey", "and", "RowKey", "from", "the", "operation", "to", "identify", "specific", "table", "entities", ".", "This", "request", "identity", "is", "already", "UrlEncoded", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableOperation.java#L758-L760", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/StorageRequest.java", "func_name": "StorageRequest.initialize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resets the operation status flags between operations.", "docstring_tokens": ["Resets", "the", "operation", "status", "flags", "between", "operations", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/StorageRequest.java#L284-L292", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/StorageRequest.java", "func_name": "StorageRequest.materializeException", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns either the held exception from the operation if it is set, otherwise the translated exception.\n\n@param request\nthe reference to the HttpURLConnection for the operation.\n@param opContext\nan object used to track the execution of the operation\n@return the exception to throw.", "docstring_tokens": ["Returns", "either", "the", "held", "exception", "from", "the", "operation", "if", "it", "is", "set", "otherwise", "the", "translated", "exception", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/StorageRequest.java#L310-L316", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/StorageRequest.java", "func_name": "StorageRequest.postProcessResponse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Post-Stream Retrieval function.\n\n@param connection\nHttpURLConnection configured for the operation.\n@param storageObject\nAn object of the expected result's type.\n@return the expected result of the operation.\n@throws Exception", "docstring_tokens": ["Post", "-", "Stream", "Retrieval", "function", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/StorageRequest.java#L618-L621", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/core/StorageRequest.java", "func_name": "StorageRequest.parseErrorDetails", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns extended error information for this request.\n\n@return A {@link StorageExtendedErrorInformation} object that represents the error details for the specified\nrequest.", "docstring_tokens": ["Returns", "extended", "error", "information", "for", "this", "request", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/core/StorageRequest.java#L647-L657", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java", "func_name": "TableBatchOperation.delete", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a table operation to delete the specified entity to the batch operation.\n\n@param entity\nThe {@link TableEntity} to delete.", "docstring_tokens": ["Adds", "a", "table", "operation", "to", "delete", "the", "specified", "entity", "to", "the", "batch", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java#L182-L185", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java", "func_name": "TableBatchOperation.insert", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a table operation to insert the specified entity to the batch operation.\n\n@param entity\nThe {@link TableEntity} to insert.\n@param echoContent\nThe boolean representing whether the message payload should be returned in the response.", "docstring_tokens": ["Adds", "a", "table", "operation", "to", "insert", "the", "specified", "entity", "to", "the", "batch", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java#L205-L208", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java", "func_name": "TableBatchOperation.insertOrMerge", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a table operation to insert or merge the specified entity to the batch operation.\n\n@param entity\nThe {@link TableEntity} to insert if not found or to merge if it exists.", "docstring_tokens": ["Adds", "a", "table", "operation", "to", "insert", "or", "merge", "the", "specified", "entity", "to", "the", "batch", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java#L216-L219", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java", "func_name": "TableBatchOperation.insertOrReplace", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a table operation to insert or replace the specified entity to the batch operation.\n\n@param entity\nThe {@link TableEntity} to insert if not found or to replace if it exists.", "docstring_tokens": ["Adds", "a", "table", "operation", "to", "insert", "or", "replace", "the", "specified", "entity", "to", "the", "batch", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java#L227-L230", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java", "func_name": "TableBatchOperation.merge", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a table operation to merge the specified entity to the batch operation.\n\n@param entity\nThe {@link TableEntity} to merge.", "docstring_tokens": ["Adds", "a", "table", "operation", "to", "merge", "the", "specified", "entity", "to", "the", "batch", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java#L238-L241", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java", "func_name": "TableBatchOperation.remove", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the table operation at the specified index from the batch operation.\n\n@param index\nAn int which represents the index in the ArrayList of the table operation to\nremove from the batch operation.", "docstring_tokens": ["Removes", "the", "table", "operation", "at", "the", "specified", "index", "from", "the", "batch", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java#L283-L288", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java", "func_name": "TableBatchOperation.removeAll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes all elements of the specified collection from the batch operation.\n\n@param c\nThe collection of elements to remove from the batch operation.\n@return\ntrue if the objects in the collection were removed successfully.", "docstring_tokens": ["Removes", "all", "elements", "of", "the", "specified", "collection", "from", "the", "batch", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java#L313-L318", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java", "func_name": "TableBatchOperation.replace", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a table operation to replace the specified entity to the batch operation.\n\n@param entity\nThe {@link TableEntity} to replace.", "docstring_tokens": ["Adds", "a", "table", "operation", "to", "replace", "the", "specified", "entity", "to", "the", "batch", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java#L326-L329", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java", "func_name": "TableBatchOperation.checkSingleQueryPerBatch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Verifies that the batch operation either contains no retrieve operations, or contains\nonly a single retrieve operation.\n\n@param op\nThe {@link TableOperation} to be added if the verification succeeds.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Verifies", "that", "the", "batch", "operation", "either", "contains", "no", "retrieve", "operations", "or", "contains", "only", "a", "single", "retrieve", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java#L349-L365", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java", "func_name": "TableBatchOperation.lockToPartitionKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Verifies that the specified PartitionKey value matches the value in the batch\noperation.\n\n@param partitionKey\nThe String containing the PartitionKey value to check.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Verifies", "that", "the", "specified", "PartitionKey", "value", "matches", "the", "value", "in", "the", "batch", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/TableBatchOperation.java#L374-L383", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileShare.java", "func_name": "CloudFileShare.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the share using the specified options and operation context.\n\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Creates", "the", "share", "using", "the", "specified", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileShare.java#L205-L221", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileShare.java", "func_name": "CloudFileShare.deleteIfExists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes the share if it exists using the specified request options and operation context.\n\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the share.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return true if the share existed and was deleted; otherwise, false.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Deletes", "the", "share", "if", "it", "exists", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileShare.java#L462-L467", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileShare.java", "func_name": "CloudFileShare.downloadPermissions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Downloads the permissions settings for the share using the specified request options and operation context.\n\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the share.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@return A {@link FileSharePermissions} object that represents the share's permissions.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Downloads", "the", "permissions", "settings", "for", "the", "share", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileShare.java#L639-L653", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileShare.java", "func_name": "CloudFileShare.generateSharedAccessSignature", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a shared access signature for the share. Note this does not contain the leading \"?\".\n\n@param policy\nAn {@link SharedAccessFilePolicy} object that represents the access policy for the\nshared access signature.\n@param groupPolicyIdentifier\nA String which represents the share-level access policy.\n@param ipRange\nA {@link IPRange} object containing the range of allowed IP addresses.\n@param protocols\nA {@link SharedAccessProtocols} representing the allowed Internet protocols.\n\n@return A String which represents a shared access signature for the share.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws InvalidKeyException\nIf the key is invalid.", "docstring_tokens": ["Returns", "a", "shared", "access", "signature", "for", "the", "share", ".", "Note", "this", "does", "not", "contain", "the", "leading", "?", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileShare.java#L1093-L1113", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileShare.java", "func_name": "CloudFileShare.uploadPermissions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Uploads the share's permissions.\n\n@param permissions\nA {@link FileSharePermissions} object that represents the permissions to upload.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Uploads", "the", "share", "s", "permissions", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileShare.java#L1308-L1311", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileShare.java", "func_name": "CloudFileShare.uploadPermissions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Uploads the share's permissions using the specified request options and operation context.\n\n@param permissions\nA {@link FileSharePermissions} object that represents the permissions to upload.\n@param accessCondition\nAn {@link AccessCondition} object that represents the access conditions for the share.\n@param options\nA {@link FileRequestOptions} object that specifies any additional options for the request. Specifying\nnull will use the default request options from the associated service client (\n{@link CloudFileClient}).\n@param opContext\nAn {@link OperationContext} object that represents the context for the current operation. This object\nis used to track requests to the storage service, and to provide additional runtime information about\nthe operation.\n\n@throws StorageException\nIf a storage service error occurred.", "docstring_tokens": ["Uploads", "the", "share", "s", "permissions", "using", "the", "specified", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileShare.java#L1332-L1347", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileShare.java", "func_name": "CloudFileShare.getQualifiedUri", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the snapshot or shared access signature qualified URI for this share.\n\n@return A java.net.URI object that represents the snapshot or shared access signature.\n\n@throws StorageException\nIf a storage service error occurred.\n@throws URISyntaxException\nIf the resource URI is invalid.", "docstring_tokens": ["Returns", "the", "snapshot", "or", "shared", "access", "signature", "qualified", "URI", "for", "this", "share", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFileShare.java#L1520-L1526", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/table/TableGettingStartedTask.java", "func_name": "TableGettingStartedTask.BasicInsertEntity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Illustrates how to form and execute a single insert operation.\n\n@throws StorageException", "docstring_tokens": ["Illustrates", "how", "to", "form", "and", "execute", "a", "single", "insert", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/table/TableGettingStartedTask.java#L104-L121", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/table/TableGettingStartedTask.java", "func_name": "TableGettingStartedTask.BasicBatch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Illustrates how to form and execute a batch operation.\n\n@throws StorageException", "docstring_tokens": ["Illustrates", "how", "to", "form", "and", "execute", "a", "batch", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/table/TableGettingStartedTask.java#L128-L158", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/table/TableGettingStartedTask.java", "func_name": "TableGettingStartedTask.BasicQuery", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Illustrates how to form and execute a query operation.\n\n@throws StorageException", "docstring_tokens": ["Illustrates", "how", "to", "form", "and", "execute", "a", "query", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/table/TableGettingStartedTask.java#L165-L195", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/table/TableGettingStartedTask.java", "func_name": "TableGettingStartedTask.BasicUpsert", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Illustrates how to form and execute an upsert operation.\n\n@throws StorageException", "docstring_tokens": ["Illustrates", "how", "to", "form", "and", "execute", "an", "upsert", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/table/TableGettingStartedTask.java#L202-L221", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/table/TableGettingStartedTask.java", "func_name": "TableGettingStartedTask.BasicDeleteEntity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Illustrates how to form and execute an entity delete operation.\n\n@throws StorageException", "docstring_tokens": ["Illustrates", "how", "to", "form", "and", "execute", "an", "entity", "delete", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/table/TableGettingStartedTask.java#L228-L244", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/table/TableGettingStartedTask.java", "func_name": "TableGettingStartedTask.BasicListing", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Illustrates how to list the tables.", "docstring_tokens": ["Illustrates", "how", "to", "list", "the", "tables", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage-samples/src/com/microsoft/azure/storage/samples/table/TableGettingStartedTask.java#L249-L256", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTableClient.java", "func_name": "CloudTableClient.generateListTablesQuery", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Generates a query to list table names with the given prefix.\n\n@param prefix\nA String containing the prefix to match on table names to return.\n@return\nA {@link TableQuery} instance for listing table names with the specified prefix.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Generates", "a", "query", "to", "list", "table", "names", "with", "the", "given", "prefix", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTableClient.java#L308-L321", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTableClient.java", "func_name": "CloudTableClient.executeQuerySegmentedImpl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Executes a segmented query operation using the specified retry and timeout policies.\n\n@param queryToExecute\nThe {@link TableQuery} to execute.\n@param resolver\nAn {@link EntityResolver} instance which creates a projection of the table query result entities into\nthe specified type R. Pass null to return the results as the table entity\ntype.\n@param continuationToken\nThe {@link ResultContinuation} to pass with the operation to resume a query, if any. Pass\nnull for an initial query.\n@param options\nA {@link TableRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudTableClient}.\n@param opContext\nAn {@link OperationContext} object for tracking the current operation. Specify null to\nsafely ignore operation context.\n@return\nA {@link ResultSegment} containing a collection of the query results specialized for the\n{@link TableEntity} or {@link EntityResolver} type returned by the query.\n@throws StorageException\nif a Storage service error occurs.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Executes", "a", "segmented", "query", "operation", "using", "the", "specified", "retry", "and", "timeout", "policies", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTableClient.java#L348-L366", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTableClient.java", "func_name": "CloudTableClient.generateIteratorForQuery", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reserved for internal use. Generates an iterator for a segmented query operation.\n\n@param queryRef\nThe {@link TableQuery} to execute.\n@param resolver\nAn {@link EntityResolver} instance which creates a projection of the table query result entities into\nthe specified type R. Pass null to return the results as the table entity\ntype.\n@param options\nA {@link TableRequestOptions} object that specifies execution options such as retry policy and timeout\nsettings for the operation. Specify null to use the request options specified on the\n{@link CloudTableClient}.\n@param opContext\nAn {@link OperationContext} object for tracking the current operation. Specify null to\nsafely ignore operation context.\n@return\nAn instance of Iterable specialized for the {@link TableEntity} or {@link EntityResolver}\ntype returned by the query.", "docstring_tokens": ["Reserved", "for", "internal", "use", ".", "Generates", "an", "iterator", "for", "a", "segmented", "query", "operation", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTableClient.java#L544-L566", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecord.java", "func_name": "LogRecord.populateVersion1Log", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Populates a LogRecord using the Version 1.0 schema and the given LogRecordStreamReader.\n\n@param reader\nthe LogRecordStreamReader to use to populate the LogRecord.\n@throws IOException\n@throws ParseException\n@throws URISyntaxException", "docstring_tokens": ["Populates", "a", "LogRecord", "using", "the", "Version", "1", ".", "0", "schema", "and", "the", "given", "LogRecordStreamReader", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/analytics/LogRecord.java#L146-L179", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueListHandler.java", "func_name": "QueueListHandler.getQueues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses the input stream containing the response body of the list queues request result and populates the class\ndata.\n\n@param stream\nThe InputStream object to deserialize from.\n@param serviceClient\nA {@link CloudQueueClient} object associated with the storage\nservice.\n\n@throws IOException\n@throws SAXException\n@throws ParserConfigurationException", "docstring_tokens": ["Parses", "the", "input", "stream", "containing", "the", "response", "body", "of", "the", "list", "queues", "request", "result", "and", "populates", "the", "class", "data", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/QueueListHandler.java#L69-L76", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/StorageException.java", "func_name": "StorageException.translateFromHttpStatus", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Translates the specified HTTP status code into a storage exception.\n\n@param statusCode\nThe HTTP status code returned by the operation.\n@param statusDescription\nA String that represents the status description.\n@param inner\nAn Exception object that represents a reference to the initial exception, if one exists.\n\n@return A StorageException object that represents translated exception.", "docstring_tokens": ["Translates", "the", "specified", "HTTP", "status", "code", "into", "a", "storage", "exception", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/StorageException.java#L119-L177", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueueClient.java", "func_name": "CloudQueueClient.listQueues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets an iterable collection of queues for this queue service client.\n\n@return An iterable collection of {@link CloudQueue} objects retrieved lazily that\nrepresent the queues in this client.", "docstring_tokens": ["Gets", "an", "iterable", "collection", "of", "queues", "for", "this", "queue", "service", "client", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueueClient.java#L112-L115", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueueClient.java", "func_name": "CloudQueueClient.listQueues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an iterable collection of queues whose names begin with the\nspecified prefix in this Queue service client.\n\n@param prefix\nA String that represents the queue name prefix.\n\n@return An iterable collection of {@link CloudQueue} objects retrieved lazily that\nrepresent the queues in this client whose names begin with the\nspecified prefix.", "docstring_tokens": ["Returns", "an", "iterable", "collection", "of", "queues", "whose", "names", "begin", "with", "the", "specified", "prefix", "in", "this", "Queue", "service", "client", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueueClient.java#L128-L131", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueueClient.java", "func_name": "CloudQueueClient.listQueues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an iterable collection of queues whose names begin with the\nspecified prefix for this Queue service client, using the specified\ndetails setting, request options, and operation context.\n\n@param prefix\nA String that represents the queue name prefix.\n@param detailsIncluded\nA {@link QueueListingDetails} value that indicates whether\nqueue metadata will be returned.\n@param options\nA {@link QueueRequestOptions} object that specifies any\nadditional options for the request. Specifying null will use the default request options\nfrom\nthe associated service client ( {@link CloudQueue}).\n@param opContext\nAn {@link OperationContext} object that represents the context\nfor the current operation. This object is used to track\nrequests to the storage service, and to provide additional\nruntime information about the operation.\n\n@return An iterable collection of {@link CloudQueue} objects retrieved lazily that\nrepresents the specified queues for this client.", "docstring_tokens": ["Returns", "an", "iterable", "collection", "of", "queues", "whose", "names", "begin", "with", "the", "specified", "prefix", "for", "this", "Queue", "service", "client", "using", "the", "specified", "details", "setting", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueueClient.java#L157-L170", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueueClient.java", "func_name": "CloudQueueClient.listQueuesSegmented", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a result segment of an iterable collection of queues for this Queue\nservice client.\n\n@return A {@link ResultSegment} of {@link CloudQueue} objects that\ncontains a segment of the iterable collection of {@link CloudQueue} objects that represent the requested\nqueues in\nthe storage service.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Gets", "a", "result", "segment", "of", "an", "iterable", "collection", "of", "queues", "for", "this", "Queue", "service", "client", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueueClient.java#L184-L187", "partition": "valid"} +{"repo": "Azure/azure-storage-android", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueueClient.java", "func_name": "CloudQueueClient.listQueuesSegmented", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a result segment of an iterable collection of queues whose names\nbegin with the specified prefix for this queue, using the specified\nlisting details options, request options, and operation context.\n\n@param prefix\nA String that represents the prefix of the queue\nname to match.\n@param detailsIncluded\nA {@link QueueListingDetails} value that indicates whether\nqueue metadata will be returned.\n@param maxResults\nThe maximum number of results to retrieve. If null or greater\nthan 5000, the server will return up to 5,000 items. Must be at least 1.\n@param continuationToken\nA {@link ResultContinuation} object that represents a\ncontinuation token returned by a previous listing operation.\n@param options\nA {@link QueueRequestOptions} object that specifies any additional options for\nthe request. Specifying null will use the default request options\nfrom the associated service client ( {@link CloudQueue}).\n@param opContext\nAn {@link OperationContext} object that represents the context\nfor the current operation. This object is used to track\nrequests to the storage service, and to provide additional\nruntime information about the operation.\n\n@return A {@link ResultSegment} of {@link CloudQueue} objects that contains a segment of\nthe iterable collection of {@link CloudQueue} objects that represent the requested\nqueues in the storage service.\n\n@throws StorageException\nIf a storage service error occurred during the operation.", "docstring_tokens": ["Gets", "a", "result", "segment", "of", "an", "iterable", "collection", "of", "queues", "whose", "names", "begin", "with", "the", "specified", "prefix", "for", "this", "queue", "using", "the", "specified", "listing", "details", "options", "request", "options", "and", "operation", "context", "."], "sha": "2c643c37c6b8c9081058add284c601a2393afc93", "url": "https://github.com/Azure/azure-storage-android/blob/2c643c37c6b8c9081058add284c601a2393afc93/microsoft-azure-storage/src/com/microsoft/azure/storage/queue/CloudQueueClient.java#L240-L258", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron-ant-task/src/main/java/com/helger/schematron/ant/Schematron.java", "func_name": "Schematron.addConfiguredXMLCatalog", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the catalog to our internal catalog\n\n@param aXmlCatalog\nthe XMLCatalog instance to use to look up DTDs", "docstring_tokens": ["Add", "the", "catalog", "to", "our", "internal", "catalog"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron-ant-task/src/main/java/com/helger/schematron/ant/Schematron.java#L318-L322", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/preprocess/PreprocessorIDPool.java", "func_name": "PreprocessorIDPool.getUniqueID", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a unique ID based on the passed one. If the passed ID is not yet\ncontained, than a numeric index is appended until the ID is unique.\n\n@param sID\nThe source ID. May be null.\n@return null if the passed ID is null indicating\nthat no ID is present. Otherwise a unique ID is returned.", "docstring_tokens": ["Create", "a", "unique", "ID", "based", "on", "the", "passed", "one", ".", "If", "the", "passed", "ID", "is", "not", "yet", "contained", "than", "a", "numeric", "index", "is", "appended", "until", "the", "ID", "is", "unique", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/preprocess/PreprocessorIDPool.java#L48-L73", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java", "func_name": "SchematronResourcePure.setPhase", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the Schematron phase to be evaluated. Changing the phase will result in\na newly bound schema!\n\n@param sPhase\nThe name of the phase to use. May be null which means\nall phases.\n@return this", "docstring_tokens": ["Set", "the", "Schematron", "phase", "to", "be", "evaluated", ".", "Changing", "the", "phase", "will", "result", "in", "a", "newly", "bound", "schema!"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java#L118-L125", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java", "func_name": "SchematronResourcePure.setErrorHandler", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the error handler to be used during binding.\n\n@param aErrorHandler\nThe error handler. May be null.\n@return this", "docstring_tokens": ["Set", "the", "error", "handler", "to", "be", "used", "during", "binding", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java#L144-L151", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java", "func_name": "SchematronResourcePure.setVariableResolver", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the variable resolver to be used in the XPath statements. This can only\nbe set before the Schematron is bound. If it is already bound an exception\nis thrown to indicate the unnecessity of the call.\n\n@param aVariableResolver\nThe variable resolver to set. May be null.\n@return this", "docstring_tokens": ["Set", "the", "variable", "resolver", "to", "be", "used", "in", "the", "XPath", "statements", ".", "This", "can", "only", "be", "set", "before", "the", "Schematron", "is", "bound", ".", "If", "it", "is", "already", "bound", "an", "exception", "is", "thrown", "to", "indicate", "the", "unnecessity", "of", "the", "call", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java#L171-L178", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java", "func_name": "SchematronResourcePure.setFunctionResolver", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the function resolver to be used in the XPath statements. This can only\nbe set before the Schematron is bound. If it is already bound an exception\nis thrown to indicate the unnecessity of the call.\n\n@param aFunctionResolver\nThe function resolver to set. May be null.\n@return this", "docstring_tokens": ["Set", "the", "function", "resolver", "to", "be", "used", "in", "the", "XPath", "statements", ".", "This", "can", "only", "be", "set", "before", "the", "Schematron", "is", "bound", ".", "If", "it", "is", "already", "bound", "an", "exception", "is", "thrown", "to", "indicate", "the", "unnecessity", "of", "the", "call", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java#L198-L205", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java", "func_name": "SchematronResourcePure.setEntityResolver", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the XML entity resolver to be used when reading the Schematron or the\nXML to be validated. This can only be set before the Schematron is bound.\nIf it is already bound an exception is thrown to indicate the unnecessity\nof the call.\n\n@param aEntityResolver\nThe entity resolver to set. May be null.\n@return this\n@since 4.1.1", "docstring_tokens": ["Set", "the", "XML", "entity", "resolver", "to", "be", "used", "when", "reading", "the", "Schematron", "or", "the", "XML", "to", "be", "validated", ".", "This", "can", "only", "be", "set", "before", "the", "Schematron", "is", "bound", ".", "If", "it", "is", "already", "bound", "an", "exception", "is", "thrown", "to", "indicate", "the", "unnecessity", "of", "the", "call", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java#L218-L225", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java", "func_name": "SchematronResourcePure.getOrCreateBoundSchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the cached bound schema or create a new one.\n\n@return The bound schema. Never null.", "docstring_tokens": ["Get", "the", "cached", "bound", "schema", "or", "create", "a", "new", "one", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java#L262-L278", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java", "func_name": "SchematronResourcePure.validateCompletely", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Use the provided error handler to validate all elements in the schematron.\nIt tries to catch as many errors as possible.\n\n@param aErrorHandler\nThe error handler to use. May not be null.", "docstring_tokens": ["Use", "the", "provided", "error", "handler", "to", "validate", "all", "elements", "in", "the", "schematron", ".", "It", "tries", "to", "catch", "as", "many", "errors", "as", "possible", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java#L313-L325", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java", "func_name": "SchematronResourcePure.applySchematronValidationToSVRL", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The main method to convert a node to an SVRL document.\n\n@param aXMLNode\nThe source node to be validated. May not be null.\n@param sBaseURI\nBase URI of the XML document to be validated. May be\nnull.\n@return The SVRL document. Never null.\n@throws SchematronException\nin case of a sever error validating the schema", "docstring_tokens": ["The", "main", "method", "to", "convert", "a", "node", "to", "an", "SVRL", "document", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/SchematronResourcePure.java#L351-L364", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/preprocess/PSPreprocessor.java", "func_name": "PSPreprocessor._resolveRuleContent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resolve all <extends> elements. This method calls itself recursively\nuntil all extends elements are resolved.\n\n@param aRuleContent\nA list consisting of {@link PSAssertReport} and {@link PSExtends}\nobjects. Never null.\n@param aLookup\nThe rule lookup object\n@throws SchematronPreprocessException\nIf the base rule of an extends object could not be resolved.", "docstring_tokens": ["Resolve", "all", "<", ";", "extends>", ";", "elements", ".", "This", "method", "calls", "itself", "recursively", "until", "all", "extends", "elements", "are", "resolved", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/preprocess/PSPreprocessor.java#L293-L325", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/preprocess/PSPreprocessor.java", "func_name": "PSPreprocessor.getAsMinimalSchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert the passed schema to a minimal schema.\n\n@param aSchema\nThe schema to be made minimal. May not be null\n@return The original schema object, if it is already minimal - a minimal\ncopy otherwise! May be null if the original schema is\nnot yet minimal and {@link #isKeepEmptySchema()} is set to\nfalse.\n@throws SchematronPreprocessException\nIn case a preprocessing error occurs", "docstring_tokens": ["Convert", "the", "passed", "schema", "to", "a", "minimal", "schema", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/preprocess/PSPreprocessor.java#L454-L464", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/preprocess/PSPreprocessor.java", "func_name": "PSPreprocessor.getAsPreprocessedSchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert the passed schema to a pre-processed schema.\n\n@param aSchema\nThe schema to pre-process. May not be null\n@return The original schema object, if it is already pre-processed - a\npre-processed copy otherwise! May be null if the\noriginal schema is not yet pre-processed and\n{@link #isKeepEmptySchema()} is set to false.\n@throws SchematronPreprocessException\nIn case a preprocessing error occurs", "docstring_tokens": ["Convert", "the", "passed", "schema", "to", "a", "pre", "-", "processed", "schema", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/preprocess/PSPreprocessor.java#L478-L488", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/preprocess/PSPreprocessor.java", "func_name": "PSPreprocessor.getForcedPreprocessedSchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert the passed schema to a pre-processed schema independent if it is\nalready minimal or not.\n\n@param aSchema\nThe schema to be made minimal. May not be null\n@return A minimal copy of the schema. May be null if the\noriginal schema is not yet minimal and {@link #isKeepEmptySchema()}\nis set to false.\n@throws SchematronPreprocessException\nIn case a preprocessing error occurs", "docstring_tokens": ["Convert", "the", "passed", "schema", "to", "a", "pre", "-", "processed", "schema", "independent", "if", "it", "is", "already", "minimal", "or", "not", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/preprocess/PSPreprocessor.java#L502-L548", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/bound/PSBoundSchemaCacheKey.java", "func_name": "PSBoundSchemaCacheKey.readSchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read the specified schema from the passed resource.\n\n@param aResource\nThe resource to read from. Never null.\n@param aErrorHandler\nThe error handler to use. May be null.\n@param aEntityResolver\nThe XML entity resolver to be used. May be null.\n@return The read schema. May not be null.\n@throws SchematronException\nIn case there is an error reading.", "docstring_tokens": ["Read", "the", "specified", "schema", "from", "the", "passed", "resource", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/bound/PSBoundSchemaCacheKey.java#L153-L160", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/bound/PSBoundSchemaCacheKey.java", "func_name": "PSBoundSchemaCacheKey.getQueryBinding", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determine the query binding for the read schema.\n\n@param aSchema\nThe read schema. Never null.\n@return The query binding to use. Never null.\n@throws SchematronException\nIn case the determination fails.", "docstring_tokens": ["Determine", "the", "query", "binding", "for", "the", "read", "schema", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/bound/PSBoundSchemaCacheKey.java#L171-L176", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/bound/PSBoundSchemaCacheKey.java", "func_name": "PSBoundSchemaCacheKey.createPreprocessedSchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Pre-process the read schema, using the determined query binding.\n\n@param aSchema\nThe read schema. Never null.\n@param aQueryBinding\nThe determined query binding. Never null.\n@return The pre-processed schema and never null.\n@throws SchematronException\nIn case pre-processing fails", "docstring_tokens": ["Pre", "-", "process", "the", "read", "schema", "using", "the", "determined", "query", "binding", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/bound/PSBoundSchemaCacheKey.java#L206-L222", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSWriter.java", "func_name": "PSWriter.writeToFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write the passed Schematron element to the passed file.\n\n@param aPSElement\nThe schematron element to write. May not be null.\n@param aFile\nThe file to write things to. May not be null.\n@return {@link ESuccess}.", "docstring_tokens": ["Write", "the", "passed", "Schematron", "element", "to", "the", "passed", "file", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSWriter.java#L93-L99", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSWriter.java", "func_name": "PSWriter.writeToStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write the passed Schematron element to the passed output stream.\n\n@param aPSElement\nThe schematron element to write. May not be null.\n@param aOS\nThe output stream to write things to. May not be null.\nThe stream is automatically closed.\n@return {@link ESuccess}.", "docstring_tokens": ["Write", "the", "passed", "Schematron", "element", "to", "the", "passed", "output", "stream", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSWriter.java#L111-L117", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSWriter.java", "func_name": "PSWriter.writeToWriter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write the passed Schematron element to the passed writer.\n\n@param aPSElement\nThe schematron element to write. May not be null.\n@param aWriter\nThe writer to write things to. May not be null. The\nwriter is automatically closed.\n@return {@link ESuccess}.", "docstring_tokens": ["Write", "the", "passed", "Schematron", "element", "to", "the", "passed", "writer", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSWriter.java#L129-L135", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/SchematronHelper.java", "func_name": "SchematronHelper.applySchematron", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Apply the passed schematron on the passed XML resource using a custom error\nhandler.\n\n@param aSchematron\nThe Schematron resource. May not be null.\n@param aXML\nThe XML resource. May not be null.\n@return null if either the Schematron or the XML could not be\nread.\n@throws IllegalStateException\nif the processing throws an unexpected exception.", "docstring_tokens": ["Apply", "the", "passed", "schematron", "on", "the", "passed", "XML", "resource", "using", "a", "custom", "error", "handler", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/SchematronHelper.java#L88-L108", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/SchematronHelper.java", "func_name": "SchematronHelper.applySchematron", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Apply the passed schematron on the passed XML node.\n\n@param aSchematron\nThe Schematron resource. May not be null.\n@param aNode\nThe XML node. May not be null.\n@return null if either the Schematron or the XML could not be\nread.\n@throws IllegalStateException\nif the processing throws an unexpected exception.", "docstring_tokens": ["Apply", "the", "passed", "schematron", "on", "the", "passed", "XML", "node", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/SchematronHelper.java#L156-L164", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/binding/xpath/PSXPathVariables.java", "func_name": "PSXPathVariables.remove", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove the variable with the specified name\n\n@param sVarName\nThe name of the variable to be removed. May be null.\n@return {@link EChange#CHANGED} if the variable was removed successfully.\nNever null.", "docstring_tokens": ["Remove", "the", "variable", "with", "the", "specified", "name"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/binding/xpath/PSXPathVariables.java#L124-L131", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/binding/xpath/PSXPathVariables.java", "func_name": "PSXPathVariables.removeAll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove all variables with the specified names\n\n@param aVars\nA list of variable names to be removed. May be null.\n@return {@link EChange#CHANGED} if at least one variable was removed\nsuccessfully. Never null.", "docstring_tokens": ["Remove", "all", "variables", "with", "the", "specified", "names"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/binding/xpath/PSXPathVariables.java#L141-L163", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/svrl/SVRLHelper.java", "func_name": "SVRLHelper.getAllFailedAssertions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a list of all failed assertions in a given schematron output.\n\n@param aSchematronOutput\nThe schematron output to be used. May be null.\n@return A non-null list with all failed assertions.", "docstring_tokens": ["Get", "a", "list", "of", "all", "failed", "assertions", "in", "a", "given", "schematron", "output", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/svrl/SVRLHelper.java#L64-L74", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/svrl/SVRLHelper.java", "func_name": "SVRLHelper.getAllFailedAssertionsMoreOrEqualSevereThan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a list of all failed assertions in a given schematron output, with an\nerror level equally or more severe than the passed error level.\n\n@param aSchematronOutput\nThe schematron output to be used. May be null.\n@param aErrorLevel\nMinimum error level to be queried\n@return A non-null list with all failed assertions.", "docstring_tokens": ["Get", "a", "list", "of", "all", "failed", "assertions", "in", "a", "given", "schematron", "output", "with", "an", "error", "level", "equally", "or", "more", "severe", "than", "the", "passed", "error", "level", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/svrl/SVRLHelper.java#L86-L101", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/svrl/SVRLHelper.java", "func_name": "SVRLHelper.getAllSuccessfulReports", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a list of all successful reports in a given schematron output.\n\n@param aSchematronOutput\nThe schematron output to be used. May be null.\n@return A non-null list with all successful reports.", "docstring_tokens": ["Get", "a", "list", "of", "all", "successful", "reports", "in", "a", "given", "schematron", "output", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/svrl/SVRLHelper.java#L110-L120", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/svrl/SVRLHelper.java", "func_name": "SVRLHelper.getAllSuccessfulReportsMoreOrEqualSevereThan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a list of all successful reports in a given schematron output, with an\nerror level equally or more severe than the passed error level.\n\n@param aSchematronOutput\nThe schematron output to be used. May be null.\n@param aErrorLevel\nMinimum error level to be queried\n@return A non-null list with all successful reports.", "docstring_tokens": ["Get", "a", "list", "of", "all", "successful", "reports", "in", "a", "given", "schematron", "output", "with", "an", "error", "level", "equally", "or", "more", "severe", "than", "the", "passed", "error", "level", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/svrl/SVRLHelper.java#L132-L147", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/svrl/SVRLHelper.java", "func_name": "SVRLHelper.getAllFailedAssertionsAndSuccessfulReports", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a list of all failed assertions and successful reports in a given\nschematron output.\n\n@param aSchematronOutput\nThe schematron output to be used. May be null.\n@return A non-null list with all failed assertions and\nsuccessful reports. Maybe an empty list if the input is\nnull.", "docstring_tokens": ["Get", "a", "list", "of", "all", "failed", "assertions", "and", "successful", "reports", "in", "a", "given", "schematron", "output", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/svrl/SVRLHelper.java#L159-L172", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/svrl/SVRLHelper.java", "func_name": "SVRLHelper.setErrorLevelDeterminator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the global error level determinator.\n\n@param aELD\nThe determinator to use. May not be null.", "docstring_tokens": ["Set", "the", "global", "error", "level", "determinator", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/svrl/SVRLHelper.java#L215-L220", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/binding/PSQueryBindingRegistry.java", "func_name": "PSQueryBindingRegistry.getQueryBindingOfName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the query binding with the specified name.\n\n@param sName\nThe name to the query binding to retrieve. May be null.\nIf it is null than the {@link #DEFAULT_QUERY_BINDING}\nobject is returned.\n@return null if no such query binding was found.", "docstring_tokens": ["Get", "the", "query", "binding", "with", "the", "specified", "name", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/binding/PSQueryBindingRegistry.java#L101-L108", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/binding/PSQueryBindingRegistry.java", "func_name": "PSQueryBindingRegistry.getQueryBindingOfNameOrThrow", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the query binding with the specified name\n\n@param sName\nThe name of the query binding to look up. May be null.\n@return Never null.\n@throws SchematronBindException\nIn case the query binding could not be resolved!", "docstring_tokens": ["Get", "the", "query", "binding", "with", "the", "specified", "name"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/binding/PSQueryBindingRegistry.java#L119-L126", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/xpath/XQueryAsXPathFunctionConverter.java", "func_name": "XQueryAsXPathFunctionConverter.loadXQuery", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load XQuery functions from an input stream. As this function is supposed to\nwork with Saxon HE, this method allows only for loading full XQuery modules\nand not for XQuery libraries.\n\n@param aXQueryIS\nThe Input Stream to read from. May not be null. Will be\nclosed automatically in this method.\n@return A non-null {@link MapBasedXPathFunctionResolver}\ncontaining all loaded functions.\n@throws XPathException\nif the syntax of the expression is wrong, or if it references\nnamespaces, variables, or functions that have not been declared, or\nany other static error is reported.\n@throws IOException\nif a failure occurs reading the supplied input.", "docstring_tokens": ["Load", "XQuery", "functions", "from", "an", "input", "stream", ".", "As", "this", "function", "is", "supposed", "to", "work", "with", "Saxon", "HE", "this", "method", "allows", "only", "for", "loading", "full", "XQuery", "modules", "and", "not", "for", "XQuery", "libraries", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/xpath/XQueryAsXPathFunctionConverter.java#L125-L197", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-sch2xslt-maven-plugin/src/main/java/org/slf4j/impl/Slf4jAdapter.java", "func_name": "Slf4jAdapter._format", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Format with one object.\n\n@param format\nFormat to use\n@param arg\nOne argument\n@return The message", "docstring_tokens": ["Format", "with", "one", "object", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-sch2xslt-maven-plugin/src/main/java/org/slf4j/impl/Slf4jAdapter.java#L367-L371", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-sch2xslt-maven-plugin/src/main/java/org/slf4j/impl/Slf4jAdapter.java", "func_name": "Slf4jAdapter._format", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Format with two objects.\n\n@param format\nFormat to use\n@param first\nFirst argument\n@param second\nSecond argument\n@return The message", "docstring_tokens": ["Format", "with", "two", "objects", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-sch2xslt-maven-plugin/src/main/java/org/slf4j/impl/Slf4jAdapter.java#L384-L388", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron-validator/src/main/java/com/helger/schematron/validator/SchematronValidator.java", "func_name": "SchematronValidator.isValidSchematron", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if the passed micro node is a valid schematron instance.\n\n@param aNode\nThe micro node to check. May be null.\n@return true if the schematron is valid, false\notherwise.", "docstring_tokens": ["Check", "if", "the", "passed", "micro", "node", "is", "a", "valid", "schematron", "instance", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron-validator/src/main/java/com/helger/schematron/validator/SchematronValidator.java#L74-L80", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron-validator/src/main/java/com/helger/schematron/validator/SchematronValidator.java", "func_name": "SchematronValidator.isValidSchematron", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if the passed DOM node is a valid schematron instance.\n\n@param aNode\nThe DOM node to check. May be null.\n@return true if the schematron is valid, false\notherwise.", "docstring_tokens": ["Check", "if", "the", "passed", "DOM", "node", "is", "a", "valid", "schematron", "instance", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron-validator/src/main/java/com/helger/schematron/validator/SchematronValidator.java#L90-L96", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron-validator/src/main/java/com/helger/schematron/validator/SchematronValidator.java", "func_name": "SchematronValidator.isValidSchematron", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if the passed resource is a valid schematron instance.\n\n@param aRes\nThe resource to check. May be null.\n@return true if the schematron is valid, false\notherwise.", "docstring_tokens": ["Check", "if", "the", "passed", "resource", "is", "a", "valid", "schematron", "instance", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron-validator/src/main/java/com/helger/schematron/validator/SchematronValidator.java#L106-L112", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron-validator/src/main/java/com/helger/schematron/validator/SchematronValidator.java", "func_name": "SchematronValidator.isValidSchematron", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if the passed source is a valid schematron instance.\n\n@param aSource\nThe source to check. May be null.\n@return true if the schematron is valid, false\notherwise.", "docstring_tokens": ["Check", "if", "the", "passed", "source", "is", "a", "valid", "schematron", "instance", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron-validator/src/main/java/com/helger/schematron/validator/SchematronValidator.java#L122-L158", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/xslt/SchematronResourceSCHCache.java", "func_name": "SchematronResourceSCHCache.createSchematronXSLTProvider", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new Schematron validator for the passed resource.\n\n@param aSchematronResource\nThe resource of the Schematron rules. May not be null.\n@param aTransformerCustomizer\nThe XSLT transformer customizer to be used. May not be\nnull.\n@return null if the passed Schematron resource does not exist\nor is invalid.", "docstring_tokens": ["Create", "a", "new", "Schematron", "validator", "for", "the", "passed", "resource", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/xslt/SchematronResourceSCHCache.java#L62-L95", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/xslt/SchematronResourceSCHCache.java", "func_name": "SchematronResourceSCHCache.getSchematronXSLTProvider", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the Schematron validator for the passed resource. If no custom\nparameter are present, the result is cached. The respective cache key is a\ncombination of the Schematron resource path, the phase and the language\ncode.\n\n@param aSchematronResource\nThe resource of the Schematron rules. May not be null.\n@param aTransformerCustomizer\nThe XSLT transformer customizer to be used. May not be\nnull.\n@return null if the passed Schematron resource does not exist\nor is invalid.", "docstring_tokens": ["Get", "the", "Schematron", "validator", "for", "the", "passed", "resource", ".", "If", "no", "custom", "parameter", "are", "present", "the", "result", "is", "cached", ".", "The", "respective", "cache", "key", "is", "a", "combination", "of", "the", "Schematron", "resource", "path", "the", "phase", "and", "the", "language", "code", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/xslt/SchematronResourceSCHCache.java#L111-L155", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/validation/xpath/PSXPathValidationHandlerSVRL.java", "func_name": "PSXPathValidationHandlerSVRL._getErrorText", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the error text from an assert or report element.\n\n@param aBoundContentElements\nThe list of bound elements to be evaluated.\n@param aSourceNode\nThe XML node of the document currently validated.\n@return A non-null String\n@throws SchematronValidationException\nIn case evaluating an XPath expression fails.", "docstring_tokens": ["Get", "the", "error", "text", "from", "an", "assert", "or", "report", "element", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/validation/xpath/PSXPathValidationHandlerSVRL.java#L187-L260", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/svrl/SVRLLocationBeautifierRegistry.java", "func_name": "SVRLLocationBeautifierRegistry.getBeautifiedLocation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the beautified location for the given namespace and local name.\n\n@param sNamespaceURI\nThe namespace URI\n@param sLocalName\nThe element local name\n@return null if no beautification is available", "docstring_tokens": ["Get", "the", "beautified", "location", "for", "the", "given", "namespace", "and", "local", "name", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/svrl/SVRLLocationBeautifierRegistry.java#L56-L68", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader._warn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Emit a warning with the registered error handler.\n\n@param aSourceElement\nThe source element where the error occurred.\n@param sMessage\nThe main warning message.", "docstring_tokens": ["Emit", "a", "warning", "with", "the", "registered", "error", "handler", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L158-L164", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readActiveFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read an <active> element\n\n@param eActive\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "an", "<", ";", "active>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L173-L219", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readAssertReportFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read an <assert> or a <report> element\n\n@param eAssertReport\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "an", "<", ";", "assert>", ";", "or", "a", "<", ";", "report>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L259-L332", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readDiagnosticFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a <diagnostic> element\n\n@param eDiagnostic\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "a", "<", ";", "diagnostic>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L341-L396", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readDiagnosticsFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a <diagnostics> element\n\n@param eDiagnostics\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "a", "<", ";", "diagnostics>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L405-L430", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readDirFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a <dir> element\n\n@param eDir\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "a", "<", ";", "dir>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L439-L476", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readEmphFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read an <emph> element\n\n@param eEmph\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "an", "<", ";", "emph>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L485-L519", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readExtendsFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read an <extends> element\n\n@param eExtends\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "an", "<", ";", "extends>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L528-L550", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readIncludeFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read an <include> element\n\n@param eInclude\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "an", "<", ";", "include>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L559-L581", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readLetFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a <let> element\n\n@param eLet\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "a", "<", ";", "let>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L590-L615", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readNameFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a <name> element\n\n@param eName\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "a", "<", ";", "name>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L624-L646", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readNSFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a <ns> element\n\n@param eNS\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "a", "<", ";", "ns>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L655-L680", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readPFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a <p> element\n\n@param eP\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "a", "<", ";", "p>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L689-L741", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readParamFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a <param> element\n\n@param eParam\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "a", "<", ";", "param>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L750-L775", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readPatternFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a <pattern> element\n\n@param ePattern\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "a", "<", ";", "pattern>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L784-L839", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readPhaseFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a <phase> element\n\n@param ePhase\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "a", "<", ";", "phase>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L848-L887", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readRuleFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a <rule> element\n\n@param eRule\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "a", "<", ";", "rule>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L896-L950", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readSchemaFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse the Schematron into a pure Java object. This method makes no\nassumptions on the validity of the document!\n\n@param eSchema\nThe XML element to use. May not be null.\n@return The created {@link PSSchema} object or null in case of\nnull document or a fatal error.\n@throws SchematronReadException\nIf reading fails", "docstring_tokens": ["Parse", "the", "Schematron", "into", "a", "pure", "Java", "object", ".", "This", "method", "makes", "no", "assumptions", "on", "the", "validity", "of", "the", "document!"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L963-L1032", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readSpanFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a <span> element\n\n@param eSpan\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "a", "<", ";", "span>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L1041-L1078", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readTitleFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a <title> element\n\n@param eTitle\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "a", "<", ";", "title>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L1087-L1125", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java", "func_name": "PSReader.readValueOfFromXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a <value-of> element\n\n@param eValueOf\nThe source micro element. Never null.\n@return The created domain object. May not be null.", "docstring_tokens": ["Read", "a", "<", ";", "value", "-", "of>", ";", "element"], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSReader.java#L1134-L1156", "partition": "valid"} +{"repo": "phax/ph-schematron", "path": "ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSWriterSettings.java", "func_name": "PSWriterSettings.createNamespaceMapping", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method to extract the namespace mapping from the provided\nSchematron.\n\n@param aSchema\nThe schema to extract the namespace context from. May not be\nnull.\n@return A non-null but maybe empty namespace context", "docstring_tokens": ["Helper", "method", "to", "extract", "the", "namespace", "mapping", "from", "the", "provided", "Schematron", "."], "sha": "7475956eed408fb42face4b84684f8d751db0e43", "url": "https://github.com/phax/ph-schematron/blob/7475956eed408fb42face4b84684f8d751db0e43/ph-schematron/src/main/java/com/helger/schematron/pure/exchange/PSWriterSettings.java#L82-L91", "partition": "valid"} +{"repo": "schaloner/deadbolt-2-java", "path": "code/app/be/objectify/deadbolt/java/ConstraintLogic.java", "func_name": "ConstraintLogic.regex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks access to the resource based on the regex\n\n@param requestHeader the HTTP request header\n@param deadboltHandler the Deadbolt handler\n@param invert if true, invert the application of the constraint\n@return the necessary result", "docstring_tokens": ["Checks", "access", "to", "the", "resource", "based", "on", "the", "regex"], "sha": "84890eb4565fb6172b7d8e824f64d547ddacfcc7", "url": "https://github.com/schaloner/deadbolt-2-java/blob/84890eb4565fb6172b7d8e824f64d547ddacfcc7/code/app/be/objectify/deadbolt/java/ConstraintLogic.java#L397-L444", "partition": "valid"} +{"repo": "schaloner/deadbolt-2-java", "path": "code/app/be/objectify/deadbolt/java/actions/AbstractDeadboltAction.java", "func_name": "AbstractDeadboltAction.markAsAuthorised", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Marks the current action as authorised. This allows method-level annotations to override controller-level annotations.\n\n@param request the request", "docstring_tokens": ["Marks", "the", "current", "action", "as", "authorised", ".", "This", "allows", "method", "-", "level", "annotations", "to", "override", "controller", "-", "level", "annotations", "."], "sha": "84890eb4565fb6172b7d8e824f64d547ddacfcc7", "url": "https://github.com/schaloner/deadbolt-2-java/blob/84890eb4565fb6172b7d8e824f64d547ddacfcc7/code/app/be/objectify/deadbolt/java/actions/AbstractDeadboltAction.java#L192-L197", "partition": "valid"} +{"repo": "schaloner/deadbolt-2-java", "path": "code/app/be/objectify/deadbolt/java/actions/AbstractDeadboltAction.java", "func_name": "AbstractDeadboltAction.isAuthorised", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if an action is authorised. This allows controller-level annotations to cede control to method-level annotations.\n\n@param request the request\n@return true if a more-specific annotation has authorised access, otherwise false", "docstring_tokens": ["Checks", "if", "an", "action", "is", "authorised", ".", "This", "allows", "controller", "-", "level", "annotations", "to", "cede", "control", "to", "method", "-", "level", "annotations", "."], "sha": "84890eb4565fb6172b7d8e824f64d547ddacfcc7", "url": "https://github.com/schaloner/deadbolt-2-java/blob/84890eb4565fb6172b7d8e824f64d547ddacfcc7/code/app/be/objectify/deadbolt/java/actions/AbstractDeadboltAction.java#L209-L212", "partition": "valid"} +{"repo": "schaloner/deadbolt-2-java", "path": "code/app/be/objectify/deadbolt/java/actions/AbstractDeadboltAction.java", "func_name": "AbstractDeadboltAction.defer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Defer execution until a later point.\n\n@param request the request\n@param action the action to defer", "docstring_tokens": ["Defer", "execution", "until", "a", "later", "point", "."], "sha": "84890eb4565fb6172b7d8e824f64d547ddacfcc7", "url": "https://github.com/schaloner/deadbolt-2-java/blob/84890eb4565fb6172b7d8e824f64d547ddacfcc7/code/app/be/objectify/deadbolt/java/actions/AbstractDeadboltAction.java#L220-L231", "partition": "valid"} +{"repo": "schaloner/deadbolt-2-java", "path": "code/app/be/objectify/deadbolt/java/actions/AbstractDeadboltAction.java", "func_name": "AbstractDeadboltAction.getDeferredAction", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the deferred action from the request.\n\n@param request the request\n@return a tuple containing the deferred action (or null if it doesn't exist) and the cleaned up request you should pass on", "docstring_tokens": ["Get", "the", "deferred", "action", "from", "the", "request", "."], "sha": "84890eb4565fb6172b7d8e824f64d547ddacfcc7", "url": "https://github.com/schaloner/deadbolt-2-java/blob/84890eb4565fb6172b7d8e824f64d547ddacfcc7/code/app/be/objectify/deadbolt/java/actions/AbstractDeadboltAction.java#L250-L257", "partition": "valid"} +{"repo": "schaloner/deadbolt-2-java", "path": "code/app/be/objectify/deadbolt/java/actions/AbstractDeadboltAction.java", "func_name": "AbstractDeadboltAction.authorizeAndExecute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a flag to the request to indicate the action has passed the constraint\nand call the delegate.\n\n@param request the request\n@return the result", "docstring_tokens": ["Add", "a", "flag", "to", "the", "request", "to", "indicate", "the", "action", "has", "passed", "the", "constraint", "and", "call", "the", "delegate", "."], "sha": "84890eb4565fb6172b7d8e824f64d547ddacfcc7", "url": "https://github.com/schaloner/deadbolt-2-java/blob/84890eb4565fb6172b7d8e824f64d547ddacfcc7/code/app/be/objectify/deadbolt/java/actions/AbstractDeadboltAction.java#L275-L283", "partition": "valid"} +{"repo": "schaloner/deadbolt-2-java", "path": "code/app/be/objectify/deadbolt/java/actions/AbstractDeadboltAction.java", "func_name": "AbstractDeadboltAction.deadboltActionLeftInActionChain", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recursive method to determine if there is another deadbolt action further down the action chain", "docstring_tokens": ["Recursive", "method", "to", "determine", "if", "there", "is", "another", "deadbolt", "action", "further", "down", "the", "action", "chain"], "sha": "84890eb4565fb6172b7d8e824f64d547ddacfcc7", "url": "https://github.com/schaloner/deadbolt-2-java/blob/84890eb4565fb6172b7d8e824f64d547ddacfcc7/code/app/be/objectify/deadbolt/java/actions/AbstractDeadboltAction.java#L321-L330", "partition": "valid"} +{"repo": "schaloner/deadbolt-2-java", "path": "code/app/be/objectify/deadbolt/java/DeadboltAnalyzer.java", "func_name": "DeadboltAnalyzer.getRoleNames", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the role name of each role held.\n\n@param subjectOption an option for the subject\n@return a non-null list containing all role names", "docstring_tokens": ["Gets", "the", "role", "name", "of", "each", "role", "held", "."], "sha": "84890eb4565fb6172b7d8e824f64d547ddacfcc7", "url": "https://github.com/schaloner/deadbolt-2-java/blob/84890eb4565fb6172b7d8e824f64d547ddacfcc7/code/app/be/objectify/deadbolt/java/DeadboltAnalyzer.java#L61-L77", "partition": "valid"} +{"repo": "schaloner/deadbolt-2-java", "path": "code/app/be/objectify/deadbolt/java/DeadboltAnalyzer.java", "func_name": "DeadboltAnalyzer.hasRole", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if the subject has the given role.\n\n@param subjectOption an option for the subject\n@param roleName the name of the role\n@return true iff the subject has the role represented by the role name", "docstring_tokens": ["Check", "if", "the", "subject", "has", "the", "given", "role", "."], "sha": "84890eb4565fb6172b7d8e824f64d547ddacfcc7", "url": "https://github.com/schaloner/deadbolt-2-java/blob/84890eb4565fb6172b7d8e824f64d547ddacfcc7/code/app/be/objectify/deadbolt/java/DeadboltAnalyzer.java#L86-L90", "partition": "valid"} +{"repo": "schaloner/deadbolt-2-java", "path": "code/app/be/objectify/deadbolt/java/filters/FilterConstraints.java", "func_name": "FilterConstraints.subjectPresent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A constraint that requires a subject to be present.\n\n@param content is passed to {@link DeadboltHandler#onAuthFailure(Http.RequestHeader, Optional)} if the authorization fails\n@return a function that wraps the constraint\n@see ConstraintLogic#subjectPresent(Http.RequestHeader, DeadboltHandler, Optional, TriFunction, TriFunction, ConstraintPoint)", "docstring_tokens": ["A", "constraint", "that", "requires", "a", "subject", "to", "be", "present", "."], "sha": "84890eb4565fb6172b7d8e824f64d547ddacfcc7", "url": "https://github.com/schaloner/deadbolt-2-java/blob/84890eb4565fb6172b7d8e824f64d547ddacfcc7/code/app/be/objectify/deadbolt/java/filters/FilterConstraints.java#L77-L91", "partition": "valid"} +{"repo": "schaloner/deadbolt-2-java", "path": "code/app/be/objectify/deadbolt/java/utils/TemplateUtils.java", "func_name": "TemplateUtils.roles", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts the roles into a String array.\n\n@param roles the roles\n@return the roles as an array of strings", "docstring_tokens": ["Converts", "the", "roles", "into", "a", "String", "array", "."], "sha": "84890eb4565fb6172b7d8e824f64d547ddacfcc7", "url": "https://github.com/schaloner/deadbolt-2-java/blob/84890eb4565fb6172b7d8e824f64d547ddacfcc7/code/app/be/objectify/deadbolt/java/utils/TemplateUtils.java#L39-L47", "partition": "valid"} +{"repo": "schaloner/deadbolt-2-java", "path": "code/app/be/objectify/deadbolt/java/utils/TemplateUtils.java", "func_name": "TemplateUtils.permissions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts the permissions into a String array.\n\n@param permissions the permissions\n@return the permissions as an array of strings", "docstring_tokens": ["Converts", "the", "permissions", "into", "a", "String", "array", "."], "sha": "84890eb4565fb6172b7d8e824f64d547ddacfcc7", "url": "https://github.com/schaloner/deadbolt-2-java/blob/84890eb4565fb6172b7d8e824f64d547ddacfcc7/code/app/be/objectify/deadbolt/java/utils/TemplateUtils.java#L55-L63", "partition": "valid"} +{"repo": "schaloner/deadbolt-2-java", "path": "code/app/be/objectify/deadbolt/java/utils/TemplateUtils.java", "func_name": "TemplateUtils.allOfGroup", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts the arguments into a String array wrapped in a list.\n\n@param args the arguments\n@return the arguments as an array within a list", "docstring_tokens": ["Converts", "the", "arguments", "into", "a", "String", "array", "wrapped", "in", "a", "list", "."], "sha": "84890eb4565fb6172b7d8e824f64d547ddacfcc7", "url": "https://github.com/schaloner/deadbolt-2-java/blob/84890eb4565fb6172b7d8e824f64d547ddacfcc7/code/app/be/objectify/deadbolt/java/utils/TemplateUtils.java#L82-L85", "partition": "valid"} +{"repo": "schaloner/deadbolt-2-java", "path": "code/app/be/objectify/deadbolt/java/ViewSupport.java", "func_name": "ViewSupport.viewRestrict", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Used for restrict tags in the template.\n\n@param roles a list of String arrays. Within an array, the roles are ANDed. The arrays in the list are OR'd.\n@return true if the view can be accessed, otherwise false", "docstring_tokens": ["Used", "for", "restrict", "tags", "in", "the", "template", "."], "sha": "84890eb4565fb6172b7d8e824f64d547ddacfcc7", "url": "https://github.com/schaloner/deadbolt-2-java/blob/84890eb4565fb6172b7d8e824f64d547ddacfcc7/code/app/be/objectify/deadbolt/java/ViewSupport.java#L83-L110", "partition": "valid"} +{"repo": "OWASP/owasp-java-encoder", "path": "core/src/main/java/org/owasp/encoder/Encoder.java", "func_name": "Encoder.overflow", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Internal helper method to properly position buffers after encoding up\nuntil an overflow.\n\n@param input the input buffer\n@param i the array offset in the input buffer (translated to position)\n@param output the output buffer\n@param j the array offset in the output buffer (translated to position)\n@return CoderResult.OVERFLOW", "docstring_tokens": ["Internal", "helper", "method", "to", "properly", "position", "buffers", "after", "encoding", "up", "until", "an", "overflow", "."], "sha": "bc9a85723f3c1b4819d9aa8aa1b539787128e4ea", "url": "https://github.com/OWASP/owasp-java-encoder/blob/bc9a85723f3c1b4819d9aa8aa1b539787128e4ea/core/src/main/java/org/owasp/encoder/Encoder.java#L243-L247", "partition": "valid"} +{"repo": "OWASP/owasp-java-encoder", "path": "core/src/main/java/org/owasp/encoder/Encoder.java", "func_name": "Encoder.underflow", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Internal helper method to properly position buffers after encoding up\nuntil an underflow.\n\n@param input the input buffer\n@param i the array offset in the input buffer (translated to position)\n@param output the output buffer\n@param j the array offset in the output buffer (translated to position)\n@return CoderResult.UNDERFLOW", "docstring_tokens": ["Internal", "helper", "method", "to", "properly", "position", "buffers", "after", "encoding", "up", "until", "an", "underflow", "."], "sha": "bc9a85723f3c1b4819d9aa8aa1b539787128e4ea", "url": "https://github.com/OWASP/owasp-java-encoder/blob/bc9a85723f3c1b4819d9aa8aa1b539787128e4ea/core/src/main/java/org/owasp/encoder/Encoder.java#L259-L263", "partition": "valid"} +{"repo": "OWASP/owasp-java-encoder", "path": "core/src/main/java/org/owasp/encoder/ASCIIBits.java", "func_name": "ASCIIBits.set", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets a range of characters to 1s in the masks.\n\n@param min the minimum (inclusive).\n@param max the maximum (inclusive).\n@return {@code this}", "docstring_tokens": ["Sets", "a", "range", "of", "characters", "to", "1s", "in", "the", "masks", "."], "sha": "bc9a85723f3c1b4819d9aa8aa1b539787128e4ea", "url": "https://github.com/OWASP/owasp-java-encoder/blob/bc9a85723f3c1b4819d9aa8aa1b539787128e4ea/core/src/main/java/org/owasp/encoder/ASCIIBits.java#L92-L103", "partition": "valid"} +{"repo": "OWASP/owasp-java-encoder", "path": "core/src/main/java/org/owasp/encoder/Encode.java", "func_name": "Encode.encode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Core encoding loop shared by public methods. It first uses the\nencoder to scan the input for characters that need encoding. If\nno characters require encoding, the input string is returned.\nOtherwise a buffer is used to encode the remainder\nof the input.\n\n@param encoder the encoder to use\n@param str the string to encode\n@return the input string encoded with the provided encoder.", "docstring_tokens": ["Core", "encoding", "loop", "shared", "by", "public", "methods", ".", "It", "first", "uses", "the", "encoder", "to", "scan", "the", "input", "for", "characters", "that", "need", "encoding", ".", "If", "no", "characters", "require", "encoding", "the", "input", "string", "is", "returned", ".", "Otherwise", "a", "buffer", "is", "used", "to", "encode", "the", "remainder", "of", "the", "input", "."], "sha": "bc9a85723f3c1b4819d9aa8aa1b539787128e4ea", "url": "https://github.com/OWASP/owasp-java-encoder/blob/bc9a85723f3c1b4819d9aa8aa1b539787128e4ea/core/src/main/java/org/owasp/encoder/Encode.java#L1212-L1231", "partition": "valid"} +{"repo": "OWASP/owasp-java-encoder", "path": "core/src/main/java/org/owasp/encoder/Encode.java", "func_name": "Encode.encode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Core encoding loop shared by public methods. It first uses the\nencoder to scan the input for characters that need encoding. If no\ncharacters require encoding, the input string is written directly to\nthe writer. Otherwise a buffer is used to encode the\nremainder of the input to the buffers. This version saves a wrapping\nin an String.\n\n@param encoder the encoder to use\n@param out the writer for the encoded output\n@param str the string to encode\n@throws IOException if thrown by the writer", "docstring_tokens": ["Core", "encoding", "loop", "shared", "by", "public", "methods", ".", "It", "first", "uses", "the", "encoder", "to", "scan", "the", "input", "for", "characters", "that", "need", "encoding", ".", "If", "no", "characters", "require", "encoding", "the", "input", "string", "is", "written", "directly", "to", "the", "writer", ".", "Otherwise", "a", "buffer", "is", "used", "to", "encode", "the", "remainder", "of", "the", "input", "to", "the", "buffers", ".", "This", "version", "saves", "a", "wrapping", "in", "an", "String", "."], "sha": "bc9a85723f3c1b4819d9aa8aa1b539787128e4ea", "url": "https://github.com/OWASP/owasp-java-encoder/blob/bc9a85723f3c1b4819d9aa8aa1b539787128e4ea/core/src/main/java/org/owasp/encoder/Encode.java#L1246-L1268", "partition": "valid"} +{"repo": "OWASP/owasp-java-encoder", "path": "core/src/main/java/org/owasp/encoder/Encoders.java", "func_name": "Encoders.map", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Internal method to setup and map encoder singletons.\n\n@param name -- name of the encoder (one of the constants above)\n@param encoder -- the encoder singleton instance\n@param the encoder type\n@return the encoder argument.", "docstring_tokens": ["Internal", "method", "to", "setup", "and", "map", "encoder", "singletons", "."], "sha": "bc9a85723f3c1b4819d9aa8aa1b539787128e4ea", "url": "https://github.com/OWASP/owasp-java-encoder/blob/bc9a85723f3c1b4819d9aa8aa1b539787128e4ea/core/src/main/java/org/owasp/encoder/Encoders.java#L227-L231", "partition": "valid"} +{"repo": "OWASP/owasp-java-encoder", "path": "core/src/main/java/org/owasp/encoder/Encoders.java", "func_name": "Encoders.forName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a new instance of an Encoder for the specified context. The\nreturned instance is thread-safe.\n\n@param contextName the context name (one of the String constants defined\nin this class)\n@return an encoder for the specified context.\n@throws NullPointerException if {@code contextName} is null\n@throws UnsupportedContextException if {@code contextName} is not\nrecognized.", "docstring_tokens": ["Returns", "a", "new", "instance", "of", "an", "Encoder", "for", "the", "specified", "context", ".", "The", "returned", "instance", "is", "thread", "-", "safe", "."], "sha": "bc9a85723f3c1b4819d9aa8aa1b539787128e4ea", "url": "https://github.com/OWASP/owasp-java-encoder/blob/bc9a85723f3c1b4819d9aa8aa1b539787128e4ea/core/src/main/java/org/owasp/encoder/Encoders.java#L244-L253", "partition": "valid"} +{"repo": "OWASP/owasp-java-encoder", "path": "core/src/main/java/org/owasp/encoder/HTMLEncoder.java", "func_name": "HTMLEncoder.append", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Appends a source array verbatim to the output array. Caller must insure\nthere is enough space in the array for the output.\n\n@param src the characters to copy\n@param out the output buffer\n@param j the offset where to write in the output buffer\n@return {@code j + src.length}", "docstring_tokens": ["Appends", "a", "source", "array", "verbatim", "to", "the", "output", "array", ".", "Caller", "must", "insure", "there", "is", "enough", "space", "in", "the", "array", "for", "the", "output", "."], "sha": "bc9a85723f3c1b4819d9aa8aa1b539787128e4ea", "url": "https://github.com/OWASP/owasp-java-encoder/blob/bc9a85723f3c1b4819d9aa8aa1b539787128e4ea/core/src/main/java/org/owasp/encoder/HTMLEncoder.java#L250-L253", "partition": "valid"} +{"repo": "OWASP/owasp-java-encoder", "path": "core/src/main/java/org/owasp/encoder/ChainedEncoder.java", "func_name": "ChainedEncoder.encode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encodes an input string to an output string.\n\n@param str the string to encode\n@return the encoded string.", "docstring_tokens": ["Encodes", "an", "input", "string", "to", "an", "output", "string", "."], "sha": "bc9a85723f3c1b4819d9aa8aa1b539787128e4ea", "url": "https://github.com/OWASP/owasp-java-encoder/blob/bc9a85723f3c1b4819d9aa8aa1b539787128e4ea/core/src/main/java/org/owasp/encoder/ChainedEncoder.java#L82-L114", "partition": "valid"} +{"repo": "OWASP/owasp-java-encoder", "path": "core/src/main/java/org/owasp/encoder/EncodedWriter.java", "func_name": "EncodedWriter.flushBufferToWriter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Flushes the contents of the buffer to the writer and resets the buffer to make room for more input.\n\n@throws IOException thrown by the wrapped output.", "docstring_tokens": ["Flushes", "the", "contents", "of", "the", "buffer", "to", "the", "writer", "and", "resets", "the", "buffer", "to", "make", "room", "for", "more", "input", "."], "sha": "bc9a85723f3c1b4819d9aa8aa1b539787128e4ea", "url": "https://github.com/OWASP/owasp-java-encoder/blob/bc9a85723f3c1b4819d9aa8aa1b539787128e4ea/core/src/main/java/org/owasp/encoder/EncodedWriter.java#L158-L161", "partition": "valid"} +{"repo": "OWASP/owasp-java-encoder", "path": "core/src/main/java/org/owasp/encoder/EncodedWriter.java", "func_name": "EncodedWriter.flushLeftOver", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Flushes the left-over buffer. Characters from the input buffer are used to add more data to the _leftOverBuffer in order to\nmake the flush happen.\n\n@param input the next input to encode, or null if at end of file.\n@throws IOException from the underlying writer.", "docstring_tokens": ["Flushes", "the", "left", "-", "over", "buffer", ".", "Characters", "from", "the", "input", "buffer", "are", "used", "to", "add", "more", "data", "to", "the", "_leftOverBuffer", "in", "order", "to", "make", "the", "flush", "happen", "."], "sha": "bc9a85723f3c1b4819d9aa8aa1b539787128e4ea", "url": "https://github.com/OWASP/owasp-java-encoder/blob/bc9a85723f3c1b4819d9aa8aa1b539787128e4ea/core/src/main/java/org/owasp/encoder/EncodedWriter.java#L170-L197", "partition": "valid"} +{"repo": "pwittchen/ReactiveSensors", "path": "library/src/main/java/com/github/pwittchen/reactivesensors/library/ReactiveSensors.java", "func_name": "ReactiveSensors.observeSensor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns RxJava Observable, which allows to monitor hardware sensors\nas a stream of ReactiveSensorEvent object with defined sampling period\n\n@param sensorType sensor type from Sensor class from Android SDK\n@param samplingPeriodInUs sampling period in microseconds,\n@param handler the Handler the sensor events will be delivered to, use default if it is null\nyou can use predefined values from SensorManager class with prefix SENSOR_DELAY\n@param strategy BackpressureStrategy for RxJava 2 Flowable type\n@return RxJava Observable with ReactiveSensorEvent", "docstring_tokens": ["Returns", "RxJava", "Observable", "which", "allows", "to", "monitor", "hardware", "sensors", "as", "a", "stream", "of", "ReactiveSensorEvent", "object", "with", "defined", "sampling", "period"], "sha": "49dd6e68baa30658ff1df3f7bb6b0c9f50414a8e", "url": "https://github.com/pwittchen/ReactiveSensors/blob/49dd6e68baa30658ff1df3f7bb6b0c9f50414a8e/library/src/main/java/com/github/pwittchen/reactivesensors/library/ReactiveSensors.java#L111-L141", "partition": "valid"} +{"repo": "sgoertzen/sonar-break-maven-plugin", "path": "src/main/java/com/sgoertzen/sonarbreak/qualitygate/ResultDeserializer.java", "func_name": "ResultDeserializer.getText", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the text from child node with the given name. Returns null if child node does not exist.\n\n@param node Node to search\n@param propertyName Name of the child node\n@return The text value of the child node", "docstring_tokens": ["Get", "the", "text", "from", "child", "node", "with", "the", "given", "name", ".", "Returns", "null", "if", "child", "node", "does", "not", "exist", "."], "sha": "65bec98dd163bc5f97302431b7f40fa658766bd7", "url": "https://github.com/sgoertzen/sonar-break-maven-plugin/blob/65bec98dd163bc5f97302431b7f40fa658766bd7/src/main/java/com/sgoertzen/sonarbreak/qualitygate/ResultDeserializer.java#L69-L75", "partition": "valid"} +{"repo": "sgoertzen/sonar-break-maven-plugin", "path": "src/main/java/com/sgoertzen/sonarbreak/QueryExecutor.java", "func_name": "QueryExecutor.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute the given query on the specified sonar server.\n\n@param query The query specifying the project and version of the build\n@return Result fetched from sonar\n@throws SonarBreakException If there is an issues communicating with sonar\n@throws IOException If the url is invalid", "docstring_tokens": ["Execute", "the", "given", "query", "on", "the", "specified", "sonar", "server", "."], "sha": "65bec98dd163bc5f97302431b7f40fa658766bd7", "url": "https://github.com/sgoertzen/sonar-break-maven-plugin/blob/65bec98dd163bc5f97302431b7f40fa658766bd7/src/main/java/com/sgoertzen/sonarbreak/QueryExecutor.java#L61-L70", "partition": "valid"} +{"repo": "sgoertzen/sonar-break-maven-plugin", "path": "src/main/java/com/sgoertzen/sonarbreak/QueryExecutor.java", "func_name": "QueryExecutor.buildURL", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a url for the specified quality gate query\n\n@param sonarURL The sonar server we will be querying\n@param query Holds details on the query we want to make\n@return A URL object representing the query\n@throws MalformedURLException If the sonar url is not valid\n@throws IllegalArgumentException If the sonar key is not valid", "docstring_tokens": ["Creates", "a", "url", "for", "the", "specified", "quality", "gate", "query"], "sha": "65bec98dd163bc5f97302431b7f40fa658766bd7", "url": "https://github.com/sgoertzen/sonar-break-maven-plugin/blob/65bec98dd163bc5f97302431b7f40fa658766bd7/src/main/java/com/sgoertzen/sonarbreak/QueryExecutor.java#L81-L87", "partition": "valid"} +{"repo": "sgoertzen/sonar-break-maven-plugin", "path": "src/main/java/com/sgoertzen/sonarbreak/QueryExecutor.java", "func_name": "QueryExecutor.fetchSonarStatusWithRetries", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the status from sonar for the currently executing build. This waits for sonar to complete its processing\nbefore returning the results.\n\n@param queryURL The sonar URL to get the results from\n@param version The current project version number\n@return Matching result object for this build\n@throws IOException\n@throws SonarBreakException", "docstring_tokens": ["Get", "the", "status", "from", "sonar", "for", "the", "currently", "executing", "build", ".", "This", "waits", "for", "sonar", "to", "complete", "its", "processing", "before", "returning", "the", "results", "."], "sha": "65bec98dd163bc5f97302431b7f40fa658766bd7", "url": "https://github.com/sgoertzen/sonar-break-maven-plugin/blob/65bec98dd163bc5f97302431b7f40fa658766bd7/src/main/java/com/sgoertzen/sonarbreak/QueryExecutor.java#L99-L127", "partition": "valid"} +{"repo": "sgoertzen/sonar-break-maven-plugin", "path": "src/main/java/com/sgoertzen/sonarbreak/QueryExecutor.java", "func_name": "QueryExecutor.fetchSonarStatus", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the status of a build project from sonar. This returns the current status that sonar has and does not\ndo any checking to ensure it matches the current project\n\n@param queryURL The sonar URL to hit to get the status\n@return The sonar response include quality gate status\n@throws IOException\n@throws SonarBreakException", "docstring_tokens": ["Get", "the", "status", "of", "a", "build", "project", "from", "sonar", ".", "This", "returns", "the", "current", "status", "that", "sonar", "has", "and", "does", "not", "do", "any", "checking", "to", "ensure", "it", "matches", "the", "current", "project"], "sha": "65bec98dd163bc5f97302431b7f40fa658766bd7", "url": "https://github.com/sgoertzen/sonar-break-maven-plugin/blob/65bec98dd163bc5f97302431b7f40fa658766bd7/src/main/java/com/sgoertzen/sonarbreak/QueryExecutor.java#L138-L150", "partition": "valid"} +{"repo": "sgoertzen/sonar-break-maven-plugin", "path": "src/main/java/com/sgoertzen/sonarbreak/QueryExecutor.java", "func_name": "QueryExecutor.parseResponse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses the string response from sonar into POJOs.\n\n@param response The json response from the sonar server.\n@return Object representing the Sonar response\n@throws SonarBreakException Thrown if the response is not JSON or it does not contain quality gate data.", "docstring_tokens": ["Parses", "the", "string", "response", "from", "sonar", "into", "POJOs", "."], "sha": "65bec98dd163bc5f97302431b7f40fa658766bd7", "url": "https://github.com/sgoertzen/sonar-break-maven-plugin/blob/65bec98dd163bc5f97302431b7f40fa658766bd7/src/main/java/com/sgoertzen/sonarbreak/QueryExecutor.java#L191-L206", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/IndyRepositorySession.java", "func_name": "IndyRepositorySession.extractBuildArtifacts", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve tracking report from repository manager. Add each tracked download to the dependencies of the build result. Add\neach tracked upload to the built artifacts of the build result. Promote uploaded artifacts to the product-level storage.\nFinally, clear the tracking report, and delete the hosted repository + group associated with the completed build.", "docstring_tokens": ["Retrieve", "tracking", "report", "from", "repository", "manager", ".", "Add", "each", "tracked", "download", "to", "the", "dependencies", "of", "the", "build", "result", ".", "Add", "each", "tracked", "upload", "to", "the", "built", "artifacts", "of", "the", "build", "result", ".", "Promote", "uploaded", "artifacts", "to", "the", "product", "-", "level", "storage", ".", "Finally", "clear", "the", "tracking", "report", "and", "delete", "the", "hosted", "repository", "+", "group", "associated", "with", "the", "completed", "build", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/IndyRepositorySession.java#L151-L204", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/IndyRepositorySession.java", "func_name": "IndyRepositorySession.processUploads", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return output artifacts metadata.\n\n@param report The tracking report that contains info about artifacts uploaded (output) from the build\n@return List of output artifacts meta data\n@throws RepositoryManagerException In case of a client API transport error or an error during promotion of artifacts", "docstring_tokens": ["Return", "output", "artifacts", "metadata", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/IndyRepositorySession.java#L441-L490", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/IndyRepositorySession.java", "func_name": "IndyRepositorySession.computeIdentifier", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Computes identifier string for an artifact. If the download path is valid for a package-type specific artifact it\ncreates the identifier accordingly.\n\n@param transfer the download or upload that we want to generate identifier for\n@return generated identifier", "docstring_tokens": ["Computes", "identifier", "string", "for", "an", "artifact", ".", "If", "the", "download", "path", "is", "valid", "for", "a", "package", "-", "type", "specific", "artifact", "it", "creates", "the", "identifier", "accordingly", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/IndyRepositorySession.java#L499-L534", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/IndyRepositorySession.java", "func_name": "IndyRepositorySession.computeGenericIdentifier", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Compute the identifier string for a generic download, that does not match package type specific files structure.\nIt prefers to use the origin URL if it is not empty. In case it is then it uses local URL, which can never be\nempty, it is the local file mirror in Indy. After that it attaches the sha256 separated by a pipe.\n\n@param originUrl the origin URL of the transfer, it can be null\n@param localUrl url where the artifact was backed up in Indy\n@param sha256 the SHA-256 of the transfer\n@return the generated identifier", "docstring_tokens": ["Compute", "the", "identifier", "string", "for", "a", "generic", "download", "that", "does", "not", "match", "package", "type", "specific", "files", "structure", ".", "It", "prefers", "to", "use", "the", "origin", "URL", "if", "it", "is", "not", "empty", ".", "In", "case", "it", "is", "then", "it", "uses", "local", "URL", "which", "can", "never", "be", "empty", "it", "is", "the", "local", "file", "mirror", "in", "Indy", ".", "After", "that", "it", "attaches", "the", "sha256", "separated", "by", "a", "pipe", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/IndyRepositorySession.java#L546-L554", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/IndyRepositorySession.java", "func_name": "IndyRepositorySession.validateArtifact", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check artifact for any validation errors. If there are constraint violations, then a RepositoryManagerException is thrown.\nOtherwise the artifact is returned.\n\n@param artifact to validate\n@return the same artifact\n@throws RepositoryManagerException if there are constraint violations", "docstring_tokens": ["Check", "artifact", "for", "any", "validation", "errors", ".", "If", "there", "are", "constraint", "violations", "then", "a", "RepositoryManagerException", "is", "thrown", ".", "Otherwise", "the", "artifact", "is", "returned", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/IndyRepositorySession.java#L564-L570", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "spi/src/main/java/org/jboss/pnc/spi/coordinator/BuildTask.java", "func_name": "BuildTask.hasConfigDependencyOn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if this build task has a build configuration dependency on the given build task.\nThe search include transitive dependencies.\n\n@param buildTask The buildTask with the config to check\n@return true if this task's build config has a dependency (including transitive) on the build config of the given task, otherwise false", "docstring_tokens": ["Check", "if", "this", "build", "task", "has", "a", "build", "configuration", "dependency", "on", "the", "given", "build", "task", ".", "The", "search", "include", "transitive", "dependencies", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/spi/src/main/java/org/jboss/pnc/spi/coordinator/BuildTask.java#L151-L162", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "spi/src/main/java/org/jboss/pnc/spi/coordinator/BuildTask.java", "func_name": "BuildTask.hasDirectConfigDependencyOn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if this build task has a direct build configuration dependency on the given build task\n\n@param buildTask The buildTask with the config to check\n@return true if this task's build config has a direct dependency on the build config of the given task, otherwise false", "docstring_tokens": ["Check", "if", "this", "build", "task", "has", "a", "direct", "build", "configuration", "dependency", "on", "the", "given", "build", "task"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/spi/src/main/java/org/jboss/pnc/spi/coordinator/BuildTask.java#L170-L181", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "common/src/main/java/org/jboss/pnc/common/json/ConfigurationJSONParser.java", "func_name": "ConfigurationJSONParser.parseJSONPNCConfig", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads JSON configuration to the module configuration object\n\n@param module config\n@param configContent Configuration in JSON\n@param provider configuration provider of given module config type\n@return Loaded configuration\n@throws ConfigurationParseException Thrown if configuration string is malformed", "docstring_tokens": ["Loads", "JSON", "configuration", "to", "the", "module", "configuration", "object"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/common/src/main/java/org/jboss/pnc/common/json/ConfigurationJSONParser.java#L45-L64", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/IndyRunningDeletion.java", "func_name": "IndyRunningDeletion.monitor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Trigger the repository deletion configured for this instance, and send the result to the appropriate consumer.\n\n@param onComplete The consumer which will handle non-error results\n@param onError Handles errors", "docstring_tokens": ["Trigger", "the", "repository", "deletion", "configured", "for", "this", "instance", "and", "send", "the", "result", "to", "the", "appropriate", "consumer", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/IndyRunningDeletion.java#L49-L62", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "spi/src/main/java/org/jboss/pnc/spi/coordinator/BuildSetTask.java", "func_name": "BuildSetTask.taskStatusUpdatedToFinalState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Notify the set that the state of one of it's tasks has changed.", "docstring_tokens": ["Notify", "the", "set", "that", "the", "state", "of", "one", "of", "it", "s", "tasks", "has", "changed", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/spi/src/main/java/org/jboss/pnc/spi/coordinator/BuildSetTask.java#L79-L109", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "spi/src/main/java/org/jboss/pnc/spi/coordinator/BuildSetTask.java", "func_name": "BuildSetTask.getBuildTask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the build task which contains the given audited build configuration\n\n@param buildConfigurationAudited A BuildConfigurationAudited entity\n@return The build task with the matching configuration, or null if there is none", "docstring_tokens": ["Get", "the", "build", "task", "which", "contains", "the", "given", "audited", "build", "configuration"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/spi/src/main/java/org/jboss/pnc/spi/coordinator/BuildSetTask.java#L150-L152", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/IndyRunningPromotion.java", "func_name": "IndyRunningPromotion.monitor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Trigger the repository promotion configured for this instance, and send the result to the appropriate consumer.\n\n@param onComplete The consumer which will handle non-error results\n@param onError Handles errors", "docstring_tokens": ["Trigger", "the", "repository", "promotion", "configured", "for", "this", "instance", "and", "send", "the", "result", "to", "the", "appropriate", "consumer", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/IndyRunningPromotion.java#L53-L77", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "common/src/main/java/org/jboss/pnc/common/graph/GraphUtils.java", "func_name": "GraphUtils.merge", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds all elements from toMerge to target.", "docstring_tokens": ["Adds", "all", "elements", "from", "toMerge", "to", "target", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/common/src/main/java/org/jboss/pnc/common/graph/GraphUtils.java#L39-L56", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "common/src/main/java/org/jboss/pnc/common/util/IoUtils.java", "func_name": "IoUtils.readFileAsString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads whole content of file to String\n\n@param fileName Existing file\n@return File content\n@throws IOException Thrown if data couldn't be loaded", "docstring_tokens": ["Reads", "whole", "content", "of", "file", "to", "String"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/common/src/main/java/org/jboss/pnc/common/util/IoUtils.java#L66-L71", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "common/src/main/java/org/jboss/pnc/common/util/IoUtils.java", "func_name": "IoUtils.readStreamAsString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads whole content of input stream to String\n\n@param stream Opened stream\n@return Stream content\n@throws IOException Thrown if data couldn't be loaded", "docstring_tokens": ["Reads", "whole", "content", "of", "input", "stream", "to", "String"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/common/src/main/java/org/jboss/pnc/common/util/IoUtils.java#L80-L85", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "process-managers/src/main/java/org/jboss/pnc/managers/ProductMilestoneReleaseManager.java", "func_name": "ProductMilestoneReleaseManager.startRelease", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Starts milestone release process\n\n@param milestone product milestone to start the release for\n@param accessToken", "docstring_tokens": ["Starts", "milestone", "release", "process"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/process-managers/src/main/java/org/jboss/pnc/managers/ProductMilestoneReleaseManager.java#L111-L114", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "bpm/src/main/java/org/jboss/pnc/bpm/BpmManager.java", "func_name": "BpmManager.cleanup", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Regularly cleans finished BPM tasks asynchronously\nImmediate cleanup is not usable because of NCL-2300", "docstring_tokens": ["Regularly", "cleans", "finished", "BPM", "tasks", "asynchronously", "Immediate", "cleanup", "is", "not", "usable", "because", "of", "NCL", "-", "2300"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/bpm/src/main/java/org/jboss/pnc/bpm/BpmManager.java#L237-L273", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "bpm/src/main/java/org/jboss/pnc/bpm/BpmManager.java", "func_name": "BpmManager.getTaskIdByBuildId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method solves backwards compatibility problem.\nIt will be removed soon.", "docstring_tokens": ["This", "method", "solves", "backwards", "compatibility", "problem", ".", "It", "will", "be", "removed", "soon", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/bpm/src/main/java/org/jboss/pnc/bpm/BpmManager.java#L279-L289", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "common/src/main/java/org/jboss/pnc/common/util/StreamCollectors.java", "func_name": "StreamCollectors.toFlatList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Flattening collector.\nLook at StreamCollectorsTest for example usage\n\n\n@param type of elements in the collections\n@return flattened list of elements from all of the collections", "docstring_tokens": ["Flattening", "collector", ".", "Look", "at", "StreamCollectorsTest", "for", "example", "usage"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/common/src/main/java/org/jboss/pnc/common/util/StreamCollectors.java#L64-L72", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/maintenance/TemporaryBuildsCleanupScheduler.java", "func_name": "TemporaryBuildsCleanupScheduler.cleanupExpiredTemporaryBuilds", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Cleanup old temporary builds every midnight", "docstring_tokens": ["Cleanup", "old", "temporary", "builds", "every", "midnight"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/maintenance/TemporaryBuildsCleanupScheduler.java#L93-L105", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/RepositoryManagerDriver.java", "func_name": "RepositoryManagerDriver.setupBuildRepos", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create the hosted repository and group necessary to support a single build. The hosted repository holds artifacts\nuploaded from the build, and the group coordinates access to this hosted repository, along with content from the\nproduct-level content group with which this build is associated. The group also provides a tracking target, so the\nrepository manager can keep track of downloads and uploads for the build.\n\n@param execution The execution object, which contains the content id for creating the repo, and the build id.\n@param packageType the package type key used by Indy\n@throws IndyClientException", "docstring_tokens": ["Create", "the", "hosted", "repository", "and", "group", "necessary", "to", "support", "a", "single", "build", ".", "The", "hosted", "repository", "holds", "artifacts", "uploaded", "from", "the", "build", "and", "the", "group", "coordinates", "access", "to", "this", "hosted", "repository", "along", "with", "content", "from", "the", "product", "-", "level", "content", "group", "with", "which", "this", "build", "is", "associated", ".", "The", "group", "also", "provides", "a", "tracking", "target", "so", "the", "repository", "manager", "can", "keep", "track", "of", "downloads", "and", "uploads", "for", "the", "build", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/indy-repository-manager/src/main/java/org/jboss/pnc/indyrepositorymanager/RepositoryManagerDriver.java#L270-L313", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "rest/src/main/java/org/jboss/pnc/rest/endpoint/BpmEndpoint.java", "func_name": "BpmEndpoint.onRCCreationSuccess", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Given the successful BC creation, add the BC into the BC sets. This solution has been\nselected because if this was done in BPM process there would have to be a foreach cycle and\nat least two REST requests for each BC Set ID. The process would become too complicated.\nNotification listeners are ideal for these kind of operations.", "docstring_tokens": ["Given", "the", "successful", "BC", "creation", "add", "the", "BC", "into", "the", "BC", "sets", ".", "This", "solution", "has", "been", "selected", "because", "if", "this", "was", "done", "in", "BPM", "process", "there", "would", "have", "to", "be", "a", "foreach", "cycle", "and", "at", "least", "two", "REST", "requests", "for", "each", "BC", "Set", "ID", ".", "The", "process", "would", "become", "too", "complicated", ".", "Notification", "listeners", "are", "ideal", "for", "these", "kind", "of", "operations", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/rest/src/main/java/org/jboss/pnc/rest/endpoint/BpmEndpoint.java#L194-L249", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "rest/src/main/java/org/jboss/pnc/rest/endpoint/BpmEndpoint.java", "func_name": "BpmEndpoint.addWebsocketForwardingListeners", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method will add listeners to all important RCC event types\nand forward the event to WS clients.", "docstring_tokens": ["This", "method", "will", "add", "listeners", "to", "all", "important", "RCC", "event", "types", "and", "forward", "the", "event", "to", "WS", "clients", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/rest/src/main/java/org/jboss/pnc/rest/endpoint/BpmEndpoint.java#L381-L390", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "pnc-mock/src/main/java/org/jboss/pnc/mock/model/builders/ArtifactBuilder.java", "func_name": "ArtifactBuilder.mockImportedArtifact", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create an artifact with an import date and origin url", "docstring_tokens": ["Create", "an", "artifact", "with", "an", "import", "date", "and", "origin", "url"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/pnc-mock/src/main/java/org/jboss/pnc/mock/model/builders/ArtifactBuilder.java#L59-L64", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "auth/src/main/java/org/jboss/pnc/auth/keycloakutil/util/HttpUtil.java", "func_name": "HttpUtil.setSslRequired", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets flag telling if SSL hostname validation should be done which also clears the cached httpClient. This method\nis not thread-safe and could cause race conditions if the class is used with different settings at the same\ntime, but that is not expected.\n\n@param sslRequired the desired value", "docstring_tokens": ["Sets", "flag", "telling", "if", "SSL", "hostname", "validation", "should", "be", "done", "which", "also", "clears", "the", "cached", "httpClient", ".", "This", "method", "is", "not", "thread", "-", "safe", "and", "could", "cause", "race", "conditions", "if", "the", "class", "is", "used", "with", "different", "settings", "at", "the", "same", "time", "but", "that", "is", "not", "expected", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/auth/src/main/java/org/jboss/pnc/auth/keycloakutil/util/HttpUtil.java#L300-L305", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/maintenance/TemporaryBuildsCleaner.java", "func_name": "TemporaryBuildsCleaner.deleteTemporaryBuild", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes a temporary build and artifacts created during the build or orphan dependencies used\n\n@param buildRecordId BuildRecord to be deleted\n@param authToken\n@return true if success", "docstring_tokens": ["Deletes", "a", "temporary", "build", "and", "artifacts", "created", "during", "the", "build", "or", "orphan", "dependencies", "used"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/maintenance/TemporaryBuildsCleaner.java#L79-L108", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/maintenance/TemporaryBuildsCleaner.java", "func_name": "TemporaryBuildsCleaner.deleteTemporaryBuildConfigSetRecord", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes a BuildConfigSetRecord and BuildRecords produced in the build\n@param buildConfigSetRecordId BuildConfigSetRecord to be deleted\n@param authToken", "docstring_tokens": ["Deletes", "a", "BuildConfigSetRecord", "and", "BuildRecords", "produced", "in", "the", "build"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/maintenance/TemporaryBuildsCleaner.java#L139-L158", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/DefaultBuildCoordinator.java", "func_name": "DefaultBuildCoordinator.build", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Run a single build. Uses the settings from the specific revision of a BuildConfiguration.\nThe dependencies are resolved by the BuildConfiguration relations and are used in the latest revisions\n\n@param buildConfigurationAudited A revision of a BuildConfiguration which will be used.\n@param user The user who triggered the build.\n@param buildOptions Customization of a build specified by user\n\n@return The new build task\n@throws BuildConflictException If there is already a build running with the same build configuration Id and revision", "docstring_tokens": ["Run", "a", "single", "build", ".", "Uses", "the", "settings", "from", "the", "specific", "revision", "of", "a", "BuildConfiguration", ".", "The", "dependencies", "are", "resolved", "by", "the", "BuildConfiguration", "relations", "and", "are", "used", "in", "the", "latest", "revisions"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/DefaultBuildCoordinator.java#L180-L185", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/DefaultBuildCoordinator.java", "func_name": "DefaultBuildCoordinator.checkForEmptyBuildSetTask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if the given build set task is empty and update the status message appropriately", "docstring_tokens": ["Check", "if", "the", "given", "build", "set", "task", "is", "empty", "and", "update", "the", "status", "message", "appropriately"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/DefaultBuildCoordinator.java#L443-L447", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-executor/src/main/java/org/jboss/pnc/executor/servicefactories/EnvironmentDriverFactory.java", "func_name": "EnvironmentDriverFactory.getDriver", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets environment driver, which can manage requested environment\n@return Available driver for given systemImageType\n@throws ExecutorException Throw if no suitable driver for selected environment was found", "docstring_tokens": ["Gets", "environment", "driver", "which", "can", "manage", "requested", "environment"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-executor/src/main/java/org/jboss/pnc/executor/servicefactories/EnvironmentDriverFactory.java#L45-L52", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "spi/src/main/java/org/jboss/pnc/spi/datastore/predicates/BuildConfigurationPredicates.java", "func_name": "BuildConfigurationPredicates.isNotArchived", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return a predicate which excludes all archived build configurations\n@return", "docstring_tokens": ["Return", "a", "predicate", "which", "excludes", "all", "archived", "build", "configurations"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/spi/src/main/java/org/jboss/pnc/spi/datastore/predicates/BuildConfigurationPredicates.java#L62-L64", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/datastore/DatastoreAdapter.java", "func_name": "DatastoreAdapter.loadBuildConfigurations", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fetch build configurations of project to be able access it outside transaction\n@param buildConfigAudited build config for which the build configurations are to be fetched", "docstring_tokens": ["Fetch", "build", "configurations", "of", "project", "to", "be", "able", "access", "it", "outside", "transaction"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/datastore/DatastoreAdapter.java#L116-L119", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/datastore/DatastoreAdapter.java", "func_name": "DatastoreAdapter.storeResult", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Store build result along with error information appended to the build log\n\n@param buildTask task\n@param buildResult result of running the task\n@param e The error that occurred during the build process\n@throws DatastoreException on failure to store data", "docstring_tokens": ["Store", "build", "result", "along", "with", "error", "information", "appended", "to", "the", "build", "log"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/datastore/DatastoreAdapter.java#L233-L277", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/datastore/DatastoreAdapter.java", "func_name": "DatastoreAdapter.initBuildRecordBuilder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initialize a new BuildRecord.Builder based on the data contained in the BuildTask.\nNote, this must be done inside a transaction because it fetches the BuildRecordSet entities from\nthe database.\n\n@return The initialized build record builder", "docstring_tokens": ["Initialize", "a", "new", "BuildRecord", ".", "Builder", "based", "on", "the", "data", "contained", "in", "the", "BuildTask", ".", "Note", "this", "must", "be", "done", "inside", "a", "transaction", "because", "it", "fetches", "the", "BuildRecordSet", "entities", "from", "the", "database", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/datastore/DatastoreAdapter.java#L306-L335", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "spi/src/main/java/org/jboss/pnc/spi/datastore/predicates/ProductVersionPredicates.java", "func_name": "ProductVersionPredicates.withBuildConfigurationId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This predicate returns all the ProductVersions linked to a specified BuildConfiguration", "docstring_tokens": ["This", "predicate", "returns", "all", "the", "ProductVersions", "linked", "to", "a", "specified", "BuildConfiguration"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/spi/src/main/java/org/jboss/pnc/spi/datastore/predicates/ProductVersionPredicates.java#L57-L62", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "jenkins-build-driver/src/main/java/org/jboss/pnc/jenkinsbuilddriver/JenkinsServerFactory.java", "func_name": "JenkinsServerFactory.isJenkinsServerSecuredWithCSRF", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This checks if jenkins does not use option Prevent Cross Site Request Forgery exploits\n\nmnovotny: TODO: see NCL-669 this method should be placed in producing JenkinsServer, but as CSRF is not propagated\nout from JenkinsServer instance, we need to figure out the setting by special API call through JenkinsHttpClient\n\n@param url Jenkins instance URL with port\n@return\n@throws BuildDriverException", "docstring_tokens": ["This", "checks", "if", "jenkins", "does", "not", "use", "option", "Prevent", "Cross", "Site", "Request", "Forgery", "exploits"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/jenkins-build-driver/src/main/java/org/jboss/pnc/jenkinsbuilddriver/JenkinsServerFactory.java#L73-L97", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "datastore/src/main/java/org/jboss/pnc/datastore/DefaultDatastore.java", "func_name": "DefaultDatastore.saveArtifacts", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks the given list against the existing database and creates a new list containing\nartifacts which have been saved to or loaded from the database.\n\n@param artifacts of in-memory artifacts to either insert to the database or find the matching record in the db\n@param artifactCache\n@return Set of up to date JPA artifact entities", "docstring_tokens": ["Checks", "the", "given", "list", "against", "the", "existing", "database", "and", "creates", "a", "new", "list", "containing", "artifacts", "which", "have", "been", "saved", "to", "or", "loaded", "from", "the", "database", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/datastore/src/main/java/org/jboss/pnc/datastore/DefaultDatastore.java#L175-L216", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "datastore/src/main/java/org/jboss/pnc/datastore/DefaultDatastore.java", "func_name": "DefaultDatastore.saveBuildConfigSetRecord", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Save a build config set record to the db. This requires a new transaction to ensure that\nthe record is immediately committed to the database so that it's available to use by the\nforeign keys set in the individual build records.", "docstring_tokens": ["Save", "a", "build", "config", "set", "record", "to", "the", "db", ".", "This", "requires", "a", "new", "transaction", "to", "ensure", "that", "the", "record", "is", "immediately", "committed", "to", "the", "database", "so", "that", "it", "s", "available", "to", "use", "by", "the", "foreign", "keys", "set", "in", "the", "individual", "build", "records", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/datastore/src/main/java/org/jboss/pnc/datastore/DefaultDatastore.java#L305-L309", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "datastore/src/main/java/org/jboss/pnc/datastore/DefaultDatastore.java", "func_name": "DefaultDatastore.getBuildConfigurations", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Rebuild is required if Build Configuration has been modified or a dependency has been rebuilt since last successful build.", "docstring_tokens": ["Rebuild", "is", "required", "if", "Build", "Configuration", "has", "been", "modified", "or", "a", "dependency", "has", "been", "rebuilt", "since", "last", "successful", "build", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/datastore/src/main/java/org/jboss/pnc/datastore/DefaultDatastore.java#L346-L349", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "datastore/src/main/java/org/jboss/pnc/datastore/DefaultDatastore.java", "func_name": "DefaultDatastore.hasARebuiltImplicitDependency", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check is some of the dependencies from the previous build were rebuild.\nChecking is done based on captured dependencies which are stored in the Build Record.", "docstring_tokens": ["Check", "is", "some", "of", "the", "dependencies", "from", "the", "previous", "build", "were", "rebuild", ".", "Checking", "is", "done", "based", "on", "captured", "dependencies", "which", "are", "stored", "in", "the", "Build", "Record", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/datastore/src/main/java/org/jboss/pnc/datastore/DefaultDatastore.java#L409-L413", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "datastore/src/main/java/org/jboss/pnc/datastore/DefaultDatastore.java", "func_name": "DefaultDatastore.hasARebuiltExplicitDependency", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check is some of the dependencies defined on BuildConfiguration has newer version.", "docstring_tokens": ["Check", "is", "some", "of", "the", "dependencies", "defined", "on", "BuildConfiguration", "has", "newer", "version", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/datastore/src/main/java/org/jboss/pnc/datastore/DefaultDatastore.java#L418-L430", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "bpm/src/main/java/org/jboss/pnc/bpm/BpmTask.java", "func_name": "BpmTask.addListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Listen to notifications from BPM process for this task.\n\n@param eventType event to follow", "docstring_tokens": ["Listen", "to", "notifications", "from", "BPM", "process", "for", "this", "task", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/bpm/src/main/java/org/jboss/pnc/bpm/BpmTask.java#L138-L141", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "bpm/src/main/java/org/jboss/pnc/bpm/BpmTask.java", "func_name": "BpmTask.getExtendedProcessParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extend process parameters from the task with additional useful information,\nsuch as pncBaseUrl and taskId, needed for notifications.\nBefore use, taskId MUST be assigned.\n\n@throws CoreException", "docstring_tokens": ["Extend", "process", "parameters", "from", "the", "task", "with", "additional", "useful", "information", "such", "as", "pncBaseUrl", "and", "taskId", "needed", "for", "notifications", ".", "Before", "use", "taskId", "MUST", "be", "assigned", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/bpm/src/main/java/org/jboss/pnc/bpm/BpmTask.java#L161-L177", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildTasksInitializer.java", "func_name": "BuildTasksInitializer.collectDependentConfigurations", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Collects all BuildConfigurationAudited entities, that needs to be built.\n\n@param buildConfiguration Current BuildConfiguration used to resolve dependencies.\n@param buildConfigurationAudited Specific revision of a BuildConfiguration (passed as first parameter) to be potentially built\n@param toBuild Set of BuildConfigurationAudited entities planned to be built\n@param visited Set of BuildConfigurations, which were already evaluated, if should be built\n@param checkImplicitDependencies\n@return Returns true, if the buildConfiguration should be rebuilt, otherwise returns false.", "docstring_tokens": ["Collects", "all", "BuildConfigurationAudited", "entities", "that", "needs", "to", "be", "built", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildTasksInitializer.java#L121-L152", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildTasksInitializer.java", "func_name": "BuildTasksInitializer.createBuildSetTask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a BuildSetTask of latest revisions of BuildConfigurations contained in the BuildConfigurationSet\n\n@param buildConfigurationSet BuildConfigurationSet to be built\n@param user A user, who triggered the build\n@param buildOptions Build options\n@param buildTaskIdProvider Provider to get build task ID\n@param submittedBuildTasks Already submitted build tasks\n@return Prepared BuildSetTask\n@throws CoreException Thrown if the BuildConfigSetRecord cannot be stored", "docstring_tokens": ["Create", "a", "BuildSetTask", "of", "latest", "revisions", "of", "BuildConfigurations", "contained", "in", "the", "BuildConfigurationSet"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildTasksInitializer.java#L165-L174", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildTasksInitializer.java", "func_name": "BuildTasksInitializer.createBuildSetTask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a BuildSetTask of BuildConfigurations contained in the BuildConfigurationSet.\n\nA specific revision of the BuildConfigurations contained in the set is used,\nif it's available in the buildConfigurationAuditedsMap parameter.\nIf it's not available, latest revision of the BuildConfiguration is used.\n\n@param buildConfigurationSet BuildConfigurationSet to be built\n@param buildConfigurationAuditedsMap A map BuildConfiguration::id:BuildConfigurationAudited of specific revisions of BuildConfigurations contained in the buildConfigurationSet\n@param user A user, who triggered the build\n@param buildOptions Build options\n@param buildTaskIdProvider Provider to get build task ID\n@param submittedBuildTasks Already submitted build tasks\n@return Prepared BuildSetTask\n@throws CoreException Thrown if the BuildConfigSetRecord cannot be stored", "docstring_tokens": ["Create", "a", "BuildSetTask", "of", "BuildConfigurations", "contained", "in", "the", "BuildConfigurationSet", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildTasksInitializer.java#L192-L222", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildTasksInitializer.java", "func_name": "BuildTasksInitializer.fillBuildTaskSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates build tasks and sets up the appropriate dependency relations\n\n@param buildSetTask The build set task which will contain the build tasks. This must already have\ninitialized the BuildConfigSet, BuildConfigSetRecord, Milestone, etc.", "docstring_tokens": ["Creates", "build", "tasks", "and", "sets", "up", "the", "appropriate", "dependency", "relations"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildTasksInitializer.java#L252-L297", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "rest/src/main/java/org/jboss/pnc/rest/provider/ArtifactProvider.java", "func_name": "ArtifactProvider.getBuiltArtifactsForBuildRecord", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Lookups built artifacts for the specified BuildRecord\n\n@return Returns requested artifacts or empty collection if BuildRecord with the specified ID doesn't exists", "docstring_tokens": ["Lookups", "built", "artifacts", "for", "the", "specified", "BuildRecord"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/rest/src/main/java/org/jboss/pnc/rest/provider/ArtifactProvider.java#L112-L115", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "common/src/main/java/org/jboss/pnc/common/util/StringUtils.java", "func_name": "StringUtils.addEndingSlash", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds ending slash if it is not present.\n\n@param string\n@return", "docstring_tokens": ["Adds", "ending", "slash", "if", "it", "is", "not", "present", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/common/src/main/java/org/jboss/pnc/common/util/StringUtils.java#L118-L126", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "common/src/main/java/org/jboss/pnc/common/util/StringUtils.java", "func_name": "StringUtils.deserializeInt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse comma separated string to Integer array.\n@return An empty array when the string parameter is empty or null.", "docstring_tokens": ["Parse", "comma", "separated", "string", "to", "Integer", "array", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/common/src/main/java/org/jboss/pnc/common/util/StringUtils.java#L197-L204", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "common/src/main/java/org/jboss/pnc/common/util/StringUtils.java", "func_name": "StringUtils.serializeInt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Serialize Integer array to comma separated string.\n@return An empty string when the Integer array parameter is empty or null.", "docstring_tokens": ["Serialize", "Integer", "array", "to", "comma", "separated", "string", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/common/src/main/java/org/jboss/pnc/common/util/StringUtils.java#L210-L216", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildQueue.java", "func_name": "BuildQueue.addReadyTask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a new, ready to build task to queue\n\n@param task task to be enqueued", "docstring_tokens": ["Add", "a", "new", "ready", "to", "build", "task", "to", "queue"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildQueue.java#L103-L111", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildQueue.java", "func_name": "BuildQueue.addWaitingTask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a task that is waiting for dependencies\n@param task task that is not ready to build\n@param taskReadyCallback a callback to be invoked when the task becomes ready", "docstring_tokens": ["Add", "a", "task", "that", "is", "waiting", "for", "dependencies"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildQueue.java#L118-L122", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildQueue.java", "func_name": "BuildQueue.executeNewReadyTasks", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Trigger searching for ready tasks in the waiting queue.\nThis method should be invoked if one task has finished and there's a possibility that other tasks became ready to be built.", "docstring_tokens": ["Trigger", "searching", "for", "ready", "tasks", "in", "the", "waiting", "queue", ".", "This", "method", "should", "be", "invoked", "if", "one", "task", "has", "finished", "and", "there", "s", "a", "possibility", "that", "other", "tasks", "became", "ready", "to", "be", "built", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildQueue.java#L172-L176", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildQueue.java", "func_name": "BuildQueue.getTask", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get build task for given build configuration from the queue.\n\n@param buildConfigAudited build configuration\n@return Optional.of(build task for the configuration) if build task is enqueued/in progress, Optional.empty() otherwise", "docstring_tokens": ["Get", "build", "task", "for", "given", "build", "configuration", "from", "the", "queue", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/builder/BuildQueue.java#L184-L189", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "model/src/main/java/org/jboss/pnc/model/TargetRepository.java", "func_name": "TargetRepository.isTrusted", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if a given artifact originates from a trusted source. Compares the given artifactOriginUrl\nto the list of trusted repositories.\n\n@param artifactOriginUrl The URL from which the artifact was downloaded\n@param targetRepository\n@return true if the artifact url came from a trusted repo, false otherwise", "docstring_tokens": ["Check", "if", "a", "given", "artifact", "originates", "from", "a", "trusted", "source", ".", "Compares", "the", "given", "artifactOriginUrl", "to", "the", "list", "of", "trusted", "repositories", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/model/src/main/java/org/jboss/pnc/model/TargetRepository.java#L187-L200", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "model/src/main/java/org/jboss/pnc/model/User.java", "func_name": "User.addBuildRecord", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the project build record.\n\n@param buildRecord the project build record\n@return the project build record", "docstring_tokens": ["Adds", "the", "project", "build", "record", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/model/src/main/java/org/jboss/pnc/model/User.java#L206-L212", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "model/src/main/java/org/jboss/pnc/model/User.java", "func_name": "User.removeBuildRecord", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the project build record.\n\n@param buildRecord the project build record\n@return the project build record", "docstring_tokens": ["Removes", "the", "project", "build", "record", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/model/src/main/java/org/jboss/pnc/model/User.java#L220-L224", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "build-coordinator/src/main/java/org/jboss/pnc/coordinator/maintenance/TemporaryBuildsCleanerAsyncInvoker.java", "func_name": "TemporaryBuildsCleanerAsyncInvoker.deleteTemporaryBuild", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes a single temporary build.\n\n@param buildRecordId ID of the build to be deleted\n@param authToken Bearer token\n@param onComplete Operation to be executed after deletion operation\n@return True if the build exists and deletion started otherwise, false is build doesn't exist\n@throws ValidationException Thrown when build cannot be deleted", "docstring_tokens": ["Deletes", "a", "single", "temporary", "build", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/build-coordinator/src/main/java/org/jboss/pnc/coordinator/maintenance/TemporaryBuildsCleanerAsyncInvoker.java#L75-L96", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "model/src/main/java/org/jboss/pnc/model/BuildConfiguration.java", "func_name": "BuildConfiguration.getAllDependencies", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the full set of both the direct and indirect dependencies.\n\n@return A set containing both direct and indirect dependencies", "docstring_tokens": ["Get", "the", "full", "set", "of", "both", "the", "direct", "and", "indirect", "dependencies", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/model/src/main/java/org/jboss/pnc/model/BuildConfiguration.java#L432-L437", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "model/src/main/java/org/jboss/pnc/model/BuildConfiguration.java", "func_name": "BuildConfiguration.addDependant", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method is private because a dependant should never be added externally. Instead the dependency relation should be\nset up using the addDependency method\n\n@param dependant\n@return", "docstring_tokens": ["This", "method", "is", "private", "because", "a", "dependant", "should", "never", "be", "added", "externally", ".", "Instead", "the", "dependency", "relation", "should", "be", "set", "up", "using", "the", "addDependency", "method"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/model/src/main/java/org/jboss/pnc/model/BuildConfiguration.java#L457-L463", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "model/src/main/java/org/jboss/pnc/model/BuildConfiguration.java", "func_name": "BuildConfiguration.removeDependant", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method is private because a dependant should never be removed externally. Instead the dependency relation should be\nset up using the removeDependency method\n\n@param dependant\n@return", "docstring_tokens": ["This", "method", "is", "private", "because", "a", "dependant", "should", "never", "be", "removed", "externally", ".", "Instead", "the", "dependency", "relation", "should", "be", "set", "up", "using", "the", "removeDependency", "method"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/model/src/main/java/org/jboss/pnc/model/BuildConfiguration.java#L472-L478", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "model/src/main/java/org/jboss/pnc/model/BuildConfiguration.java", "func_name": "BuildConfiguration.retrieveCloneName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Change the BC clone name into date_original-BC-name where date will be for every clone updated and for original BC names\nwill be added.\n\nExample: clone1 of pslegr-BC on Wednesday October,21st, 2015: 20151021095415_pslegr-BC\n\nclone2 of 20151021095415_pslegr-BC on Thursday October,22nd, 2015: 20151022nnnnnn_pslegr-BC\n\nclone3 of pslegr-BC on Friday October,23rd, 2015: 20151023nnnnnn_pslegr-BC\n\n@param bcName\n@param now\n@return A correct name for the cloned BuildConfiguration", "docstring_tokens": ["Change", "the", "BC", "clone", "name", "into", "date_original", "-", "BC", "-", "name", "where", "date", "will", "be", "for", "every", "clone", "updated", "and", "for", "original", "BC", "names", "will", "be", "added", "."], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/model/src/main/java/org/jboss/pnc/model/BuildConfiguration.java#L635-L670", "partition": "valid"} +{"repo": "project-ncl/pnc", "path": "common/src/main/java/org/jboss/pnc/common/Configuration.java", "func_name": "Configuration.getModuleConfig", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads configuration for module\n\n@param provider configuration provider of given module config type\n@param module config\n@return Loaded configuration\n@throws ConfigurationParseException Thrown if configuration file couldn't be loaded or parsed", "docstring_tokens": ["Reads", "configuration", "for", "module"], "sha": "85743ca59d14cdf750d6daa8bd0a0a8be390a796", "url": "https://github.com/project-ncl/pnc/blob/85743ca59d14cdf750d6daa8bd0a0a8be390a796/common/src/main/java/org/jboss/pnc/common/Configuration.java#L83-L98", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-tomcat/src/main/java/com/github/mjeanroy/junit/servers/tomcat/junit4/TomcatServerJunit4Runner.java", "func_name": "TomcatServerJunit4Runner.instantiate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Instantiate embedded tomcat to be used in tests.\n\n@param klass The tested class.\n@return The embedded tomcat.", "docstring_tokens": ["Instantiate", "embedded", "tomcat", "to", "be", "used", "in", "tests", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-tomcat/src/main/java/com/github/mjeanroy/junit/servers/tomcat/junit4/TomcatServerJunit4Runner.java#L57-L60", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/jupiter/JunitServerExtension.java", "func_name": "JunitServerExtension.registerEmbeddedServer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Start and register the embedded server.\n\nThe embedded server may be used in two modes:\n\n
    \n
  • Started before all tests, and stopped after all tests, this is the static mode (the extension has been used as a static extension).
  • \n
  • Started before each tests, and stopped after eacg tests, this is the non static mode (the extension has not been used as a static extension).
  • \n
\n\n@param context The test context.\n@param staticMode {@code true} if the extension has been registered as a static extension, {@code false} otherwise.\n@return The registered adapter.", "docstring_tokens": ["Start", "and", "register", "the", "embedded", "server", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/jupiter/JunitServerExtension.java#L312-L322", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/jupiter/JunitServerExtension.java", "func_name": "JunitServerExtension.unregisterEmbeddedServer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stop and remove from the store the started embedded server.\n\n@param context The test context.\n@param staticMode {@code true} if the extension has been registered as a static extension, {@code false} otherwise.\n@see #registerEmbeddedServer(ExtensionContext, boolean)", "docstring_tokens": ["Stop", "and", "remove", "from", "the", "store", "the", "started", "embedded", "server", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/jupiter/JunitServerExtension.java#L331-L342", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/jupiter/JunitServerExtension.java", "func_name": "JunitServerExtension.putInStore", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Put value in the internal store.\n\n@param context The Junit-Jupiter test context.\n@param name The name of the value to look for.\n@param value The value to store.\n@param The type of the value to look for.", "docstring_tokens": ["Put", "value", "in", "the", "internal", "store", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/jupiter/JunitServerExtension.java#L412-L415", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/jupiter/JunitServerExtension.java", "func_name": "JunitServerExtension.findInStore", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find value in the internal store.\n\n@param context The Junit-Jupiter test context.\n@param name The name of the value to look for.\n@param The type of the value to look for.\n@return The value currently stored.", "docstring_tokens": ["Find", "value", "in", "the", "internal", "store", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/jupiter/JunitServerExtension.java#L425-L428", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/UrlUtils.java", "func_name": "UrlUtils.concatenatePath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Concatenate two path value.\n\n@param path Path prefix.\n@param endpoint Path suffix.\n@return Final path.", "docstring_tokens": ["Concatenate", "two", "path", "value", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/UrlUtils.java#L93-L112", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-tomcat/src/main/java/com/github/mjeanroy/junit/servers/tomcat/EmbeddedTomcat.java", "func_name": "EmbeddedTomcat.createContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create tomcat context.\nMay be override by subclasses.\n\n@return Tomcat context.\n@throws Exception Exception May be thrown by web app context initialization (will be wrapped later).\n@deprecated Protected visibility may be removed in a next release, please submit an issue here to discuss it.", "docstring_tokens": ["Create", "tomcat", "context", ".", "May", "be", "override", "by", "subclasses", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-tomcat/src/main/java/com/github/mjeanroy/junit/servers/tomcat/EmbeddedTomcat.java#L109-L193", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/Cookies.java", "func_name": "Cookies.read", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a cookie from header value.\n\n@param rawValue Header value.\n@return Cookie.", "docstring_tokens": ["Create", "a", "cookie", "from", "header", "value", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/Cookies.java#L156-L210", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/HttpHeader.java", "func_name": "HttpHeader.header", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a header with a single value.\n\n@param name Header name, must not be blank.\n@param value Header value.\n@return Header.\n@throws NullPointerException If {@code name} or {@code value} are {@code null}.\n@throws IllegalArgumentException If {@code name} is blank.", "docstring_tokens": ["Create", "a", "header", "with", "a", "single", "value", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/HttpHeader.java#L68-L70", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/HttpHeader.java", "func_name": "HttpHeader.header", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a header with multiple values.\n\n@param name Header name.\n@param values Header values, must not be empty.\n@return Header.\n@throws NullPointerException If {@code name} or one of {@code values} are {@code null}.\n@throws IllegalArgumentException If {@code name} is blank.", "docstring_tokens": ["Create", "a", "header", "with", "multiple", "values", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/HttpHeader.java#L81-L83", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-jetty/src/main/java/com/github/mjeanroy/junit/servers/jetty/EmbeddedJetty.java", "func_name": "EmbeddedJetty.createdWebAppContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Build web app context used to launch server.\nMay be override by subclasses.\n\n@throws Exception May be thrown by web app context initialization (will be wrapped later).", "docstring_tokens": ["Build", "web", "app", "context", "used", "to", "launch", "server", ".", "May", "be", "override", "by", "subclasses", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-jetty/src/main/java/com/github/mjeanroy/junit/servers/jetty/EmbeddedJetty.java#L130-L206", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/servers/AbstractEmbeddedServer.java", "func_name": "AbstractEmbeddedServer.execHooks", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Exec hooks phase.\n\n@param pre Phase to execute (true => pre ; false => post).", "docstring_tokens": ["Exec", "hooks", "phase", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/servers/AbstractEmbeddedServer.java#L189-L198", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/engine/AnnotationsHandlerRunner.java", "func_name": "AnnotationsHandlerRunner.process", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Process handlers.\n\n@param target Target class (i.e tested class).\n@param before Flag to know if handler has to run \"before\" phase or \"after\" phase.", "docstring_tokens": ["Process", "handlers", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/engine/AnnotationsHandlerRunner.java#L92-L99", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/engine/AnnotationsHandlerRunner.java", "func_name": "AnnotationsHandlerRunner.processField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Process field for given handler.\n\n@param target Target class (i.e tested class).\n@param handler Handler.\n@param field Field.\n@param before Flag to know if handler has to run \"before\" phase or \"after\" phase.", "docstring_tokens": ["Process", "field", "for", "given", "handler", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/engine/AnnotationsHandlerRunner.java#L109-L120", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpClient.java", "func_name": "ApacheHttpClient.newApacheHttpClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create new http client using internal with custom internal client.\n\n@param server Embedded server.\n@param client Internal http client\n@return Http client.\n@throws NullPointerException If {@code server} of {@code client} are {@code null}.\n@deprecated Use {@link ApacheHttpClient#newApacheHttpClient(HttpClientConfiguration, EmbeddedServer)}", "docstring_tokens": ["Create", "new", "http", "client", "using", "internal", "with", "custom", "internal", "client", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpClient.java#L61-L64", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpClient.java", "func_name": "ApacheHttpClient.defaultApacheHttpClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create new http client using default internal client.\n\n@param server Embedded server.\n@return Http client.\n@throws NullPointerException If {@code server} is {@code null}.", "docstring_tokens": ["Create", "new", "http", "client", "using", "default", "internal", "client", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpClient.java#L73-L76", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpRequest.java", "func_name": "ApacheHttpRequest.handleBody", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add request body.\n\n@param httpRequest The HTTP request.", "docstring_tokens": ["Add", "request", "body", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpRequest.java#L114-L124", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpRequest.java", "func_name": "ApacheHttpRequest.createRequestURI", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create request URI.\nEach additional query parameters will be appended to final URI.\n\n@return Created URI.\n@throws URISyntaxException If an error occurred while building URI.\n@see URIBuilder", "docstring_tokens": ["Create", "request", "URI", ".", "Each", "additional", "query", "parameters", "will", "be", "appended", "to", "final", "URI", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpRequest.java#L134-L142", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpRequest.java", "func_name": "ApacheHttpRequest.handleHeaders", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add headers to http request.\n\n@param httpRequest Http request in creation.\n@see org.apache.http.HttpRequest#addHeader(Header)", "docstring_tokens": ["Add", "headers", "to", "http", "request", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpRequest.java#L150-L154", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpRequest.java", "func_name": "ApacheHttpRequest.handleFormParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add parameters as form url encoded content.\nEach parameter is set as a key value entry to request\nbody.\n\n@param httpRequest Http request in creation.", "docstring_tokens": ["Add", "parameters", "as", "form", "url", "encoded", "content", ".", "Each", "parameter", "is", "set", "as", "a", "key", "value", "entry", "to", "request", "body", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpRequest.java#L163-L167", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpRequest.java", "func_name": "ApacheHttpRequest.handleRequestBody", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set request body value to http request.\n\n@param httpRequest Http request in creation.", "docstring_tokens": ["Set", "request", "body", "value", "to", "http", "request", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpRequest.java#L174-L177", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpRequest.java", "func_name": "ApacheHttpRequest.handleCookies", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add cookies to http request.\n\n@param httpRequest Http request in creation.", "docstring_tokens": ["Add", "cookies", "to", "http", "request", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/apache/ApacheHttpRequest.java#L184-L188", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/async/AsyncHttpClient.java", "func_name": "AsyncHttpClient.defaultAsyncHttpClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create new http client using default internal http client.\n\n@param server Embedded server.\n@return Http client.\n@throws NullPointerException If {@code server} is {@code null}.", "docstring_tokens": ["Create", "new", "http", "client", "using", "default", "internal", "http", "client", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/async/AsyncHttpClient.java#L73-L76", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/JavaUtils.java", "func_name": "JavaUtils.parseJavaVersion", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse java version.\n\n@return The JAVA Version.", "docstring_tokens": ["Parse", "java", "version", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/JavaUtils.java#L68-L73", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/CollectionUtils.java", "func_name": "CollectionUtils.map", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Map input values to output values.\n\n@param inputs Input values.\n@param mapper Mapper function.\n@param Type of input values.\n@param Type of output values.\n@return Output values.", "docstring_tokens": ["Map", "input", "values", "to", "output", "values", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/CollectionUtils.java#L97-L108", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/CollectionUtils.java", "func_name": "CollectionUtils.concat", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Concat new value to existing inputs and returns new outputs.\nNote that input is not modified.\n\n@param inputs Input list.\n@param newValue The new value to add.\n@param The type of object.\n@return The outputs.", "docstring_tokens": ["Concat", "new", "value", "to", "existing", "inputs", "and", "returns", "new", "outputs", ".", "Note", "that", "input", "is", "not", "modified", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/CollectionUtils.java#L119-L124", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/CollectionUtils.java", "func_name": "CollectionUtils.filter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Filter input by using given predicate and return\nfiltered outputs.\n\n@param list List input.\n@param predicate Predicate.\n@param Type of elements.\n@return Filtered outputs.", "docstring_tokens": ["Filter", "input", "by", "using", "given", "predicate", "and", "return", "filtered", "outputs", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/CollectionUtils.java#L135-L143", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/DefaultHttpResponse.java", "func_name": "DefaultHttpResponse.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a default HTTP Response from given values.\n\n@param duration Request-Response duration.\n@param status The response status code.\n@param body The response body.\n@param headers The response headers.\n@return The HTTP response.", "docstring_tokens": ["Create", "a", "default", "HTTP", "Response", "from", "given", "values", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/DefaultHttpResponse.java#L50-L52", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-jetty/src/main/java/com/github/mjeanroy/junit/servers/jetty/junit4/JettyServerJunit4Runner.java", "func_name": "JettyServerJunit4Runner.instantiate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Instantiate embedded jetty to be used in tests.\n\n@param klass The tested class.\n@return The embedded jetty.", "docstring_tokens": ["Instantiate", "embedded", "jetty", "to", "be", "used", "in", "tests", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-jetty/src/main/java/com/github/mjeanroy/junit/servers/jetty/junit4/JettyServerJunit4Runner.java#L57-L60", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/okhttp3/OkHttpClient.java", "func_name": "OkHttpClient.defaultOkHttpClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create new http client using internal\nhttp client from ok-http library.\n\n@param server Embedded server.\n@return Http client.\n@throws NullPointerException If {@code server} is {@code null}.", "docstring_tokens": ["Create", "new", "http", "client", "using", "internal", "http", "client", "from", "ok", "-", "http", "library", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/okhttp3/OkHttpClient.java#L53-L56", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/okhttp3/OkHttpClient.java", "func_name": "OkHttpClient.newOkHttpClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create new http client using custom internal\nhttp client from ok-http library.\n\n@param server Embedded server.\n@param client The custom client.\n@return Http client.\n@throws NullPointerException If {@code server} or {@code client} are {@code null}.\n@deprecated Use {@link OkHttpClient#newOkHttpClient(HttpClientConfiguration, EmbeddedServer)}", "docstring_tokens": ["Create", "new", "http", "client", "using", "custom", "internal", "http", "client", "from", "ok", "-", "http", "library", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/okhttp3/OkHttpClient.java#L84-L87", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java", "func_name": "ReflectionUtils.findAllFields", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get all fields on given object and look for fields of\nsuper classes.\n\n@param type Class to inspect.\n@return Fields.", "docstring_tokens": ["Get", "all", "fields", "on", "given", "object", "and", "look", "for", "fields", "of", "super", "classes", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java#L62-L72", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java", "func_name": "ReflectionUtils.findStaticFields", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get all static fields on given class object.\n\n@param type Class to inspect.\n@return Fields.", "docstring_tokens": ["Get", "all", "static", "fields", "on", "given", "class", "object", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java#L80-L82", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java", "func_name": "ReflectionUtils.findStaticMethods", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get all static methods on given class object.\n\n@param type Class to inspect.\n@return Fields.", "docstring_tokens": ["Get", "all", "static", "methods", "on", "given", "class", "object", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java#L90-L92", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java", "func_name": "ReflectionUtils.findStaticFieldsAnnotatedWith", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get all static fields on given class object\nannotated with given annotation.\n\n@param type Class to inspect.\n@param klass Annotation class.\n@return Fields.", "docstring_tokens": ["Get", "all", "static", "fields", "on", "given", "class", "object", "annotated", "with", "given", "annotation", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java#L102-L105", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java", "func_name": "ReflectionUtils.findStaticMethodsAnnotatedWith", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get all static methods on given class object\nannotated with given annotation.\n\n@param type Class to inspect.\n@param klass Annotation class.\n@return Fields.", "docstring_tokens": ["Get", "all", "static", "methods", "on", "given", "class", "object", "annotated", "with", "given", "annotation", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java#L115-L118", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java", "func_name": "ReflectionUtils.setter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set value of given field on given instance.\n\n@param instance Instance.\n@param field Field.\n@param value Field value.\n@throws ReflectionException if set operation is not permitted.", "docstring_tokens": ["Set", "value", "of", "given", "field", "on", "given", "instance", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java#L128-L147", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java", "func_name": "ReflectionUtils.getter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get value of field on target object.\nIf target is null, it means that field is static and do not\nneed any target instance.\n\n@param target Target object.\n@param field Field.\n@param Type of expected value.\n@return Field value.", "docstring_tokens": ["Get", "value", "of", "field", "on", "target", "object", ".", "If", "target", "is", "null", "it", "means", "that", "field", "is", "static", "and", "do", "not", "need", "any", "target", "instance", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java#L170-L190", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java", "func_name": "ReflectionUtils.invoke", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Invoke the static method without any arguments.\n\n@param method The method to invoke.\n@param Return type.\n@return The result of the method invocation.", "docstring_tokens": ["Invoke", "the", "static", "method", "without", "any", "arguments", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ReflectionUtils.java#L199-L219", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/Dates.java", "func_name": "Dates.format", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Format date according to given pattern.\n\n@param date Date.\n@param pattern Pattern.\n@return Formatted date.", "docstring_tokens": ["Format", "date", "according", "to", "given", "pattern", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/Dates.java#L102-L104", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/Dates.java", "func_name": "Dates.formatTime", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Format timestamp according to given pattern.\n\n@param time Timestamp.\n@param pattern Pattern.\n@return Formatted date.", "docstring_tokens": ["Format", "timestamp", "according", "to", "given", "pattern", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/Dates.java#L113-L117", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/okhttp3/OkHttpRequest.java", "func_name": "OkHttpRequest.handleHeaders", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add all HTTP headers to the final request.\n\n@param builder The OkHttp request builder.\n@see Request.Builder#addHeader(String, String)", "docstring_tokens": ["Add", "all", "HTTP", "headers", "to", "the", "final", "request", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/okhttp3/OkHttpRequest.java#L104-L108", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/Strings.java", "func_name": "Strings.isBlank", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check that given string is blank.\n\n@param value String to check.\n@return {@code true} if string is blank, {@code false} otherwise.", "docstring_tokens": ["Check", "that", "given", "string", "is", "blank", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/Strings.java#L48-L60", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/Strings.java", "func_name": "Strings.removePrefix", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove string prefix if and only if string value starts with\nthe prefix, otherwise original string is returned.\n\n@param value String value.\n@param prefix String prefix.\n@return New string.", "docstring_tokens": ["Remove", "string", "prefix", "if", "and", "only", "if", "string", "value", "starts", "with", "the", "prefix", "otherwise", "original", "string", "is", "returned", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/Strings.java#L80-L86", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/Strings.java", "func_name": "Strings.join", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Join all strings to a single one using given separator.\n\n@param separator String separator.\n@param values All string to join.\n@return The final string.", "docstring_tokens": ["Join", "all", "strings", "to", "a", "single", "one", "using", "given", "separator", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/Strings.java#L109-L123", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/async/AsyncHttpRequest.java", "func_name": "AsyncHttpRequest.handleQueryParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add query parameter to the final HTTP request.\n\n@param builder The pending HTTP request.\n@see RequestBuilder#addQueryParam(String, String)", "docstring_tokens": ["Add", "query", "parameter", "to", "the", "final", "HTTP", "request", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/async/AsyncHttpRequest.java#L108-L112", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/async/AsyncHttpRequest.java", "func_name": "AsyncHttpRequest.handleBody", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add body entity to the final HTTP request.\n\n@param builder The pending HTTP request.\n@see RequestBuilder#addFormParam(String, String)\n@see RequestBuilder#setBody(String)", "docstring_tokens": ["Add", "body", "entity", "to", "the", "final", "HTTP", "request", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/async/AsyncHttpRequest.java#L121-L132", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/async/AsyncHttpRequest.java", "func_name": "AsyncHttpRequest.handleFormParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Serialize form parameters to the request body.\n\n@param builder The pending HTTP request.\n@see RequestBuilder#addFormParam(String, String)", "docstring_tokens": ["Serialize", "form", "parameters", "to", "the", "request", "body", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/async/AsyncHttpRequest.java#L140-L144", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/async/AsyncHttpRequest.java", "func_name": "AsyncHttpRequest.handleCookies", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add cookies to the final HTTP request.\n\n@param builder The pending HTTP request.\n@see RequestBuilder#addCookie(Cookie)", "docstring_tokens": ["Add", "cookies", "to", "the", "final", "HTTP", "request", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/async/AsyncHttpRequest.java#L174-L178", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/ning/NingAsyncHttpRequest.java", "func_name": "NingAsyncHttpRequest.handleHeaders", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add request headers.\n\n@param builder The pending HTTP request.\n@see RequestBuilder#addHeader(String, String)", "docstring_tokens": ["Add", "request", "headers", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/client/impl/ning/NingAsyncHttpRequest.java#L175-L179", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ToStringBuilder.java", "func_name": "ToStringBuilder.append", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Append new map value.\n\n@param name The name of the field.\n@param map The map.\n@return The current builder (for chaining).", "docstring_tokens": ["Append", "new", "map", "value", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ToStringBuilder.java#L146-L155", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ToStringBuilder.java", "func_name": "ToStringBuilder.append", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Append new boolean value.\n\n@param name The name of the field.\n@param values The collection of values.\n@param Type of elements in collection.\n@return The current builder (for chaining).", "docstring_tokens": ["Append", "new", "boolean", "value", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ToStringBuilder.java#L176-L190", "partition": "valid"} +{"repo": "mjeanroy/junit-servers", "path": "junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ToStringBuilder.java", "func_name": "ToStringBuilder.appendFormattedValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Append formatted value to the final output.\n@param name Field name.\n@param value Field value.\n@return The current builder.", "docstring_tokens": ["Append", "formatted", "value", "to", "the", "final", "output", "."], "sha": "e5628ac13414da9ab0110491c011e2b02239155c", "url": "https://github.com/mjeanroy/junit-servers/blob/e5628ac13414da9ab0110491c011e2b02239155c/junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/ToStringBuilder.java#L210-L218", "partition": "valid"} +{"repo": "RestComm/jain-sip.ha", "path": "core/src/main/java/org/mobicents/ha/javax/sip/ClusteredSipStackImpl.java", "func_name": "ClusteredSipStackImpl.getDialogFromDistributedCache", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve the dialog from the distributed cache\n@param dialogId the id of the dialog to fetch\n@return the SIPDialog from the distributed cache, null if nothing has been found in the cache", "docstring_tokens": ["Retrieve", "the", "dialog", "from", "the", "distributed", "cache"], "sha": "25bd4b4391800aa3f6019fb0ce03d012e54c15b5", "url": "https://github.com/RestComm/jain-sip.ha/blob/25bd4b4391800aa3f6019fb0ce03d012e54c15b5/core/src/main/java/org/mobicents/ha/javax/sip/ClusteredSipStackImpl.java#L351-L369", "partition": "valid"} +{"repo": "RestComm/jain-sip.ha", "path": "core/src/main/java/org/mobicents/ha/javax/sip/ClusteredSipStackImpl.java", "func_name": "ClusteredSipStackImpl.putDialogIntoDistributedCache", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Store the dialog into the distributed cache\n@param dialog the dialog to store", "docstring_tokens": ["Store", "the", "dialog", "into", "the", "distributed", "cache"], "sha": "25bd4b4391800aa3f6019fb0ce03d012e54c15b5", "url": "https://github.com/RestComm/jain-sip.ha/blob/25bd4b4391800aa3f6019fb0ce03d012e54c15b5/core/src/main/java/org/mobicents/ha/javax/sip/ClusteredSipStackImpl.java#L374-L385", "partition": "valid"} +{"repo": "RestComm/jain-sip.ha", "path": "core/src/main/java/org/mobicents/ha/javax/sip/ClusteredSipStackImpl.java", "func_name": "ClusteredSipStackImpl.removeDialogFromDistributedCache", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove the dialog from the distributed cache\n@param dialogId the id of the dialog to remove", "docstring_tokens": ["Remove", "the", "dialog", "from", "the", "distributed", "cache"], "sha": "25bd4b4391800aa3f6019fb0ce03d012e54c15b5", "url": "https://github.com/RestComm/jain-sip.ha/blob/25bd4b4391800aa3f6019fb0ce03d012e54c15b5/core/src/main/java/org/mobicents/ha/javax/sip/ClusteredSipStackImpl.java#L391-L402", "partition": "valid"} +{"repo": "RestComm/jain-sip.ha", "path": "core/src/main/java/gov/nist/javax/sip/stack/AbstractHASipDialog.java", "func_name": "AbstractHASipDialog.initAfterLoad", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Updates the local dialog transient attributes that were not serialized during the replication\n@param sipStackImpl the sip Stack Impl that reloaded this dialog from the distributed cache", "docstring_tokens": ["Updates", "the", "local", "dialog", "transient", "attributes", "that", "were", "not", "serialized", "during", "the", "replication"], "sha": "25bd4b4391800aa3f6019fb0ce03d012e54c15b5", "url": "https://github.com/RestComm/jain-sip.ha/blob/25bd4b4391800aa3f6019fb0ce03d012e54c15b5/core/src/main/java/gov/nist/javax/sip/stack/AbstractHASipDialog.java#L129-L149", "partition": "valid"} +{"repo": "RestComm/jain-sip.ha", "path": "core/src/main/java/gov/nist/javax/sip/stack/AbstractHASipDialog.java", "func_name": "AbstractHASipDialog.addTransaction", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "From and To Uris switch places in certain conditions", "docstring_tokens": ["From", "and", "To", "Uris", "switch", "places", "in", "certain", "conditions"], "sha": "25bd4b4391800aa3f6019fb0ce03d012e54c15b5", "url": "https://github.com/RestComm/jain-sip.ha/blob/25bd4b4391800aa3f6019fb0ce03d012e54c15b5/core/src/main/java/gov/nist/javax/sip/stack/AbstractHASipDialog.java#L645-L653", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "format-ldif/src/main/java/com/btmatthews/maven/plugins/ldap/ldif/LDIFFormatWriter.java", "func_name": "LDIFFormatWriter.printEntry", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write the LDAP entry to the underlying output stream in LDIF format.\n\n@param entry The directory entry.\n@throws IOException If there was a problem writing to the underlying output stream.", "docstring_tokens": ["Write", "the", "LDAP", "entry", "to", "the", "underlying", "output", "stream", "in", "LDIF", "format", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/format-ldif/src/main/java/com/btmatthews/maven/plugins/ldap/ldif/LDIFFormatWriter.java#L65-L76", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "format-api/src/main/java/com/btmatthews/maven/plugins/ldap/AbstractFormatHandler.java", "func_name": "AbstractFormatHandler.load", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads directory entries from the input stream and loads them in the LDAP directory server.\n\n@param connection The connection to the LDAP directory server.\n@param inputStream The input stream from which directory entries will be read.\n@param ignoreErrors If {@code true} then loading will continue if an error occurs.\n@param logger Used to log information or error messages.", "docstring_tokens": ["Reads", "directory", "entries", "from", "the", "input", "stream", "and", "loads", "them", "in", "the", "LDAP", "directory", "server", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/format-api/src/main/java/com/btmatthews/maven/plugins/ldap/AbstractFormatHandler.java#L45-L83", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "format-api/src/main/java/com/btmatthews/maven/plugins/ldap/AbstractFormatHandler.java", "func_name": "AbstractFormatHandler.dump", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Dump the results of a search against the LDAP directory server to an output stream.\n\n@param connection The connection to the LDAP directory server.\n@param base The base DN from which to start the search.\n@param filter Query used to filter the directory entries.\n@param outputStream The output stream to which the directory entries are to be written.\n@param logger Used to log information or error messages.", "docstring_tokens": ["Dump", "the", "results", "of", "a", "search", "against", "the", "LDAP", "directory", "server", "to", "an", "output", "stream", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/format-api/src/main/java/com/btmatthews/maven/plugins/ldap/AbstractFormatHandler.java#L94-L128", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/DumpMojo.java", "func_name": "DumpMojo.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute the plugin goal by dumping the matching directory entries to a file in the specified format.\n\n@throws MojoExecutionException If something unexpected happens.", "docstring_tokens": ["Execute", "the", "plugin", "goal", "by", "dumping", "the", "matching", "directory", "entries", "to", "a", "file", "in", "the", "specified", "format", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/DumpMojo.java#L83-L107", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/IncludeServerDependenciesComponentConfigurator.java", "func_name": "IncludeServerDependenciesComponentConfigurator.configureComponent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure the Mojo by adding the dependencies for the LDAP server type to the class loader.\n\n@param component The Mojo being configured.\n@param configuration The plugin configuration.\n@param expressionEvaluator Used to evaluate expressions.\n@param containerRealm Used to build the class loader.\n@param listener Receives notification when configuration is changed.\n@throws ComponentConfigurationException If there was a problem resolving or locating any of the dependencies.", "docstring_tokens": ["Configure", "the", "Mojo", "by", "adding", "the", "dependencies", "for", "the", "LDAP", "server", "type", "to", "the", "class", "loader", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/IncludeServerDependenciesComponentConfigurator.java#L85-L105", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/IncludeServerDependenciesComponentConfigurator.java", "func_name": "IncludeServerDependenciesComponentConfigurator.addServerDependenciesToClassRealm", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resolve the dependencies for an LDAP server type and add them to the class loader.\n\n@param serverType The LDAP server type.\n@param expressionEvaluator Used to evaluate expressions.\n@param containerRealm The class loader.\n@throws ComponentConfigurationException If there was a problem resolving or locating any of the dependencies.", "docstring_tokens": ["Resolve", "the", "dependencies", "for", "an", "LDAP", "server", "type", "and", "add", "them", "to", "the", "class", "loader", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/IncludeServerDependenciesComponentConfigurator.java#L115-L125", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/IncludeServerDependenciesComponentConfigurator.java", "func_name": "IncludeServerDependenciesComponentConfigurator.buildURLs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrive the URLs used to locate the JAR files for a list of artifacts.\n\n@param classpathElements The list of artifacts.\n@return The list of URLs.\n@throws ComponentConfigurationException If any JAR files could not be located.", "docstring_tokens": ["Retrive", "the", "URLs", "used", "to", "locate", "the", "JAR", "files", "for", "a", "list", "of", "artifacts", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/IncludeServerDependenciesComponentConfigurator.java#L134-L146", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/IncludeServerDependenciesComponentConfigurator.java", "func_name": "IncludeServerDependenciesComponentConfigurator.getServerDependencies", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resolve the LDAP server type artifact and its dependencies.\n\n@param serverType The LDAP server type.\n@param expressionEvaluator Used to get the Maven project model and repository session objects.\n@return A list of dependencies required for the LDAP server type.\n@throws ComponentConfigurationException If the was a problem resolving the dependencies for\nthe LDAP server type.", "docstring_tokens": ["Resolve", "the", "LDAP", "server", "type", "artifact", "and", "its", "dependencies", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/IncludeServerDependenciesComponentConfigurator.java#L157-L195", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/IncludeServerDependenciesComponentConfigurator.java", "func_name": "IncludeServerDependenciesComponentConfigurator.getServerArtifact", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the artifact descriptor for the JAR file that implements support for the LDAP server type.\n\n@param serverType The LDAP server type.\n@return The JAR file artifact descriptor.", "docstring_tokens": ["Get", "the", "artifact", "descriptor", "for", "the", "JAR", "file", "that", "implements", "support", "for", "the", "LDAP", "server", "type", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/IncludeServerDependenciesComponentConfigurator.java#L203-L228", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/IncludeServerDependenciesComponentConfigurator.java", "func_name": "IncludeServerDependenciesComponentConfigurator.getServerType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determine the configured LDAP server type. If one has not been configured then\nreturn the default.\n\n@param configuration The plugin configuration.\n@return The LDAP server type.", "docstring_tokens": ["Determine", "the", "configured", "LDAP", "server", "type", ".", "If", "one", "has", "not", "been", "configured", "then", "return", "the", "default", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/IncludeServerDependenciesComponentConfigurator.java#L237-L249", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "format-dsml/src/main/java/com/btmatthews/maven/plugins/ldap/dsml/DSMLFormatHandler.java", "func_name": "DSMLFormatHandler.createWriter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create the LDAP writer that will dump LDAP entries to a DSML file.\n\n@param outputStream The target output stream.\n@param logger Used to log information or error messages.\n@return A {@link DSMLFormatWriter} object.", "docstring_tokens": ["Create", "the", "LDAP", "writer", "that", "will", "dump", "LDAP", "entries", "to", "a", "DSML", "file", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/format-dsml/src/main/java/com/btmatthews/maven/plugins/ldap/dsml/DSMLFormatHandler.java#L45-L54", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "format-dsml/src/main/java/com/btmatthews/maven/plugins/ldap/dsml/DSMLFormatHandler.java", "func_name": "DSMLFormatHandler.openReader", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create the LDAP reader that will load LDAP entries from a DSML file.\n\n@param inputStream The file input stream.\n@param logger Used to log information or error messages.\n@return A {@link DSMLFormatReader} object.", "docstring_tokens": ["Create", "the", "LDAP", "reader", "that", "will", "load", "LDAP", "entries", "from", "a", "DSML", "file", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/format-dsml/src/main/java/com/btmatthews/maven/plugins/ldap/dsml/DSMLFormatHandler.java#L63-L76", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "server-api/src/main/java/com/btmatthews/maven/plugins/ldap/AbstractLDAPServer.java", "func_name": "AbstractLDAPServer.configure", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Used to configure the root DN of the LDAP directory, the working directory used by the directory service to\nstore the directory data, the LDIF file used to seed the directory or the TCP port number on which the server\nwill listening for LDAP traffic.\n\n@param name The name of the property to configure.\n@param value The value of the property being configured.\n@param logger Used to log error and information messages.", "docstring_tokens": ["Used", "to", "configure", "the", "root", "DN", "of", "the", "LDAP", "directory", "the", "working", "directory", "used", "by", "the", "directory", "service", "to", "store", "the", "directory", "data", "the", "LDIF", "file", "used", "to", "seed", "the", "directory", "or", "the", "TCP", "port", "number", "on", "which", "the", "server", "will", "listening", "for", "LDAP", "traffic", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/server-api/src/main/java/com/btmatthews/maven/plugins/ldap/AbstractLDAPServer.java#L70-L108", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "server-unboundid/src/main/java/com/btmatthews/maven/plugins/ldap/unboundid/UnboundIDServer.java", "func_name": "UnboundIDServer.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure and start the embedded UnboundID server creating the root DN and loading the LDIF seed data.\n\n@param logger Used to log informational and error messages.", "docstring_tokens": ["Configure", "and", "start", "the", "embedded", "UnboundID", "server", "creating", "the", "root", "DN", "and", "loading", "the", "LDIF", "seed", "data", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/server-unboundid/src/main/java/com/btmatthews/maven/plugins/ldap/unboundid/UnboundIDServer.java#L58-L92", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "server-unboundid/src/main/java/com/btmatthews/maven/plugins/ldap/unboundid/UnboundIDServer.java", "func_name": "UnboundIDServer.stop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shutdown the the embedded UnboundID server.\n\n@param logger Used to log informational and error messages.", "docstring_tokens": ["Shutdown", "the", "the", "embedded", "UnboundID", "server", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/server-unboundid/src/main/java/com/btmatthews/maven/plugins/ldap/unboundid/UnboundIDServer.java#L99-L104", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "format-dsml/src/main/java/com/btmatthews/maven/plugins/ldap/dsml/DSMLFormatReader.java", "func_name": "DSMLFormatReader.nextRecord", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read the next change record from the underlying input stream.\n\n@return The next change record or {@code null} if the end of the input stream has been reached.", "docstring_tokens": ["Read", "the", "next", "change", "record", "from", "the", "underlying", "input", "stream", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/format-dsml/src/main/java/com/btmatthews/maven/plugins/ldap/dsml/DSMLFormatReader.java#L93-L134", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/LoadMojo.java", "func_name": "LoadMojo.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute the plugin goal iterating over the list of source files and loading the LDAP directory entries from\neach file using the appropriate handler.\n\n@throws MojoExecutionException If there was an error executing the plugin goal.", "docstring_tokens": ["Execute", "the", "plugin", "goal", "iterating", "over", "the", "list", "of", "source", "files", "and", "loading", "the", "LDAP", "directory", "entries", "from", "each", "file", "using", "the", "appropriate", "handler", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/LoadMojo.java#L66-L104", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "server-apacheds/src/main/java/com/btmatthews/maven/plugins/ldap/apache/ApacheDSServer.java", "func_name": "ApacheDSServer.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configure and start the embedded ApacheDS server creating the root DN and loading the LDIF seed data.\n\n@param logger Used to log informational and error messages.", "docstring_tokens": ["Configure", "and", "start", "the", "embedded", "ApacheDS", "server", "creating", "the", "root", "DN", "and", "loading", "the", "LDIF", "seed", "data", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/server-apacheds/src/main/java/com/btmatthews/maven/plugins/ldap/apache/ApacheDSServer.java#L64-L114", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "server-apacheds/src/main/java/com/btmatthews/maven/plugins/ldap/apache/ApacheDSServer.java", "func_name": "ApacheDSServer.stop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shutdown the the embedded ApacheDS server.\n\n@param logger Used to log informational and error messages.", "docstring_tokens": ["Shutdown", "the", "the", "embedded", "ApacheDS", "server", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/server-apacheds/src/main/java/com/btmatthews/maven/plugins/ldap/apache/ApacheDSServer.java#L121-L131", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "server-apacheds/src/main/java/com/btmatthews/maven/plugins/ldap/apache/ApacheDSServer.java", "func_name": "ApacheDSServer.createRoot", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create the root DN.\n\n@param partition The partition in which to create the root DN.\n@throws Exception If there was an error creating the root DN.", "docstring_tokens": ["Create", "the", "root", "DN", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/server-apacheds/src/main/java/com/btmatthews/maven/plugins/ldap/apache/ApacheDSServer.java#L150-L161", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "server-opendj/src/main/java/com/btmatthews/maven/plugins/ldap/opendj/OpenDJServer.java", "func_name": "OpenDJServer.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Start the OpenDJ in-memory directory server.\n\n@param logger Used for logging.", "docstring_tokens": ["Start", "the", "OpenDJ", "in", "-", "memory", "directory", "server", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/server-opendj/src/main/java/com/btmatthews/maven/plugins/ldap/opendj/OpenDJServer.java#L48-L67", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "server-opendj/src/main/java/com/btmatthews/maven/plugins/ldap/opendj/OpenDJServer.java", "func_name": "OpenDJServer.stop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stop the OpenDJ in-memory directory server.\n\n@param logger User for logging.", "docstring_tokens": ["Stop", "the", "OpenDJ", "in", "-", "memory", "directory", "server", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/server-opendj/src/main/java/com/btmatthews/maven/plugins/ldap/opendj/OpenDJServer.java#L74-L81", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "format-dsml/src/main/java/com/btmatthews/maven/plugins/ldap/dsml/DSMLFormatWriter.java", "func_name": "DSMLFormatWriter.printEntry", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes an individual LDAP directory entry to the DSML file.\n\n@param entry The directory entry.\n@throws IOException If there was a problem writing to the underlying output stream.", "docstring_tokens": ["Writes", "an", "individual", "LDAP", "directory", "entry", "to", "the", "DSML", "file", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/format-dsml/src/main/java/com/btmatthews/maven/plugins/ldap/dsml/DSMLFormatWriter.java#L71-L110", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/RunLDAPMojo.java", "func_name": "RunLDAPMojo.getServerType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the server type.\n\n@return The server type.", "docstring_tokens": ["Get", "the", "server", "type", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/RunLDAPMojo.java#L96-L108", "partition": "valid"} +{"repo": "bmatthews68/ldap-maven-plugin", "path": "ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/RunLDAPMojo.java", "func_name": "RunLDAPMojo.getServerConfig", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the embedded LDAP directory server configuration.\n\n@return A {@link Map} containing the server configuration.", "docstring_tokens": ["Get", "the", "embedded", "LDAP", "directory", "server", "configuration", "."], "sha": "02d33503c4f602482972c06cdd960f04f490a6ed", "url": "https://github.com/bmatthews68/ldap-maven-plugin/blob/02d33503c4f602482972c06cdd960f04f490a6ed/ldap-maven-plugin/src/main/java/com/btmatthews/maven/plugins/ldap/mojo/RunLDAPMojo.java#L115-L130", "partition": "valid"} +{"repo": "cloudiator/visor", "path": "visor-reporting-kairos/src/main/java/de/uniulm/omi/cloudiator/visor/reporting/kairos/KairosDb.java", "func_name": "KairosDb.sendMetric", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sends a metric to the kairos server.\n\n@param metricBuilder the metricbuilder containing the metrics.\n@throws de.uniulm.omi.cloudiator.visor.reporting.ReportingException If the kairos server could\nnot be reached.", "docstring_tokens": ["Sends", "a", "metric", "to", "the", "kairos", "server", "."], "sha": "bd163783ff5c8076e6856aa88d621462b98e39fc", "url": "https://github.com/cloudiator/visor/blob/bd163783ff5c8076e6856aa88d621462b98e39fc/visor-reporting-kairos/src/main/java/de/uniulm/omi/cloudiator/visor/reporting/kairos/KairosDb.java#L75-L95", "partition": "valid"} +{"repo": "cloudiator/visor", "path": "visor-reporting-kairos/src/main/java/de/uniulm/omi/cloudiator/visor/reporting/kairos/KairosDb.java", "func_name": "KairosDb.report", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Report method. Converts the given metric to a metric kairos understands and sends them.\n\n@param metric the metric to report.\n@throws ReportingException of the metric could not be converted. or sent to kairos.", "docstring_tokens": ["Report", "method", ".", "Converts", "the", "given", "metric", "to", "a", "metric", "kairos", "understands", "and", "sends", "them", "."], "sha": "bd163783ff5c8076e6856aa88d621462b98e39fc", "url": "https://github.com/cloudiator/visor/blob/bd163783ff5c8076e6856aa88d621462b98e39fc/visor-reporting-kairos/src/main/java/de/uniulm/omi/cloudiator/visor/reporting/kairos/KairosDb.java#L103-L113", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryReader.java", "func_name": "GeometryReader.readGeometryType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read the geometry type info\n\n@param reader\nbyte reader\n@return geometry type info", "docstring_tokens": ["Read", "the", "geometry", "type", "info"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryReader.java#L149-L184", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryReader.java", "func_name": "GeometryReader.readPoint", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Point\n\n@param reader\n@param hasZ\n@param hasM\n@return point", "docstring_tokens": ["Read", "a", "Point"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryReader.java#L194-L212", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryReader.java", "func_name": "GeometryReader.readLineString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Line String\n\n@param reader\n@param hasZ\n@param hasM\n@return line string", "docstring_tokens": ["Read", "a", "Line", "String"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryReader.java#L222-L236", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryReader.java", "func_name": "GeometryReader.readPolygon", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Polygon\n\n@param reader\n@param hasZ\n@param hasM\n@return polygon", "docstring_tokens": ["Read", "a", "Polygon"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryReader.java#L246-L260", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryReader.java", "func_name": "GeometryReader.readMultiPoint", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Multi Point\n\n@param reader\n@param hasZ\n@param hasM\n@return multi point", "docstring_tokens": ["Read", "a", "Multi", "Point"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryReader.java#L270-L284", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryReader.java", "func_name": "GeometryReader.readMultiLineString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Multi Line String\n\n@param reader\n@param hasZ\n@param hasM\n@return multi line string", "docstring_tokens": ["Read", "a", "Multi", "Line", "String"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryReader.java#L294-L307", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryReader.java", "func_name": "GeometryReader.readMultiPolygon", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Multi Polygon\n\n@param reader\n@param hasZ\n@param hasM\n@return multi polygon", "docstring_tokens": ["Read", "a", "Multi", "Polygon"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryReader.java#L317-L331", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryReader.java", "func_name": "GeometryReader.readGeometryCollection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Geometry Collection\n\n@param reader\n@param hasZ\n@param hasM\n@return geometry collection", "docstring_tokens": ["Read", "a", "Geometry", "Collection"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryReader.java#L341-L356", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryReader.java", "func_name": "GeometryReader.readCircularString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Circular String\n\n@param reader\n@param hasZ\n@param hasM\n@return circular string", "docstring_tokens": ["Read", "a", "Circular", "String"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryReader.java#L366-L380", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryReader.java", "func_name": "GeometryReader.readCompoundCurve", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Compound Curve\n\n@param reader\n@param hasZ\n@param hasM\n@return compound curve", "docstring_tokens": ["Read", "a", "Compound", "Curve"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryReader.java#L390-L404", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryReader.java", "func_name": "GeometryReader.readCurvePolygon", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Curve Polygon\n\n@param reader\n@param hasZ\n@param hasM\n@return curve polygon", "docstring_tokens": ["Read", "a", "Curve", "Polygon"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryReader.java#L414-L428", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryReader.java", "func_name": "GeometryReader.readPolyhedralSurface", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Polyhedral Surface\n\n@param reader\n@param hasZ\n@param hasM\n@return polyhedral surface", "docstring_tokens": ["Read", "a", "Polyhedral", "Surface"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryReader.java#L438-L452", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryReader.java", "func_name": "GeometryReader.readTIN", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a TIN\n\n@param reader\n@param hasZ\n@param hasM\n@return TIN", "docstring_tokens": ["Read", "a", "TIN"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryReader.java#L462-L475", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryReader.java", "func_name": "GeometryReader.readTriangle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read a Triangle\n\n@param reader\n@param hasZ\n@param hasM\n@return triangle", "docstring_tokens": ["Read", "a", "Triangle"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryReader.java#L485-L499", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryWriter.java", "func_name": "GeometryWriter.writeGeometry", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write a geometry to the byte writer\n\n@param writer\n@param geometry\n@throws IOException", "docstring_tokens": ["Write", "a", "geometry", "to", "the", "byte", "writer"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryWriter.java#L39-L109", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryWriter.java", "func_name": "GeometryWriter.writePoint", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write a Point\n\n@param writer\n@param point\n@throws IOException", "docstring_tokens": ["Write", "a", "Point"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryWriter.java#L118-L131", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryWriter.java", "func_name": "GeometryWriter.writeLineString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write a Line String\n\n@param writer\n@param lineString\n@throws IOException", "docstring_tokens": ["Write", "a", "Line", "String"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryWriter.java#L140-L148", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryWriter.java", "func_name": "GeometryWriter.writePolygon", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write a Polygon\n\n@param writer\n@param polygon\n@throws IOException", "docstring_tokens": ["Write", "a", "Polygon"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryWriter.java#L157-L165", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryWriter.java", "func_name": "GeometryWriter.writeMultiPoint", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write a Multi Point\n\n@param writer\n@param multiPoint\n@throws IOException", "docstring_tokens": ["Write", "a", "Multi", "Point"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryWriter.java#L174-L182", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryWriter.java", "func_name": "GeometryWriter.writeMultiLineString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write a Multi Line String\n\n@param writer\n@param multiLineString\n@throws IOException", "docstring_tokens": ["Write", "a", "Multi", "Line", "String"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryWriter.java#L191-L199", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryWriter.java", "func_name": "GeometryWriter.writeMultiPolygon", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write a Multi Polygon\n\n@param writer\n@param multiPolygon\n@throws IOException", "docstring_tokens": ["Write", "a", "Multi", "Polygon"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryWriter.java#L208-L216", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryWriter.java", "func_name": "GeometryWriter.writeGeometryCollection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write a Geometry Collection\n\n@param writer\n@param geometryCollection\n@throws IOException", "docstring_tokens": ["Write", "a", "Geometry", "Collection"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryWriter.java#L225-L233", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryWriter.java", "func_name": "GeometryWriter.writeCircularString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write a Circular String\n\n@param writer\n@param circularString\n@throws IOException", "docstring_tokens": ["Write", "a", "Circular", "String"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryWriter.java#L242-L250", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryWriter.java", "func_name": "GeometryWriter.writeCompoundCurve", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write a Compound Curve\n\n@param writer\n@param compoundCurve\n@throws IOException", "docstring_tokens": ["Write", "a", "Compound", "Curve"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryWriter.java#L259-L267", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryWriter.java", "func_name": "GeometryWriter.writeCurvePolygon", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write a Curve Polygon\n\n@param writer\n@param curvePolygon\n@throws IOException", "docstring_tokens": ["Write", "a", "Curve", "Polygon"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryWriter.java#L276-L284", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryWriter.java", "func_name": "GeometryWriter.writePolyhedralSurface", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write a Polyhedral Surface\n\n@param writer\n@param polyhedralSurface\n@throws IOException", "docstring_tokens": ["Write", "a", "Polyhedral", "Surface"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryWriter.java#L293-L301", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryWriter.java", "func_name": "GeometryWriter.writeTIN", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write a TIN\n\n@param writer\n@param tin\n@throws IOException", "docstring_tokens": ["Write", "a", "TIN"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryWriter.java#L310-L317", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryWriter.java", "func_name": "GeometryWriter.writeTriangle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write a Triangle\n\n@param writer\n@param triangle\n@throws IOException", "docstring_tokens": ["Write", "a", "Triangle"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryWriter.java#L326-L334", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryCodes.java", "func_name": "GeometryCodes.getCode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the geometry code from the geometry\n\n@param geometry\ngeometry\n@return geometry code", "docstring_tokens": ["Get", "the", "geometry", "code", "from", "the", "geometry"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryCodes.java#L22-L31", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryCodes.java", "func_name": "GeometryCodes.getCode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the geometry code from the geometry type\n\n@param geometryType\ngeometry type\n@return geometry code", "docstring_tokens": ["Get", "the", "geometry", "code", "from", "the", "geometry", "type"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryCodes.java#L40-L106", "partition": "valid"} +{"repo": "ngageoint/simple-features-wkb-java", "path": "src/main/java/mil/nga/sf/wkb/GeometryCodes.java", "func_name": "GeometryCodes.getGeometryType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the Geometry Type from the code\n\n@param code\ngeometry type code\n@return geometry type", "docstring_tokens": ["Get", "the", "Geometry", "Type", "from", "the", "code"], "sha": "7197c4cd455a6ed6d5a9f66a600572c09efc432b", "url": "https://github.com/ngageoint/simple-features-wkb-java/blob/7197c4cd455a6ed6d5a9f66a600572c09efc432b/src/main/java/mil/nga/sf/wkb/GeometryCodes.java#L115-L183", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/io/AbstractResource.java", "func_name": "AbstractResource.exists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This implementation checks whether a File can be opened,\nfalling back to whether an InputStream can be opened.\nThis will cover both directories and content resources.", "docstring_tokens": ["This", "implementation", "checks", "whether", "a", "File", "can", "be", "opened", "falling", "back", "to", "whether", "an", "InputStream", "can", "be", "opened", ".", "This", "will", "cover", "both", "directories", "and", "content", "resources", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/io/AbstractResource.java#L80-L97", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/GcdCalculator.java", "func_name": "GcdCalculator.gcd", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds the greatest common divisor of all numbers in the list.\n\n@return the GCD or Long.MAX_VALUE if the list is empty.", "docstring_tokens": ["Finds", "the", "greatest", "common", "divisor", "of", "all", "numbers", "in", "the", "list", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/GcdCalculator.java#L39-L49", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/StringUtils2.java", "func_name": "StringUtils2.abbreviate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Abbreviates a String using ellipses. This will turn \"Now is the time for all good men\" into \"Now is the time for...\"\n\n@param str the String to abbreviate\n@param max the max number of chars of the abbreviated String\n@return the abbreviated string", "docstring_tokens": ["Abbreviates", "a", "String", "using", "ellipses", ".", "This", "will", "turn", "Now", "is", "the", "time", "for", "all", "good", "men", "into", "Now", "is", "the", "time", "for", "..."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/StringUtils2.java#L166-L175", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/json/Json.java", "func_name": "Json.value", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a JsonValue instance that represents the given string.\n\n@param string\nthe string to get a JSON representation for\n@return a JSON value that represents the given string", "docstring_tokens": ["Returns", "a", "JsonValue", "instance", "that", "represents", "the", "given", "string", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/json/Json.java#L132-L134", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/json/Json.java", "func_name": "Json.object", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new empty JsonObject. This is equivalent to creating a new JsonObject using the\nconstructor.\n\n@return a new empty JSON object", "docstring_tokens": ["Creates", "a", "new", "empty", "JsonObject", ".", "This", "is", "equivalent", "to", "creating", "a", "new", "JsonObject", "using", "the", "constructor", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/json/Json.java#L276-L278", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/json/Json.java", "func_name": "Json.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses the given input string as JSON. The input must contain a valid JSON value, optionally\npadded with whitespace.\n\n@param string\nthe input string, must be valid JSON\n@return a value that represents the parsed JSON\n@throws ParseException\nif the input is not valid JSON", "docstring_tokens": ["Parses", "the", "given", "input", "string", "as", "JSON", ".", "The", "input", "must", "contain", "a", "valid", "JSON", "value", "optionally", "padded", "with", "whitespace", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/json/Json.java#L290-L297", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/ConfigurationUtils.java", "func_name": "ConfigurationUtils.getString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the value of the given property.\n\nIf the property is not found, the defaultValue is returned.\n\n@param name name of the property\n@param defaultValue default value if the property is not defined.\n@return value of the property or defaultValue if the property is not defined.", "docstring_tokens": ["Return", "the", "value", "of", "the", "given", "property", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/ConfigurationUtils.java#L147-L153", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/json/JsonObject.java", "func_name": "JsonObject.readFrom", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads a JSON object from the given string.\n\n@param string\nthe string that contains the JSON object\n@return the JSON object that has been read\n@throws ParseException\nif the input is not valid JSON\n@throws UnsupportedOperationException\nif the input does not contain a JSON object\n@deprecated Use {@link Json#parse(String)}{@link org.jmxtrans.agent.util.json.JsonValue#asObject() .asObject()} instead", "docstring_tokens": ["Reads", "a", "JSON", "object", "from", "the", "given", "string", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/json/JsonObject.java#L150-L153", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/json/JsonObject.java", "func_name": "JsonObject.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the value of the member with the specified name in this object. If this object contains\nmultiple members with the given name, this method will return the last one.\n\n@param name\nthe name of the member whose value is to be returned\n@return the value of the last member with the specified name, or null if this\nobject does not contain a member with that name", "docstring_tokens": ["Returns", "the", "value", "of", "the", "member", "with", "the", "specified", "name", "in", "this", "object", ".", "If", "this", "object", "contains", "multiple", "members", "with", "the", "given", "name", "this", "method", "will", "return", "the", "last", "one", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/json/JsonObject.java#L557-L563", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/json/JsonObject.java", "func_name": "JsonObject.iterator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an iterator over the members of this object in document order. The returned iterator\ncannot be used to modify this object.\n\n@return an iterator over the members of this object", "docstring_tokens": ["Returns", "an", "iterator", "over", "the", "members", "of", "this", "object", "in", "document", "order", ".", "The", "returned", "iterator", "cannot", "be", "used", "to", "modify", "this", "object", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/json/JsonObject.java#L713-L733", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/PropertyPlaceholderResolver.java", "func_name": "PropertyPlaceholderResolver.resolvePlaceholder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Search for the given placeholder in system properties then in environment variables.\n\n@param property property to resolve\n@param defaultValue Default value if the placeholder is not found. null means not default value is\ndefined and the placeholder must exist\n@return the resolved property or the default value if the placeholder is not found and the default value is defined. Non null.\n@throws IllegalStateException if the placeholder is not found and the given defaultValue is not\ndefined (null)", "docstring_tokens": ["Search", "for", "the", "given", "placeholder", "in", "system", "properties", "then", "in", "environment", "variables", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/PropertyPlaceholderResolver.java#L118-L140", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/JmxTransAgent.java", "func_name": "JmxTransAgent.getVersionInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Human readable name and version.\n\n@return project name and version or \"{@code jmxtrans-agent}\" if package information not found", "docstring_tokens": ["Human", "readable", "name", "and", "version", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/JmxTransAgent.java#L124-L132", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/json/JsonArray.java", "func_name": "JsonArray.readFrom", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads a JSON array from the given string.\n\n@param string\nthe string that contains the JSON array\n@return the JSON array that has been read\n@throws ParseException\nif the input is not valid JSON\n@throws UnsupportedOperationException\nif the input does not contain a JSON array\n@deprecated Use {@link Json#parse(String)}{@link org.jmxtrans.agent.util.json.JsonValue#asArray() .asArray()} instead", "docstring_tokens": ["Reads", "a", "JSON", "array", "from", "the", "given", "string", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/json/JsonArray.java#L131-L134", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/json/JsonArray.java", "func_name": "JsonArray.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Appends the specified JSON value to the end of this array.\n\n@param value\nthe JsonValue to add to the array, must not be null\n@return the array itself, to enable method chaining", "docstring_tokens": ["Appends", "the", "specified", "JSON", "value", "to", "the", "end", "of", "this", "array", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/json/JsonArray.java#L236-L242", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/json/JsonArray.java", "func_name": "JsonArray.set", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Replaces the element at the specified position in this array with the specified JSON value.\n\n@param index\nthe index of the array element to replace\n@param value\nthe value to be stored at the specified array position, must not be null\n@return the array itself, to enable method chaining\n@throws IndexOutOfBoundsException\nif the index is out of range, i.e. index < 0 or\nindex >= size", "docstring_tokens": ["Replaces", "the", "element", "at", "the", "specified", "position", "in", "this", "array", "with", "the", "specified", "JSON", "value", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/json/JsonArray.java#L364-L370", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/json/JsonArray.java", "func_name": "JsonArray.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the value of the element at the specified position in this array.\n\n@param index\nthe index of the array element to return\n@return the value of the element at the specified position\n@throws IndexOutOfBoundsException\nif the index is out of range, i.e. index < 0 or\nindex >= size", "docstring_tokens": ["Returns", "the", "value", "of", "the", "element", "at", "the", "specified", "position", "in", "this", "array", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/json/JsonArray.java#L415-L417", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/json/JsonArray.java", "func_name": "JsonArray.values", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a list of the values in this array in document order. The returned list is backed by\nthis array and will reflect subsequent changes. It cannot be used to modify this array.\nAttempts to modify the returned list will result in an exception.\n\n@return a list of the values in this array", "docstring_tokens": ["Returns", "a", "list", "of", "the", "values", "in", "this", "array", "in", "document", "order", ".", "The", "returned", "list", "is", "backed", "by", "this", "array", "and", "will", "reflect", "subsequent", "changes", ".", "It", "cannot", "be", "used", "to", "modify", "this", "array", ".", "Attempts", "to", "modify", "the", "returned", "list", "will", "result", "in", "an", "exception", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/json/JsonArray.java#L426-L428", "partition": "valid"} +{"repo": "jmxtrans/jmxtrans-agent", "path": "src/main/java/org/jmxtrans/agent/util/json/JsonArray.java", "func_name": "JsonArray.iterator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an iterator over the values of this array in document order. The returned iterator\ncannot be used to modify this array.\n\n@return an iterator over the values of this array", "docstring_tokens": ["Returns", "an", "iterator", "over", "the", "values", "of", "this", "array", "in", "document", "order", ".", "The", "returned", "iterator", "cannot", "be", "used", "to", "modify", "this", "array", "."], "sha": "4529593c4c8c86a8ea74146d8a645061144928f6", "url": "https://github.com/jmxtrans/jmxtrans-agent/blob/4529593c4c8c86a8ea74146d8a645061144928f6/src/main/java/org/jmxtrans/agent/util/json/JsonArray.java#L436-L452", "partition": "valid"} +{"repo": "tfredrich/Domain-Eventing", "path": "core/src/java/com/strategicgains/eventing/local/EventMonitor.java", "func_name": "EventMonitor.processEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs each appropriate EventHandler in an Executor.\n\n@param event", "docstring_tokens": ["Runs", "each", "appropriate", "EventHandler", "in", "an", "Executor", "."], "sha": "c97151a2244e3bbcdc0bb0192475adffa9fdefb0", "url": "https://github.com/tfredrich/Domain-Eventing/blob/c97151a2244e3bbcdc0bb0192475adffa9fdefb0/core/src/java/com/strategicgains/eventing/local/EventMonitor.java#L148-L174", "partition": "valid"} +{"repo": "tfredrich/Domain-Eventing", "path": "core/src/java/com/strategicgains/eventing/DomainEvents.java", "func_name": "DomainEvents.publishEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Raise an event on all event busses, passing it to applicable consumers asynchronously.\n\n@param event", "docstring_tokens": ["Raise", "an", "event", "on", "all", "event", "busses", "passing", "it", "to", "applicable", "consumers", "asynchronously", "."], "sha": "c97151a2244e3bbcdc0bb0192475adffa9fdefb0", "url": "https://github.com/tfredrich/Domain-Eventing/blob/c97151a2244e3bbcdc0bb0192475adffa9fdefb0/core/src/java/com/strategicgains/eventing/DomainEvents.java#L156-L164", "partition": "valid"} +{"repo": "tfredrich/Domain-Eventing", "path": "core/src/java/com/strategicgains/eventing/DomainEvents.java", "func_name": "DomainEvents.publishEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Raise an event on a named event bus, passing it to applicable consumers asynchronously.\n\n@param name the name of an event bus, assigned during calls to addEventBus(String, EventBus).\n@param event the event to publish.", "docstring_tokens": ["Raise", "an", "event", "on", "a", "named", "event", "bus", "passing", "it", "to", "applicable", "consumers", "asynchronously", "."], "sha": "c97151a2244e3bbcdc0bb0192475adffa9fdefb0", "url": "https://github.com/tfredrich/Domain-Eventing/blob/c97151a2244e3bbcdc0bb0192475adffa9fdefb0/core/src/java/com/strategicgains/eventing/DomainEvents.java#L172-L183", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/htmlwff/NoTag.java", "func_name": "NoTag.removeChild", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "removes the the child content.\n\n@param child\n@since 1.0.0\n@author WFF", "docstring_tokens": ["removes", "the", "the", "child", "content", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/htmlwff/NoTag.java#L160-L167", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/server/page/InnerHtmlAddListenerImpl.java", "func_name": "InnerHtmlAddListenerImpl.addInWffIdMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "adds to wffid map\n\n@param tag\n@since 2.0.0\n@author WFF", "docstring_tokens": ["adds", "to", "wffid", "map"], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/server/page/InnerHtmlAddListenerImpl.java#L70-L97", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java", "func_name": "AbstractAttribute.addToAttributeValueMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "adds the given key value.\n\n@param key\n@param value\n@return true if it is modified\n@since 1.0.0\n@author WFF", "docstring_tokens": ["adds", "the", "given", "key", "value", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java#L523-L549", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java", "func_name": "AbstractAttribute.invokeValueChangeListeners", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "this method should be called after changing of attribute value not before\nchanging value", "docstring_tokens": ["this", "method", "should", "be", "called", "after", "changing", "of", "attribute", "value", "not", "before", "changing", "value"], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java#L555-L581", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java", "func_name": "AbstractAttribute.addAllToAttributeValueMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "adds all to the attribute value map.\n\n@param map\n@since 1.0.0\n@author WFF\n@return true if it is modified", "docstring_tokens": ["adds", "all", "to", "the", "attribute", "value", "map", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java#L606-L633", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java", "func_name": "AbstractAttribute.removeFromAttributeValueMapByKeys", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "removes the key value for the input key.\n\n@param keys\n@since 3.0.1\n@author WFF\n@return true if any of the given keys (as well as value contained\ncorresponding to it) has been removed.", "docstring_tokens": ["removes", "the", "key", "value", "for", "the", "input", "key", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java#L657-L696", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java", "func_name": "AbstractAttribute.pushQueues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "pushes PushQueue from all shared object of parent tags.\n\n@param sharedObjects\n@param listenerInvoked", "docstring_tokens": ["pushes", "PushQueue", "from", "all", "shared", "object", "of", "parent", "tags", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java#L704-L716", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java", "func_name": "AbstractAttribute.removeFromAttributeValueMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "removes only if the key and value matches in the map for any particular\nentry.\n\n@param key\n@param value\n@since 1.0.0\n@author WFF\n@return true if it is modified", "docstring_tokens": ["removes", "only", "if", "the", "key", "and", "value", "matches", "in", "the", "map", "for", "any", "particular", "entry", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java#L728-L752", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java", "func_name": "AbstractAttribute.addToAttributeValueSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "adds to the attribute value set.\n\n@param value\n@since 1.0.0\n@author WFF\n@return", "docstring_tokens": ["adds", "to", "the", "attribute", "value", "set", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java#L965-L988", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java", "func_name": "AbstractAttribute.addAllToAttributeValueSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "adds all to the attribute value set.\n\n@param values\n@since 1.0.0\n@author WFF", "docstring_tokens": ["adds", "all", "to", "the", "attribute", "value", "set", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java#L997-L1020", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java", "func_name": "AbstractAttribute.removeAllFromAttributeValueSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "removes the value from the the attribute set.\n\n@param values\n@since 1.0.0\n@author WFF", "docstring_tokens": ["removes", "the", "value", "from", "the", "the", "attribute", "set", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java#L1148-L1170", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java", "func_name": "AbstractAttribute.removeAllFromAttributeValueSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "clears all values from the value set.\n\n@since 1.0.0\n@author WFF", "docstring_tokens": ["clears", "all", "values", "from", "the", "value", "set", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java#L1178-L1196", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java", "func_name": "AbstractAttribute.addValueChangeListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "adds value change lister which will be invoked when the value changed\n\n@param valueChangeListener\n@since 2.0.0\n@author WFF", "docstring_tokens": ["adds", "value", "change", "lister", "which", "will", "be", "invoked", "when", "the", "value", "changed"], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractAttribute.java#L1244-L1255", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/html5/attribute/Pattern.java", "func_name": "Pattern.containsValidRegEx", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "checks the value in this attribute contains a valid regex.\n\n@return true if this attribute contains a valid regex\n@since 3.0.1\n@author WFF", "docstring_tokens": ["checks", "the", "value", "in", "this", "attribute", "contains", "a", "valid", "regex", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/html5/attribute/Pattern.java#L117-L127", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/css/RgbaCssValue.java", "func_name": "RgbaCssValue.setR", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "to set the red value which is in between 0 to 255.\n\n@param r\nrepresents red\n@author WFF\n@since 1.0.0", "docstring_tokens": ["to", "set", "the", "red", "value", "which", "is", "in", "between", "0", "to", "255", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/css/RgbaCssValue.java#L170-L180", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/css/RgbaCssValue.java", "func_name": "RgbaCssValue.setG", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "to set the green value which is in between 0 to 255.\n\n@param g\nrepresents green\n@author WFF\n@since 1.0.0", "docstring_tokens": ["to", "set", "the", "green", "value", "which", "is", "in", "between", "0", "to", "255", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/css/RgbaCssValue.java#L199-L209", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/css/RgbaCssValue.java", "func_name": "RgbaCssValue.setB", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "to set the blue value which is in between 0 to 255.\n\n@param b\n@author WFF\n@since 1.0.0", "docstring_tokens": ["to", "set", "the", "blue", "value", "which", "is", "in", "between", "0", "to", "255", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/css/RgbaCssValue.java#L236-L246", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/css/RgbaCssValue.java", "func_name": "RgbaCssValue.setA", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "to set alpha. The default value is 0.\n\n@param a\n@author WFF\n@since 1.0.0", "docstring_tokens": ["to", "set", "alpha", ".", "The", "default", "value", "is", "0", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/css/RgbaCssValue.java#L255-L265", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/core/TagRegistry.java", "func_name": "TagRegistry.loadAllTagClasses", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads all tag classes.\n\n@since 2.1.13\n@author WFF", "docstring_tokens": ["Loads", "all", "tag", "classes", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/core/TagRegistry.java#L418-L443", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/util/StringUtil.java", "func_name": "StringUtil.getFirstSubstring", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "gets the first substring which starts and ends with the given values.\n\n@param inputString\nthe string from which the substring will be\nextracted.\n@param startingWith\nto match the starting substring\n@param endingWith\nto match the ending substring\n@return the substring which starts and ends with the given\n{@code startingWith} and {@code endingWith} values. Or returns\nnull if it doesn't contain.\n@author WFF\n@since 1.0.0", "docstring_tokens": ["gets", "the", "first", "substring", "which", "starts", "and", "ends", "with", "the", "given", "values", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/util/StringUtil.java#L65-L83", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/util/StringUtil.java", "func_name": "StringUtil.cloneArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "To make the clone copy of the given String array. This method is faster\nthan the clone method of String array.\n\n@param inputArray\n@return the cloned array of the given string array.\n@author WFF\n@since 1.0.0", "docstring_tokens": ["To", "make", "the", "clone", "copy", "of", "the", "given", "String", "array", ".", "This", "method", "is", "faster", "than", "the", "clone", "method", "of", "String", "array", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/util/StringUtil.java#L562-L566", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/util/StringUtil.java", "func_name": "StringUtil.containsWhitespace", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if the given string contains whitespace.\n\n@param string\n@return true if the given string contains space char.\n@since 3.0.1\n@author WFF", "docstring_tokens": ["Checks", "if", "the", "given", "string", "contains", "whitespace", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/util/StringUtil.java#L768-L777", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/util/StringUtil.java", "func_name": "StringUtil.strip", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the trailing and leading whitespaces\n\n@param s\n@return the striped string\n@since 3.0.1", "docstring_tokens": ["Removes", "the", "trailing", "and", "leading", "whitespaces"], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/util/StringUtil.java#L938-L956", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java", "func_name": "AbstractHtml.removeAllChildren", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes all children from this tag.\n\n@author WFF", "docstring_tokens": ["Removes", "all", "children", "from", "this", "tag", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java#L493-L526", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java", "func_name": "AbstractHtml.addInnerHtmls", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes all children and adds the given tags as children.\n\n@param updateClient\ntrue to update client browser page if it is\navailable. The default value is true but it will\nbe ignored if there is no client browser page.\n@param innerHtmls\nthe inner html tags to add\n\n@since 2.1.15\n@author WFF", "docstring_tokens": ["Removes", "all", "children", "and", "adds", "the", "given", "tags", "as", "children", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java#L564-L626", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java", "func_name": "AbstractHtml.removeChildren", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the given tags from its children tags.\n\n@param children\nthe tags to remove from its children.\n@return true given given children tags have been removed.\n@author WFF", "docstring_tokens": ["Removes", "the", "given", "tags", "from", "its", "children", "tags", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java#L636-L650", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java", "func_name": "AbstractHtml.removeChild", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the given tag from its children only if the given tag is a child\nof this tag.\n\n@param child\nthe tag to remove from its children\n@return true if removed\n@author WFF", "docstring_tokens": ["Removes", "the", "given", "tag", "from", "its", "children", "only", "if", "the", "given", "tag", "is", "a", "child", "of", "this", "tag", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java#L689-L726", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java", "func_name": "AbstractHtml.appendChildren", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "adds the given children to the last position of the current children of\nthis object.\n\n@param children\nchildren to append in this object's existing\nchildren.\n@author WFF", "docstring_tokens": ["adds", "the", "given", "children", "to", "the", "last", "position", "of", "the", "current", "children", "of", "this", "object", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java#L884-L921", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java", "func_name": "AbstractHtml.initAttributes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "initializes attributes in this.attributes and also in attributesMap. this\nshould be called only once per object.\n\n@param attributes\n@since 2.0.0\n@author WFF", "docstring_tokens": ["initializes", "attributes", "in", "this", ".", "attributes", "and", "also", "in", "attributesMap", ".", "this", "should", "be", "called", "only", "once", "per", "object", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java#L1134-L1152", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java", "func_name": "AbstractHtml.getAttributeByName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "gets the attribute by attribute name\n\n@return the attribute object for the given attribute name if exists\notherwise returns null.\n@since 2.0.0\n@author WFF", "docstring_tokens": ["gets", "the", "attribute", "by", "attribute", "name"], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java#L1294-L1307", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java", "func_name": "AbstractHtml.markOwnerTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "marks the owner tag in the attributes\n\n@param attributes\n@since 1.0.0\n@author WFF", "docstring_tokens": ["marks", "the", "owner", "tag", "in", "the", "attributes"], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java#L1596-L1603", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java", "func_name": "AbstractHtml.initInConstructor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "to initialize objects in the constructor\n\n@since 1.0.0\n@author WFF", "docstring_tokens": ["to", "initialize", "objects", "in", "the", "constructor"], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java#L1611-L1618", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java", "func_name": "AbstractHtml.getChildrenAsArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the children of this tag as an array. An efficient way to get the\nchildren as an array.\n\n@return the array of children of this tag.\n@since 3.0.1\n@author WFF", "docstring_tokens": ["Gets", "the", "children", "of", "this", "tag", "as", "an", "array", ".", "An", "efficient", "way", "to", "get", "the", "children", "as", "an", "array", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java#L1701-L1711", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java", "func_name": "AbstractHtml.getFirstChild", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the first child of this tag. The efficient way to get the first\nchild.\n\n@return the first child of this tag or null if there is no child.\n\n@since 3.0.1\n@author WFF", "docstring_tokens": ["Gets", "the", "first", "child", "of", "this", "tag", ".", "The", "efficient", "way", "to", "get", "the", "first", "child", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java#L1722-L1753", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java", "func_name": "AbstractHtml.getChildrenSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the number of children in this tag. An efficient way to find the\nsize of children.\n\n@return the size of children.\n@since 3.0.1\n@author WFF", "docstring_tokens": ["Gets", "the", "number", "of", "children", "in", "this", "tag", ".", "An", "efficient", "way", "to", "find", "the", "size", "of", "children", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java#L1763-L1772", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java", "func_name": "AbstractHtml.containsChild", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether a tag is contained in its direct children. An efficient\nway to check if the given tag is a direct child of this tag.\n\n@param childTag\n@return true if the given tag is a child of this tags.\n@since 3.0.1\n@author WFF", "docstring_tokens": ["Checks", "whether", "a", "tag", "is", "contained", "in", "its", "direct", "children", ".", "An", "efficient", "way", "to", "check", "if", "the", "given", "tag", "is", "a", "direct", "child", "of", "this", "tag", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java#L1807-L1817", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java", "func_name": "AbstractHtml.getOpeningTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "For internal purpose. Not recommended for external purpose.\n\n@return the opening tag of this object\n@author WFF", "docstring_tokens": ["For", "internal", "purpose", ".", "Not", "recommended", "for", "external", "purpose", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java#L1825-L1838", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java", "func_name": "AbstractHtml.insertBefore", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inserts the given tags before this tag. There must be a parent for this\nmethod tag.\n\n@param abstractHtmls\nto insert before this tag\n@return true if inserted otherwise false.\n@since 2.1.1\n@author WFF", "docstring_tokens": ["Inserts", "the", "given", "tags", "before", "this", "tag", ".", "There", "must", "be", "a", "parent", "for", "this", "method", "tag", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/AbstractHtml.java#L3924-L3947", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractValueSetAttribute.java", "func_name": "AbstractValueSetAttribute.setAttributeValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "sets the value for this attribute\n\n@param updateClient\ntrue to update client browser page if it is\navailable. The default value is true but it will\nbe ignored if there is no client browser page.\n@param value\nthe value for the attribute.\n@since 2.1.15\n@author WFF", "docstring_tokens": ["sets", "the", "value", "for", "this", "attribute"], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractValueSetAttribute.java#L44-L51", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractValueSetAttribute.java", "func_name": "AbstractValueSetAttribute.replaceAllInAttributeValueSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes all values from the attributeValueSet and adds the given\nattribute values.\n\n@param updateClient\n@param attrValues\n@since 3.0.1", "docstring_tokens": ["Removes", "all", "values", "from", "the", "attributeValueSet", "and", "adds", "the", "given", "attribute", "values", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/core/AbstractValueSetAttribute.java#L160-L173", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/server/page/BrowserPage.java", "func_name": "BrowserPage.addWebSocketPushListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "adds the WebSocket listener for the given WebSocket session\n\n@param sessionId\nthe unique id of WebSocket session\n@param wsListener\n@since 2.1.0\n@author WFF", "docstring_tokens": ["adds", "the", "WebSocket", "listener", "for", "the", "given", "WebSocket", "session"], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/server/page/BrowserPage.java#L219-L231", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/server/page/BrowserPage.java", "func_name": "BrowserPage.removeWebSocketPushListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "removes the WebSocket listener added for this WebSocket session\n\n@param sessionId\nthe unique id of WebSocket session\n@since 2.1.0\n@author WFF", "docstring_tokens": ["removes", "the", "WebSocket", "listener", "added", "for", "this", "WebSocket", "session"], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/server/page/BrowserPage.java#L241-L247", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/server/page/BrowserPage.java", "func_name": "BrowserPage.removeFromContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "By default On.TAB_CLOSE and On.INIT_REMOVE_PREVIOUS are enabled.\n\n@param enable\n@param ons\nthe instance of On to represent on which browser event\nthe browser page needs to be removed.\n@since 2.1.4\n@author WFF", "docstring_tokens": ["By", "default", "On", ".", "TAB_CLOSE", "and", "On", ".", "INIT_REMOVE_PREVIOUS", "are", "enabled", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/server/page/BrowserPage.java#L1567-L1575", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/server/page/BrowserPage.java", "func_name": "BrowserPage.getTagRepository", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the TagRepository to do different tag operations. This tag\nrepository is specific to this BrowserPage instance.\n\n@return the TagRepository object to do different tag operations. Or null\nif any one of the BrowserPage#toString or\nBrowserPage#toOutputStream methods is not called.\n@since 2.1.8\n@author WFF", "docstring_tokens": ["Gets", "the", "TagRepository", "to", "do", "different", "tag", "operations", ".", "This", "tag", "repository", "is", "specific", "to", "this", "BrowserPage", "instance", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/server/page/BrowserPage.java#L1766-L1778", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/server/page/BrowserPage.java", "func_name": "BrowserPage.setNonceForWffScript", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets nonce attribute value for wff script.\n\n@param value\npass value to set nonce value or pass null to remove\nnonce attribute\n@since 3.0.1", "docstring_tokens": ["Sets", "nonce", "attribute", "value", "for", "wff", "script", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/server/page/BrowserPage.java#L1788-L1820", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/css/Border.java", "func_name": "Border.setBorderStyle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "to set the border style.\n\n@param borderStyle\n@return the current object.\n@author WFF\n@since 1.0.0", "docstring_tokens": ["to", "set", "the", "border", "style", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/css/Border.java#L373-L405", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/global/Id.java", "func_name": "Id.setValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "value for the id attribute.\n\n@param uuid\n@since 1.0.0\n@author WFF", "docstring_tokens": ["value", "for", "the", "id", "attribute", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/global/Id.java#L196-L201", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/util/ByteBufferUtil.java", "func_name": "ByteBufferUtil.merge", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Merges and returns ByteBuffer from the given dataArray. The ByteBuffer\nwill be returned after flip.\n\n@param dataArray\nthe ByteByffers to merge\n@return a single ByteBuffer after flip merged from all ByteBuffer objects\nfrom dataArray.\n\n@since 3.0.2", "docstring_tokens": ["Merges", "and", "returns", "ByteBuffer", "from", "the", "given", "dataArray", ".", "The", "ByteBuffer", "will", "be", "returned", "after", "flip", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/util/ByteBufferUtil.java#L196-L208", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/global/Style.java", "func_name": "Style.removeAllCssProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes all css properties\n\n@since 3.0.1", "docstring_tokens": ["Removes", "all", "css", "properties"], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/global/Style.java#L1404-L1414", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/global/Style.java", "func_name": "Style.contains", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if the given cssProperty object exists in this style object.\n\n@return\n\n@since 3.0.1", "docstring_tokens": ["Checks", "if", "the", "given", "cssProperty", "object", "exists", "in", "this", "style", "object", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/attribute/global/Style.java#L1423-L1430", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/css/file/AbstractCssFileBlock.java", "func_name": "AbstractCssFileBlock.getCssPropertiesAsMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "rebuild true to rebuild, the load method will be invoked again.\n\n@return the cssProperties as map with key as the cssName and value as\n{@code CssProperty}.\n@since 1.0.0\n@author WFF", "docstring_tokens": ["rebuild", "true", "to", "rebuild", "the", "load", "method", "will", "be", "invoked", "again", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/css/file/AbstractCssFileBlock.java#L266-L278", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java", "func_name": "TagRepository.findTagsByAttribute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds tags by attribute instance.\n\n@param attribute\n@return all tags which are consuming the given attribute instance. It\nreturns the only tags consuming the given attribute object which\nare available in browserPage.\n@throws NullValueException\nif the {@code attribute} is null\n@since 2.1.8\n@author WFF", "docstring_tokens": ["Finds", "tags", "by", "attribute", "instance", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java#L2277-L2293", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java", "func_name": "TagRepository.findOneTagByAttribute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds one tag by attribute instance.\n\n@param attribute\n@return the first matching tag consuming the given attribute instance.\nThere must be a consuming tag which is available in the\nbrowserPage instance otherwise returns null.\n@throws NullValueException\nif the {@code attribute } is null\n@since 2.1.8\n@author WFF", "docstring_tokens": ["Finds", "one", "tag", "by", "attribute", "instance", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java#L2307-L2321", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java", "func_name": "TagRepository.findAllAttributes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds all attributes from all tags.\n\n@param parallel\ntrue to internally use parallel stream. If true it\nwill split the finding task to different batches and\nwill execute the batches in different threads in\nparallel consuming all CPUs. It will perform faster\nin finding from extremely large number of tags but at\nthe same time it will less efficient in finding from\nsmall number of tags.\n@return the collection of all attributes\n@since 3.0.0\n@author WFF", "docstring_tokens": ["Finds", "all", "attributes", "from", "all", "tags", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java#L2631-L2645", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java", "func_name": "TagRepository.buildAllAttributesStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds all attributes as stream from all tags.\n\n@param parallel\ntrue to internally use parallel stream. If true it\nwill split the finding task to different batches and\nwill execute the batches in different threads in\nparallel consuming all CPUs. It will perform faster\nin finding from extremely large number of tags but at\nthe same time it will less efficient in finding from\nsmall number of tags.\n@return the stream of all attributes\n@since 3.0.0\n@author WFF", "docstring_tokens": ["Finds", "all", "attributes", "as", "stream", "from", "all", "tags", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java#L2662-L2670", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java", "func_name": "TagRepository.findAllAttributes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds all attributes from the given tags\n\n@param parallel\ntrue to internally use parallel stream. If true it\nwill split the finding task to different batches and\nwill execute the batches in different threads in\nparallel consuming all CPUs. It will perform faster\nin finding from extremely large number of tags but at\nthe same time it will less efficient in finding from\nsmall number of tags.\n@param fromTags\nthe tags to find the attributes from.\n@return the all attributes from the given tags including the nested tags.\n@throws NullValueException\nif {@code fromTags} is null\n@since 3.0.0\n@author WFF", "docstring_tokens": ["Finds", "all", "attributes", "from", "the", "given", "tags"], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java#L2707-L2730", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java", "func_name": "TagRepository.exists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks the existence of a tag instance.\n\n@param tag\n@return true if the given tag instance exists anywhere in the browser\npage.\n@throws NullValueException\nif the tag is null\n@throws InvalidTagException\nif the given tag is {@code NoTag}.\n@since 2.1.8\n@author WFF", "docstring_tokens": ["Checks", "the", "existence", "of", "a", "tag", "instance", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java#L2745-L2755", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java", "func_name": "TagRepository.exists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks the existence of an attribute instance.\n\n@param attribute\n@return true if the given attribute instance exists anywhere in the\nbrowser page.\n@throws NullValueException\nif the {@code attribute} is null\n@since 2.1.8\n@author WFF", "docstring_tokens": ["Checks", "the", "existence", "of", "an", "attribute", "instance", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java#L2768-L2782", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java", "func_name": "TagRepository.buildAllAttributesStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds all attributes stream from the given tags.\n\n@param parallel\ntrue to internally use parallel stream. If true it\nwill split the finding task to different batches and\nwill execute the batches in different threads in\nparallel consuming all CPUs. It will perform faster\nin finding from extremely large number of tags but at\nthe same time it will less efficient in finding from\nsmall number of tags.\n@param fromTags\nthe tags to build stream of nested children's\nattributes from.\n@return {@code Stream}\n@since 3.0.0\n@author WFF", "docstring_tokens": ["Builds", "all", "attributes", "stream", "from", "the", "given", "tags", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/repository/TagRepository.java#L3029-L3037", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/formsandinputs/TextArea.java", "func_name": "TextArea.getChildText", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "gets the child text set for this tag.\n\n@return the child text set for this tag in string format. If there is no\nchildren/child text then will return empty string.\n@since 2.1.4", "docstring_tokens": ["gets", "the", "child", "text", "set", "for", "this", "tag", "."], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/formsandinputs/TextArea.java#L128-L138", "partition": "valid"} +{"repo": "webfirmframework/wff", "path": "wffweb/src/main/java/com/webfirmframework/wffweb/streamer/WffBinaryMessageOutputStreamer.java", "func_name": "WffBinaryMessageOutputStreamer.writeByChunk", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "writes maximum bytes at chuckSize\n\n@param bytes\n@throws IOException\n@since 1.1.2\n@author WFF", "docstring_tokens": ["writes", "maximum", "bytes", "at", "chuckSize"], "sha": "e59def3a20d44f91e112b113448d951d7514af2e", "url": "https://github.com/webfirmframework/wff/blob/e59def3a20d44f91e112b113448d951d7514af2e/wffweb/src/main/java/com/webfirmframework/wffweb/streamer/WffBinaryMessageOutputStreamer.java#L76-L104", "partition": "valid"} +{"repo": "ralscha/embeddedtc", "path": "src/main/java/ch/rasc/embeddedtc/EmbeddedTomcat.java", "func_name": "EmbeddedTomcat.setContextPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the contextPath for the webapplication\n\n@param contextPath The new contextPath. Has to start with / or is the empty \"\"\nstring\n@return The embedded Tomcat", "docstring_tokens": ["Sets", "the", "contextPath", "for", "the", "webapplication"], "sha": "1dbd2c1db7c4fbfea27970b3619f24d763b275a4", "url": "https://github.com/ralscha/embeddedtc/blob/1dbd2c1db7c4fbfea27970b3619f24d763b275a4/src/main/java/ch/rasc/embeddedtc/EmbeddedTomcat.java#L315-L325", "partition": "valid"} +{"repo": "ralscha/embeddedtc", "path": "src/main/java/ch/rasc/embeddedtc/EmbeddedTomcat.java", "func_name": "EmbeddedTomcat.setContextFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the location of the context file that configures this web application\n\n@param contextFile Location of the context file\n@return The embedded Tomcat instance", "docstring_tokens": ["Sets", "the", "location", "of", "the", "context", "file", "that", "configures", "this", "web", "application"], "sha": "1dbd2c1db7c4fbfea27970b3619f24d763b275a4", "url": "https://github.com/ralscha/embeddedtc/blob/1dbd2c1db7c4fbfea27970b3619f24d763b275a4/src/main/java/ch/rasc/embeddedtc/EmbeddedTomcat.java#L717-L725", "partition": "valid"} +{"repo": "ralscha/embeddedtc", "path": "src/main/java/ch/rasc/embeddedtc/EmbeddedTomcat.java", "func_name": "EmbeddedTomcat.addContextEnvironmentAndResourceFromFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read ContextEnvironment and ContextResource definition from a text file.\n\n@param contextFile Location to a context file\n@return The embedded Tomcat\n@deprecated use {@link #setContextFile(String)}", "docstring_tokens": ["Read", "ContextEnvironment", "and", "ContextResource", "definition", "from", "a", "text", "file", "."], "sha": "1dbd2c1db7c4fbfea27970b3619f24d763b275a4", "url": "https://github.com/ralscha/embeddedtc/blob/1dbd2c1db7c4fbfea27970b3619f24d763b275a4/src/main/java/ch/rasc/embeddedtc/EmbeddedTomcat.java#L734-L743", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wyfs/lang/Content.java", "func_name": "Content.filter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Construct a content filter from a path filter and a content type.\n\n@param filter --- path filter\n@param contentType\n@return", "docstring_tokens": ["Construct", "a", "content", "filter", "from", "a", "path", "filter", "and", "a", "content", "type", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wyfs/lang/Content.java#L151-L166", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wyfs/lang/Content.java", "func_name": "Content.or", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Combine two filters together produce one filter whose items must be\nmatched by at least one of the original filters.\n\n@param f1\n@param f2\n@return", "docstring_tokens": ["Combine", "two", "filters", "together", "produce", "one", "filter", "whose", "items", "must", "be", "matched", "by", "at", "least", "one", "of", "the", "original", "filters", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wyfs/lang/Content.java#L200-L215", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/cfg/ConfigFileParser.java", "func_name": "ConfigFileParser.checkNotEof", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check that the End-Of-File has not been reached. This method should be\ncalled from contexts where we are expecting something to follow.", "docstring_tokens": ["Check", "that", "the", "End", "-", "Of", "-", "File", "has", "not", "been", "reached", ".", "This", "method", "should", "be", "called", "from", "contexts", "where", "we", "are", "expecting", "something", "to", "follow", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/cfg/ConfigFileParser.java#L368-L379", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/cfg/ConfigFileParser.java", "func_name": "ConfigFileParser.isLineSpace", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Define what is considered to be linespace.\n\n@param token\n@return", "docstring_tokens": ["Define", "what", "is", "considered", "to", "be", "linespace", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/cfg/ConfigFileParser.java#L448-L450", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/cfg/ConfigFileParser.java", "func_name": "ConfigFileParser.parseString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse a string constant whilst interpreting all escape characters.\n\n@param v\n@return", "docstring_tokens": ["Parse", "a", "string", "constant", "whilst", "interpreting", "all", "escape", "characters", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/cfg/ConfigFileParser.java#L501-L560", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wybs/io/AbstractLexer.java", "func_name": "AbstractLexer.scan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Scan the given input stream and produce a list of tokens, or an error.\n\n@return", "docstring_tokens": ["Scan", "the", "given", "input", "stream", "and", "produce", "a", "list", "of", "tokens", "or", "an", "error", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wybs/io/AbstractLexer.java#L107-L129", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/CommandParser.java", "func_name": "CommandParser.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse a given set of command-line arguments starting from a given index\nposition to produce an appropriate command template.\n\n@param args\n@param index", "docstring_tokens": ["Parse", "a", "given", "set", "of", "command", "-", "line", "arguments", "starting", "from", "a", "given", "index", "position", "to", "produce", "an", "appropriate", "command", "template", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/CommandParser.java#L70-L93", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/CommandParser.java", "func_name": "CommandParser.parseData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse a given string representing a data value into an instance of Data.\n\n@param str\nThe string to be parsed.\n@return", "docstring_tokens": ["Parse", "a", "given", "string", "representing", "a", "data", "value", "into", "an", "instance", "of", "Data", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/CommandParser.java#L167-L178", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/commands/Help.java", "func_name": "Help.printUsage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Print usage information to the console.", "docstring_tokens": ["Print", "usage", "information", "to", "the", "console", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/commands/Help.java#L164-L178", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/commands/Help.java", "func_name": "Help.determineCommandNameWidth", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determine the maximum width of any configured command name\n\n@param descriptors\n@return", "docstring_tokens": ["Determine", "the", "maximum", "width", "of", "any", "configured", "command", "name"], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/commands/Help.java#L216-L222", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/commands/Install.java", "func_name": "Install.createZipFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Given a list of files construct a corresponding ZipFile containing them.\n\n@param files\n@return\n@throws IOException", "docstring_tokens": ["Given", "a", "list", "of", "files", "construct", "a", "corresponding", "ZipFile", "containing", "them", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/commands/Install.java#L174-L192", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/commands/Install.java", "func_name": "Install.readFileContents", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read the contents of a given file into a byte array.\n\n@param file\n@return\n@throws IOException", "docstring_tokens": ["Read", "the", "contents", "of", "a", "given", "file", "into", "a", "byte", "array", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/commands/Install.java#L222-L235", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/commands/Install.java", "func_name": "Install.createFilter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a content filter from the string representation.\n\n@param filter\n@return", "docstring_tokens": ["Create", "a", "content", "filter", "from", "the", "string", "representation", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/commands/Install.java#L260-L266", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wyfs/io/BinaryOutputStream.java", "func_name": "BinaryOutputStream.write", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write an unsigned integer value using 8bits using a big-endian encoding.\n\n@param w\n@throws IOException", "docstring_tokens": ["Write", "an", "unsigned", "integer", "value", "using", "8bits", "using", "a", "big", "-", "endian", "encoding", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wyfs/io/BinaryOutputStream.java#L37-L44", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wyfs/io/BinaryOutputStream.java", "func_name": "BinaryOutputStream.write_u32", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write an unsigned integer value using 32bits using a big-endian encoding.\n\n@param w\n@throws IOException", "docstring_tokens": ["Write", "an", "unsigned", "integer", "value", "using", "32bits", "using", "a", "big", "-", "endian", "encoding", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wyfs/io/BinaryOutputStream.java#L91-L96", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wyfs/io/BinaryOutputStream.java", "func_name": "BinaryOutputStream.write_un", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write an unsigned integer value using n bits using a big-endian encoding.\n\n@param w\n@throws IOException", "docstring_tokens": ["Write", "an", "unsigned", "integer", "value", "using", "n", "bits", "using", "a", "big", "-", "endian", "encoding", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wyfs/io/BinaryOutputStream.java#L130-L137", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/commands/Build.java", "func_name": "Build.printSyntacticMarkers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Print out syntactic markers for all entries in the build graph. This requires\ngoing through all entries, extracting the markers and then printing them.\n\n@param executor\n@throws IOException", "docstring_tokens": ["Print", "out", "syntactic", "markers", "for", "all", "entries", "in", "the", "build", "graph", ".", "This", "requires", "going", "through", "all", "entries", "extracting", "the", "markers", "and", "then", "printing", "them", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/commands/Build.java#L146-L154", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/commands/Build.java", "func_name": "Build.printSyntacticMarkers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Print out an individual syntactic markers.\n\n@param marker", "docstring_tokens": ["Print", "out", "an", "individual", "syntactic", "markers", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/commands/Build.java#L161-L177", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/commands/Build.java", "func_name": "Build.extractSyntacticMarkers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Traverse the various binaries which have been generated looking for error\nmessages.\n\n@param binaries\n@return\n@throws IOException", "docstring_tokens": ["Traverse", "the", "various", "binaries", "which", "have", "been", "generated", "looking", "for", "error", "messages", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/commands/Build.java#L187-L201", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wybs/util/AbstractSyntacticItem.java", "func_name": "AbstractSyntacticItem.getParent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the first syntactic item of a given kind which refers to this item.\n\n@param kind\n@return", "docstring_tokens": ["Get", "the", "first", "syntactic", "item", "of", "a", "given", "kind", "which", "refers", "to", "this", "item", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wybs/util/AbstractSyntacticItem.java#L74-L77", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wybs/util/AbstractSyntacticItem.java", "func_name": "AbstractSyntacticItem.getParents", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get all syntactic items of a given kind which refer to this item.\n\n@param kind\n@return", "docstring_tokens": ["Get", "all", "syntactic", "items", "of", "a", "given", "kind", "which", "refer", "to", "this", "item", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wybs/util/AbstractSyntacticItem.java#L85-L88", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wybs/util/AbstractSyntacticItem.java", "func_name": "AbstractSyntacticItem.getAncestor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the first syntactic item of a given kind which refers to this item either\nindirectly or directly.\n\n@param kind\n@return", "docstring_tokens": ["Get", "the", "first", "syntactic", "item", "of", "a", "given", "kind", "which", "refers", "to", "this", "item", "either", "indirectly", "or", "directly", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wybs/util/AbstractSyntacticItem.java#L96-L99", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/ArrayUtils.java", "func_name": "ArrayUtils.append", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Append an integer item to the front of an array of integer type together,\nproducing a fresh array whose length equals that the second plus one.\n\n@param lhs\nThe left-hand side. Elements of this array will be copied\nfirst into the resulting array.\n@param rhs\nThe right-hand side. Elements of this array will be copied\nlast into the resulting array.\n@return", "docstring_tokens": ["Append", "an", "integer", "item", "to", "the", "front", "of", "an", "array", "of", "integer", "type", "together", "producing", "a", "fresh", "array", "whose", "length", "equals", "that", "the", "second", "plus", "one", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/ArrayUtils.java#L79-L84", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/ArrayUtils.java", "func_name": "ArrayUtils.append", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Append two integer items to the front of an array of integer type\ntogether, producing a fresh array whose length equals that of the third\nplus two.\n\n@param lhs\nThe left-hand side. Elements of this array will be copied\nfirst into the resulting array.\n@param rhs\nThe right-hand side. Elements of this array will be copied\nlast into the resulting array.\n@return", "docstring_tokens": ["Append", "two", "integer", "items", "to", "the", "front", "of", "an", "array", "of", "integer", "type", "together", "producing", "a", "fresh", "array", "whose", "length", "equals", "that", "of", "the", "third", "plus", "two", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/ArrayUtils.java#L99-L105", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/ArrayUtils.java", "func_name": "ArrayUtils.append", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Append two arrays of integer type together, producing a fresh array whose\nlength equals that of the first and second added together.\n\n@param lhs\nThe left-hand side. Elements of this array will be copied\nfirst into the resulting array.\n@param rhs\nThe right-hand side. Elements of this array will be copied\nlast into the resulting array.\n@return", "docstring_tokens": ["Append", "two", "arrays", "of", "integer", "type", "together", "producing", "a", "fresh", "array", "whose", "length", "equals", "that", "of", "the", "first", "and", "second", "added", "together", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/ArrayUtils.java#L119-L123", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/ArrayUtils.java", "func_name": "ArrayUtils.append", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Append an element onto an array of unknown type together, producing a\nfresh array whose length equals that of the second plus one.\n\n@param lhs\nThe left-hand side. This element will be copied\nfirst into the resulting array.\n@param rhs\nThe right-hand side. Elements of this array will be copied\nlast into the resulting array.\n@return", "docstring_tokens": ["Append", "an", "element", "onto", "an", "array", "of", "unknown", "type", "together", "producing", "a", "fresh", "array", "whose", "length", "equals", "that", "of", "the", "second", "plus", "one", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/ArrayUtils.java#L174-L179", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/ArrayUtils.java", "func_name": "ArrayUtils.addAll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add all elements from an array into a given collection of the same type.\n\n@param lhs\nThe left-hand side. Elements of this array will be added to\nthe collection.\n@param rhs\nThe right-hand side. Elements from the left-hand side will be\nadded to this collection.", "docstring_tokens": ["Add", "all", "elements", "from", "an", "array", "into", "a", "given", "collection", "of", "the", "same", "type", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/ArrayUtils.java#L210-L214", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/ArrayUtils.java", "func_name": "ArrayUtils.toStringArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a collection of strings into a string array.\n\n@param items\n@return", "docstring_tokens": ["Convert", "a", "collection", "of", "strings", "into", "a", "string", "array", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/ArrayUtils.java#L222-L229", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/ArrayUtils.java", "func_name": "ArrayUtils.toIntArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a collection of Integers into an int array.\n\n@param items\n@return", "docstring_tokens": ["Convert", "a", "collection", "of", "Integers", "into", "an", "int", "array", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/ArrayUtils.java#L237-L244", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/ArrayUtils.java", "func_name": "ArrayUtils.sortAndRemoveDuplicates", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sort and remove duplicate items from a given array.\n\n@param children\n@return", "docstring_tokens": ["Sort", "and", "remove", "duplicate", "items", "from", "a", "given", "array", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/ArrayUtils.java#L378-L396", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/ArrayUtils.java", "func_name": "ArrayUtils.isSortedAndUnique", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check whether or not the children of this array are sorted according to\ntheir underlying order. And, if so, whether or not there are any\nduplicate elements encountered.\n\n@param children\n@return", "docstring_tokens": ["Check", "whether", "or", "not", "the", "children", "of", "this", "array", "are", "sorted", "according", "to", "their", "underlying", "order", ".", "And", "if", "so", "whether", "or", "not", "there", "are", "any", "duplicate", "elements", "encountered", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/ArrayUtils.java#L406-L420", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/ArrayUtils.java", "func_name": "ArrayUtils.compareTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A default operator for comparing arrays\n\n@param lhs\n@param rhs\n@return", "docstring_tokens": ["A", "default", "operator", "for", "comparing", "arrays"], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/ArrayUtils.java#L467-L479", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/WyMain.java", "func_name": "WyMain.getBuildSchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the appropriate configuration schema for a project. This defines what\nkeys are permitted.\n\n@return", "docstring_tokens": ["Get", "the", "appropriate", "configuration", "schema", "for", "a", "project", ".", "This", "defines", "what", "keys", "are", "permitted", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/WyMain.java#L283-L291", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/WyMain.java", "func_name": "WyMain.createTemplateExtensionPoint", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create the Build.Template extension point. This is where plugins register\ntheir primary functionality for constructing a specific build project.\n\n@param context\n@param templates", "docstring_tokens": ["Create", "the", "Build", ".", "Template", "extension", "point", ".", "This", "is", "where", "plugins", "register", "their", "primary", "functionality", "for", "constructing", "a", "specific", "build", "project", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/WyMain.java#L338-L345", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/WyMain.java", "func_name": "WyMain.activateDefaultPlugins", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Activate the default set of plugins which the tool uses. Currently this list\nis statically determined, but eventually it will be possible to dynamically\nadd plugins to the system.\n\n@param verbose\n@param locations\n@return", "docstring_tokens": ["Activate", "the", "default", "set", "of", "plugins", "which", "the", "tool", "uses", ".", "Currently", "this", "list", "is", "statically", "determined", "but", "eventually", "it", "will", "be", "possible", "to", "dynamically", "add", "plugins", "to", "the", "system", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/WyMain.java#L386-L404", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/WyMain.java", "func_name": "WyMain.determineSystemRoot", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determine the system root. That is, the installation directory for the\ncompiler itself.\n\n@param tool\n@return\n@throws IOException", "docstring_tokens": ["Determine", "the", "system", "root", ".", "That", "is", "the", "installation", "directory", "for", "the", "compiler", "itself", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/WyMain.java#L452-L459", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/WyMain.java", "func_name": "WyMain.determineLocalRoot", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determine where the root of this project is. This is the nearest enclosing\ndirectory containing a \"wy.toml\" file. The point is that we may be operating\nin some subdirectory of the project and want the tool to automatically search\nout the real root for us.\n\n@return\n@throws IOException", "docstring_tokens": ["Determine", "where", "the", "root", "of", "this", "project", "is", ".", "This", "is", "the", "nearest", "enclosing", "directory", "containing", "a", "wy", ".", "toml", "file", ".", "The", "point", "is", "that", "we", "may", "be", "operating", "in", "some", "subdirectory", "of", "the", "project", "and", "want", "the", "tool", "to", "automatically", "search", "out", "the", "real", "root", "for", "us", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/WyMain.java#L484-L499", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/WyMain.java", "func_name": "WyMain.readConfigFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Attempt to read a configuration file from a given root.\n\n@param name\n@param root\n@return\n@throws IOException", "docstring_tokens": ["Attempt", "to", "read", "a", "configuration", "file", "from", "a", "given", "root", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/WyMain.java#L528-L544", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/StdModuleManager.java", "func_name": "StdModuleManager.getInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get instance of given module within this context, or null if no\ninstance available.\n\n@param module\n@return", "docstring_tokens": ["Get", "instance", "of", "given", "module", "within", "this", "context", "or", "null", "if", "no", "instance", "available", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/StdModuleManager.java#L76-L78", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/StdModuleManager.java", "func_name": "StdModuleManager.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Scan and activate all modules on the search path. As part of this, all\nmodule dependencies will be checked.", "docstring_tokens": ["Scan", "and", "activate", "all", "modules", "on", "the", "search", "path", ".", "As", "part", "of", "this", "all", "module", "dependencies", "will", "be", "checked", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/StdModuleManager.java#L84-L97", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/StdModuleManager.java", "func_name": "StdModuleManager.activateModules", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Activate all modules in the order of occurrence in the given list. It is\nassumed that all dependencies are already resolved prior to this and all\nmodules are topologically sorted.", "docstring_tokens": ["Activate", "all", "modules", "in", "the", "order", "of", "occurrence", "in", "the", "given", "list", ".", "It", "is", "assumed", "that", "all", "dependencies", "are", "already", "resolved", "prior", "to", "this", "and", "all", "modules", "are", "topologically", "sorted", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/StdModuleManager.java#L111-L124", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wybs/lang/SyntacticException.java", "func_name": "SyntacticException.outputSourceError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Output the syntax error to a given output stream in either full or brief\nform. Brief form is intended to be used by 3rd party tools and is easier\nto parse. In full form, contextual information from the originating\nsource file is included.", "docstring_tokens": ["Output", "the", "syntax", "error", "to", "a", "given", "output", "stream", "in", "either", "full", "or", "brief", "form", ".", "Brief", "form", "is", "intended", "to", "be", "used", "by", "3rd", "party", "tools", "and", "is", "easier", "to", "parse", ".", "In", "full", "form", "contextual", "information", "from", "the", "originating", "source", "file", "is", "included", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wybs/lang/SyntacticException.java#L108-L128", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wybs/util/SequentialBuildExecutor.java", "func_name": "SequentialBuildExecutor.ready", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check whether a given task is ready to be built. This is currently determined\nby having at least one source whose timestamp is in front of the target.\n\n@param task\n@return", "docstring_tokens": ["Check", "whether", "a", "given", "task", "is", "ready", "to", "be", "built", ".", "This", "is", "currently", "determined", "by", "having", "at", "least", "one", "source", "whose", "timestamp", "is", "in", "front", "of", "the", "target", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wybs/util/SequentialBuildExecutor.java#L49-L60", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/OptArg.java", "func_name": "OptArg.parseOptions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse options from the list of arguments, removing those which are\nrecognised. Anything which is not recognised is left as is.\n\n@param args\n--- the list of argument strings. This is modified by removing\nthose which are processed.\n@param options\n--- the list of OptArg defining which options should be\nprocessed\n@throws --- a RuntimeException if an unrecognised option is\nencountered (that is, a token starting with '-')..", "docstring_tokens": ["Parse", "options", "from", "the", "list", "of", "arguments", "removing", "those", "which", "are", "recognised", ".", "Anything", "which", "is", "not", "recognised", "is", "left", "as", "is", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/OptArg.java#L279-L315", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/util/OptArg.java", "func_name": "OptArg.splitConfig", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This splits strings of the form \"x=y,v=w\" into distinct components and\nputs them into a map. In the case of a string like \"x,y=z\" then x is\nloaded with the empty string.\n\n@param str\n@return", "docstring_tokens": ["This", "splits", "strings", "of", "the", "form", "x", "=", "y", "v", "=", "w", "into", "distinct", "components", "and", "puts", "them", "into", "a", "map", ".", "In", "the", "case", "of", "a", "string", "like", "x", "y", "=", "z", "then", "x", "is", "loaded", "with", "the", "empty", "string", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/util/OptArg.java#L361-L369", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wybs/util/AbstractSyntacticHeap.java", "func_name": "AbstractSyntacticHeap.getParent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get first parent of a syntactic item matching the given kind. If no item\nwas found, then null is returned.\n\n@param child\n@param kind\n@return", "docstring_tokens": ["Get", "first", "parent", "of", "a", "syntactic", "item", "matching", "the", "given", "kind", ".", "If", "no", "item", "was", "found", "then", "null", "is", "returned", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wybs/util/AbstractSyntacticHeap.java#L103-L118", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wybs/util/AbstractSyntacticHeap.java", "func_name": "AbstractSyntacticHeap.getAncestor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get first ancestor of a syntactic item matching the given kind. If no item\nwas found, then null is returned.\n\n@param child\n@param kind\n@return", "docstring_tokens": ["Get", "first", "ancestor", "of", "a", "syntactic", "item", "matching", "the", "given", "kind", ".", "If", "no", "item", "was", "found", "then", "null", "is", "returned", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wybs/util/AbstractSyntacticHeap.java#L144-L168", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wybs/util/AbstractSyntacticHeap.java", "func_name": "AbstractSyntacticHeap.substitute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method for above.\n\n@param mapping\nA mapping from the original syntactic items to the cloned\nsyntactic items. This is necessary to preserve the aliasing\nstructure in the resulting cloned item.", "docstring_tokens": ["Helper", "method", "for", "above", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wybs/util/AbstractSyntacticHeap.java#L319-L375", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/commands/Inspect.java", "func_name": "Inspect.getContentType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determine the content type for this file.\n\n@param file\n@return", "docstring_tokens": ["Determine", "the", "content", "type", "for", "this", "file", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/commands/Inspect.java#L141-L152", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/commands/Inspect.java", "func_name": "Inspect.getEntry", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the entry associated with this file.\n\n@param file\n@param ct\n@return\n@throws IOException", "docstring_tokens": ["Get", "the", "entry", "associated", "with", "this", "file", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/commands/Inspect.java#L162-L169", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/commands/Inspect.java", "func_name": "Inspect.inspect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inspect a given path entry.\n\n@param entry\n@param ct\n@throws IOException", "docstring_tokens": ["Inspect", "a", "given", "path", "entry", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/commands/Inspect.java#L178-L185", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/commands/Inspect.java", "func_name": "Inspect.inspectBinaryFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inspect a given binary file. That is a file for which we don't have a better\ninspector.\n\n@param bytes", "docstring_tokens": ["Inspect", "a", "given", "binary", "file", ".", "That", "is", "a", "file", "for", "which", "we", "don", "t", "have", "a", "better", "inspector", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/commands/Inspect.java#L193-L218", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wybs/io/SyntacticHeapReader.java", "func_name": "SyntacticHeapReader.readItems", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read all the items in this heap, returning the identified root item and an\narray of all items contained therein.\n\n@return\n@throws IOException", "docstring_tokens": ["Read", "all", "the", "items", "in", "this", "heap", "returning", "the", "identified", "root", "item", "and", "an", "array", "of", "all", "items", "contained", "therein", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wybs/io/SyntacticHeapReader.java#L57-L72", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wyfs/util/Trie.java", "func_name": "Trie.fromString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Construct a Trie from a Path ID.\n\n@param str\n@return", "docstring_tokens": ["Construct", "a", "Trie", "from", "a", "Path", "ID", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wyfs/util/Trie.java#L263-L272", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/WyProject.java", "func_name": "WyProject.DESCRIPTOR", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The descriptor for this command.\n\n@author David J. Pearce", "docstring_tokens": ["The", "descriptor", "for", "this", "command", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/WyProject.java#L51-L87", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/WyProject.java", "func_name": "WyProject.getRepositoryRoot", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the root of the package repository. This is the global directory in which\nall installed packages are found.\n\n@return\n@throws IOException", "docstring_tokens": ["Get", "the", "root", "of", "the", "package", "repository", ".", "This", "is", "the", "global", "directory", "in", "which", "all", "installed", "packages", "are", "found", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/WyProject.java#L195-L199", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/WyProject.java", "func_name": "WyProject.resolvePackageDependencies", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add any declared dependencies to the set of project roots. The challenge here\nis that we may need to download, install and compile these dependencies if\nthey are not currently installed.\n\n@throws IOException", "docstring_tokens": ["Add", "any", "declared", "dependencies", "to", "the", "set", "of", "project", "roots", ".", "The", "challenge", "here", "is", "that", "we", "may", "need", "to", "download", "install", "and", "compile", "these", "dependencies", "if", "they", "are", "not", "currently", "installed", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/WyProject.java#L299-L338", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/cfg/ConfigFileLexer.java", "func_name": "ConfigFileLexer.scan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Scan all characters from the input stream and generate a corresponding\nlist of tokens, whilst discarding all whitespace and comments.\n\n@return", "docstring_tokens": ["Scan", "all", "characters", "from", "the", "input", "stream", "and", "generate", "a", "corresponding", "list", "of", "tokens", "whilst", "discarding", "all", "whitespace", "and", "comments", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/cfg/ConfigFileLexer.java#L58-L83", "partition": "valid"} +{"repo": "Whiley/WhileyCompilerCollection", "path": "src/main/java/wycc/cfg/ConfigFileLexer.java", "func_name": "ConfigFileLexer.syntaxError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Raise a syntax error with a given message at given index.\n\n@param msg\n--- message to raise.\n@param index\n--- index position to associate the error with.", "docstring_tokens": ["Raise", "a", "syntax", "error", "with", "a", "given", "message", "at", "given", "index", "."], "sha": "18f08b7826eb42ce9e3605c6b242cab87cae25b7", "url": "https://github.com/Whiley/WhileyCompilerCollection/blob/18f08b7826eb42ce9e3605c6b242cab87cae25b7/src/main/java/wycc/cfg/ConfigFileLexer.java#L251-L255", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/SimpleLog.java", "func_name": "SimpleLog.logStackTrace", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Print a stack trace to System.out.", "docstring_tokens": ["Print", "a", "stack", "trace", "to", "System", ".", "out", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/SimpleLog.java#L77-L87", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/SimpleLog.java", "func_name": "SimpleLog.getIndentString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the current indentation string.", "docstring_tokens": ["Return", "the", "current", "indentation", "string", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/SimpleLog.java#L90-L99", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackVer.java", "func_name": "StackVer.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Like InstructionContext.execute, but also sets stack_types.", "docstring_tokens": ["Like", "InstructionContext", ".", "execute", "but", "also", "sets", "stack_types", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackVer.java#L499-L507", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.add_string", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a String array with new_string added to the end of arr.\n\n@param arr original string array\n@param new_string string to be added\n@return the new string array", "docstring_tokens": ["Returns", "a", "String", "array", "with", "new_string", "added", "to", "the", "end", "of", "arr", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L131-L138", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.get_attribute_name", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the attribute name for the specified attribute.\n\n@param a the attribute\n@return the attribute name for the specified attribute", "docstring_tokens": ["Return", "the", "attribute", "name", "for", "the", "specified", "attribute", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L146-L152", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.get_stack_map_table_attribute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find the StackMapTable attribute for a method. Return null if there isn't one.\n\n@param mgen the method\n@return the StackMapTable attribute for the method (or null if not present)", "docstring_tokens": ["Find", "the", "StackMapTable", "attribute", "for", "a", "method", ".", "Return", "null", "if", "there", "isn", "t", "one", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L182-L190", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.get_local_variable_type_table_attribute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find the LocalVariableTypeTable attribute for a method. Return null if there isn't one.\n\n@param mgen the method\n@return the LocalVariableTypeTable attribute for the method (or null if not present)", "docstring_tokens": ["Find", "the", "LocalVariableTypeTable", "attribute", "for", "a", "method", ".", "Return", "null", "if", "there", "isn", "t", "one", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L198-L206", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.find_stack_map_equal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find the StackMap entry whose offset matches the input argument. Also sets running_offset.\n\n@param offset byte code offset\n@return the corresponding StackMapEntry", "docstring_tokens": ["Find", "the", "StackMap", "entry", "whose", "offset", "matches", "the", "input", "argument", ".", "Also", "sets", "running_offset", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L247-L265", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.find_stack_map_index_before", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find the index of the StackMap entry whose offset is the last one before the input argument.\nReturn -1 if there isn't one. Also sets running_offset and number_active_locals.\n\n@param offset byte code offset\n@return the corresponding StackMapEntry index", "docstring_tokens": ["Find", "the", "index", "of", "the", "StackMap", "entry", "whose", "offset", "is", "the", "last", "one", "before", "the", "input", "argument", ".", "Return", "-", "1", "if", "there", "isn", "t", "one", ".", "Also", "sets", "running_offset", "and", "number_active_locals", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L274-L310", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.find_stack_map_index_after", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find the index of the StackMap entry whose offset is the first one after the input argument.\nReturn -1 if there isn't one. Also sets running_offset.\n\n@param offset byte code offset\n@return the corresponding StackMapEntry index", "docstring_tokens": ["Find", "the", "index", "of", "the", "StackMap", "entry", "whose", "offset", "is", "the", "first", "one", "after", "the", "input", "argument", ".", "Return", "-", "1", "if", "there", "isn", "t", "one", ".", "Also", "sets", "running_offset", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L319-L332", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.build_unitialized_NEW_map", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "We need to locate and remember any NEW instructions that create uninitialized objects. Their\noffset may be contained in a StackMap entry and will probably need to be updated as we add\ninstrumentation code. Note that these instructions are fairly rare.\n\n@param il instruction list to search", "docstring_tokens": ["We", "need", "to", "locate", "and", "remember", "any", "NEW", "instructions", "that", "create", "uninitialized", "objects", ".", "Their", "offset", "may", "be", "contained", "in", "a", "StackMap", "entry", "and", "will", "probably", "need", "to", "be", "updated", "as", "we", "add", "instrumentation", "code", ".", "Note", "that", "these", "instructions", "are", "fairly", "rare", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L536-L567", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.update_NEW_object_stack_map_entries", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "One of uninitialized NEW instructions has moved. Update its offset in StackMap entries. Note\nthat more than one entry could refer to the same instruction. This is a helper routine used by\nupdate_uninitialized_NEW_offsets.\n\n@param old_offset original location of NEW instruction\n@param new_offset new location of NEW instruction", "docstring_tokens": ["One", "of", "uninitialized", "NEW", "instructions", "has", "moved", ".", "Update", "its", "offset", "in", "StackMap", "entries", ".", "Note", "that", "more", "than", "one", "entry", "could", "refer", "to", "the", "same", "instruction", ".", "This", "is", "a", "helper", "routine", "used", "by", "update_uninitialized_NEW_offsets", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L577-L607", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.update_uninitialized_NEW_offsets", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check to see if any of the uninitialized NEW instructions have moved. Again, these are rare, so\na linear pass is fine.\n\n@param il instruction list to search", "docstring_tokens": ["Check", "to", "see", "if", "any", "of", "the", "uninitialized", "NEW", "instructions", "have", "moved", ".", "Again", "these", "are", "rare", "so", "a", "linear", "pass", "is", "fine", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L615-L628", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.set_current_stack_map_table", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get existing StackMapTable from the MethodGen argument. If there is none, create a new empty\none. Sets both smta and stack_map_table. Must be called prior to any other methods that\nmanipulate the stack_map_table!\n\n@param mgen MethodGen to search\n@param java_class_version Java version for the classfile; stack_map_table is optional before\nJava 1.7 (= classfile version 51)", "docstring_tokens": ["Get", "existing", "StackMapTable", "from", "the", "MethodGen", "argument", ".", "If", "there", "is", "none", "create", "a", "new", "empty", "one", ".", "Sets", "both", "smta", "and", "stack_map_table", ".", "Must", "be", "called", "prior", "to", "any", "other", "methods", "that", "manipulate", "the", "stack_map_table!"], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L696-L717", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.print_stack_map_table", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Print the contents of the StackMapTable to the debug_instrument.log.\n\n@param prefix label to display with table", "docstring_tokens": ["Print", "the", "contents", "of", "the", "StackMapTable", "to", "the", "debug_instrument", ".", "log", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L724-L732", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.create_new_stack_map_attribute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new StackMap code attribute from stack_map_table.\n\n@param mgen MethodGen to add attribute to\n@throws IOException if cannot create the attribute", "docstring_tokens": ["Create", "a", "new", "StackMap", "code", "attribute", "from", "stack_map_table", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L740-L755", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.typeToClassGetName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a Type name to a Class name.\n\n@param t type whose name is to be converted\n@return a String containing the class name", "docstring_tokens": ["Convert", "a", "Type", "name", "to", "a", "Class", "name", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L763-L776", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.generate_StackMapType_from_Type", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a Type to a StackMapType.\n\n@param t Type to be converted\n@return result StackMapType", "docstring_tokens": ["Convert", "a", "Type", "to", "a", "StackMapType", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L784-L811", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.generate_Type_from_StackMapType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a StackMapType to a Type.\n\n@param smt StackMapType to be converted\n@return result Type", "docstring_tokens": ["Convert", "a", "StackMapType", "to", "a", "Type", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L819-L838", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.create_method_scope_local", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new local with a scope of the full method. This means we need to search the existing\nlocals to find the proper index for our new local. This might have the side effect of causing\nus to rewrite the method byte codes to adjust the offsets for the existing local variables -\nsee below for details.\n\n

Must call fix_local_variable_table (just once per method) before calling this routine.\n\n@param mgen MethodGen to be modified\n@param local_name name of new local\n@param local_type type of new local\n@return a LocalVariableGen for the new local", "docstring_tokens": ["Create", "a", "new", "local", "with", "a", "scope", "of", "the", "full", "method", ".", "This", "means", "we", "need", "to", "search", "the", "existing", "locals", "to", "find", "the", "proper", "index", "for", "our", "new", "local", ".", "This", "might", "have", "the", "side", "effect", "of", "causing", "us", "to", "rewrite", "the", "method", "byte", "codes", "to", "adjust", "the", "offsets", "for", "the", "existing", "local", "variables", "-", "see", "below", "for", "details", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L1019-L1125", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackMapUtils.java", "func_name": "StackMapUtils.bcel_calc_stack_types", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates the types on the stack for each instruction using the BCEL stack verification\nroutines.\n\n@param mg MethodGen for the method to be analyzed\n@return a StackTypes object for the method", "docstring_tokens": ["Calculates", "the", "types", "on", "the", "stack", "for", "each", "instruction", "using", "the", "BCEL", "stack", "verification", "routines", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackMapUtils.java#L1276-L1296", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/BcelUtil.java", "func_name": "BcelUtil.accessFlagsToString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return a string representation of the access flags of method m. In the string, the flags are\nspace-separated and in a canonical order.\n\n@param m the method whose access flags to retrieve\n@return a string representation of the access flags of method m", "docstring_tokens": ["Return", "a", "string", "representation", "of", "the", "access", "flags", "of", "method", "m", ".", "In", "the", "string", "the", "flags", "are", "space", "-", "separated", "and", "in", "a", "canonical", "order", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/BcelUtil.java#L89-L110", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/BcelUtil.java", "func_name": "BcelUtil.instructionListToString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return a printed description of the given instructions.\n\n@param il the instructions to describe\n@param pool the constant pool the instructions refer to\n@return a printed representation of the instructions in {@code il}", "docstring_tokens": ["Return", "a", "printed", "description", "of", "the", "given", "instructions", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/BcelUtil.java#L119-L127", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/BcelUtil.java", "func_name": "BcelUtil.attributeNameToString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the attribute name for the specified attribute, looked up in the original class file\nConstantPool.\n\n@param a the attribute\n@return the attribute name for the specified attribute", "docstring_tokens": ["Return", "the", "attribute", "name", "for", "the", "specified", "attribute", "looked", "up", "in", "the", "original", "class", "file", "ConstantPool", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/BcelUtil.java#L155-L162", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/BcelUtil.java", "func_name": "BcelUtil.checkMgen", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks the specified method for consistency.\n\n

Does nothing if {@link #skipChecks} is false.\n\n@param mgen the class to check", "docstring_tokens": ["Checks", "the", "specified", "method", "for", "consistency", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/BcelUtil.java#L316-L351", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/BcelUtil.java", "func_name": "BcelUtil.checkMgens", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks all of the methods in gen for consistency.\n\n@param gen the class to check", "docstring_tokens": ["Checks", "all", "of", "the", "methods", "in", "gen", "for", "consistency", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/BcelUtil.java#L358-L377", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/BcelUtil.java", "func_name": "BcelUtil.dumpStackTrace", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Print the current java call stack.", "docstring_tokens": ["Print", "the", "current", "java", "call", "stack", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/BcelUtil.java#L382-L402", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/BcelUtil.java", "func_name": "BcelUtil.dumpMethods", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Print the methods in the class, to standard output.\n\n@param gen the class whose methods to print", "docstring_tokens": ["Print", "the", "methods", "in", "the", "class", "to", "standard", "output", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/BcelUtil.java#L409-L415", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/BcelUtil.java", "func_name": "BcelUtil.addToStart", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds instructions to the start of a method.\n\n@param mg method to be augmented\n@param newList instructions to prepend to the method", "docstring_tokens": ["Adds", "instructions", "to", "the", "start", "of", "a", "method", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/BcelUtil.java#L505-L525", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/BcelUtil.java", "func_name": "BcelUtil.getConstantString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the constant string at the specified offset.\n\n@param pool the constant pool\n@param index the index in the constant pool\n@return the constant string at the specified offset in the constant pool", "docstring_tokens": ["Returns", "the", "constant", "string", "at", "the", "specified", "offset", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/BcelUtil.java#L534-L546", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/BcelUtil.java", "func_name": "BcelUtil.resetLocalsToFormals", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the locals to be the formal parameters. Any other locals are removed. An instruction list\nwith at least one instruction must exist.\n\n@param mg the method whose locals to set", "docstring_tokens": ["Sets", "the", "locals", "to", "be", "the", "formal", "parameters", ".", "Any", "other", "locals", "are", "removed", ".", "An", "instruction", "list", "with", "at", "least", "one", "instruction", "must", "exist", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/BcelUtil.java#L554-L586", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/BcelUtil.java", "func_name": "BcelUtil.typeToClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the class that corresponds to type.\n\n@param type the type\n@return the Java class that corresponds to type", "docstring_tokens": ["Returns", "the", "class", "that", "corresponds", "to", "type", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/BcelUtil.java#L637-L645", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/BcelUtil.java", "func_name": "BcelUtil.postpendToArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a copy of the given type array, with newType added to the end.\n\n@param types the array to extend\n@param newType the element to add to the end of the array\n@return a new array, with newType at the end", "docstring_tokens": ["Returns", "a", "copy", "of", "the", "given", "type", "array", "with", "newType", "added", "to", "the", "end", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/BcelUtil.java#L654-L662", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/StackTypes.java", "func_name": "StackTypes.set", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the stack for the instruction at the specified offset to a copy of the information in the\ngiven frame.\n\n@param offset the offset at which the instruction appears\n@param f the stack frame to use for the instruction", "docstring_tokens": ["Sets", "the", "stack", "for", "the", "instruction", "at", "the", "specified", "offset", "to", "a", "copy", "of", "the", "information", "in", "the", "given", "frame", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/StackTypes.java#L52-L59", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/InstructionListUtils.java", "func_name": "InstructionListUtils.insert_at_method_start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inserts an instruction list at the beginning of a method.\n\n@param mg MethodGen of method to be modified\n@param new_il InstructionList holding the new code", "docstring_tokens": ["Inserts", "an", "instruction", "list", "at", "the", "beginning", "of", "a", "method", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/InstructionListUtils.java#L144-L152", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/InstructionListUtils.java", "func_name": "InstructionListUtils.print_il", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Print a BCEL instruction list to the debug_instrument log.\n\n@param start start of the instruction list\n@param label a descriptive string for the instruction list", "docstring_tokens": ["Print", "a", "BCEL", "instruction", "list", "to", "the", "debug_instrument", "log", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/InstructionListUtils.java#L247-L261", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/InstructionListUtils.java", "func_name": "InstructionListUtils.build_il", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convenience function to build an instruction list.\n\n@param instructions a variable number of BCEL instructions\n@return an InstructionList", "docstring_tokens": ["Convenience", "function", "to", "build", "an", "instruction", "list", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/InstructionListUtils.java#L269-L275", "partition": "valid"} +{"repo": "plume-lib/bcel-util", "path": "src/main/java/org/plumelib/bcelutil/InstructionListUtils.java", "func_name": "InstructionListUtils.calculate_live_stack_types", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Compute the StackMapTypes of the items on the execution stack as described by the OperandStack\nargument.\n\n@param stack an OperandStack object\n@return an array of StackMapType describing the stack contents", "docstring_tokens": ["Compute", "the", "StackMapTypes", "of", "the", "items", "on", "the", "execution", "stack", "as", "described", "by", "the", "OperandStack", "argument", "."], "sha": "29adb7dd273398df7d0a7abbcd85b1c85e207a0e", "url": "https://github.com/plume-lib/bcel-util/blob/29adb7dd273398df7d0a7abbcd85b1c85e207a0e/src/main/java/org/plumelib/bcelutil/InstructionListUtils.java#L371-L378", "partition": "valid"} +{"repo": "davidfauthoux/ninio", "path": "ninio-string/src/main/java/com/davfx/ninio/string/StringHandler.java", "func_name": "StringHandler.find", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Beware, with the current algorithm, this function cannot find '\\'", "docstring_tokens": ["Beware", "with", "the", "current", "algorithm", "this", "function", "cannot", "find", "\\"], "sha": "a8a1b708b569231925940c829d4fef862c18f31b", "url": "https://github.com/davidfauthoux/ninio/blob/a8a1b708b569231925940c829d4fef862c18f31b/ninio-string/src/main/java/com/davfx/ninio/string/StringHandler.java#L10-L32", "partition": "valid"} +{"repo": "cgbystrom/netty-tools", "path": "src/main/java/se/cgbystrom/netty/thrift/TNettyTransport.java", "func_name": "TNettyTransport.read", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads from the shared input queue, blocking if there is not enough input\nin the buffer. It's the only way we can emulate the synchronous nature of\nTTransport using netty.", "docstring_tokens": ["Reads", "from", "the", "shared", "input", "queue", "blocking", "if", "there", "is", "not", "enough", "input", "in", "the", "buffer", ".", "It", "s", "the", "only", "way", "we", "can", "emulate", "the", "synchronous", "nature", "of", "TTransport", "using", "netty", "."], "sha": "7711880b6f2a77c274e9002705286efdd4e0b86a", "url": "https://github.com/cgbystrom/netty-tools/blob/7711880b6f2a77c274e9002705286efdd4e0b86a/src/main/java/se/cgbystrom/netty/thrift/TNettyTransport.java#L89-L102", "partition": "valid"} +{"repo": "cgbystrom/netty-tools", "path": "src/main/java/se/cgbystrom/netty/thrift/TNettyTransport.java", "func_name": "TNettyTransport.flush", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "We need data to be written and flushed at once.", "docstring_tokens": ["We", "need", "data", "to", "be", "written", "and", "flushed", "at", "once", "."], "sha": "7711880b6f2a77c274e9002705286efdd4e0b86a", "url": "https://github.com/cgbystrom/netty-tools/blob/7711880b6f2a77c274e9002705286efdd4e0b86a/src/main/java/se/cgbystrom/netty/thrift/TNettyTransport.java#L120-L125", "partition": "valid"} +{"repo": "cgbystrom/netty-tools", "path": "src/main/java/se/cgbystrom/netty/http/websocket/WebSocketClientFactory.java", "func_name": "WebSocketClientFactory.newClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new WebSocket client\n@param url URL to connect to.\n@param callback Callback interface to receive events\n@return A WebSocket client. Call {@link WebSocketClient#connect()} to connect.", "docstring_tokens": ["Create", "a", "new", "WebSocket", "client"], "sha": "7711880b6f2a77c274e9002705286efdd4e0b86a", "url": "https://github.com/cgbystrom/netty-tools/blob/7711880b6f2a77c274e9002705286efdd4e0b86a/src/main/java/se/cgbystrom/netty/http/websocket/WebSocketClientFactory.java#L33-L54", "partition": "valid"} +{"repo": "clockbyte/admobadapter", "path": "admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobFetcher.java", "func_name": "AdmobFetcher.canUseThisAd", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines if the native ad can be used.\n\n@param adNative the native ad object\n@return true if the ad object can be used, false otherwise", "docstring_tokens": ["Determines", "if", "the", "native", "ad", "can", "be", "used", "."], "sha": "ea5407dbc3c2a00f5608f410469bfb34737f3c07", "url": "https://github.com/clockbyte/admobadapter/blob/ea5407dbc3c2a00f5608f410469bfb34737f3c07/admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobFetcher.java#L170-L192", "partition": "valid"} +{"repo": "clockbyte/admobadapter", "path": "admobadapter/src/main/java/com/clockbyte/admobadapter/bannerads/AdmobFetcherBanner.java", "func_name": "AdmobFetcherBanner.getAdForIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets banner ad at a particular index in the fetched ads list.\n\n@param adPos the index of ad in the fetched ads list\n@return the banner ad in the list\n@see #getFetchedAdsCount()", "docstring_tokens": ["Gets", "banner", "ad", "at", "a", "particular", "index", "in", "the", "fetched", "ads", "list", "."], "sha": "ea5407dbc3c2a00f5608f410469bfb34737f3c07", "url": "https://github.com/clockbyte/admobadapter/blob/ea5407dbc3c2a00f5608f410469bfb34737f3c07/admobadapter/src/main/java/com/clockbyte/admobadapter/bannerads/AdmobFetcherBanner.java#L97-L101", "partition": "valid"} +{"repo": "clockbyte/admobadapter", "path": "admobadapter/src/main/java/com/clockbyte/admobadapter/bannerads/AdmobFetcherBanner.java", "func_name": "AdmobFetcherBanner.onFailedToLoad", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A handler for failed banner ads\n@param adView", "docstring_tokens": ["A", "handler", "for", "failed", "banner", "ads"], "sha": "ea5407dbc3c2a00f5608f410469bfb34737f3c07", "url": "https://github.com/clockbyte/admobadapter/blob/ea5407dbc3c2a00f5608f410469bfb34737f3c07/admobadapter/src/main/java/com/clockbyte/admobadapter/bannerads/AdmobFetcherBanner.java#L166-L174", "partition": "valid"} +{"repo": "clockbyte/admobadapter", "path": "admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobFetcherBase.java", "func_name": "AdmobFetcherBase.getAdRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Setup and get an ads request", "docstring_tokens": ["Setup", "and", "get", "an", "ads", "request"], "sha": "ea5407dbc3c2a00f5608f410469bfb34737f3c07", "url": "https://github.com/clockbyte/admobadapter/blob/ea5407dbc3c2a00f5608f410469bfb34737f3c07/admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobFetcherBase.java#L162-L168", "partition": "valid"} +{"repo": "clockbyte/admobadapter", "path": "admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobAdapterCalculator.java", "func_name": "AdmobAdapterCalculator.getAdsCountToPublish", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the count of ads that could be published\n\n@param fetchedAdsCount the count of completely fetched ads that are ready to be published\n@param sourceItemsCount the count of items in the source collection\n@return the original position that the adapter position would have been without ads", "docstring_tokens": ["Gets", "the", "count", "of", "ads", "that", "could", "be", "published"], "sha": "ea5407dbc3c2a00f5608f410469bfb34737f3c07", "url": "https://github.com/clockbyte/admobadapter/blob/ea5407dbc3c2a00f5608f410469bfb34737f3c07/admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobAdapterCalculator.java#L77-L85", "partition": "valid"} +{"repo": "clockbyte/admobadapter", "path": "admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobAdapterCalculator.java", "func_name": "AdmobAdapterCalculator.getOriginalContentPosition", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Translates an adapter position to an actual position within the underlying dataset.\n\n@param position the adapter position\n@param fetchedAdsCount the count of completely fetched ads that are ready to be published\n@param sourceItemsCount the count of items in the source collection\n@return the original position that the adapter position would have been without ads", "docstring_tokens": ["Translates", "an", "adapter", "position", "to", "an", "actual", "position", "within", "the", "underlying", "dataset", "."], "sha": "ea5407dbc3c2a00f5608f410469bfb34737f3c07", "url": "https://github.com/clockbyte/admobadapter/blob/ea5407dbc3c2a00f5608f410469bfb34737f3c07/admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobAdapterCalculator.java#L95-L102", "partition": "valid"} +{"repo": "clockbyte/admobadapter", "path": "admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobAdapterCalculator.java", "func_name": "AdmobAdapterCalculator.getAdIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the ad index for this adapter position within the list of currently fetched ads.\n\n@param position the adapter position\n@return the index of the ad within the list of fetched ads", "docstring_tokens": ["Gets", "the", "ad", "index", "for", "this", "adapter", "position", "within", "the", "list", "of", "currently", "fetched", "ads", "."], "sha": "ea5407dbc3c2a00f5608f410469bfb34737f3c07", "url": "https://github.com/clockbyte/admobadapter/blob/ea5407dbc3c2a00f5608f410469bfb34737f3c07/admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobAdapterCalculator.java#L155-L161", "partition": "valid"} +{"repo": "clockbyte/admobadapter", "path": "admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobAdapterCalculator.java", "func_name": "AdmobAdapterCalculator.isAdAvailable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if an ad is available for this position.\n\n@param position the adapter position\n@param fetchedAdsCount the count of completely fetched ads that are ready to be published\n@return {@code true} if an ad is available, {@code false} otherwise", "docstring_tokens": ["Checks", "if", "an", "ad", "is", "available", "for", "this", "position", "."], "sha": "ea5407dbc3c2a00f5608f410469bfb34737f3c07", "url": "https://github.com/clockbyte/admobadapter/blob/ea5407dbc3c2a00f5608f410469bfb34737f3c07/admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobAdapterCalculator.java#L185-L191", "partition": "valid"} +{"repo": "clockbyte/admobadapter", "path": "admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobAdapterCalculator.java", "func_name": "AdmobAdapterCalculator.hasToFetchAd", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if we have to request the next ad block for this position.\n\n@param position the adapter position\n@param fetchingAdsCount the count of fetched and currently fetching ads\n@return {@code true} if an ad is not available to publish and we should fetch one, {@code false} otherwise", "docstring_tokens": ["Checks", "if", "we", "have", "to", "request", "the", "next", "ad", "block", "for", "this", "position", "."], "sha": "ea5407dbc3c2a00f5608f410469bfb34737f3c07", "url": "https://github.com/clockbyte/admobadapter/blob/ea5407dbc3c2a00f5608f410469bfb34737f3c07/admobadapter/src/main/java/com/clockbyte/admobadapter/AdmobAdapterCalculator.java#L200-L204", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/codegenerator/SupportedTypes.java", "func_name": "SupportedTypes.getWildcardType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the wildcardType", "docstring_tokens": ["Get", "the", "wildcardType"], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/codegenerator/SupportedTypes.java#L237-L242", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/codegenerator/SupportedTypes.java", "func_name": "SupportedTypes.hasGenericsTypeArgumentOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if the variabel element has generics arguments that matches the expected type", "docstring_tokens": ["Checks", "if", "the", "variabel", "element", "has", "generics", "arguments", "that", "matches", "the", "expected", "type"], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/codegenerator/SupportedTypes.java#L262-L297", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java", "func_name": "JavaWriter.emitPackage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Emit a package declaration and empty line.", "docstring_tokens": ["Emit", "a", "package", "declaration", "and", "empty", "line", "."], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java#L68-L81", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java", "func_name": "JavaWriter.compressType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Try to compress a fully-qualified class name to only the class name.", "docstring_tokens": ["Try", "to", "compress", "a", "fully", "-", "qualified", "class", "name", "to", "only", "the", "class", "name", "."], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java#L166-L205", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java", "func_name": "JavaWriter.beginInitializer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Emits an initializer declaration.\n\n@param isStatic true if it should be an static initializer, false for an instance initializer.", "docstring_tokens": ["Emits", "an", "initializer", "declaration", "."], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java#L234-L244", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java", "func_name": "JavaWriter.endType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Completes the current type declaration.", "docstring_tokens": ["Completes", "the", "current", "type", "declaration", "."], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java#L308-L314", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java", "func_name": "JavaWriter.emitSingleLineComment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Emits a single line comment.", "docstring_tokens": ["Emits", "a", "single", "line", "comment", "."], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java#L462-L468", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java", "func_name": "JavaWriter.emitAnnotationValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes a single annotation value. If the value is an array, each element in the array will be\nwritten to its own line.", "docstring_tokens": ["Writes", "a", "single", "annotation", "value", ".", "If", "the", "value", "is", "an", "array", "each", "element", "in", "the", "array", "will", "be", "written", "to", "its", "own", "line", "."], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java#L626-L649", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java", "func_name": "JavaWriter.endMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Completes the current method declaration.", "docstring_tokens": ["Completes", "the", "current", "method", "declaration", "."], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java#L718-L728", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java", "func_name": "JavaWriter.type", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Build a string representation of a type and optionally its generic type arguments.", "docstring_tokens": ["Build", "a", "string", "representation", "of", "a", "type", "and", "optionally", "its", "generic", "type", "arguments", "."], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java#L779-L796", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java", "func_name": "JavaWriter.emitModifiers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Emits the modifiers to the writer.", "docstring_tokens": ["Emits", "the", "modifiers", "to", "the", "writer", "."], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/repacked/com/squareup/javawriter/JavaWriter.java#L812-L823", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "ParcelablePlease-intellij-plugin/src/com/hannesdorfmann/parcelableplease/plugin/ParcelablePleaseAction.java", "func_name": "ParcelablePleaseAction.getPsiClassFromContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the class where currently the curser is", "docstring_tokens": ["Get", "the", "class", "where", "currently", "the", "curser", "is"], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/ParcelablePlease-intellij-plugin/src/com/hannesdorfmann/parcelableplease/plugin/ParcelablePleaseAction.java#L42-L55", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "ParcelablePlease-intellij-plugin/src/com/hannesdorfmann/parcelableplease/plugin/CodeGenerator.java", "func_name": "CodeGenerator.findAndRemoveMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds and removes a given method\n@param methodName\n@param arguments", "docstring_tokens": ["Finds", "and", "removes", "a", "given", "method"], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/ParcelablePlease-intellij-plugin/src/com/hannesdorfmann/parcelableplease/plugin/CodeGenerator.java#L154-L177", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "ParcelablePlease-intellij-plugin/src/com/hannesdorfmann/parcelableplease/plugin/CodeGenerator.java", "func_name": "CodeGenerator.generate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate and insert the Parcel and ParcelablePlease code", "docstring_tokens": ["Generate", "and", "insert", "the", "Parcel", "and", "ParcelablePlease", "code"], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/ParcelablePlease-intellij-plugin/src/com/hannesdorfmann/parcelableplease/plugin/CodeGenerator.java#L182-L214", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "ParcelablePlease-intellij-plugin/src/com/hannesdorfmann/parcelableplease/plugin/CodeGenerator.java", "func_name": "CodeGenerator.makeClassImplementParcelable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Make the class implementing Parcelable", "docstring_tokens": ["Make", "the", "class", "implementing", "Parcelable"], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/ParcelablePlease-intellij-plugin/src/com/hannesdorfmann/parcelableplease/plugin/CodeGenerator.java#L232-L252", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/ParcelablePleaseProcessor.java", "func_name": "ParcelablePleaseProcessor.isClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if the element is a class", "docstring_tokens": ["Checks", "if", "the", "element", "is", "a", "class"], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/ParcelablePleaseProcessor.java#L152-L179", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/util/TypeUtils.java", "func_name": "TypeUtils.isTypeOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if a TypeMirror equals a class", "docstring_tokens": ["Checks", "if", "a", "TypeMirror", "equals", "a", "class"], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/util/TypeUtils.java#L26-L28", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/util/TypeUtils.java", "func_name": "TypeUtils.isTypeOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the class this element is part of", "docstring_tokens": ["Returns", "the", "class", "this", "element", "is", "part", "of"], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/util/TypeUtils.java#L33-L42", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/util/TypeUtils.java", "func_name": "TypeUtils.getPackageName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the Package name\n\n@throws IOException", "docstring_tokens": ["Get", "the", "Package", "name"], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/util/TypeUtils.java#L49-L56", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/util/TypeUtils.java", "func_name": "TypeUtils.getBinaryName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the qualified name of a class. Also respects innner classes\n\n@param elementUtils Elements\n@param type TypeElement\n@return The qualified name of the class represented by the passed type element\n@throws IOException", "docstring_tokens": ["Get", "the", "qualified", "name", "of", "a", "class", ".", "Also", "respects", "innner", "classes"], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/util/TypeUtils.java#L66-L74", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/codegenerator/CodeGenerator.java", "func_name": "CodeGenerator.generateWriteToParcel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate the writeToParcel method\n\n@throws IOException", "docstring_tokens": ["Generate", "the", "writeToParcel", "method"], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/codegenerator/CodeGenerator.java#L88-L111", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/ParcelableField.java", "func_name": "ParcelableField.isPublicClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if a class is public", "docstring_tokens": ["Checks", "if", "a", "class", "is", "public"], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/ParcelableField.java#L110-L114", "partition": "valid"} +{"repo": "sockeqwe/ParcelablePlease", "path": "processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/ParcelableField.java", "func_name": "ParcelableField.hasPublicEmptyConstructor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if an public empty constructor is available", "docstring_tokens": ["Checks", "if", "an", "public", "empty", "constructor", "is", "available"], "sha": "4bcb6695ade8cb0ec60af5b137b60f751262086c", "url": "https://github.com/sockeqwe/ParcelablePlease/blob/4bcb6695ade8cb0ec60af5b137b60f751262086c/processor/src/main/java/com/hannesdorfmann/parcelableplease/processor/ParcelableField.java#L119-L136", "partition": "valid"} +{"repo": "io7m/jtensors", "path": "com.io7m.jtensors.core/src/main/java/com/io7m/jtensors/core/determinants/Determinants.java", "func_name": "Determinants.determinant3x3", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculate the determinant of the given 3x3 matrix values.\n\n@param r0c0 The value at row 0 column 0\n@param r0c1 The value at row 0 column 1\n@param r0c2 The value at row 0 column 2\n@param r1c0 The value at row 1 column 0\n@param r1c1 The value at row 1 column 1\n@param r1c2 The value at row 1 column 2\n@param r2c0 The value at row 2 column 0\n@param r2c1 The value at row 2 column 1\n@param r2c2 The value at row 2 column 2\n\n@return The determinant", "docstring_tokens": ["Calculate", "the", "determinant", "of", "the", "given", "3x3", "matrix", "values", "."], "sha": "c760a2ded2f329c2a3e28bf76df5571c32b595aa", "url": "https://github.com/io7m/jtensors/blob/c760a2ded2f329c2a3e28bf76df5571c32b595aa/com.io7m.jtensors.core/src/main/java/com/io7m/jtensors/core/determinants/Determinants.java#L68-L84", "partition": "valid"} +{"repo": "burningwave/bw-core", "path": "src/main/java/com/github/burningwave/core/classes/hunter/Hunter.java", "func_name": "Hunter.findBy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Not cached search", "docstring_tokens": ["Not", "cached", "search"], "sha": "2c8166a6149c717b7e16e6bc1683720806c3935f", "url": "https://github.com/burningwave/bw-core/blob/2c8166a6149c717b7e16e6bc1683720806c3935f/src/main/java/com/github/burningwave/core/classes/hunter/Hunter.java#L75-L89", "partition": "valid"} +{"repo": "io7m/jtensors", "path": "com.io7m.jtensors.generators/src/main/java/com/io7m/jtensors/generators/Matrix4x4DGenerator.java", "func_name": "Matrix4x4DGenerator.createOrthogonal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a generator initialized with a default component generator that only\nproduces orthogonal matrices.\n\n@return A generator", "docstring_tokens": ["Create", "a", "generator", "initialized", "with", "a", "default", "component", "generator", "that", "only", "produces", "orthogonal", "matrices", "."], "sha": "c760a2ded2f329c2a3e28bf76df5571c32b595aa", "url": "https://github.com/io7m/jtensors/blob/c760a2ded2f329c2a3e28bf76df5571c32b595aa/com.io7m.jtensors.generators/src/main/java/com/io7m/jtensors/generators/Matrix4x4DGenerator.java#L81-L112", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/connection/RedisConnectionAsync.java", "func_name": "RedisConnectionAsync.getBinaryMultiBulkReply", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the binary multi bulk reply.\n\n@return the binary multi bulk reply", "docstring_tokens": ["Gets", "the", "binary", "multi", "bulk", "reply", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/connection/RedisConnectionAsync.java#L462-L466", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisCluster.java", "func_name": "BinaryRedisCluster.getBinaryTupledSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the binary tupled set.\n\n@return the binary tupled set", "docstring_tokens": ["Gets", "the", "binary", "tupled", "set", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisCluster.java#L915-L931", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java", "func_name": "AbstractOperations.rawKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Raw key.\n\n@param key the key\n@return the byte[]", "docstring_tokens": ["Raw", "key", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java#L170-L174", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java", "func_name": "AbstractOperations.rawHashKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Raw hash key.\n\n@param the generic type\n@param hashKey the hash key\n@return the byte[]", "docstring_tokens": ["Raw", "hash", "key", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java#L204-L208", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java", "func_name": "AbstractOperations.deserializeTupleValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deserialize tuple values.\n\n@param rawValues the raw values\n@return the sets the", "docstring_tokens": ["Deserialize", "tuple", "values", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java#L287-L294", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java", "func_name": "AbstractOperations.deserializeHashKeys", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deserialize hash keys.\n\n@param the generic type\n@param rawKeys the raw keys\n@return the sets the", "docstring_tokens": ["Deserialize", "hash", "keys", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java#L314-L317", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java", "func_name": "AbstractOperations.deserializeHashValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deserialize hash values.\n\n@param the generic type\n@param rawValues the raw values\n@return the list", "docstring_tokens": ["Deserialize", "hash", "values", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java#L326-L329", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java", "func_name": "AbstractOperations.deserializeHashMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deserialize hash map.\n\n@param the generic type\n@param the generic type\n@param entries the entries\n@return the map", "docstring_tokens": ["Deserialize", "hash", "map", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java#L339-L353", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java", "func_name": "AbstractOperations.deserializeHashList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deserialize hash list.\n\n@param the generic type\n@param the generic type\n@param entries the entries\n@return the map", "docstring_tokens": ["Deserialize", "hash", "list", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java#L363-L376", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java", "func_name": "AbstractOperations.deserializeHashSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deserialize hash set.\n\n@param the generic type\n@param the generic type\n@param entries the entries\n@return the map", "docstring_tokens": ["Deserialize", "hash", "set", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/spring/AbstractOperations.java#L386-L399", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/gateway/GatewayAddress.java", "func_name": "GatewayAddress.asListFromDomain", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "As list from domain.\n\n@param domainAddress the domain address\n@return the list", "docstring_tokens": ["As", "list", "from", "domain", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/gateway/GatewayAddress.java#L98-L118", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/gateway/GatewayAddress.java", "func_name": "GatewayAddress.parseHost", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses the host.\n\n@param address the address\n@return the string", "docstring_tokens": ["Parses", "the", "host", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/gateway/GatewayAddress.java#L153-L159", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/gateway/GatewayAddress.java", "func_name": "GatewayAddress.parsePort", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses the port.\n\n@param address the address\n@return the int", "docstring_tokens": ["Parses", "the", "port", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/gateway/GatewayAddress.java#L167-L178", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/RedisClusterClient.java", "func_name": "RedisClusterClient.set", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the.\n\n@param key the key\n@param value the value", "docstring_tokens": ["Sets", "the", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/RedisClusterClient.java#L83-L85", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/pipeline/RedisClusterPipeline.java", "func_name": "RedisClusterPipeline.sync", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Synchronize pipeline by reading all responses. This operation close the\npipeline. In order to get return values from pipelined commands, capture\nthe different Response<?> of the commands you execute.", "docstring_tokens": ["Synchronize", "pipeline", "by", "reading", "all", "responses", ".", "This", "operation", "close", "the", "pipeline", ".", "In", "order", "to", "get", "return", "values", "from", "pipelined", "commands", "capture", "the", "different", "Response<", ";", "?>", ";", "of", "the", "commands", "you", "execute", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/pipeline/RedisClusterPipeline.java#L100-L123", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/RedisCluster.java", "func_name": "RedisCluster.getTupledSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the tupled set.\n\n@return the tupled set", "docstring_tokens": ["Gets", "the", "tupled", "set", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/RedisCluster.java#L986-L994", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "confmaster/src/main/java/com/navercorp/nbasearc/confmaster/server/leaderelection/LeaderElectionSupport.java", "func_name": "LeaderElectionSupport.stop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stops all election services, revokes any outstanding leader offers, and\ndisconnects from ZooKeeper.", "docstring_tokens": ["Stops", "all", "election", "services", "revokes", "any", "outstanding", "leader", "offers", "and", "disconnects", "from", "ZooKeeper", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/confmaster/src/main/java/com/navercorp/nbasearc/confmaster/server/leaderelection/LeaderElectionSupport.java#L184-L203", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/gateway/GatewayClient.java", "func_name": "GatewayClient.toExecuteInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "time, retry, gateway server information.", "docstring_tokens": ["time", "retry", "gateway", "server", "information", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/gateway/GatewayClient.java#L219-L231", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "confmaster/src/main/java/com/navercorp/nbasearc/confmaster/server/workflow/MGSetquorum.java", "func_name": "MGSetquorum.setquorum", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Since it is a singleton instance and represents a part of workflow logic running in multiple threads.", "docstring_tokens": ["Since", "it", "is", "a", "singleton", "instance", "and", "represents", "a", "part", "of", "workflow", "logic", "running", "in", "multiple", "threads", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/confmaster/src/main/java/com/navercorp/nbasearc/confmaster/server/workflow/MGSetquorum.java#L31-L35", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "confmaster/src/main/java/com/navercorp/nbasearc/confmaster/ThreadLocalVariableHolder.java", "func_name": "ThreadLocalVariableHolder.checkPermission", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Clear ZNodePermission of current-thread to null.\n\nIf znodePermission.get() returns null, this method skip permission-check. Otherwise, do permission-check.\n

There are two different scenarios.\n1. workflows, commands, watch-event for clusters do permission-check.\n2. leader-election, confmaster-init/release skip permission-check.
\nIt is not deterministic that what thread will allocated to the scenarios.\nCall this method not to affect a next thread, after calling addPermission() method.", "docstring_tokens": ["Clear", "ZNodePermission", "of", "current", "-", "thread", "to", "null", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/confmaster/src/main/java/com/navercorp/nbasearc/confmaster/ThreadLocalVariableHolder.java#L89-L93", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java", "func_name": "BinaryRedisClusterClient.joinParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Join parameters.\n\n@param first the first\n@param rest the rest\n@return the byte[][]", "docstring_tokens": ["Join", "parameters", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java#L78-L85", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java", "func_name": "BinaryRedisClusterClient.expireAt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Expire at.\n\n@param key the key\n@param millisecondsTimestamp the unix time", "docstring_tokens": ["Expire", "at", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java#L194-L196", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java", "func_name": "BinaryRedisClusterClient.decrBy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Decr by.\n\n@param key the key\n@param integer the integer", "docstring_tokens": ["Decr", "by", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java#L258-L260", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java", "func_name": "BinaryRedisClusterClient.incrBy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Incr by.\n\n@param key the key\n@param integer the integer", "docstring_tokens": ["Incr", "by", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java#L277-L279", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java", "func_name": "BinaryRedisClusterClient.zaddBinary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Zadd binary.\n\n@param key the key\n@param scoreMembers the score members", "docstring_tokens": ["Zadd", "binary", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java#L691-L705", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java", "func_name": "BinaryRedisClusterClient.zrangeByScore", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Zrange by score.\n\n@param key the key\n@param min the min\n@param max the max", "docstring_tokens": ["Zrange", "by", "score", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java#L869-L871", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java", "func_name": "BinaryRedisClusterClient.zrangeByScoreWithScores", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Zrange by score with scores.\n\n@param key the key\n@param min the min\n@param max the max\n@param offset the offset\n@param count the count", "docstring_tokens": ["Zrange", "by", "score", "with", "scores", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java#L941-L944", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java", "func_name": "BinaryRedisClusterClient.slaveofNoOne", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Slaveof no one.", "docstring_tokens": ["Slaveof", "no", "one", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java#L993-L995", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java", "func_name": "BinaryRedisClusterClient.configSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Config set.\n\n@param parameter the parameter\n@param value the value", "docstring_tokens": ["Config", "set", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java#L1012-L1014", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java", "func_name": "BinaryRedisClusterClient.getbit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the bit.\n\n@param key the key\n@param offset the offset", "docstring_tokens": ["Gets", "the", "bit", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java#L1083-L1085", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java", "func_name": "BinaryRedisClusterClient.getrange", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the range.\n\n@param key the key\n@param startOffset the start offset\n@param endOffset the end offset", "docstring_tokens": ["Gets", "the", "range", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/api/java/src/main/java/com/navercorp/redis/cluster/BinaryRedisClusterClient.java#L1105-L1107", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "confmaster/src/main/java/com/navercorp/nbasearc/confmaster/io/EventSelector.java", "func_name": "EventSelector.shutdown", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shutdown a selector\n@throws IOException", "docstring_tokens": ["Shutdown", "a", "selector"], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/confmaster/src/main/java/com/navercorp/nbasearc/confmaster/io/EventSelector.java#L54-L61", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "confmaster/src/main/java/com/navercorp/nbasearc/confmaster/io/EventSelector.java", "func_name": "EventSelector.process", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Main loop of nio\n\n@return elapsed time", "docstring_tokens": ["Main", "loop", "of", "nio"], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/confmaster/src/main/java/com/navercorp/nbasearc/confmaster/io/EventSelector.java#L100-L114", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "confmaster/src/main/java/com/navercorp/nbasearc/confmaster/io/EventSelector.java", "func_name": "EventSelector.ioProcess", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Demultiplex IO events", "docstring_tokens": ["Demultiplex", "IO", "events"], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/confmaster/src/main/java/com/navercorp/nbasearc/confmaster/io/EventSelector.java#L119-L174", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "confmaster/src/main/java/com/navercorp/nbasearc/confmaster/io/EventSelector.java", "func_name": "EventSelector.loopProcess", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "to be called on each loop to process idle routines.", "docstring_tokens": ["to", "be", "called", "on", "each", "loop", "to", "process", "idle", "routines", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/confmaster/src/main/java/com/navercorp/nbasearc/confmaster/io/EventSelector.java#L179-L190", "partition": "valid"} +{"repo": "naver/nbase-arc", "path": "confmaster/src/main/java/com/navercorp/nbasearc/confmaster/io/EventSelector.java", "func_name": "EventSelector.register", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "register session to Selector in order to detect IO events.\n@param session\n@param ops interest IO operations, such as SelectionKey.OP_ACCEPT, SelectionKey.OP_CONNECT, SelectionKey.OP_READ, SelectionKey.OP_WRITE\n@throws ClosedChannelException", "docstring_tokens": ["register", "session", "to", "Selector", "in", "order", "to", "detect", "IO", "events", "."], "sha": "d4ce8a258527160c09b55e34acc1542651a8bbb3", "url": "https://github.com/naver/nbase-arc/blob/d4ce8a258527160c09b55e34acc1542651a8bbb3/confmaster/src/main/java/com/navercorp/nbasearc/confmaster/io/EventSelector.java#L198-L211", "partition": "valid"} +{"repo": "jadler-mocking/jadler", "path": "jadler-core/src/main/java/net/jadler/JadlerMocker.java", "func_name": "JadlerMocker.addDefaultHeader", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a default header to be added to every stub http response.\n@param name header name (cannot be empty)\n@param value header value (cannot be null)", "docstring_tokens": ["Adds", "a", "default", "header", "to", "be", "added", "to", "every", "stub", "http", "response", "."], "sha": "973006503619b77b204b0eaf73ea940823445813", "url": "https://github.com/jadler-mocking/jadler/blob/973006503619b77b204b0eaf73ea940823445813/jadler-core/src/main/java/net/jadler/JadlerMocker.java#L182-L187", "partition": "valid"} +{"repo": "jadler-mocking/jadler", "path": "jadler-core/src/main/java/net/jadler/mocking/Verifying.java", "func_name": "Verifying.receivedTimes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether the number of requests described in this verifying object received so far matches the given predicate.\n@param nrRequestsPredicate to be applied on the number of requests\n@throws VerificationException if the number of requests described by this verifying is not matched by the given\npredicate", "docstring_tokens": ["Checks", "whether", "the", "number", "of", "requests", "described", "in", "this", "verifying", "object", "received", "so", "far", "matches", "the", "given", "predicate", "."], "sha": "973006503619b77b204b0eaf73ea940823445813", "url": "https://github.com/jadler-mocking/jadler/blob/973006503619b77b204b0eaf73ea940823445813/jadler-core/src/main/java/net/jadler/mocking/Verifying.java#L41-L45", "partition": "valid"} +{"repo": "jadler-mocking/jadler", "path": "jadler-core/src/main/java/net/jadler/KeyValues.java", "func_name": "KeyValues.getValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the first value for the given key\n@param key key (case insensitive)\n@return single (first) value for the given key or {@code null}, if there is no such a key in this instance", "docstring_tokens": ["Returns", "the", "first", "value", "for", "the", "given", "key"], "sha": "973006503619b77b204b0eaf73ea940823445813", "url": "https://github.com/jadler-mocking/jadler/blob/973006503619b77b204b0eaf73ea940823445813/jadler-core/src/main/java/net/jadler/KeyValues.java#L100-L105", "partition": "valid"} +{"repo": "jadler-mocking/jadler", "path": "jadler-core/src/main/java/net/jadler/KeyValues.java", "func_name": "KeyValues.getValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns all values for the given key\n@param key key (case insensitive)\n@return all values of the given header or {@code null}, if there is no such a key in this instance", "docstring_tokens": ["Returns", "all", "values", "for", "the", "given", "key"], "sha": "973006503619b77b204b0eaf73ea940823445813", "url": "https://github.com/jadler-mocking/jadler/blob/973006503619b77b204b0eaf73ea940823445813/jadler-core/src/main/java/net/jadler/KeyValues.java#L113-L119", "partition": "valid"} +{"repo": "jadler-mocking/jadler", "path": "jadler-jdk/src/main/java/net/jadler/stubbing/server/jdk/RequestUtils.java", "func_name": "RequestUtils.addEncoding", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "package protected for testing purposes", "docstring_tokens": ["package", "protected", "for", "testing", "purposes"], "sha": "973006503619b77b204b0eaf73ea940823445813", "url": "https://github.com/jadler-mocking/jadler/blob/973006503619b77b204b0eaf73ea940823445813/jadler-jdk/src/main/java/net/jadler/stubbing/server/jdk/RequestUtils.java#L34-L47", "partition": "valid"} +{"repo": "jadler-mocking/jadler", "path": "jadler-core/src/main/java/net/jadler/stubbing/StubbingFactory.java", "func_name": "StubbingFactory.createStubbing", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates new stubbing instance.\n@param defaultEncoding default encoding of every stub response body\n@param defaultStatus default http status of every stub response\n@param defaultHeaders default response headers of every stub response\n@return new {@link Stubbing} instance", "docstring_tokens": ["Creates", "new", "stubbing", "instance", "."], "sha": "973006503619b77b204b0eaf73ea940823445813", "url": "https://github.com/jadler-mocking/jadler/blob/973006503619b77b204b0eaf73ea940823445813/jadler-core/src/main/java/net/jadler/stubbing/StubbingFactory.java#L23-L27", "partition": "valid"} +{"repo": "googlearchive/firebase-token-generator-java", "path": "src/main/java/com/firebase/security/token/JWTEncoder.java", "func_name": "JWTEncoder.encode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encode and sign a set of claims.\n\n@param claims\n@param secret\n@return", "docstring_tokens": ["Encode", "and", "sign", "a", "set", "of", "claims", "."], "sha": "2c77674d276fc1bf622228af721b0b77031fed2e", "url": "https://github.com/googlearchive/firebase-token-generator-java/blob/2c77674d276fc1bf622228af721b0b77031fed2e/src/main/java/com/firebase/security/token/JWTEncoder.java#L29-L38", "partition": "valid"} +{"repo": "googlearchive/firebase-token-generator-java", "path": "src/main/java/com/firebase/security/token/TokenOptions.java", "func_name": "TokenOptions.copyDate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copies the date, since Date objects are mutable.", "docstring_tokens": ["Copies", "the", "date", "since", "Date", "objects", "are", "mutable", "."], "sha": "2c77674d276fc1bf622228af721b0b77031fed2e", "url": "https://github.com/googlearchive/firebase-token-generator-java/blob/2c77674d276fc1bf622228af721b0b77031fed2e/src/main/java/com/firebase/security/token/TokenOptions.java#L20-L22", "partition": "valid"} +{"repo": "googlearchive/firebase-token-generator-java", "path": "src/main/java/com/firebase/security/token/TokenGenerator.java", "func_name": "TokenGenerator.createToken", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a token for the given object and options.\n\n@param data\n@param options\n@return", "docstring_tokens": ["Create", "a", "token", "for", "the", "given", "object", "and", "options", "."], "sha": "2c77674d276fc1bf622228af721b0b77031fed2e", "url": "https://github.com/googlearchive/firebase-token-generator-java/blob/2c77674d276fc1bf622228af721b0b77031fed2e/src/main/java/com/firebase/security/token/TokenGenerator.java#L47-L93", "partition": "valid"} +{"repo": "auth0/Lock-Google.Android", "path": "lock-google/src/main/java/com/auth0/android/google/GoogleAPI.java", "func_name": "GoogleAPI.getErrorDialog", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper to create a new dialog from an error code.\n\n@param errorCode the code int to explain\n@param requestCode the request code to use when you expect the result.\n@return a new dialog instance ready to show", "docstring_tokens": ["Helper", "to", "create", "a", "new", "dialog", "from", "an", "error", "code", "."], "sha": "9beef3203d292c435d205fb2128a20c07dc7701b", "url": "https://github.com/auth0/Lock-Google.Android/blob/9beef3203d292c435d205fb2128a20c07dc7701b/lock-google/src/main/java/com/auth0/android/google/GoogleAPI.java#L106-L115", "partition": "valid"} +{"repo": "auth0/Lock-Google.Android", "path": "lock-google/src/main/java/com/auth0/android/google/GoogleAPI.java", "func_name": "GoogleAPI.connectAndRequestGoogleAccount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if the Google API Client is connected and tries to request the user Account.\n\n@param signInRequestCode the request code to use when you expect the sign in result.\n@param errorResolutionRequestCode the request code to use when you expect the erorr resolution result.", "docstring_tokens": ["Checks", "if", "the", "Google", "API", "Client", "is", "connected", "and", "tries", "to", "request", "the", "user", "Account", "."], "sha": "9beef3203d292c435d205fb2128a20c07dc7701b", "url": "https://github.com/auth0/Lock-Google.Android/blob/9beef3203d292c435d205fb2128a20c07dc7701b/lock-google/src/main/java/com/auth0/android/google/GoogleAPI.java#L123-L131", "partition": "valid"} +{"repo": "auth0/Lock-Google.Android", "path": "lock-google/src/main/java/com/auth0/android/google/GoogleAPI.java", "func_name": "GoogleAPI.logoutAndClearState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Clears this helper state. After this method is called the provider should not be used.", "docstring_tokens": ["Clears", "this", "helper", "state", ".", "After", "this", "method", "is", "called", "the", "provider", "should", "not", "be", "used", "."], "sha": "9beef3203d292c435d205fb2128a20c07dc7701b", "url": "https://github.com/auth0/Lock-Google.Android/blob/9beef3203d292c435d205fb2128a20c07dc7701b/lock-google/src/main/java/com/auth0/android/google/GoogleAPI.java#L167-L174", "partition": "valid"} +{"repo": "HubSpot/Baragon", "path": "BaragonService/src/main/java/com/hubspot/baragon/service/edgecache/cloudflare/CloudflareEdgeCache.java", "func_name": "CloudflareEdgeCache.invalidateIfNecessary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Invalidation will eventually occur when the TTL expires, so it's not a showstopper if this fails.", "docstring_tokens": ["Invalidation", "will", "eventually", "occur", "when", "the", "TTL", "expires", "so", "it", "s", "not", "a", "showstopper", "if", "this", "fails", "."], "sha": "e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb", "url": "https://github.com/HubSpot/Baragon/blob/e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb/BaragonService/src/main/java/com/hubspot/baragon/service/edgecache/cloudflare/CloudflareEdgeCache.java#L49-L95", "partition": "valid"} +{"repo": "HubSpot/Baragon", "path": "BaragonClient/src/main/java/com/hubspot/baragon/client/BaragonServiceClient.java", "func_name": "BaragonServiceClient.getBaragonServiceStatus", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "BaragonService overall status", "docstring_tokens": ["BaragonService", "overall", "status"], "sha": "e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb", "url": "https://github.com/HubSpot/Baragon/blob/e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb/BaragonClient/src/main/java/com/hubspot/baragon/client/BaragonServiceClient.java#L267-L270", "partition": "valid"} +{"repo": "HubSpot/Baragon", "path": "BaragonClient/src/main/java/com/hubspot/baragon/client/BaragonServiceClient.java", "func_name": "BaragonServiceClient.getGlobalState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "BaragonService service states", "docstring_tokens": ["BaragonService", "service", "states"], "sha": "e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb", "url": "https://github.com/HubSpot/Baragon/blob/e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb/BaragonClient/src/main/java/com/hubspot/baragon/client/BaragonServiceClient.java#L279-L282", "partition": "valid"} +{"repo": "HubSpot/Baragon", "path": "BaragonClient/src/main/java/com/hubspot/baragon/client/BaragonServiceClient.java", "func_name": "BaragonServiceClient.getLoadBalancerGroups", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "BaragonService load balancer group actions", "docstring_tokens": ["BaragonService", "load", "balancer", "group", "actions"], "sha": "e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb", "url": "https://github.com/HubSpot/Baragon/blob/e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb/BaragonClient/src/main/java/com/hubspot/baragon/client/BaragonServiceClient.java#L310-L313", "partition": "valid"} +{"repo": "HubSpot/Baragon", "path": "BaragonClient/src/main/java/com/hubspot/baragon/client/BaragonServiceClient.java", "func_name": "BaragonServiceClient.getOccupiedBasePaths", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "BaragonService base path actions", "docstring_tokens": ["BaragonService", "base", "path", "actions"], "sha": "e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb", "url": "https://github.com/HubSpot/Baragon/blob/e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb/BaragonClient/src/main/java/com/hubspot/baragon/client/BaragonServiceClient.java#L352-L355", "partition": "valid"} +{"repo": "HubSpot/Baragon", "path": "BaragonClient/src/main/java/com/hubspot/baragon/client/BaragonServiceClient.java", "func_name": "BaragonServiceClient.getRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "BaragonService request actions", "docstring_tokens": ["BaragonService", "request", "actions"], "sha": "e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb", "url": "https://github.com/HubSpot/Baragon/blob/e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb/BaragonClient/src/main/java/com/hubspot/baragon/client/BaragonServiceClient.java#L370-L373", "partition": "valid"} +{"repo": "HubSpot/Baragon", "path": "BaragonClient/src/main/java/com/hubspot/baragon/client/BaragonServiceClient.java", "func_name": "BaragonServiceClient.getQueuedRequests", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "BaragonService queued request actions", "docstring_tokens": ["BaragonService", "queued", "request", "actions"], "sha": "e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb", "url": "https://github.com/HubSpot/Baragon/blob/e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb/BaragonClient/src/main/java/com/hubspot/baragon/client/BaragonServiceClient.java#L402-L405", "partition": "valid"} +{"repo": "HubSpot/Baragon", "path": "BaragonService/src/main/java/com/hubspot/baragon/service/elb/ApplicationLoadBalancer.java", "func_name": "ApplicationLoadBalancer.guaranteeRegistered", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Ensure that the given baragon agent is attached to the given target group. When this function\ncompletes, the baragon agent will be attached to the load balancer, whether or not it originally\nwas.\n\n@param baragonAgents BaragonAgent to register with given load balancer\n@param loadBalancers Load balancer to register with", "docstring_tokens": ["Ensure", "that", "the", "given", "baragon", "agent", "is", "attached", "to", "the", "given", "target", "group", ".", "When", "this", "function", "completes", "the", "baragon", "agent", "will", "be", "attached", "to", "the", "load", "balancer", "whether", "or", "not", "it", "originally", "was", "."], "sha": "e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb", "url": "https://github.com/HubSpot/Baragon/blob/e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb/BaragonService/src/main/java/com/hubspot/baragon/service/elb/ApplicationLoadBalancer.java#L604-L623", "partition": "valid"} +{"repo": "HubSpot/Baragon", "path": "BaragonService/src/main/java/com/hubspot/baragon/service/elb/ApplicationLoadBalancer.java", "func_name": "ApplicationLoadBalancer.deregisterRemovableTargets", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "De-register any targets representing agents that are not known to the BaragonService,\nor which otherwise need to be removed.\n\n@param targetGroup TargetGroup to check for old agents\n@param agents Known agents, to be used as a reference sheet", "docstring_tokens": ["De", "-", "register", "any", "targets", "representing", "agents", "that", "are", "not", "known", "to", "the", "BaragonService", "or", "which", "otherwise", "need", "to", "be", "removed", "."], "sha": "e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb", "url": "https://github.com/HubSpot/Baragon/blob/e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb/BaragonService/src/main/java/com/hubspot/baragon/service/elb/ApplicationLoadBalancer.java#L632-L658", "partition": "valid"} +{"repo": "HubSpot/Baragon", "path": "BaragonService/src/main/java/com/hubspot/baragon/service/elb/ApplicationLoadBalancer.java", "func_name": "ApplicationLoadBalancer.guaranteeSameVPC", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "When this method completes, the target group, the agents, and the loadBalancers are\nall on the same VPC.\nThe target group, each of the agents, and each of the load balancers should think\nthat they are on the same VPC, otherwise they won't be able to talk to each other.\n\n\n@param targetGroup Group - and consequently all targets - to check\n@param agents Agents to check\n@param loadBalancers Load balances to check", "docstring_tokens": ["When", "this", "method", "completes", "the", "target", "group", "the", "agents", "and", "the", "loadBalancers", "are", "all", "on", "the", "same", "VPC", ".", "The", "target", "group", "each", "of", "the", "agents", "and", "each", "of", "the", "load", "balancers", "should", "think", "that", "they", "are", "on", "the", "same", "VPC", "otherwise", "they", "won", "t", "be", "able", "to", "talk", "to", "each", "other", "."], "sha": "e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb", "url": "https://github.com/HubSpot/Baragon/blob/e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb/BaragonService/src/main/java/com/hubspot/baragon/service/elb/ApplicationLoadBalancer.java#L671-L694", "partition": "valid"} +{"repo": "HubSpot/Baragon", "path": "BaragonService/src/main/java/com/hubspot/baragon/service/elb/ApplicationLoadBalancer.java", "func_name": "ApplicationLoadBalancer.guaranteeHasAllTargets", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "After this method completes, every agent in baragonAgents should be associated with\na target in the given target group.\n\n@param targetGroup group to register in\n@param baragonAgents agents to be registered", "docstring_tokens": ["After", "this", "method", "completes", "every", "agent", "in", "baragonAgents", "should", "be", "associated", "with", "a", "target", "in", "the", "given", "target", "group", "."], "sha": "e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb", "url": "https://github.com/HubSpot/Baragon/blob/e02e1c960a2b93e146ee5cafaa6eb0853ec9bacb/BaragonService/src/main/java/com/hubspot/baragon/service/elb/ApplicationLoadBalancer.java#L776-L816", "partition": "valid"} +{"repo": "Mercateo/rest-hateoas-client", "path": "src/main/java/com/mercateo/rest/hateoas/client/schema/SchemaLink.java", "func_name": "SchemaLink.setHref", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "backwards compatibility, would be canged in next version", "docstring_tokens": ["backwards", "compatibility", "would", "be", "canged", "in", "next", "version"], "sha": "0171dac11c1ce6d47c4f6b8215465b77293d1efd", "url": "https://github.com/Mercateo/rest-hateoas-client/blob/0171dac11c1ce6d47c4f6b8215465b77293d1efd/src/main/java/com/mercateo/rest/hateoas/client/schema/SchemaLink.java#L57-L66", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/resolver/MemberKey.java", "func_name": "MemberKey.newInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Simple factory method to obtain a new instance for the given context\nobject and name.\n\n@param contextObject\n@param name\n@return a new instance", "docstring_tokens": ["Simple", "factory", "method", "to", "obtain", "a", "new", "instance", "for", "the", "given", "context", "object", "and", "name", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/resolver/MemberKey.java#L87-L96", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/parser/DefaultParser.java", "func_name": "DefaultParser.lineSeparatorFound", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Line separator end - flush.\n\n@param lineSeparator", "docstring_tokens": ["Line", "separator", "end", "-", "flush", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/parser/DefaultParser.java#L271-L277", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/parser/DefaultParser.java", "func_name": "DefaultParser.flushTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Real tag end - flush.", "docstring_tokens": ["Real", "tag", "end", "-", "flush", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/parser/DefaultParser.java#L298-L303", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/parser/DefaultParser.java", "func_name": "DefaultParser.extractContent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extract the tag content.\n\n@param buffer\n@return", "docstring_tokens": ["Extract", "the", "tag", "content", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/parser/DefaultParser.java#L358-L381", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/parser/SegmentBases.java", "func_name": "SegmentBases.readSegmentLines", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read segment lines recursively.\n\n@param container\n@return", "docstring_tokens": ["Read", "segment", "lines", "recursively", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/parser/SegmentBases.java#L203-L210", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/util/Patterns.java", "func_name": "Patterns.newMustacheTagPattern", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Delimiters are quoted to avoid regexp reserved characters conflict.\n\n@param configuration\n@return the new delimiters pattern", "docstring_tokens": ["Delimiters", "are", "quoted", "to", "avoid", "regexp", "reserved", "characters", "conflict", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/util/Patterns.java#L38-L46", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/resolver/Decorator.java", "func_name": "Decorator.decorate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a decorator instance for the specified delegate and mappings.\n\n@param delegate\n@param mappings\n@param delegateKey\nMay be null\n@param configuration\n@return a new decorator instance", "docstring_tokens": ["Returns", "a", "decorator", "instance", "for", "the", "specified", "delegate", "and", "mappings", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/resolver/Decorator.java#L80-L85", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/resolver/Decorator.java", "func_name": "Decorator.unwrap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method is recursive.\n\n@return the underlying delegate instance", "docstring_tokens": ["This", "method", "is", "recursive", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/resolver/Decorator.java#L92-L95", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/MustacheEngineBuilder.java", "func_name": "MustacheEngineBuilder.build", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds the engine instance.\n\n@return the built engine", "docstring_tokens": ["Builds", "the", "engine", "instance", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/MustacheEngineBuilder.java#L134-L145", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/MustacheEngineBuilder.java", "func_name": "MustacheEngineBuilder.addTemplateLocator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a template locator.\n\n@param locator\n@return self", "docstring_tokens": ["Adds", "a", "template", "locator", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/MustacheEngineBuilder.java#L170-L175", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/MustacheEngineBuilder.java", "func_name": "MustacheEngineBuilder.addResolver", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a value resolver.\n\n@param resolver\n@return self", "docstring_tokens": ["Adds", "a", "value", "resolver", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/MustacheEngineBuilder.java#L183-L188", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/MustacheEngineBuilder.java", "func_name": "MustacheEngineBuilder.registerCallback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Callback is useful to configure a component instantiated before the\nengine is built.\n\n@param callback\n@return self", "docstring_tokens": ["Callback", "is", "useful", "to", "configure", "a", "component", "instantiated", "before", "the", "engine", "is", "built", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/MustacheEngineBuilder.java#L254-L260", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/MustacheEngineBuilder.java", "func_name": "MustacheEngineBuilder.addValueConverter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a value converter.\n\n@param converter\n@return self", "docstring_tokens": ["Add", "a", "value", "converter", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/MustacheEngineBuilder.java#L460-L465", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/MustacheEngineBuilder.java", "func_name": "MustacheEngineBuilder.addContextConverter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a context converter.\n\n@param converter\n@return self", "docstring_tokens": ["Add", "a", "context", "converter", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/MustacheEngineBuilder.java#L473-L478", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/util/Strings.java", "func_name": "Strings.capitalizeFully", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Capitalizes all the delimiter separated words.\n\n@param text\n@param delimiter\n@return the capitalized input", "docstring_tokens": ["Capitalizes", "all", "the", "delimiter", "separated", "words", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/util/Strings.java#L117-L137", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/handlebars/AbstractHelper.java", "func_name": "AbstractHelper.append", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Escape appended sequence if needed.\n\n@param options\n@param sequence\n@see TextSupport", "docstring_tokens": ["Escape", "appended", "sequence", "if", "needed", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/handlebars/AbstractHelper.java#L64-L76", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/DefaultMustacheEngine.java", "func_name": "DefaultMustacheEngine.buildSourceCache", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Properties of the source cache are dependent on that of the template\ncache.", "docstring_tokens": ["Properties", "of", "the", "source", "cache", "are", "dependent", "on", "that", "of", "the", "template", "cache", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/DefaultMustacheEngine.java#L184-L190", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/parser/DefaultParsingHandler.java", "func_name": "DefaultParsingHandler.push", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Push the container wrapper on the stack.\n\n@param container", "docstring_tokens": ["Push", "the", "container", "wrapper", "on", "the", "stack", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/parser/DefaultParsingHandler.java#L328-L332", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/parser/DefaultParsingHandler.java", "func_name": "DefaultParsingHandler.addSegment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the segment to the container on the stack.\n\n@param segment", "docstring_tokens": ["Add", "the", "segment", "to", "the", "container", "on", "the", "stack", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/parser/DefaultParsingHandler.java#L350-L353", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/parser/DefaultParsingHandler.java", "func_name": "DefaultParsingHandler.validate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validate the compiled template.", "docstring_tokens": ["Validate", "the", "compiled", "template", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/parser/DefaultParsingHandler.java#L358-L369", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/segment/HelperExecutionHandler.java", "func_name": "HelperExecutionHandler.splitHelperName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extracts parts from an input string. This implementation is quite naive\nand should be possibly rewritten. Note that we can't use a simple\nsplitter because of string literals may contain whitespace chars.\n\n@param name\n@param segment\n@return the parts of the helper name\n@throws MustacheException\nIf a compilation problem occurs", "docstring_tokens": ["Extracts", "parts", "from", "an", "input", "string", ".", "This", "implementation", "is", "quite", "naive", "and", "should", "be", "possibly", "rewritten", ".", "Note", "that", "we", "can", "t", "use", "a", "simple", "splitter", "because", "of", "string", "literals", "may", "contain", "whitespace", "chars", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/segment/HelperExecutionHandler.java#L167-L214", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/convert/DecoratorConverter.java", "func_name": "DecoratorConverter.decorate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a decorator converter builder for the specified delegate type.\n\n@param delegateType\n@return a new builder instance", "docstring_tokens": ["Returns", "a", "decorator", "converter", "builder", "for", "the", "specified", "delegate", "type", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/convert/DecoratorConverter.java#L63-L65", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/segment/AsyncAppendable.java", "func_name": "AsyncAppendable.flush", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Append the result to the parent.", "docstring_tokens": ["Append", "the", "result", "to", "the", "parent", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/segment/AsyncAppendable.java#L71-L82", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/resolver/ReflectionResolver.java", "func_name": "ReflectionResolver.findField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tries to find a public field with the given name on the given class.\n\n@param clazz\n@param name\n@return the found field or null", "docstring_tokens": ["Tries", "to", "find", "a", "public", "field", "with", "the", "given", "name", "on", "the", "given", "class", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/resolver/ReflectionResolver.java#L312-L326", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/config/ConfigurationExtensions.java", "func_name": "ConfigurationExtensions.registerHelpers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Register helper and do nothing if a helper with the same name is already registered.\n\n@param builder\n@param helpers", "docstring_tokens": ["Register", "helper", "and", "do", "nothing", "if", "a", "helper", "with", "the", "same", "name", "is", "already", "registered", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/config/ConfigurationExtensions.java#L40-L45", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/config/ConfigurationExtensions.java", "func_name": "ConfigurationExtensions.registerHelper", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Register helpers and do nothing if a helper with the same name is already registered.\n\n@param builder\n@param name\n@param helper", "docstring_tokens": ["Register", "helpers", "and", "do", "nothing", "if", "a", "helper", "with", "the", "same", "name", "is", "already", "registered", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/config/ConfigurationExtensions.java#L54-L60", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/engine/segment/Segments.java", "func_name": "Segments.readSegmentLinesBeforeRendering", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Read segment lines before rendering.\n\n@param container\n@return", "docstring_tokens": ["Read", "segment", "lines", "before", "rendering", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/engine/segment/Segments.java#L116-L137", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/handlebars/CacheHelper.java", "func_name": "CacheHelper.invalidateFragments", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Invalidate the cache fragments whose key contains the given part of the\nkey.\n\n@param keyPart", "docstring_tokens": ["Invalidate", "the", "cache", "fragments", "whose", "key", "contains", "the", "given", "part", "of", "the", "key", "."], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/handlebars/CacheHelper.java#L210-L215", "partition": "valid"} +{"repo": "trimou/trimou", "path": "core/src/main/java/org/trimou/handlebars/i18n/TimeFormatHelper.java", "func_name": "TimeFormatHelper.getFormattableObject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "should be safe", "docstring_tokens": ["should", "be", "safe"], "sha": "ae45d77d4bd8b2c71b41006908b8a0a784ad9058", "url": "https://github.com/trimou/trimou/blob/ae45d77d4bd8b2c71b41006908b8a0a784ad9058/core/src/main/java/org/trimou/handlebars/i18n/TimeFormatHelper.java#L91-L109", "partition": "valid"} +{"repo": "seanchenxi/gwt-storage", "path": "src/main/java/com/seanchenxi/gwt/storage/client/StorageExt.java", "func_name": "StorageExt.getLocalStorage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a Local Storage.\n\n@return the localStorage instance, or null if Web Storage is NOT supported.", "docstring_tokens": ["Returns", "a", "Local", "Storage", "."], "sha": "fb2f97991af14d60a7693e0cf8f277fc34e90f7f", "url": "https://github.com/seanchenxi/gwt-storage/blob/fb2f97991af14d60a7693e0cf8f277fc34e90f7f/src/main/java/com/seanchenxi/gwt/storage/client/StorageExt.java#L76-L81", "partition": "valid"} +{"repo": "seanchenxi/gwt-storage", "path": "src/main/java/com/seanchenxi/gwt/storage/client/StorageExt.java", "func_name": "StorageExt.getSessionStorage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a Session Storage.\n\n@return the sessionStorage instance, or null if Web Storage is NOT supported.", "docstring_tokens": ["Returns", "a", "Session", "Storage", "."], "sha": "fb2f97991af14d60a7693e0cf8f277fc34e90f7f", "url": "https://github.com/seanchenxi/gwt-storage/blob/fb2f97991af14d60a7693e0cf8f277fc34e90f7f/src/main/java/com/seanchenxi/gwt/storage/client/StorageExt.java#L88-L93", "partition": "valid"} +{"repo": "seanchenxi/gwt-storage", "path": "src/main/java/com/seanchenxi/gwt/storage/client/StorageExt.java", "func_name": "StorageExt.clear", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes all items in the Storage, and its cache if activated\n\n@see W3C Web\nStorage - Storage.clear()", "docstring_tokens": ["Removes", "all", "items", "in", "the", "Storage", "and", "its", "cache", "if", "activated"], "sha": "fb2f97991af14d60a7693e0cf8f277fc34e90f7f", "url": "https://github.com/seanchenxi/gwt-storage/blob/fb2f97991af14d60a7693e0cf8f277fc34e90f7f/src/main/java/com/seanchenxi/gwt/storage/client/StorageExt.java#L141-L145", "partition": "valid"} +{"repo": "seanchenxi/gwt-storage", "path": "src/main/java/com/seanchenxi/gwt/storage/client/StorageExt.java", "func_name": "StorageExt.containsKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Test if this storage contains a value for the specified key.\n\n

\n{@link StorageKeyFactory} is preferred to get a {@link StorageKey} instance for primitive types.\n

\n\n@param key the key whose presence in this storage is to be tested\n@param the type of stored value\n@return true if this storage contains a value for the specified key.", "docstring_tokens": ["Test", "if", "this", "storage", "contains", "a", "value", "for", "the", "specified", "key", "."], "sha": "fb2f97991af14d60a7693e0cf8f277fc34e90f7f", "url": "https://github.com/seanchenxi/gwt-storage/blob/fb2f97991af14d60a7693e0cf8f277fc34e90f7f/src/main/java/com/seanchenxi/gwt/storage/client/StorageExt.java#L165-L167", "partition": "valid"} +{"repo": "seanchenxi/gwt-storage", "path": "src/main/java/com/seanchenxi/gwt/storage/client/StorageExt.java", "func_name": "StorageExt.put", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Store the specified value with the specified key in this storage.\n\n

\nNote: null value is not allowed.
\nIf the storage previously contained a mapping for the key, the old\nvalue is replaced.
\n{@link StorageKeyFactory} is preferred to get a {@link StorageKey} instance for primitive types.\n

\n\n@param key key with which the specified value is to be associated\n@param value value to be associated with the specified key\n@throws SerializationException\n@throws StorageQuotaExceededException", "docstring_tokens": ["Store", "the", "specified", "value", "with", "the", "specified", "key", "in", "this", "storage", "."], "sha": "fb2f97991af14d60a7693e0cf8f277fc34e90f7f", "url": "https://github.com/seanchenxi/gwt-storage/blob/fb2f97991af14d60a7693e0cf8f277fc34e90f7f/src/main/java/com/seanchenxi/gwt/storage/client/StorageExt.java#L236-L254", "partition": "valid"} +{"repo": "seanchenxi/gwt-storage", "path": "src/main/java/com/seanchenxi/gwt/storage/client/StorageExt.java", "func_name": "StorageExt.remove", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the record for the specified key from this storage if present.\n\n

\n{@link StorageKeyFactory} is preferred to get a {@link StorageKey} instance for primitive types\n

\n\n@param key key whose mapping is to be removed from the map\n@param the type of stored value", "docstring_tokens": ["Removes", "the", "record", "for", "the", "specified", "key", "from", "this", "storage", "if", "present", "."], "sha": "fb2f97991af14d60a7693e0cf8f277fc34e90f7f", "url": "https://github.com/seanchenxi/gwt-storage/blob/fb2f97991af14d60a7693e0cf8f277fc34e90f7f/src/main/java/com/seanchenxi/gwt/storage/client/StorageExt.java#L266-L271", "partition": "valid"} +{"repo": "seanchenxi/gwt-storage", "path": "src/main/java/com/seanchenxi/gwt/storage/client/StorageKeyFactory.java", "func_name": "StorageKeyFactory.objectKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns non-primitive type value's storage key.\n\n@param keyName name of storage key\n@param type of value\n@return non-primitive type value's storage key\n@deprecated use {@link #isSerializableKey(String)} or {@link #serializableKey(String)} instead", "docstring_tokens": ["Returns", "non", "-", "primitive", "type", "value", "s", "storage", "key", "."], "sha": "fb2f97991af14d60a7693e0cf8f277fc34e90f7f", "url": "https://github.com/seanchenxi/gwt-storage/blob/fb2f97991af14d60a7693e0cf8f277fc34e90f7f/src/main/java/com/seanchenxi/gwt/storage/client/StorageKeyFactory.java#L44-L47", "partition": "valid"} +{"repo": "seanchenxi/gwt-storage", "path": "src/main/java/com/seanchenxi/gwt/storage/client/StorageKeyFactory.java", "func_name": "StorageKeyFactory.isSerializableKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns IsSerializable type value's storage key.\n\n@param keyName name of storage key\n@param type of value\n@return IsSerializable type value's storage key", "docstring_tokens": ["Returns", "IsSerializable", "type", "value", "s", "storage", "key", "."], "sha": "fb2f97991af14d60a7693e0cf8f277fc34e90f7f", "url": "https://github.com/seanchenxi/gwt-storage/blob/fb2f97991af14d60a7693e0cf8f277fc34e90f7f/src/main/java/com/seanchenxi/gwt/storage/client/StorageKeyFactory.java#L56-L58", "partition": "valid"} +{"repo": "seanchenxi/gwt-storage", "path": "src/main/java/com/seanchenxi/gwt/storage/client/StorageKeyFactory.java", "func_name": "StorageKeyFactory.serializableKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns Serializable type value's storage key.\n\n@param keyName name of storage key\n@param type of value\n@return Serializable type value's storage key", "docstring_tokens": ["Returns", "Serializable", "type", "value", "s", "storage", "key", "."], "sha": "fb2f97991af14d60a7693e0cf8f277fc34e90f7f", "url": "https://github.com/seanchenxi/gwt-storage/blob/fb2f97991af14d60a7693e0cf8f277fc34e90f7f/src/main/java/com/seanchenxi/gwt/storage/client/StorageKeyFactory.java#L67-L69", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.obtainSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the floating action button's size from a specific typed array.\n\n@param typedArray\nThe typed array, the color should be obtained from, as an instance of the class\n{@link TypedArray}. The typed array may not be null", "docstring_tokens": ["Obtains", "the", "floating", "action", "button", "s", "size", "from", "a", "specific", "typed", "array", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L224-L228", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.obtainColor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the floating action button's color from a specific typed array.\n\n@param typedArray\nThe typed array, the color should be obtained from, as an instance of the class\n{@link TypedArray}. The typed array may not be null", "docstring_tokens": ["Obtains", "the", "floating", "action", "button", "s", "color", "from", "a", "specific", "typed", "array", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L237-L240", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.obtainActivatedColor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the floating action button's activated color from a specific typed array.\n\n@param typedArray\nThe typed array, the activated color should be obtained from, as an instance of the\nclass {@link TypedArray}. The typed array may not be null", "docstring_tokens": ["Obtains", "the", "floating", "action", "button", "s", "activated", "color", "from", "a", "specific", "typed", "array", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L249-L253", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.obtainPressedColor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the floating action button's pressed color from a specific typed array.\n\n@param typedArray\nThe typed array, the pressed color should be obtained from, as an instance of the\nclass {@link TypedArray}. The typed array may not be null", "docstring_tokens": ["Obtains", "the", "floating", "action", "button", "s", "pressed", "color", "from", "a", "specific", "typed", "array", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L262-L266", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.obtainDisabledColor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the floating action button's disabled color from a specific typed array.\n\n@param typedArray\nThe typed array, the disabled color should be obtained from, as an instance of the\nclass {@link TypedArray}. The typed array may not be null", "docstring_tokens": ["Obtains", "the", "floating", "action", "button", "s", "disabled", "color", "from", "a", "specific", "typed", "array", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L275-L280", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.obtainIcon", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the floating action button's icon from a specific typed array.\n\n@param typedArray\nThe typed array, the ripple color should be obtained from, as an instance of the\nclass {@link TypedArray}. The typed array may not be null", "docstring_tokens": ["Obtains", "the", "floating", "action", "button", "s", "icon", "from", "a", "specific", "typed", "array", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L289-L292", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.obtainVisibilityAnimationDuration", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the duration of the animation, which may be used to changed the visibility of the\nfloating action button, from a specific typed array.\n\n@param typedArray\nThe typed array, the animation duration should be obtained from, as an instance of\nthe class {@link TypedArray}. The typed array may not be null", "docstring_tokens": ["Obtains", "the", "duration", "of", "the", "animation", "which", "may", "be", "used", "to", "changed", "the", "visibility", "of", "the", "floating", "action", "button", "from", "a", "specific", "typed", "array", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L302-L309", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.adaptShadow", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adapts the shadow of the floating action button, depending on its size.", "docstring_tokens": ["Adapts", "the", "shadow", "of", "the", "floating", "action", "button", "depending", "on", "its", "size", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L314-L322", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.adaptImageButtonSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adapts the size of the image button, which is used to show the floating image button's\nbackground and icon, depending on the floating button's size.", "docstring_tokens": ["Adapts", "the", "size", "of", "the", "image", "button", "which", "is", "used", "to", "show", "the", "floating", "image", "button", "s", "background", "and", "icon", "depending", "on", "the", "floating", "button", "s", "size", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L328-L335", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.adaptImageButtonBackground", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adapts the background of the image button, which is used to show the floating image button's\nbackground and icon, depending on the floating button's colors.", "docstring_tokens": ["Adapts", "the", "background", "of", "the", "image", "button", "which", "is", "used", "to", "show", "the", "floating", "image", "button", "s", "background", "and", "icon", "depending", "on", "the", "floating", "button", "s", "colors", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L341-L353", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.createStateListBackgroundDrawable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates and returns a state list drawable, which can be used as the floating action button\nbackground and adapts the background color depending on the button's current state.\n\n@return The drawable, which has been created, as an instance of the class {@link Drawable}", "docstring_tokens": ["Creates", "and", "returns", "a", "state", "list", "drawable", "which", "can", "be", "used", "as", "the", "floating", "action", "button", "background", "and", "adapts", "the", "background", "color", "depending", "on", "the", "button", "s", "current", "state", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L361-L375", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.createActivatedBackgroundDrawable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates and returns a drawable, which can be used as the floating action button's background,\nwhen it is activated.\n\n@return The drawable, which has been created, as an instance of the class {@link Drawable}", "docstring_tokens": ["Creates", "and", "returns", "a", "drawable", "which", "can", "be", "used", "as", "the", "floating", "action", "button", "s", "background", "when", "it", "is", "activated", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L383-L387", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.createPressedBackgroundDrawable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates and returns a drawable, which can be used as the floating action button's background,\nwhen it is pressed.\n\n@return The drawable, which has been created, as an instance of the class {@link Drawable}", "docstring_tokens": ["Creates", "and", "returns", "a", "drawable", "which", "can", "be", "used", "as", "the", "floating", "action", "button", "s", "background", "when", "it", "is", "pressed", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L395-L399", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.createDisabledBackgroundDrawable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates and returns a drawable, which can be used as the floating action button's background,\nwhen it is disabled.\n\n@return The drawable, which has been created, as an instance of the class {@link Drawable}", "docstring_tokens": ["Creates", "and", "returns", "a", "drawable", "which", "can", "be", "used", "as", "the", "floating", "action", "button", "s", "background", "when", "it", "is", "disabled", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L407-L411", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.createBackgroundDrawable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates and returns a drawable with a specific color, which can be used as the floating\naction button's background.\n\n@param color\nThe color of the background as an {@link Integer} value\n@return The drawable, which has been created, as an instance of the class {@link Drawable}", "docstring_tokens": ["Creates", "and", "returns", "a", "drawable", "with", "a", "specific", "color", "which", "can", "be", "used", "as", "the", "floating", "action", "button", "s", "background", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L421-L426", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.getPixelSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the size of the floating action button in pixels, depending on its current size.\n\n@return The size of the floating action button in pixels as an {@link Integer} value", "docstring_tokens": ["Returns", "the", "size", "of", "the", "floating", "action", "button", "in", "pixels", "depending", "on", "its", "current", "size", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L433-L441", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.animateVisibility", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Animates changing the visibility of the floating action button.\n\n@param visibility\nThe visibility, which should be set, as an {@link Integer} value. The visibility may\nbe View.VISIBLE, View.INVISIBLE or View.GONE\n@param duration\nThe duration of the animation in milliseconds as a {@link Long} value", "docstring_tokens": ["Animates", "changing", "the", "visibility", "of", "the", "floating", "action", "button", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L476-L488", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.createVisibilityAnimatorListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates and returns a listener, which allows to adapt the visibility of the floating action\nbutton, depending on the progress of an animation, which is used to change the visibility.\n\n@param visibility\nThe visibility, which is set by the observed animation, as an {@link Integer} value.\nThe visibility may be View.VISIBLE, View.INVISIBLE or\nView.GONE\n@return The listener, which has been created, as an instance of the type {@link\nAnimatorListener}", "docstring_tokens": ["Creates", "and", "returns", "a", "listener", "which", "allows", "to", "adapt", "the", "visibility", "of", "the", "floating", "action", "button", "depending", "on", "the", "progress", "of", "an", "animation", "which", "is", "used", "to", "change", "the", "visibility", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L501-L528", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/FloatingActionButton.java", "func_name": "FloatingActionButton.setSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the floating action button's size.\n\n@param size\nThe size, which should be set, as a value of the enum {@link Size}. The size must\neither be NORMAL or SMALL", "docstring_tokens": ["Sets", "the", "floating", "action", "button", "s", "size", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/FloatingActionButton.java#L625-L631", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/CircularProgressBar.java", "func_name": "CircularProgressBar.obtainThickness", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the progress bar's thickness from a specific typed array.\n\n@param typedArray\nThe typed array, the thickness should be obtained from, as an instance of the class\n{@link TypedArray}. The typed array may not be null", "docstring_tokens": ["Obtains", "the", "progress", "bar", "s", "thickness", "from", "a", "specific", "typed", "array", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/CircularProgressBar.java#L108-L114", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/drawable/CircularProgressDrawable.java", "func_name": "CircularProgressDrawable.initializePaint", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initializes the paint, which is used for drawing.", "docstring_tokens": ["Initializes", "the", "paint", "which", "is", "used", "for", "drawing", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/drawable/CircularProgressDrawable.java#L119-L125", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/drawable/CircularProgressDrawable.java", "func_name": "CircularProgressDrawable.initializeAngleAnimator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initializes the angle animator.", "docstring_tokens": ["Initializes", "the", "angle", "animator", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/drawable/CircularProgressDrawable.java#L138-L144", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/drawable/CircularProgressDrawable.java", "func_name": "CircularProgressDrawable.createAngleProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates and returns a property, which allows to animate the global angle of the progress\ndrawable.\n\n@return The property, which has been created, as an instance of the class {@link Property}", "docstring_tokens": ["Creates", "and", "returns", "a", "property", "which", "allows", "to", "animate", "the", "global", "angle", "of", "the", "progress", "drawable", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/drawable/CircularProgressDrawable.java#L152-L167", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/drawable/CircularProgressDrawable.java", "func_name": "CircularProgressDrawable.initializeSweepAnimator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initializes the sweep animator.", "docstring_tokens": ["Initializes", "the", "sweep", "animator", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/drawable/CircularProgressDrawable.java#L172-L180", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/drawable/CircularProgressDrawable.java", "func_name": "CircularProgressDrawable.createSweepProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates and returns a property, which allows to animate the sweep angle of the progress\ndrawable.\n\n@return The property, which has been created, as an instance of the class {@link Property}", "docstring_tokens": ["Creates", "and", "returns", "a", "property", "which", "allows", "to", "animate", "the", "sweep", "angle", "of", "the", "progress", "drawable", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/drawable/CircularProgressDrawable.java#L188-L203", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/drawable/CircularProgressDrawable.java", "func_name": "CircularProgressDrawable.createSweepAnimatorListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates and returns a listener, which allows to restart the progress drawable's animation,\nwhen it has been finished.\n\n@return The listener, which has been created, as an instance of the type {@link\nAnimatorListener}", "docstring_tokens": ["Creates", "and", "returns", "a", "listener", "which", "allows", "to", "restart", "the", "progress", "drawable", "s", "animation", "when", "it", "has", "been", "finished", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/drawable/CircularProgressDrawable.java#L212-L241", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "example/src/main/java/de/mrapp/android/view/example/MainActivity.java", "func_name": "MainActivity.initializeFloatingActionButtons", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initializes the floating action buttons.", "docstring_tokens": ["Initializes", "the", "floating", "action", "buttons", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/example/src/main/java/de/mrapp/android/view/example/MainActivity.java#L65-L72", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "example/src/main/java/de/mrapp/android/view/example/MainActivity.java", "func_name": "MainActivity.createFloatingActionButtonListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates and returns a listener, which allows to show a toast when a floating action button\nhas been clicked.\n\n@return The listener, which has been created, as an instance of the type {@link\nOnClickListener}", "docstring_tokens": ["Creates", "and", "returns", "a", "listener", "which", "allows", "to", "show", "a", "toast", "when", "a", "floating", "action", "button", "has", "been", "clicked", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/example/src/main/java/de/mrapp/android/view/example/MainActivity.java#L81-L93", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "example/src/main/java/de/mrapp/android/view/example/MainActivity.java", "func_name": "MainActivity.initializeHideFloatingActionButtonsButton", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initializes the button, which allows to show or hide the floating action buttons.", "docstring_tokens": ["Initializes", "the", "button", "which", "allows", "to", "show", "or", "hide", "the", "floating", "action", "buttons", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/example/src/main/java/de/mrapp/android/view/example/MainActivity.java#L98-L101", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "example/src/main/java/de/mrapp/android/view/example/MainActivity.java", "func_name": "MainActivity.createHideFloatingActionButtonsListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates and returns a listener, which allows to show or hide the floating action buttons.\n\n@return The listener, which has been created, as an instance of the type {@link\nOnClickListener}", "docstring_tokens": ["Creates", "and", "returns", "a", "listener", "which", "allows", "to", "show", "or", "hide", "the", "floating", "action", "buttons", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/example/src/main/java/de/mrapp/android/view/example/MainActivity.java#L109-L122", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "example/src/main/java/de/mrapp/android/view/example/MainActivity.java", "func_name": "MainActivity.initializeChips", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initializes all closable chips.", "docstring_tokens": ["Initializes", "all", "closable", "chips", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/example/src/main/java/de/mrapp/android/view/example/MainActivity.java#L127-L136", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "example/src/main/java/de/mrapp/android/view/example/MainActivity.java", "func_name": "MainActivity.createChipCloseListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates and returns a listener, which allows to show a toast, when a chip has been closed.\n\n@return The listener, which has been created, as an instance of the type {@link\nChip.CloseListener}", "docstring_tokens": ["Creates", "and", "returns", "a", "listener", "which", "allows", "to", "show", "a", "toast", "when", "a", "chip", "has", "been", "closed", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/example/src/main/java/de/mrapp/android/view/example/MainActivity.java#L144-L155", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "example/src/main/java/de/mrapp/android/view/example/MainActivity.java", "func_name": "MainActivity.handleSavedInstanceState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adapts the activity's views depending on the saved instance state, which has been passed to\nthe activity.\n\n@param savedInstanceState\nThe saved instance state as an instance of the class {@link Bundle} or null, if no\nsaved instance state is available", "docstring_tokens": ["Adapts", "the", "activity", "s", "views", "depending", "on", "the", "saved", "instance", "state", "which", "has", "been", "passed", "to", "the", "activity", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/example/src/main/java/de/mrapp/android/view/example/MainActivity.java#L165-L174", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/Chip.java", "func_name": "Chip.obtainText", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the chip's text from a specific typed array.\n\n@param typedArray\nThe typed array, the text should be obtained from, as an instance of the class {@link\nTypedArray}. The typed array may not be null", "docstring_tokens": ["Obtains", "the", "chip", "s", "text", "from", "a", "specific", "typed", "array", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/Chip.java#L181-L183", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/Chip.java", "func_name": "Chip.obtainTextColor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the chip's text color from a specific typed array.\n\n@param typedArray\nThe typed array, the text color should be obtained from, as an instance of the class\n{@link TypedArray}. The typed array may not be null", "docstring_tokens": ["Obtains", "the", "chip", "s", "text", "color", "from", "a", "specific", "typed", "array", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/Chip.java#L192-L195", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/Chip.java", "func_name": "Chip.obtainColor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the chip's color from a specific typed array.\n\n@param typedArray\nThe typed array, the color should be obtained from, as an instance of the class\n{@link TypedArray}. The typed array may not be null", "docstring_tokens": ["Obtains", "the", "chip", "s", "color", "from", "a", "specific", "typed", "array", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/Chip.java#L204-L207", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/Chip.java", "func_name": "Chip.obtainIcon", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the chip's icon from a specific typed array.\n\n@param typedArray\nThe typed array, the icon should be obtained from, as an instance of the class {@link\nTypedArray}. The typed array may not be null", "docstring_tokens": ["Obtains", "the", "chip", "s", "icon", "from", "a", "specific", "typed", "array", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/Chip.java#L216-L218", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/Chip.java", "func_name": "Chip.obtainClosable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains, whether the chip should be closable, or not, from a specific typed array.\n\n@param typedArray\nThe typed array, which should be used to obtain, whether the chip should be closable,\nor not, as an instance of the class {@link TypedArray}. The typed array may not be\nnull", "docstring_tokens": ["Obtains", "whether", "the", "chip", "should", "be", "closable", "or", "not", "from", "a", "specific", "typed", "array", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/Chip.java#L228-L230", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/Chip.java", "func_name": "Chip.obtainCloseIcon", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the icon of the button, which allows to close the chip, from a specific typed array.\n\n@param typedArray\nThe typed array, which should be used to obtain the icon of the button, which allows\nto close the chip, as an instance of the class {@link TypedArray}. The typed array\nmay not be null", "docstring_tokens": ["Obtains", "the", "icon", "of", "the", "button", "which", "allows", "to", "close", "the", "chip", "from", "a", "specific", "typed", "array", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/Chip.java#L240-L246", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/Chip.java", "func_name": "Chip.addCloseListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a new listener, which should be notified, when the chip has been closed.\n\n@param listener\nThe listener, which should be added, as an instance of the type {@link\nCloseListener}. The listener may not be null", "docstring_tokens": ["Adds", "a", "new", "listener", "which", "should", "be", "notified", "when", "the", "chip", "has", "been", "closed", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/Chip.java#L336-L339", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/Chip.java", "func_name": "Chip.removeCloseListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes a specific listener, which should not be notified, when the chip has been closed,\nanymore.\n\n@param listener\nThe listener, which should be removed, as an instance of the type {@link\nCloseListener}. The listener may not be null", "docstring_tokens": ["Removes", "a", "specific", "listener", "which", "should", "not", "be", "notified", "when", "the", "chip", "has", "been", "closed", "anymore", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/Chip.java#L349-L352", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/Chip.java", "func_name": "Chip.setColor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the chip's color.\n\n@param color\nThe color, which should be set, as an {@link Integer} value", "docstring_tokens": ["Sets", "the", "chip", "s", "color", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/Chip.java#L422-L425", "partition": "valid"} +{"repo": "michael-rapp/AndroidMaterialViews", "path": "library/src/main/java/de/mrapp/android/view/Chip.java", "func_name": "Chip.setClosable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets, whether the chip is closable, or not.\n\n@param closable\nTrue, if the chip should be closable, false otherwise", "docstring_tokens": ["Sets", "whether", "the", "chip", "is", "closable", "or", "not", "."], "sha": "398421be462fe5793c7e3a9212949e06236a7c2f", "url": "https://github.com/michael-rapp/AndroidMaterialViews/blob/398421be462fe5793c7e3a9212949e06236a7c2f/library/src/main/java/de/mrapp/android/view/Chip.java#L507-L520", "partition": "valid"} +{"repo": "mjeanroy/springmvc-mustache", "path": "src/main/java/com/github/mjeanroy/springmvc/view/mustache/core/ModelAndMustacheView.java", "func_name": "ModelAndMustacheView.getPartials", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get current partials stored in view.\n\n@return Current partials.", "docstring_tokens": ["Get", "current", "partials", "stored", "in", "view", "."], "sha": "367004e7a99082984bfefb85c1b9c32e6392d3ed", "url": "https://github.com/mjeanroy/springmvc-mustache/blob/367004e7a99082984bfefb85c1b9c32e6392d3ed/src/main/java/com/github/mjeanroy/springmvc/view/mustache/core/ModelAndMustacheView.java#L129-L152", "partition": "valid"} +{"repo": "mjeanroy/springmvc-mustache", "path": "src/main/java/com/github/mjeanroy/springmvc/view/mustache/commons/NashornUtils.java", "func_name": "NashornUtils.getEngine", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get new nashorn engine.\n\n@param scripts List of scripts to evaluate.\n@return Nashorn Engine.", "docstring_tokens": ["Get", "new", "nashorn", "engine", "."], "sha": "367004e7a99082984bfefb85c1b9c32e6392d3ed", "url": "https://github.com/mjeanroy/springmvc-mustache/blob/367004e7a99082984bfefb85c1b9c32e6392d3ed/src/main/java/com/github/mjeanroy/springmvc/view/mustache/commons/NashornUtils.java#L59-L67", "partition": "valid"} +{"repo": "mjeanroy/springmvc-mustache", "path": "src/main/java/com/github/mjeanroy/springmvc/view/mustache/configuration/MustacheWebConfiguration.java", "func_name": "MustacheWebConfiguration.getLayoutMappings", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get mappings to use with resolvers.\n\n@return Layouts mappings", "docstring_tokens": ["Get", "mappings", "to", "use", "with", "resolvers", "."], "sha": "367004e7a99082984bfefb85c1b9c32e6392d3ed", "url": "https://github.com/mjeanroy/springmvc-mustache/blob/367004e7a99082984bfefb85c1b9c32e6392d3ed/src/main/java/com/github/mjeanroy/springmvc/view/mustache/configuration/MustacheWebConfiguration.java#L195-L221", "partition": "valid"} +{"repo": "mjeanroy/springmvc-mustache", "path": "src/main/java/com/github/mjeanroy/springmvc/view/mustache/commons/ClassUtils.java", "func_name": "ClassUtils.isPresent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check that a given class is available on\nclasspath.\n\n@param klass Class name.\n@return True if class is available, false otherwise.", "docstring_tokens": ["Check", "that", "a", "given", "class", "is", "available", "on", "classpath", "."], "sha": "367004e7a99082984bfefb85c1b9c32e6392d3ed", "url": "https://github.com/mjeanroy/springmvc-mustache/blob/367004e7a99082984bfefb85c1b9c32e6392d3ed/src/main/java/com/github/mjeanroy/springmvc/view/mustache/commons/ClassUtils.java#L48-L57", "partition": "valid"} +{"repo": "mjeanroy/springmvc-mustache", "path": "src/main/java/com/github/mjeanroy/springmvc/view/mustache/commons/ClassUtils.java", "func_name": "ClassUtils.getAnnotationValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get annotation method value.\n\n@param importingClassMetadata Metadata.\n@param annotationClass Annotation class to look for.\n@param name Name of method.\n@param defaultValue Default value if original value is null.\n@param Type of returned value.\n@return Annotation value, or default value if original value is null.", "docstring_tokens": ["Get", "annotation", "method", "value", "."], "sha": "367004e7a99082984bfefb85c1b9c32e6392d3ed", "url": "https://github.com/mjeanroy/springmvc-mustache/blob/367004e7a99082984bfefb85c1b9c32e6392d3ed/src/main/java/com/github/mjeanroy/springmvc/view/mustache/commons/ClassUtils.java#L69-L73", "partition": "valid"} +{"repo": "mjeanroy/springmvc-mustache", "path": "src/main/java/com/github/mjeanroy/springmvc/view/mustache/commons/IOUtils.java", "func_name": "IOUtils.getStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return an input stream from given name.\nName is searched into the classpath.\nName can contains ant style pattern.\n\n@param name Name.\n@return Input Stream.", "docstring_tokens": ["Return", "an", "input", "stream", "from", "given", "name", ".", "Name", "is", "searched", "into", "the", "classpath", ".", "Name", "can", "contains", "ant", "style", "pattern", "."], "sha": "367004e7a99082984bfefb85c1b9c32e6392d3ed", "url": "https://github.com/mjeanroy/springmvc-mustache/blob/367004e7a99082984bfefb85c1b9c32e6392d3ed/src/main/java/com/github/mjeanroy/springmvc/view/mustache/commons/IOUtils.java#L108-L118", "partition": "valid"} +{"repo": "mjeanroy/springmvc-mustache", "path": "src/main/java/com/github/mjeanroy/springmvc/view/mustache/commons/IOUtils.java", "func_name": "IOUtils.getFirstAvailableStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return an input stream from given names.\nFirst result returning a valid stream is returned.\nNames are searched into the classpath.\nNames can contains ant style pattern.\n\n@param names Names collection.\n@return Input Stream.\n@throws MustacheIOException If everything fail.", "docstring_tokens": ["Return", "an", "input", "stream", "from", "given", "names", ".", "First", "result", "returning", "a", "valid", "stream", "is", "returned", ".", "Names", "are", "searched", "into", "the", "classpath", ".", "Names", "can", "contains", "ant", "style", "pattern", "."], "sha": "367004e7a99082984bfefb85c1b9c32e6392d3ed", "url": "https://github.com/mjeanroy/springmvc-mustache/blob/367004e7a99082984bfefb85c1b9c32e6392d3ed/src/main/java/com/github/mjeanroy/springmvc/view/mustache/commons/IOUtils.java#L130-L145", "partition": "valid"} +{"repo": "mjeanroy/springmvc-mustache", "path": "src/main/java/com/github/mjeanroy/springmvc/view/mustache/nashorn/MustacheEngine.java", "func_name": "MustacheEngine.render", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Render template with given model object.\n\n@param template Template.\n@param model Model object.\n@return Rendered template.", "docstring_tokens": ["Render", "template", "with", "given", "model", "object", "."], "sha": "367004e7a99082984bfefb85c1b9c32e6392d3ed", "url": "https://github.com/mjeanroy/springmvc-mustache/blob/367004e7a99082984bfefb85c1b9c32e6392d3ed/src/main/java/com/github/mjeanroy/springmvc/view/mustache/nashorn/MustacheEngine.java#L128-L139", "partition": "valid"} +{"repo": "mjeanroy/springmvc-mustache", "path": "src/main/java/com/github/mjeanroy/springmvc/view/mustache/MustacheView.java", "func_name": "MustacheView.addAliases", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add partials mapping.\n\n@param aliases New aliases.", "docstring_tokens": ["Add", "partials", "mapping", "."], "sha": "367004e7a99082984bfefb85c1b9c32e6392d3ed", "url": "https://github.com/mjeanroy/springmvc-mustache/blob/367004e7a99082984bfefb85c1b9c32e6392d3ed/src/main/java/com/github/mjeanroy/springmvc/view/mustache/MustacheView.java#L90-L95", "partition": "valid"} +{"repo": "mjeanroy/springmvc-mustache", "path": "src/main/java/com/github/mjeanroy/springmvc/view/mustache/MustacheView.java", "func_name": "MustacheView.addAlias", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add alias mapping.\n\n@param key Partial key.\n@param value Partial name.", "docstring_tokens": ["Add", "alias", "mapping", "."], "sha": "367004e7a99082984bfefb85c1b9c32e6392d3ed", "url": "https://github.com/mjeanroy/springmvc-mustache/blob/367004e7a99082984bfefb85c1b9c32e6392d3ed/src/main/java/com/github/mjeanroy/springmvc/view/mustache/MustacheView.java#L103-L108", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosListenerManager.java", "func_name": "ChronosListenerManager.getListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets previously created ServiceConnector by its id.\n\n@param id an id of the saved ServiceConnector\n@return a restored ServiceConnector, or a new one, if there is no saved instance with a given\nid\n@see {@link ChronosListener#getId()}\n@see #createListener()", "docstring_tokens": ["Gets", "previously", "created", "ServiceConnector", "by", "its", "id", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosListenerManager.java#L60-L68", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/Chronos.java", "func_name": "Chronos.run", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs operation synchronously.\n\n@param operation Operation to be executed.\n@param class of the result, returned by the Operations' {@code run} method\n@return OperationResult which contains the result of the Operation, or the error, occurred\nduring the execution", "docstring_tokens": ["Runs", "operation", "synchronously", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/Chronos.java#L41-L45", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java", "func_name": "ChronosListener.isCallback", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if a method can be used as a callback to handle operation result.\n\n@param method a method to be checked\n@param resultClass an operation result class\n@param methodName a required method name\n@return {@code true} if method can be used as a callback; {@code false} otherwise", "docstring_tokens": ["Checks", "if", "a", "method", "can", "be", "used", "as", "a", "callback", "to", "handle", "operation", "result", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java#L76-L90", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java", "func_name": "ChronosListener.onResume", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method must be called by a bound GUI element when it passes its own onResume state.\n\n@param serviceListener a GUI element that wants to connect to Chronos via the\nServiceConnector. In fact, it could be any object, no matter it is an\nActivity, Fragment, or something else, but Chronos is designed to work\nwith GUI elements.\n@see #onPause()", "docstring_tokens": ["This", "method", "must", "be", "called", "by", "a", "bound", "GUI", "element", "when", "it", "passes", "its", "own", "onResume", "state", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java#L109-L129", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java", "func_name": "ChronosListener.onEventMainThread", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method is used to listening to results stream and operate with them. User should never\ncall this method manually.\n\n@param operationResult the result to process", "docstring_tokens": ["This", "method", "is", "used", "to", "listening", "to", "results", "stream", "and", "operate", "with", "them", ".", "User", "should", "never", "call", "this", "method", "manually", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java#L148-L175", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java", "func_name": "ChronosListener.invoke", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Launches an operation in background thread.\n\n@param operation an operation to be launched\n@param broadcastResult {@code true} if the result should be broadcasted, {@code false}\notherwise\n@return a unique launch id\n@see #invoke(ChronosOperation, String, boolean)\n@see #cancel(int, boolean)", "docstring_tokens": ["Launches", "an", "operation", "in", "background", "thread", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java#L187-L193", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java", "func_name": "ChronosListener.invoke", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Launches an operation in background thread. If operation, launched with the same tag from the\nsame ServiceConnector is running, new operation launch will not be triggered.\n\n@param operation an operation to be launched\n@param tag a pre-cache key of the launch\n@param broadcastResult {@code true} if the result should be broadcasted, {@code false}\notherwise\n@return a launch id, may be the same with the previous call of the method, if the operation\nwith the same tag is still running\n@see #invoke(ChronosOperation, boolean)\n@see #cancel(int, boolean)\n@see #cancel(String, boolean)", "docstring_tokens": ["Launches", "an", "operation", "in", "background", "thread", ".", "If", "operation", "launched", "with", "the", "same", "tag", "from", "the", "same", "ServiceConnector", "is", "running", "new", "operation", "launch", "will", "not", "be", "triggered", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java#L209-L222", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java", "func_name": "ChronosListener.cancel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Cancels operation launch by its id. May not physically kill the background thread, but it is\nguaranteed that the result of the operation will not be delivered to any ServiceConnector.\n\n@param id an id of the operation launch that should be cancelled\n@param mayInterrupt {@code true} if threads executing operations task should be interrupted;\notherwise, in-progress tasks are allowed to complete\n@return {@code false} if the task could not be cancelled, typically because it has already\ncompleted normally; {@code true} otherwise\n@see #invoke(ChronosOperation, boolean)\n@see #invoke(ChronosOperation, String, boolean)\n@see #cancel(String, boolean)\n@see Chronos#cancelAll(boolean)", "docstring_tokens": ["Cancels", "operation", "launch", "by", "its", "id", ".", "May", "not", "physically", "kill", "the", "background", "thread", "but", "it", "is", "guaranteed", "that", "the", "result", "of", "the", "operation", "will", "not", "be", "delivered", "to", "any", "ServiceConnector", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java#L238-L245", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java", "func_name": "ChronosListener.cancel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Cancels operation launch by its tag. May not physically kill the background thread, but it is\nguaranteed that the result of the operation will not be delivered to any ServiceConnector.\n\n@param tag a pre-cache key of the operation launch that should be cancelled\n@param mayInterrupt {@code true} if threads executing operations task should be interrupted;\notherwise, in-progress tasks are allowed to complete\n@return {@code false} if the task could not be cancelled, typically because it has already\ncompleted normally or there is no running operation with a given tag; {@code true} otherwise\n@see #invoke(ChronosOperation, boolean)\n@see #invoke(ChronosOperation, String, boolean)\n@see #cancel(int, boolean)\n@see Chronos#cancelAll(boolean)", "docstring_tokens": ["Cancels", "operation", "launch", "by", "its", "tag", ".", "May", "not", "physically", "kill", "the", "background", "thread", "but", "it", "is", "guaranteed", "that", "the", "result", "of", "the", "operation", "will", "not", "be", "delivered", "to", "any", "ServiceConnector", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java#L261-L269", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java", "func_name": "ChronosListener.isRunning", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if an operation with given launch tag is running.\n\n@param tag a pre-cache key of the operation launch\n@return {@code true} if the operation is running, {@code false} if it is not running, or\nthere was no operation launch with the tag at all", "docstring_tokens": ["Checks", "if", "an", "operation", "with", "given", "launch", "tag", "is", "running", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java#L289-L298", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java", "func_name": "ChronosListener.onOperationFinished", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A dispatcher method which decides what to do with an operation result.\n\n@param operationResult an operation result which needs to be dispatched", "docstring_tokens": ["A", "dispatcher", "method", "which", "decides", "what", "to", "do", "with", "an", "operation", "result", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java#L311-L323", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java", "func_name": "ChronosListener.storeResult", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Storing an operation result to use it later.\n\n@param operationDelivery an operation result to be stored\n@see #deliverResult(OperationDelivery)", "docstring_tokens": ["Storing", "an", "operation", "result", "to", "use", "it", "later", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java#L331-L334", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java", "func_name": "ChronosListener.deliverResult", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Delivers an operation result to the bound client.\n\n@param operationDelivery an operation result to be delivered\n@see #onResume(Object)\n@see #storeResult(OperationDelivery)", "docstring_tokens": ["Delivers", "an", "operation", "result", "to", "the", "bound", "client", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java#L343-L357", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java", "func_name": "ChronosListener.deliverResult", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call bound client methods to pass an operation result.\n\n@param operationResult an operation result to be delivered\n@param methodName a name of a method that will be called\n@param warnIfNoCallback {@code true} if a warning message should be posted to LogCat if there\nis no suitable method in the bound client; {@code false} otherwise", "docstring_tokens": ["Call", "bound", "client", "methods", "to", "pass", "an", "operation", "result", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java#L367-L401", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java", "func_name": "ChronosListener.logd", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Logs debug message.\n\n@param message \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0432 \u043b\u043e\u0433.\n@see #LOG_ENABLED", "docstring_tokens": ["Logs", "debug", "message", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosListener.java#L409-L413", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/RunningOperationStorage.java", "func_name": "RunningOperationStorage.cancel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Cancels running operation.\n\n@param id the unique id of operations' launch\n@param mayInterrupt {@code true} if thread executing operation task should be interrupted;\notherwise, in-progress tasks are allowed to complete\n@param removeOperation {@code true} if the operation should be marked as removed\n@return {@code false} if the task could not be cancelled, typically because it has already\ncompleted normally; {@code true} otherwise", "docstring_tokens": ["Cancels", "running", "operation", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/RunningOperationStorage.java#L48-L60", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/RunningOperationStorage.java", "func_name": "RunningOperationStorage.operationStarted", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stores the future as a running operation with a given runs' id.\n\n@param id the unique id of an operation launch\n@param future the object that represents a running operation", "docstring_tokens": ["Stores", "the", "future", "as", "a", "running", "operation", "with", "a", "given", "runs", "id", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/RunningOperationStorage.java#L68-L72", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/RunningOperationStorage.java", "func_name": "RunningOperationStorage.cancelAll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Cancels all running operations.\n\n@param mayInterrupt {@code true} if threads executing operations task should be interrupted;\notherwise, in-progress tasks are allowed to complete", "docstring_tokens": ["Cancels", "all", "running", "operations", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/RunningOperationStorage.java#L102-L108", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/RunningOperationStorage.java", "func_name": "RunningOperationStorage.isOperationCancelled", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if operation launch with given id was cancelled.\n\n@param id the unique id of operations' launch\n@return {@code true} if the operation was cancelled, {@code false} otherwise", "docstring_tokens": ["Checks", "if", "operation", "launch", "with", "given", "id", "was", "cancelled", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/RunningOperationStorage.java#L127-L130", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosService.java", "func_name": "ChronosService.silentRun", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs operation, handling all the exceptions that may ne thrown while running.\n\n@param operation an operation to be executed\n@param operationResult an empty result object to be filled with business-logic content\n@param class of the result, returned by the Operations' {@code run} method", "docstring_tokens": ["Runs", "operation", "handling", "all", "the", "exceptions", "that", "may", "ne", "thrown", "while", "running", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosService.java#L48-L56", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosService.java", "func_name": "ChronosService.createEmptyResult", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a template object for storing operations' run result.\n\n@param operation an operation to create a result for\n@param broadcastResult {@code true} if the result should be broadcasted, {@code false}\notherwise\n@param class of the result, returned by the Operations' {@code run} method\n@return an empty OperationResult without business-logic content", "docstring_tokens": ["Creates", "a", "template", "object", "for", "storing", "operations", "run", "result", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosService.java#L67-L86", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosService.java", "func_name": "ChronosService.runAsync", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs operation in background.\n\n@param operation an operation to be executed\n@param class of the result, returned by the Operations' {@code run} method\n@param broadcastResult {@code true} if the result should be broadcasted, {@code false}\notherwise\n@return the unique id of the launch", "docstring_tokens": ["Runs", "operation", "in", "background", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosService.java#L97-L116", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "chronos/src/main/java/com/redmadrobot/chronos/ChronosService.java", "func_name": "ChronosService.runSync", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs operation in the same thread.\n\n@param operation an operation to be executed\n@param class of the result, returned by the Operations' {@code run} method\n@param broadcastResult {@code true} if the result should be broadcasted, {@code false}\notherwise\n@return operations' result", "docstring_tokens": ["Runs", "operation", "in", "the", "same", "thread", "."], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/chronos/src/main/java/com/redmadrobot/chronos/ChronosService.java#L127-L136", "partition": "valid"} +{"repo": "RedMadRobot/Chronos", "path": "app/src/main/java/com/redmadrobot/chronos_sample/samples/DataLoadCancel.java", "func_name": "DataLoadCancel.onOperationFinished", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "cancelling in the place it happened", "docstring_tokens": ["cancelling", "in", "the", "place", "it", "happened"], "sha": "cf7fbcf6072b3508c45b253b79f19ed81304a76e", "url": "https://github.com/RedMadRobot/Chronos/blob/cf7fbcf6072b3508c45b253b79f19ed81304a76e/app/src/main/java/com/redmadrobot/chronos_sample/samples/DataLoadCancel.java#L77-L84", "partition": "valid"} +{"repo": "NitorCreations/willow", "path": "willow-eventhandler/src/main/java/com/nitorcreations/willow/eventhandler/Main.java", "func_name": "Main.main", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Subclass specific entry point.\n\n@param main The actual main class implementation to use.\n@param args The command line arguments.", "docstring_tokens": ["Subclass", "specific", "entry", "point", "."], "sha": "914911697426b5b95756a099de373438ffa12026", "url": "https://github.com/NitorCreations/willow/blob/914911697426b5b95756a099de373438ffa12026/willow-eventhandler/src/main/java/com/nitorcreations/willow/eventhandler/Main.java#L73-L75", "partition": "valid"} +{"repo": "NitorCreations/willow", "path": "willow-eventhandler/src/main/java/com/nitorcreations/willow/eventhandler/Main.java", "func_name": "Main.getModules", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the Guice modules to be used in injecting dependencies.\n\n@return The modules.", "docstring_tokens": ["Get", "the", "Guice", "modules", "to", "be", "used", "in", "injecting", "dependencies", "."], "sha": "914911697426b5b95756a099de373438ffa12026", "url": "https://github.com/NitorCreations/willow/blob/914911697426b5b95756a099de373438ffa12026/willow-eventhandler/src/main/java/com/nitorcreations/willow/eventhandler/Main.java#L91-L95", "partition": "valid"} +{"repo": "NitorCreations/willow", "path": "willow-eventhandler/src/main/java/com/nitorcreations/willow/eventhandler/Main.java", "func_name": "Main.doMain", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Actual main implementation.\n\n@param args The command line arguments. These should be URLs that point to the configuration file(s).", "docstring_tokens": ["Actual", "main", "implementation", "."], "sha": "914911697426b5b95756a099de373438ffa12026", "url": "https://github.com/NitorCreations/willow/blob/914911697426b5b95756a099de373438ffa12026/willow-eventhandler/src/main/java/com/nitorcreations/willow/eventhandler/Main.java#L111-L168", "partition": "valid"} +{"repo": "NitorCreations/willow", "path": "willow-utils/src/main/java/com/nitorcreations/willow/utils/LoggingOutputStream.java", "func_name": "LoggingOutputStream.checkLine", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if the end of the buffer contains a newline and if so, flushes the stream", "docstring_tokens": ["Checks", "if", "the", "end", "of", "the", "buffer", "contains", "a", "newline", "and", "if", "so", "flushes", "the", "stream"], "sha": "914911697426b5b95756a099de373438ffa12026", "url": "https://github.com/NitorCreations/willow/blob/914911697426b5b95756a099de373438ffa12026/willow-utils/src/main/java/com/nitorcreations/willow/utils/LoggingOutputStream.java#L172-L177", "partition": "valid"} +{"repo": "NitorCreations/willow", "path": "willow-eventhandler/src/main/java/com/nitorcreations/willow/eventhandler/EventPoller.java", "func_name": "EventPoller.initialize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initialize the event poller.\n\n@param eventHandlers The handlers for different event types.\n@param uri The web socket connection URI.", "docstring_tokens": ["Initialize", "the", "event", "poller", "."], "sha": "914911697426b5b95756a099de373438ffa12026", "url": "https://github.com/NitorCreations/willow/blob/914911697426b5b95756a099de373438ffa12026/willow-eventhandler/src/main/java/com/nitorcreations/willow/eventhandler/EventPoller.java#L56-L61", "partition": "valid"} +{"repo": "NitorCreations/willow", "path": "willow-deployer/src/main/java/com/nitorcreations/willow/deployer/statistics/AbstractJMXStatisticsSender.java", "func_name": "AbstractJMXStatisticsSender.getMBeanServerConnection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the MBean server connection to the child process.\n\n@return MBean server connection.", "docstring_tokens": ["Return", "the", "MBean", "server", "connection", "to", "the", "child", "process", "."], "sha": "914911697426b5b95756a099de373438ffa12026", "url": "https://github.com/NitorCreations/willow/blob/914911697426b5b95756a099de373438ffa12026/willow-deployer/src/main/java/com/nitorcreations/willow/deployer/statistics/AbstractJMXStatisticsSender.java#L42-L79", "partition": "valid"} +{"repo": "NitorCreations/willow", "path": "willow-deployer/src/main/java/com/nitorcreations/willow/deployer/statistics/AbstractJMXStatisticsSender.java", "func_name": "AbstractJMXStatisticsSender.closeMBeanServerConnection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Close the MBean server connection.", "docstring_tokens": ["Close", "the", "MBean", "server", "connection", "."], "sha": "914911697426b5b95756a099de373438ffa12026", "url": "https://github.com/NitorCreations/willow/blob/914911697426b5b95756a099de373438ffa12026/willow-deployer/src/main/java/com/nitorcreations/willow/deployer/statistics/AbstractJMXStatisticsSender.java#L84-L94", "partition": "valid"} +{"repo": "leonardoxh/FakeSearchView", "path": "FakeSearchView/app/src/main/java/com/github/leonardoxh/fakesearchview/FakeSearchView.java", "func_name": "FakeSearchView.init", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inflate the layout to this FrameLayout wrapper\n@param context for inflate views", "docstring_tokens": ["Inflate", "the", "layout", "to", "this", "FrameLayout", "wrapper"], "sha": "0973368a76b5d46dfcc718e565b1026cac7b15d5", "url": "https://github.com/leonardoxh/FakeSearchView/blob/0973368a76b5d46dfcc718e565b1026cac7b15d5/FakeSearchView/app/src/main/java/com/github/leonardoxh/fakesearchview/FakeSearchView.java#L121-L126", "partition": "valid"} +{"repo": "undera/cmdrunner", "path": "src/kg/apc/cmd/UniversalRunner.java", "func_name": "UniversalRunner.main", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The main program which actually runs JMeter.\n\n@param args the command line arguments", "docstring_tokens": ["The", "main", "program", "which", "actually", "runs", "JMeter", "."], "sha": "c9a8855e5d85dd2d231f91c7044efbaf95ca154a", "url": "https://github.com/undera/cmdrunner/blob/c9a8855e5d85dd2d231f91c7044efbaf95ca154a/src/kg/apc/cmd/UniversalRunner.java#L108-L131", "partition": "valid"} +{"repo": "brutusin/json-provider", "path": "src/main/java/org/brutusin/json/impl/JacksonSchema.java", "func_name": "JacksonSchema.getValidator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Lazy intialization of validator instance\n\n@return\n@throws ProcessingException", "docstring_tokens": ["Lazy", "intialization", "of", "validator", "instance"], "sha": "4f7745b3bd9acc591c9aaf18ac4608aabe52c450", "url": "https://github.com/brutusin/json-provider/blob/4f7745b3bd9acc591c9aaf18ac4608aabe52c450/src/main/java/org/brutusin/json/impl/JacksonSchema.java#L105-L116", "partition": "valid"} +{"repo": "skeleton-software-community/skeleton-generator", "path": "generator-root/generator-business-model/src/main/java/org/sklsft/generator/model/domain/database/Table.java", "func_name": "Table.getFindColumnList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "get the list of arguments used in find stored procedure\n\n@return", "docstring_tokens": ["get", "the", "list", "of", "arguments", "used", "in", "find", "stored", "procedure"], "sha": "77402ebb488e3f3903ed1d646d83cd67cc7be734", "url": "https://github.com/skeleton-software-community/skeleton-generator/blob/77402ebb488e3f3903ed1d646d83cd67cc7be734/generator-root/generator-business-model/src/main/java/org/sklsft/generator/model/domain/database/Table.java#L48-L73", "partition": "valid"} +{"repo": "skeleton-software-community/skeleton-generator", "path": "generator-root/generator-business-model/src/main/java/org/sklsft/generator/model/domain/database/Table.java", "func_name": "Table.getInsertColumnList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "get the list of arguments used in insert by code stored procedure\n\n@return", "docstring_tokens": ["get", "the", "list", "of", "arguments", "used", "in", "insert", "by", "code", "stored", "procedure"], "sha": "77402ebb488e3f3903ed1d646d83cd67cc7be734", "url": "https://github.com/skeleton-software-community/skeleton-generator/blob/77402ebb488e3f3903ed1d646d83cd67cc7be734/generator-root/generator-business-model/src/main/java/org/sklsft/generator/model/domain/database/Table.java#L80-L105", "partition": "valid"} +{"repo": "skeleton-software-community/skeleton-generator", "path": "generator-root/generator-business-model/src/main/java/org/sklsft/generator/model/metadata/ProjectMetaData.java", "func_name": "ProjectMetaData.getAllPackages", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "recursive method to get all packages including children packages", "docstring_tokens": ["recursive", "method", "to", "get", "all", "packages", "including", "children", "packages"], "sha": "77402ebb488e3f3903ed1d646d83cd67cc7be734", "url": "https://github.com/skeleton-software-community/skeleton-generator/blob/77402ebb488e3f3903ed1d646d83cd67cc7be734/generator-root/generator-business-model/src/main/java/org/sklsft/generator/model/metadata/ProjectMetaData.java#L150-L160", "partition": "valid"} +{"repo": "skeleton-software-community/skeleton-generator", "path": "generator-root/generator-skeletons/src/main/java/org/sklsft/generator/skeletons/commands/impl/SingleFileWriteCommand.java", "func_name": "SingleFileWriteCommand.getNotOverridableContent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "extract non generated content from a file to keep it after next generation\n@return\n@throws IOException", "docstring_tokens": ["extract", "non", "generated", "content", "from", "a", "file", "to", "keep", "it", "after", "next", "generation"], "sha": "77402ebb488e3f3903ed1d646d83cd67cc7be734", "url": "https://github.com/skeleton-software-community/skeleton-generator/blob/77402ebb488e3f3903ed1d646d83cd67cc7be734/generator-root/generator-skeletons/src/main/java/org/sklsft/generator/skeletons/commands/impl/SingleFileWriteCommand.java#L117-L138", "partition": "valid"} +{"repo": "skeleton-software-community/skeleton-generator", "path": "generator-root/generator-skeletons/src/main/java/org/sklsft/generator/skeletons/commands/impl/SingleFileWriteCommand.java", "func_name": "SingleFileWriteCommand.writeNotOverridableContent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "appends non generated content to be kept at next generation\n@throws IOException", "docstring_tokens": ["appends", "non", "generated", "content", "to", "be", "kept", "at", "next", "generation"], "sha": "77402ebb488e3f3903ed1d646d83cd67cc7be734", "url": "https://github.com/skeleton-software-community/skeleton-generator/blob/77402ebb488e3f3903ed1d646d83cd67cc7be734/generator-root/generator-skeletons/src/main/java/org/sklsft/generator/skeletons/commands/impl/SingleFileWriteCommand.java#L144-L151", "partition": "valid"} +{"repo": "skeleton-software-community/skeleton-generator", "path": "generator-root/generator-business-model/src/main/java/org/sklsft/generator/model/domain/Model.java", "func_name": "Model.findTable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "run through all the tables until it is found\n@param tableName\n@return\n@throws TableNotFoundException if no table with the corresponding name is found", "docstring_tokens": ["run", "through", "all", "the", "tables", "until", "it", "is", "found"], "sha": "77402ebb488e3f3903ed1d646d83cd67cc7be734", "url": "https://github.com/skeleton-software-community/skeleton-generator/blob/77402ebb488e3f3903ed1d646d83cd67cc7be734/generator-root/generator-business-model/src/main/java/org/sklsft/generator/model/domain/Model.java#L196-L213", "partition": "valid"} +{"repo": "skeleton-software-community/skeleton-generator", "path": "generator-root/generator-business-model/src/main/java/org/sklsft/generator/model/domain/Model.java", "func_name": "Model.findBean", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "run through all the beans until it is found\n@param tableOriginalName the original table name\n@return\n@throws BeanNotFoundException if no bean which associated table has the corresponding name", "docstring_tokens": ["run", "through", "all", "the", "beans", "until", "it", "is", "found"], "sha": "77402ebb488e3f3903ed1d646d83cd67cc7be734", "url": "https://github.com/skeleton-software-community/skeleton-generator/blob/77402ebb488e3f3903ed1d646d83cd67cc7be734/generator-root/generator-business-model/src/main/java/org/sklsft/generator/model/domain/Model.java#L222-L231", "partition": "valid"} +{"repo": "skeleton-software-community/skeleton-generator", "path": "generator-root/generator-business-component/src/main/java/org/sklsft/generator/bc/metadata/factory/impl/JavaViewPropertiesFactory.java", "func_name": "JavaViewPropertiesFactory.getReferenceProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "get the list of properties that will be used in bean views to show\nreferences to other beans\n\n@return", "docstring_tokens": ["get", "the", "list", "of", "properties", "that", "will", "be", "used", "in", "bean", "views", "to", "show", "references", "to", "other", "beans"], "sha": "77402ebb488e3f3903ed1d646d83cd67cc7be734", "url": "https://github.com/skeleton-software-community/skeleton-generator/blob/77402ebb488e3f3903ed1d646d83cd67cc7be734/generator-root/generator-business-component/src/main/java/org/sklsft/generator/bc/metadata/factory/impl/JavaViewPropertiesFactory.java#L114-L124", "partition": "valid"} +{"repo": "skeleton-software-community/skeleton-generator", "path": "generator-root/generator-business-component/src/main/java/org/sklsft/generator/bc/metadata/factory/impl/JavaViewPropertiesFactory.java", "func_name": "JavaViewPropertiesFactory.getVisibleProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "get the list of properties that will be available in a basic view bean\n\n@return", "docstring_tokens": ["get", "the", "list", "of", "properties", "that", "will", "be", "available", "in", "a", "basic", "view", "bean"], "sha": "77402ebb488e3f3903ed1d646d83cd67cc7be734", "url": "https://github.com/skeleton-software-community/skeleton-generator/blob/77402ebb488e3f3903ed1d646d83cd67cc7be734/generator-root/generator-business-component/src/main/java/org/sklsft/generator/bc/metadata/factory/impl/JavaViewPropertiesFactory.java#L185-L188", "partition": "valid"} +{"repo": "javydreamercsw/validation-manager", "path": "VM-Core/src/main/java/com/validation/manager/core/history/Versionable.java", "func_name": "Versionable.update", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Increase minor is done by default when updating a record.\n\n@param target Target of the update.\n@param source Source of the update", "docstring_tokens": ["Increase", "minor", "is", "done", "by", "default", "when", "updating", "a", "record", "."], "sha": "ae7d74f514c8fd5a841c5d459cd1cc5445b51630", "url": "https://github.com/javydreamercsw/validation-manager/blob/ae7d74f514c8fd5a841c5d459cd1cc5445b51630/VM-Core/src/main/java/com/validation/manager/core/history/Versionable.java#L197-L212", "partition": "valid"} +{"repo": "javydreamercsw/validation-manager", "path": "VM-Core/src/main/java/com/validation/manager/core/history/Versionable.java", "func_name": "Versionable.addHistory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add history to this entity.\n\n@param history History to add.", "docstring_tokens": ["Add", "history", "to", "this", "entity", "."], "sha": "ae7d74f514c8fd5a841c5d459cd1cc5445b51630", "url": "https://github.com/javydreamercsw/validation-manager/blob/ae7d74f514c8fd5a841c5d459cd1cc5445b51630/VM-Core/src/main/java/com/validation/manager/core/history/Versionable.java#L263-L268", "partition": "valid"} +{"repo": "javydreamercsw/validation-manager", "path": "VM-Core/src/main/java/com/validation/manager/core/server/JPAEclipseLinkSessionCustomizer.java", "func_name": "JPAEclipseLinkSessionCustomizer.customize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a dataSource connection and set it on the session with\nlookupType=STRING_LOOKUP\n\n@param session Session\n@throws java.lang.Exception If an error occurs.", "docstring_tokens": ["Get", "a", "dataSource", "connection", "and", "set", "it", "on", "the", "session", "with", "lookupType", "=", "STRING_LOOKUP"], "sha": "ae7d74f514c8fd5a841c5d459cd1cc5445b51630", "url": "https://github.com/javydreamercsw/validation-manager/blob/ae7d74f514c8fd5a841c5d459cd1cc5445b51630/VM-Core/src/main/java/com/validation/manager/core/server/JPAEclipseLinkSessionCustomizer.java#L49-L83", "partition": "valid"} +{"repo": "javydreamercsw/validation-manager", "path": "VM-Core/src/main/java/com/validation/manager/core/server/core/RequirementSpecServer.java", "func_name": "RequirementSpecServer.addSpecNode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a node to this spec.\n\nThis is equivalent to a section in a document.\n\nAlthough database might allow a requirement being on different nodes,\nthis constraint is imposed via software.\n\n@param name name of new node\n@param description description of node\n@param scope scope of node\n@return Created node.\n@throws Exception if errors creating the node occur", "docstring_tokens": ["Add", "a", "node", "to", "this", "spec", "."], "sha": "ae7d74f514c8fd5a841c5d459cd1cc5445b51630", "url": "https://github.com/javydreamercsw/validation-manager/blob/ae7d74f514c8fd5a841c5d459cd1cc5445b51630/VM-Core/src/main/java/com/validation/manager/core/server/core/RequirementSpecServer.java#L72-L86", "partition": "valid"} +{"repo": "javydreamercsw/validation-manager", "path": "VM-Core/src/main/java/com/validation/manager/core/server/core/VMIdServer.java", "func_name": "VMIdServer.write2DB", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "write to db", "docstring_tokens": ["write", "to", "db"], "sha": "ae7d74f514c8fd5a841c5d459cd1cc5445b51630", "url": "https://github.com/javydreamercsw/validation-manager/blob/ae7d74f514c8fd5a841c5d459cd1cc5445b51630/VM-Core/src/main/java/com/validation/manager/core/server/core/VMIdServer.java#L50-L73", "partition": "valid"} +{"repo": "javydreamercsw/validation-manager", "path": "VM-Core/src/main/java/com/validation/manager/core/server/core/IssueTypeServer.java", "func_name": "IssueTypeServer.getType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get an Issue Type by name.\n\n@param typename name to search for\n@return Issue Type for the specified name or null if not found.", "docstring_tokens": ["Get", "an", "Issue", "Type", "by", "name", "."], "sha": "ae7d74f514c8fd5a841c5d459cd1cc5445b51630", "url": "https://github.com/javydreamercsw/validation-manager/blob/ae7d74f514c8fd5a841c5d459cd1cc5445b51630/VM-Core/src/main/java/com/validation/manager/core/server/core/IssueTypeServer.java#L81-L91", "partition": "valid"} +{"repo": "javydreamercsw/validation-manager", "path": "VM-Core/src/main/java/com/validation/manager/core/server/core/VMSettingServer.java", "func_name": "VMSettingServer.getSetting", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get setting from database\n\n@param s Setting name to retrieve\n@return Setting with the specified name.", "docstring_tokens": ["Get", "setting", "from", "database"], "sha": "ae7d74f514c8fd5a841c5d459cd1cc5445b51630", "url": "https://github.com/javydreamercsw/validation-manager/blob/ae7d74f514c8fd5a841c5d459cd1cc5445b51630/VM-Core/src/main/java/com/validation/manager/core/server/core/VMSettingServer.java#L64-L75", "partition": "valid"} +{"repo": "javydreamercsw/validation-manager", "path": "VM-Core/src/main/java/com/validation/manager/core/server/core/DataEntryServer.java", "func_name": "DataEntryServer.getStringField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a default string field\n\n@param name Field name\n@param expected Expected result.\n@param matchCase True if answer must match the case of the expected\nresult. False otherwise.\n@return DataEntry. The entry is not persisted into the database yet.", "docstring_tokens": ["Create", "a", "default", "string", "field"], "sha": "ae7d74f514c8fd5a841c5d459cd1cc5445b51630", "url": "https://github.com/javydreamercsw/validation-manager/blob/ae7d74f514c8fd5a841c5d459cd1cc5445b51630/VM-Core/src/main/java/com/validation/manager/core/server/core/DataEntryServer.java#L111-L125", "partition": "valid"} +{"repo": "javydreamercsw/validation-manager", "path": "VM-Core/src/main/java/com/validation/manager/core/server/core/DataEntryServer.java", "func_name": "DataEntryServer.getBooleanField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a boolean field\n\n@param name Field name\n@return DataEntry. The entry is not persisted into the database yet.", "docstring_tokens": ["Create", "a", "boolean", "field"], "sha": "ae7d74f514c8fd5a841c5d459cd1cc5445b51630", "url": "https://github.com/javydreamercsw/validation-manager/blob/ae7d74f514c8fd5a841c5d459cd1cc5445b51630/VM-Core/src/main/java/com/validation/manager/core/server/core/DataEntryServer.java#L133-L140", "partition": "valid"} +{"repo": "javydreamercsw/validation-manager", "path": "VM-Core/src/main/java/com/validation/manager/core/server/core/DataEntryServer.java", "func_name": "DataEntryServer.getNumericField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a numeric field.\n\n@param name Field name\n@param min Minimum value. Set as null for no limit.\n@param max Maximum value. Set as null for no limit.\n@return DataEntry. The entry is not persisted into the database yet.", "docstring_tokens": ["Create", "a", "numeric", "field", "."], "sha": "ae7d74f514c8fd5a841c5d459cd1cc5445b51630", "url": "https://github.com/javydreamercsw/validation-manager/blob/ae7d74f514c8fd5a841c5d459cd1cc5445b51630/VM-Core/src/main/java/com/validation/manager/core/server/core/DataEntryServer.java#L183-L200", "partition": "valid"} +{"repo": "javydreamercsw/validation-manager", "path": "Validation-Manager-Web/src/main/java/net/sourceforge/javydreamercsw/validation/manager/web/workflow/WorkflowViewer.java", "func_name": "WorkflowViewer.displayWorkflow", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create workflow from database\n\n@param w workflow to create from", "docstring_tokens": ["Create", "workflow", "from", "database"], "sha": "ae7d74f514c8fd5a841c5d459cd1cc5445b51630", "url": "https://github.com/javydreamercsw/validation-manager/blob/ae7d74f514c8fd5a841c5d459cd1cc5445b51630/Validation-Manager-Web/src/main/java/net/sourceforge/javydreamercsw/validation/manager/web/workflow/WorkflowViewer.java#L285-L311", "partition": "valid"} +{"repo": "javydreamercsw/validation-manager", "path": "Validation-Manager-Web/src/main/java/net/sourceforge/javydreamercsw/validation/manager/web/workflow/WorkflowViewer.java", "func_name": "WorkflowViewer.refreshWorkflow", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recreate graph with the edited values", "docstring_tokens": ["Recreate", "graph", "with", "the", "edited", "values"], "sha": "ae7d74f514c8fd5a841c5d459cd1cc5445b51630", "url": "https://github.com/javydreamercsw/validation-manager/blob/ae7d74f514c8fd5a841c5d459cd1cc5445b51630/Validation-Manager-Web/src/main/java/net/sourceforge/javydreamercsw/validation/manager/web/workflow/WorkflowViewer.java#L316-L328", "partition": "valid"} +{"repo": "javydreamercsw/validation-manager", "path": "VM-Core/src/main/java/com/validation/manager/core/VaadinUtils.java", "func_name": "VaadinUtils.walkComponentTree", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "recursively walk the Component true", "docstring_tokens": ["recursively", "walk", "the", "Component", "true"], "sha": "ae7d74f514c8fd5a841c5d459cd1cc5445b51630", "url": "https://github.com/javydreamercsw/validation-manager/blob/ae7d74f514c8fd5a841c5d459cd1cc5445b51630/VM-Core/src/main/java/com/validation/manager/core/VaadinUtils.java#L166-L173", "partition": "valid"} +{"repo": "javydreamercsw/validation-manager", "path": "Validation-Manager-Web/src/main/java/net/sourceforge/javydreamercsw/validation/manager/web/importer/FileUploader.java", "func_name": "FileUploader.receiveUpload", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Callback method to begin receiving the upload.", "docstring_tokens": ["Callback", "method", "to", "begin", "receiving", "the", "upload", "."], "sha": "ae7d74f514c8fd5a841c5d459cd1cc5445b51630", "url": "https://github.com/javydreamercsw/validation-manager/blob/ae7d74f514c8fd5a841c5d459cd1cc5445b51630/Validation-Manager-Web/src/main/java/net/sourceforge/javydreamercsw/validation/manager/web/importer/FileUploader.java#L38-L57", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/PersonDetails.java", "func_name": "PersonDetails.getAddressRisk", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the risk of this particular address.\n\n@return the risk factor", "docstring_tokens": ["Gets", "the", "risk", "of", "this", "particular", "address", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/PersonDetails.java#L50-L56", "partition": "valid"} +{"repo": "buschmais/jqa-plugin-common", "path": "src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/AbstractFileResolver.java", "func_name": "AbstractFileResolver.toFileDescriptor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Takes an optional descriptor and transforms it to file descriptor.\n\n@param descriptor\nThe descriptor, if null a new descriptor is created.\n@param type\nThe required type.\n@param path\nThe path (to set as file name).\n@param context\nThe scanner context.\n@param \nThe required type.\n@return The file descriptor.\n@deprecated migrate to\n{@link #getOrCreateAs(String, Class, Function, ScannerContext)}.", "docstring_tokens": ["Takes", "an", "optional", "descriptor", "and", "transforms", "it", "to", "file", "descriptor", "."], "sha": "061e98f8262dffedd89b1d81736ef0aa8879b4f5", "url": "https://github.com/buschmais/jqa-plugin-common/blob/061e98f8262dffedd89b1d81736ef0aa8879b4f5/src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/AbstractFileResolver.java#L43-L51", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/error/BlockscoreError.java", "func_name": "BlockscoreError.getBlockscoreError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts a Retrofit Error into a Blockscore Error.\n\n@param cause the Retrofit error to convert\n@return the Blockscore Error", "docstring_tokens": ["Converts", "a", "Retrofit", "Error", "into", "a", "Blockscore", "Error", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/error/BlockscoreError.java#L22-L30", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/QuestionSet.java", "func_name": "QuestionSet.score", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Scores a question set.\n\n@param answers the answers to the QuestionSet", "docstring_tokens": ["Scores", "a", "question", "set", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/QuestionSet.java#L40-L45", "partition": "valid"} +{"repo": "buschmais/jqa-plugin-common", "path": "src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/MD5DigestDelegate.java", "func_name": "MD5DigestDelegate.digest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculate the MD5 hash sum for the given input stream using the given\noperation.\n\n@param stream\nThe stream.\n@param digestOperation\nThe operation.\n@param \nThe MD5 descriptor type.\n@return The MD5 descriptor.\n@throws IOException\nIf reading the stream fails.", "docstring_tokens": ["Calculate", "the", "MD5", "hash", "sum", "for", "the", "given", "input", "stream", "using", "the", "given", "operation", "."], "sha": "061e98f8262dffedd89b1d81736ef0aa8879b4f5", "url": "https://github.com/buschmais/jqa-plugin-common/blob/061e98f8262dffedd89b1d81736ef0aa8879b4f5/src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/MD5DigestDelegate.java#L77-L83", "partition": "valid"} +{"repo": "buschmais/jqa-plugin-common", "path": "src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/filesystem/FilePatternMatcher.java", "func_name": "FilePatternMatcher.accepts", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines if the given path matches the configured include and exclude\npatterns.\n\nNOTE: The include pattern is evaluated before the exclude pattern.\n\n@param path\nThe path.\n@return true if the path matches.", "docstring_tokens": ["Determines", "if", "the", "given", "path", "matches", "the", "configured", "include", "and", "exclude", "patterns", "."], "sha": "061e98f8262dffedd89b1d81736ef0aa8879b4f5", "url": "https://github.com/buschmais/jqa-plugin-common/blob/061e98f8262dffedd89b1d81736ef0aa8879b4f5/src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/filesystem/FilePatternMatcher.java#L36-L47", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/AnswerSet.java", "func_name": "AnswerSet.addAnswer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds an answer to a question to the AnswerSet.\n\n@param questionId the id of the question to be answered\n@param answerId the id of the answer selected", "docstring_tokens": ["Adds", "an", "answer", "to", "a", "question", "to", "the", "AnswerSet", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/AnswerSet.java#L26-L29", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/WatchlistHit.java", "func_name": "WatchlistHit.getMatchingInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a list of elements in your request that match this watchlist hit.\n\n@return an array of strings containing the matching info", "docstring_tokens": ["Gets", "a", "list", "of", "elements", "in", "your", "request", "that", "match", "this", "watchlist", "hit", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/WatchlistHit.java#L133-L140", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/WatchlistHit.java", "func_name": "WatchlistHit.getAddress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the address of the candidate.\n\n@return the address", "docstring_tokens": ["Gets", "the", "address", "of", "the", "candidate", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/WatchlistHit.java#L240-L248", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/Person.java", "func_name": "Person.createQuestionSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a question set with a set time limit in seconds.\n\n@param timeLimit the time limit\n@return the new question set", "docstring_tokens": ["Creates", "a", "question", "set", "with", "a", "set", "time", "limit", "in", "seconds", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/Person.java#L138-L146", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/Person.java", "func_name": "Person.retrieveQuestionSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve a question set you have created.\n\n@param questionSetId Question set ID\n@return the retrieved question set", "docstring_tokens": ["Retrieve", "a", "question", "set", "you", "have", "created", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/Person.java#L154-L158", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/Person.java", "func_name": "Person.getDateOfBirth", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the date of birth for this individual.\n\n@return the date of birth", "docstring_tokens": ["Gets", "the", "date", "of", "birth", "for", "this", "individual", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/Person.java#L215-L219", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/Person.java", "func_name": "Person.getAddress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the address for this individual.\n\n@return the address", "docstring_tokens": ["Gets", "the", "address", "for", "this", "individual", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/Person.java#L226-L235", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/Company.java", "func_name": "Company.getIncorporationDate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the date of incorporation.\n\n@return the incorporation date", "docstring_tokens": ["Gets", "the", "date", "of", "incorporation", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/Company.java#L175-L183", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/Candidate.java", "func_name": "Candidate.getRevisionHistory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a complete revision history of a candidate's edits. This allows you to maintain a full\naudit trail of when and how you update a client's profile over time. The latest revision is\npresented at the top of the list, and the original is at the end of the list.\n@return the list of candidates", "docstring_tokens": ["Returns", "a", "complete", "revision", "history", "of", "a", "candidate", "s", "edits", ".", "This", "allows", "you", "to", "maintain", "a", "full", "audit", "trail", "of", "when", "and", "how", "you", "update", "a", "client", "s", "profile", "over", "time", ".", "The", "latest", "revision", "is", "presented", "at", "the", "top", "of", "the", "list", "and", "the", "original", "is", "at", "the", "end", "of", "the", "list", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/Candidate.java#L104-L112", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/Candidate.java", "func_name": "Candidate.searchWatchlists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Performs a watchlist search for this candidate.\n\n@param entityType the type of entity\n@param similarityThreshold the accepted threshold of similarity\n@return the paginated watchlist hit results", "docstring_tokens": ["Performs", "a", "watchlist", "search", "for", "this", "candidate", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/Candidate.java#L161-L177", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/Candidate.java", "func_name": "Candidate.setDateOfBirth", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the date of birth of your candidate.\n\n@param dateOfBirth the date of birth\n@return this", "docstring_tokens": ["Set", "the", "date", "of", "birth", "of", "your", "candidate", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/Candidate.java#L257-L266", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/Candidate.java", "func_name": "Candidate.setAddress", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the primary street address for this person.\n\n@param address the primary street address\n@return this", "docstring_tokens": ["Sets", "the", "primary", "street", "address", "for", "this", "person", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/Candidate.java#L274-L282", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/net/BlockscoreApiClient.java", "func_name": "BlockscoreApiClient.retrievePerson", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a single person exactly as it was when you created it.\nThis route is useful for auditing purposes as you can provide proof that a verification took place\nalong with all of its associated data.\n\n@param id ID of Person.\n@return the person, not null", "docstring_tokens": ["Gets", "a", "single", "person", "exactly", "as", "it", "was", "when", "you", "created", "it", ".", "This", "route", "is", "useful", "for", "auditing", "purposes", "as", "you", "can", "provide", "proof", "that", "a", "verification", "took", "place", "along", "with", "all", "of", "its", "associated", "data", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/net/BlockscoreApiClient.java#L70-L75", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/net/BlockscoreApiClient.java", "func_name": "BlockscoreApiClient.retrieveCandidate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves a candidate.\n\n@param id ID of the candidate.\n@return the candidate, not null", "docstring_tokens": ["Retrieves", "a", "candidate", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/net/BlockscoreApiClient.java#L124-L129", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/net/BlockscoreApiClient.java", "func_name": "BlockscoreApiClient.getEncodedAuthorization", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encodes the API key for Basic authentication.\n\n@return the API key with Base 64 encoding", "docstring_tokens": ["Encodes", "the", "API", "key", "for", "Basic", "authentication", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/net/BlockscoreApiClient.java#L153-L160", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/BirthRange.java", "func_name": "BirthRange.getDateOfBirthEnd", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the end of the date of birth range.\n\n@return the end of the date of birth range, may be null", "docstring_tokens": ["Returns", "the", "end", "of", "the", "date", "of", "birth", "range", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/BirthRange.java#L54-L62", "partition": "valid"} +{"repo": "buschmais/jqa-plugin-common", "path": "src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/AbstractScannerPlugin.java", "func_name": "AbstractScannerPlugin.getTypeParameter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines the type parameter for a generic super class.\n\n@param expectedSuperClass\nThe generic super class.\n@param genericTypeParameterIndex\nThe index, e.g. 0 for the first.\n@return The type parameter.", "docstring_tokens": ["Determines", "the", "type", "parameter", "for", "a", "generic", "super", "class", "."], "sha": "061e98f8262dffedd89b1d81736ef0aa8879b4f5", "url": "https://github.com/buschmais/jqa-plugin-common/blob/061e98f8262dffedd89b1d81736ef0aa8879b4f5/src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/AbstractScannerPlugin.java#L58-L69", "partition": "valid"} +{"repo": "buschmais/jqa-plugin-common", "path": "src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/AbstractScannerPlugin.java", "func_name": "AbstractScannerPlugin.getStringProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a property as string.\n\n@param name\nThe name.\n@param defaultValue\nThe default value.\n@return The value.", "docstring_tokens": ["Get", "a", "property", "as", "string", "."], "sha": "061e98f8262dffedd89b1d81736ef0aa8879b4f5", "url": "https://github.com/buschmais/jqa-plugin-common/blob/061e98f8262dffedd89b1d81736ef0aa8879b4f5/src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/AbstractScannerPlugin.java#L104-L107", "partition": "valid"} +{"repo": "buschmais/jqa-plugin-common", "path": "src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/AbstractScannerPlugin.java", "func_name": "AbstractScannerPlugin.getBooleanProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a property as boolean.\n\n@param name\nThe name.\n@param defaultValue\nThe default value.\n@return The value.", "docstring_tokens": ["Get", "a", "property", "as", "boolean", "."], "sha": "061e98f8262dffedd89b1d81736ef0aa8879b4f5", "url": "https://github.com/buschmais/jqa-plugin-common/blob/061e98f8262dffedd89b1d81736ef0aa8879b4f5/src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/AbstractScannerPlugin.java#L118-L121", "partition": "valid"} +{"repo": "buschmais/jqa-plugin-common", "path": "src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/AbstractScannerPlugin.java", "func_name": "AbstractScannerPlugin.getDirectoryPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the relative path of a file within a directory.\n\n@param directory\nThe directory.\n@param entry\nThe file.\n@return The relative path.", "docstring_tokens": ["Return", "the", "relative", "path", "of", "a", "file", "within", "a", "directory", "."], "sha": "061e98f8262dffedd89b1d81736ef0aa8879b4f5", "url": "https://github.com/buschmais/jqa-plugin-common/blob/061e98f8262dffedd89b1d81736ef0aa8879b4f5/src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/AbstractScannerPlugin.java#L141-L151", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/error/RequestError.java", "func_name": "RequestError.getErrorType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the error type.\n@return the error type", "docstring_tokens": ["Gets", "the", "error", "type", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/error/RequestError.java#L49-L56", "partition": "valid"} +{"repo": "BlockScore/blockscore-java", "path": "src/main/java/com/blockscore/models/error/RequestError.java", "func_name": "RequestError.getValidationErrorCode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the validation error type.\n\n@return the validation error type", "docstring_tokens": ["Gets", "the", "validation", "error", "type", "."], "sha": "707124800f0363ac8e597e30aa27dbe181425567", "url": "https://github.com/BlockScore/blockscore-java/blob/707124800f0363ac8e597e30aa27dbe181425567/src/main/java/com/blockscore/models/error/RequestError.java#L63-L70", "partition": "valid"} +{"repo": "buschmais/jqa-plugin-common", "path": "src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/ContainerFileResolver.java", "func_name": "ContainerFileResolver.flush", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Flush the caches to the store.", "docstring_tokens": ["Flush", "the", "caches", "to", "the", "store", "."], "sha": "061e98f8262dffedd89b1d81736ef0aa8879b4f5", "url": "https://github.com/buschmais/jqa-plugin-common/blob/061e98f8262dffedd89b1d81736ef0aa8879b4f5/src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/ContainerFileResolver.java#L51-L55", "partition": "valid"} +{"repo": "buschmais/jqa-plugin-common", "path": "src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/ContainerFileResolver.java", "func_name": "ContainerFileResolver.sync", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sync the given target collection with the new state from the cache map.\n\n@param target The target collection.\n@param after The new state to sync to.", "docstring_tokens": ["Sync", "the", "given", "target", "collection", "with", "the", "new", "state", "from", "the", "cache", "map", "."], "sha": "061e98f8262dffedd89b1d81736ef0aa8879b4f5", "url": "https://github.com/buschmais/jqa-plugin-common/blob/061e98f8262dffedd89b1d81736ef0aa8879b4f5/src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/ContainerFileResolver.java#L63-L79", "partition": "valid"} +{"repo": "buschmais/jqa-plugin-common", "path": "src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/ContainerFileResolver.java", "func_name": "ContainerFileResolver.getCache", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates cache map from the given collection of file descriptors.\n\n@param fileDescriptors The collection of file descriptors.\n@return The cache map.", "docstring_tokens": ["Creates", "cache", "map", "from", "the", "given", "collection", "of", "file", "descriptors", "."], "sha": "061e98f8262dffedd89b1d81736ef0aa8879b4f5", "url": "https://github.com/buschmais/jqa-plugin-common/blob/061e98f8262dffedd89b1d81736ef0aa8879b4f5/src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/ContainerFileResolver.java#L87-L93", "partition": "valid"} +{"repo": "buschmais/jqa-plugin-common", "path": "src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/ContainerFileResolver.java", "func_name": "ContainerFileResolver.createHierarchy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Build the hierarchy of the container entries, i.e. add contains relations\nfrom containers to their children.", "docstring_tokens": ["Build", "the", "hierarchy", "of", "the", "container", "entries", "i", ".", "e", ".", "add", "contains", "relations", "from", "containers", "to", "their", "children", "."], "sha": "061e98f8262dffedd89b1d81736ef0aa8879b4f5", "url": "https://github.com/buschmais/jqa-plugin-common/blob/061e98f8262dffedd89b1d81736ef0aa8879b4f5/src/main/java/com/buschmais/jqassistant/plugin/common/api/scanner/ContainerFileResolver.java#L99-L112", "partition": "valid"} +{"repo": "groupon/jesos", "path": "src/main/java/com/groupon/mesos/util/NetworkUtil.java", "func_name": "NetworkUtil.findUnusedPort", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find an unused port.", "docstring_tokens": ["Find", "an", "unused", "port", "."], "sha": "dde47abdd2b7a7d32d098256a86f329a31f5c3bd", "url": "https://github.com/groupon/jesos/blob/dde47abdd2b7a7d32d098256a86f329a31f5c3bd/src/main/java/com/groupon/mesos/util/NetworkUtil.java#L38-L48", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/request/EFapsRequestParametersAdapter.java", "func_name": "EFapsRequestParametersAdapter.getParameterValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns single value for parameter with specified name. This method always returns non-null\nresult even if the parameter does not exist.\n\n@param _name parameter name\n@return {@link StringValue} wrapping the actual value", "docstring_tokens": ["Returns", "single", "value", "for", "parameter", "with", "specified", "name", ".", "This", "method", "always", "returns", "non", "-", "null", "result", "even", "if", "the", "parameter", "does", "not", "exist", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/request/EFapsRequestParametersAdapter.java#L90-L96", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/request/EFapsRequestParametersAdapter.java", "func_name": "EFapsRequestParametersAdapter.setParameterValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the values for given parameter.\n\n@param _name parameter name\n@param _value values", "docstring_tokens": ["Sets", "the", "values", "for", "given", "parameter", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/request/EFapsRequestParametersAdapter.java#L119-L129", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/request/EFapsRequestParametersAdapter.java", "func_name": "EFapsRequestParametersAdapter.setParameterValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets value for given key.\n\n@param _key key for the value\n@param _value value", "docstring_tokens": ["Sets", "value", "for", "given", "key", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/request/EFapsRequestParametersAdapter.java#L137-L143", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/request/EFapsRequestParametersAdapter.java", "func_name": "EFapsRequestParametersAdapter.addParameterValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a value for given key.\n\n@param _key key for the value\n@param _value value", "docstring_tokens": ["Adds", "a", "value", "for", "given", "key", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/request/EFapsRequestParametersAdapter.java#L151-L165", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIPageObject.java", "func_name": "AbstractUIPageObject.getTargetCmd", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the CommandAbstract that is the target of this Page.\n\n@return the calling CommandAbstract UIClassification\n@throws CacheReloadException the cache reload exception\n@see #targetCmdUUID", "docstring_tokens": ["Get", "the", "CommandAbstract", "that", "is", "the", "target", "of", "this", "Page", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIPageObject.java#L197-L205", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIPageObject.java", "func_name": "AbstractUIPageObject.getValue4Wizard", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to get the value for a key in case of wizard.\n\n@param _key key for the value\n@return value for the object, if found, else null", "docstring_tokens": ["Method", "to", "get", "the", "value", "for", "a", "key", "in", "case", "of", "wizard", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIPageObject.java#L314-L323", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIPageObject.java", "func_name": "AbstractUIPageObject.registerOID", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Register oid.\n\n@param _oid the oid\n@return the string", "docstring_tokens": ["Register", "oid", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIPageObject.java#L417-L422", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/tree/StructurBrowserTreeTable.java", "func_name": "StructurBrowserTreeTable.newNodeComponent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new component for a node.\n\n@param _wicketId the component id\n@param _model the model containing the node\n@return created component", "docstring_tokens": ["Create", "a", "new", "component", "for", "a", "node", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/tree/StructurBrowserTreeTable.java#L154-L188", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/tree/StructurBrowserTreeTable.java", "func_name": "StructurBrowserTreeTable.newSubtree", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new subtree.\n\n@param _wicketId wicket id for this component\n@param _model the model of the new subtree\n@return the created component", "docstring_tokens": ["Create", "a", "new", "subtree", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/tree/StructurBrowserTreeTable.java#L197-L202", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/api/textindex/IndexFlavor.java", "func_name": "IndexFlavor.complementOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a set containing all the known index flavours, except those is the given set\n@param indexFlavors The index flavours which will not be included in the returned set\n@return The complement of the given set of index flavours", "docstring_tokens": ["Returns", "a", "set", "containing", "all", "the", "known", "index", "flavours", "except", "those", "is", "the", "given", "set"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/api/textindex/IndexFlavor.java#L86-L90", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/api/textindex/IndexFlavor.java", "func_name": "IndexFlavor.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a set containing the given index flavours\n@param first The first index flavour to add\n@param rest The remaining index flavours to add\n@return A set containing the given index flavours", "docstring_tokens": ["Returns", "a", "set", "containing", "the", "given", "index", "flavours"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/api/textindex/IndexFlavor.java#L98-L103", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/util/MultiMap.java", "func_name": "MultiMap.put", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add an entry for the given key-value pair to the map\n@param key The key\n@param value The value\n@return value", "docstring_tokens": ["Add", "an", "entry", "for", "the", "given", "key", "-", "value", "pair", "to", "the", "map"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/util/MultiMap.java#L96-L101", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/util/MultiMap.java", "func_name": "MultiMap.remove", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove all entries for the given key\n@param key The key\n@return Some value that was paired with the key. The exact value is indeterminate", "docstring_tokens": ["Remove", "all", "entries", "for", "the", "given", "key"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/util/MultiMap.java#L108-L123", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/AbstractUI.java", "func_name": "AbstractUI.getRandom4ID", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the random for ID.\n\n@param _id the id\n@return the random for ID", "docstring_tokens": ["Gets", "the", "random", "for", "ID", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/AbstractUI.java#L45-L50", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIHeaderObject.java", "func_name": "AbstractUIHeaderObject.getUserWidths", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method retieves the UserAttribute for the ColumnWidths and evaluates\nthe string.\n\n@return List with the values of the columns in Pixel", "docstring_tokens": ["This", "method", "retieves", "the", "UserAttribute", "for", "the", "ColumnWidths", "and", "evaluates", "the", "string", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIHeaderObject.java#L414-L447", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIHeaderObject.java", "func_name": "AbstractUIHeaderObject.setSortDirection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to set he sort direction.\n\n@param _sortdirection sort direction to set", "docstring_tokens": ["Method", "to", "set", "he", "sort", "direction", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIHeaderObject.java#L464-L474", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIHeaderObject.java", "func_name": "AbstractUIHeaderObject.setColumnOrder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to set the order of the columns.\n\n@param _markupsIds ids of the columns as a string with ; separated", "docstring_tokens": ["Method", "to", "set", "the", "order", "of", "the", "columns", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIHeaderObject.java#L557-L577", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIHeaderObject.java", "func_name": "AbstractUIHeaderObject.getUserSortedColumns", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method looks if for this TableModel a UserAttribute for the sorting\nof the Columns exist. If they exist the Fields will be sorted as defined\nby the User. If no definition of the User exist the Original default\nsorting of the columns will be used. In the Case that the Definition of\nthe Table was altered Field which are not sorted yet will be sorted in at\nthe last position.\n\n@return List of fields", "docstring_tokens": ["This", "method", "looks", "if", "for", "this", "TableModel", "a", "UserAttribute", "for", "the", "sorting", "of", "the", "Columns", "exist", ".", "If", "they", "exist", "the", "Fields", "will", "be", "sorted", "as", "defined", "by", "the", "User", ".", "If", "no", "definition", "of", "the", "User", "exist", "the", "Original", "default", "sorting", "of", "the", "columns", "will", "be", "used", ".", "In", "the", "Case", "that", "the", "Definition", "of", "the", "Table", "was", "altered", "Field", "which", "are", "not", "sorted", "yet", "will", "be", "sorted", "in", "at", "the", "last", "position", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIHeaderObject.java#L589-L622", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/tree/SortHeaderColumnLink.java", "func_name": "SortHeaderColumnLink.onComponentTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "On the tag the class is set.\n\n@param _tag tag to be set", "docstring_tokens": ["On", "the", "tag", "the", "class", "is", "set", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/tree/SortHeaderColumnLink.java#L78-L88", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/tree/SortHeaderColumnLink.java", "func_name": "SortHeaderColumnLink.onComponentTagBody", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The body of the component is filled with the header.\n\n@param _markupStream MarkupStream\n@param _openTag ComponentTag", "docstring_tokens": ["The", "body", "of", "the", "component", "is", "filled", "with", "the", "header", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/tree/SortHeaderColumnLink.java#L96-L101", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/tree/SortHeaderColumnLink.java", "func_name": "SortHeaderColumnLink.onClick", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "On click the model is sorted and a new page with this model as response\nrendered.", "docstring_tokens": ["On", "click", "the", "model", "is", "sorted", "and", "a", "new", "page", "with", "this", "model", "as", "response", "rendered", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/tree/SortHeaderColumnLink.java#L107-L130", "partition": "valid"} +{"repo": "irenical/jindy", "path": "jindy-api/src/main/java/org/irenical/jindy/ConfigFactory.java", "func_name": "ConfigFactory.getConfig", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a Config instance, instantiating it on first call. If no factory\nimplementation is provided, one will be searched using Service Loader If a\nConfig with given name already exists, it will be simply returned\n\n@param name\n- the Config instance name\n@param factory\n- a custom factory implementation\n@return the Config instance with given name, instanciating one if needed", "docstring_tokens": ["Returns", "a", "Config", "instance", "instantiating", "it", "on", "first", "call", ".", "If", "no", "factory", "implementation", "is", "provided", "one", "will", "be", "searched", "using", "Service", "Loader", "If", "a", "Config", "with", "given", "name", "already", "exists", "it", "will", "be", "simply", "returned"], "sha": "57c5647f7292d14016d45bf7d3ee76b476a41842", "url": "https://github.com/irenical/jindy/blob/57c5647f7292d14016d45bf7d3ee76b476a41842/jindy-api/src/main/java/org/irenical/jindy/ConfigFactory.java#L75-L103", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/request/EFapsResourceAggregator.java", "func_name": "EFapsResourceAggregator.renderEFapsHeaderItems", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "render the eFaps Resource items.", "docstring_tokens": ["render", "the", "eFaps", "Resource", "items", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/request/EFapsResourceAggregator.java#L134-L165", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/request/EFapsResourceAggregator.java", "func_name": "EFapsResourceAggregator.renderCombinedRequireScripts", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Render combined requir scripts.", "docstring_tokens": ["Render", "combined", "requir", "scripts", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/request/EFapsResourceAggregator.java#L219-L245", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/gridx/filter/ClassificationFilter.java", "func_name": "ClassificationFilter.getCreateTreeNodeScript", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the creates the tree node script.\n\n@return the creates the tree node script", "docstring_tokens": ["Gets", "the", "creates", "the", "tree", "node", "script", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/gridx/filter/ClassificationFilter.java#L118-L137", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/gridx/filter/ClassificationFilter.java", "func_name": "ClassificationFilter.getDataLine", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the data line.\n\n@param _clazz the clazz\n@param _filter the filter\n@return the data line\n@throws EFapsException the e faps exception", "docstring_tokens": ["Gets", "the", "data", "line", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/gridx/filter/ClassificationFilter.java#L168-L182", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIClassification.java", "func_name": "UIClassification.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute the model.\n@param _instance Instance\n@throws EFapsException on error", "docstring_tokens": ["Execute", "the", "model", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIClassification.java#L302-L318", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIClassification.java", "func_name": "UIClassification.expand", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Expand the Tree.", "docstring_tokens": ["Expand", "the", "Tree", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIClassification.java#L323-L342", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIClassification.java", "func_name": "UIClassification.addChildren", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recursive method used to add the children to this UIClassification.\n\n@param _parent parent\n@param _children children\n@param _selectedUUID set of selected classification uuids\n@param _instance instance the classifcation belongs to\n@throws EFapsException on error", "docstring_tokens": ["Recursive", "method", "used", "to", "add", "the", "children", "to", "this", "UIClassification", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIClassification.java#L379-L414", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIClassification.java", "func_name": "UIClassification.getClassInstanceKeys", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to get the key to the instances related to this classification.\n\n@param _instance Instance the related instance key are searched for\n@return Map of instance keys\n@throws EFapsException on error", "docstring_tokens": ["Method", "to", "get", "the", "key", "to", "the", "instances", "related", "to", "this", "classification", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIClassification.java#L423-L460", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIClassification.java", "func_name": "UIClassification.getCacheKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method generates the Key for a UserAttribute by using the UUID of\nthe Command and the given static part, so that for every StruturBrowser a\nunique key for expand etc, is created.\n\n@return String with the key", "docstring_tokens": ["This", "method", "generates", "the", "Key", "for", "a", "UserAttribute", "by", "using", "the", "UUID", "of", "the", "Command", "and", "the", "given", "static", "part", "so", "that", "for", "every", "StruturBrowser", "a", "unique", "key", "for", "expand", "etc", "is", "created", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIClassification.java#L564-L581", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/api/analysis/viewdocument/ViewDocumentRequestBuilder.java", "func_name": "ViewDocumentRequestBuilder.addHighlightExpressions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds values to the highlight_expression parameter\n\n@param highlightExpression The first highlight expression\n@param highlightExpressions The remaining highlight expressions\n@return this", "docstring_tokens": ["Adds", "values", "to", "the", "highlight_expression", "parameter"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/api/analysis/viewdocument/ViewDocumentRequestBuilder.java#L55-L59", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/api/analysis/viewdocument/ViewDocumentRequestBuilder.java", "func_name": "ViewDocumentRequestBuilder.addStartTags", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds values to the start_tag parameter\n\n@param startTag The first start tag\n@param startTags The remaining start tags\n@return this", "docstring_tokens": ["Adds", "values", "to", "the", "start_tag", "parameter"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/api/analysis/viewdocument/ViewDocumentRequestBuilder.java#L77-L81", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/api/analysis/viewdocument/ViewDocumentRequestBuilder.java", "func_name": "ViewDocumentRequestBuilder.addEndTags", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds values to the end_tag parameter\n\n@param endTag The first end tag\n@param endTags The remaining end tags\n@return this", "docstring_tokens": ["Adds", "values", "to", "the", "end_tag", "parameter"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/api/analysis/viewdocument/ViewDocumentRequestBuilder.java#L99-L103", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/dashboard/DashboardPanel.java", "func_name": "DashboardPanel.getLazyLoadComponent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the lazy load component.\n\n@param _markupId the _markup id\n@param _html the _html\n@return the lazy load component", "docstring_tokens": ["Gets", "the", "lazy", "load", "component", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/dashboard/DashboardPanel.java#L139-L154", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/dashboard/DashboardPanel.java", "func_name": "DashboardPanel.getLoadingComponent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the loading component.\n\n@param _markupId the markup id\n@return The component to show while the real component is being created.", "docstring_tokens": ["Gets", "the", "loading", "component", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/dashboard/DashboardPanel.java#L204-L209", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/modalwindow/UpdateParentCallback.java", "func_name": "UpdateParentCallback.onClose", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method is executed on close of the modal window.\n\n@param _target Target", "docstring_tokens": ["Method", "is", "executed", "on", "close", "of", "the", "modal", "window", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/modalwindow/UpdateParentCallback.java#L110-L148", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIWizardObject.java", "func_name": "UIWizardObject.insertBefore", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Insert a UIObject before the current one.\n\n@param _element Object to insert", "docstring_tokens": ["Insert", "a", "UIObject", "before", "the", "current", "one", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIWizardObject.java#L89-L99", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIWizardObject.java", "func_name": "UIWizardObject.getPrevious", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to get the previous object.\n\n@return previous object", "docstring_tokens": ["Method", "to", "get", "the", "previous", "object", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIWizardObject.java#L106-L118", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIWizardObject.java", "func_name": "UIWizardObject.addParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add parameters.\n\n@param _element object used as key\n@param _parameters parameters", "docstring_tokens": ["Add", "parameters", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIWizardObject.java#L126-L130", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIForm.java", "func_name": "UIForm.evaluate4Instance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This is a possibility to replace the current Instance for the form with\nanother one using an table evaluate esjp.\n\n@return true, if successful\n@throws EFapsException on error", "docstring_tokens": ["This", "is", "a", "possibility", "to", "replace", "the", "current", "Instance", "for", "the", "form", "with", "another", "one", "using", "an", "table", "evaluate", "esjp", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIForm.java#L242-L266", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIForm.java", "func_name": "UIForm.addClassElements", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method that adds the classification forms as elements to the form by\nwalking down the tree.\n\n@param _uiclass the classification to be added\n@param _instanceKeys map from uuid to instance keys\n@throws EFapsException on error", "docstring_tokens": ["Method", "that", "adds", "the", "classification", "forms", "as", "elements", "to", "the", "form", "by", "walking", "down", "the", "tree", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIForm.java#L401-L406", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIForm.java", "func_name": "UIForm.updateClassElements", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method that removes all classifcations and afterwards adds the\nclassification forms as elements to the form by walking down the tree.\n\n@param _uiclass the classification to be added\n@throws EFapsException on error", "docstring_tokens": ["Method", "that", "removes", "all", "classifcations", "and", "afterwards", "adds", "the", "classification", "forms", "as", "elements", "to", "the", "form", "by", "walking", "down", "the", "tree", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIForm.java#L415-L434", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIForm.java", "func_name": "UIForm.addCell2FormRow", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to add a Cell to the given Row.\n\n@param _formElement the form element\n@param _query query containing the values\n@param _field field the cell belongs to\n@return true if the cell was actually added, else false\n@throws EFapsException on error", "docstring_tokens": ["Method", "to", "add", "a", "Cell", "to", "the", "given", "Row", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIForm.java#L445-L488", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIForm.java", "func_name": "UIForm.evaluateUIProvider", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method evaluates a Field and adds it to the row.\n\n@param _print query containing the values\n@param _field field the cell belongs to\n@param _fieldInstance instance of the Field\n@param _attr attribute for the Field\n@return the UI field\n@throws EFapsException on error", "docstring_tokens": ["Method", "evaluates", "a", "Field", "and", "adds", "it", "to", "the", "row", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIForm.java#L500-L521", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIForm.java", "func_name": "UIForm.evaluateFieldSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method evaluates a FieldSet and adds it to the row.\n\n@param _query query containing the values\n@param _field field the cell belongs to\n@param _fieldInstance instance of the FieldSet\n@return the UI field set\n@throws EFapsException on error", "docstring_tokens": ["Method", "evaluates", "a", "FieldSet", "and", "adds", "it", "to", "the", "row", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIForm.java#L532-L575", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIForm.java", "func_name": "UIForm.getClassElements", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recursive method to add the children classification forms.\n\n@param _uiclass parent classification form\n@param _uuid2InstanceKey mapping of instancekeys\n@return List of elements to be added\n@throws EFapsException on error", "docstring_tokens": ["Recursive", "method", "to", "add", "the", "children", "classification", "forms", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIForm.java#L585-L612", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/menu/SlideIn.java", "func_name": "SlideIn.getSubMenuItem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the sub menu item.\n\n@param _menuItem the menu item\n@param _parentNode the parent node\n@param _titleNode the title node\n@return the sub menu item", "docstring_tokens": ["Gets", "the", "sub", "menu", "item", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/menu/SlideIn.java#L241-L287", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/menu/SlideIn.java", "func_name": "SlideIn.getEventJs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the url.\n\n@param _menuItem the menu item\n@return the url", "docstring_tokens": ["Gets", "the", "url", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/menu/SlideIn.java#L295-L330", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/menu/SlideIn.java", "func_name": "SlideIn.getImage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the image.\n\n@param _menuItem the menu item\n@param _node the node\n@return the image", "docstring_tokens": ["Gets", "the", "image", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/menu/SlideIn.java#L339-L374", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/menu/SlideIn.java", "func_name": "SlideIn.getBehavior", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the behavior.\n\n@param _class the class\n@return the behavior", "docstring_tokens": ["Gets", "the", "behavior", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/menu/SlideIn.java#L382-L394", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/heading/HeadingPanel.java", "func_name": "HeadingPanel.addComponents", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to add the Component to this Panel.\n\n@param _headingmodel model of the heading.", "docstring_tokens": ["Method", "to", "add", "the", "Component", "to", "this", "Panel", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/heading/HeadingPanel.java#L107-L159", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/tree/StructurBrowserProvider.java", "func_name": "StructurBrowserProvider.getChildren", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the children of the given node.\n\n@param _node node to get children for\n@return children of node", "docstring_tokens": ["Get", "the", "children", "of", "the", "given", "node", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/tree/StructurBrowserProvider.java#L86-L93", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/config/Requester.java", "func_name": "Requester.makeRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Makes a request to HP Haven OnDemand, converting the response body to the type specified by the Class object.\n@param tokenProxy The token proxy to use to make the request\n@param returnType The desired type of the value returned by HP Haven OnDemand\n@param backendCaller Makes the request to HP Haven OnDemand\n@param The desired type of the value returned by HP Haven OnDemand\n@param The entity type of the token proxy\n@param The token type of the token proxy\n@return An object representing the output from HP Haven OnDemand\n@throws HodErrorException", "docstring_tokens": ["Makes", "a", "request", "to", "HP", "Haven", "OnDemand", "converting", "the", "response", "body", "to", "the", "type", "specified", "by", "the", "Class", "object", "."], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/config/Requester.java#L108-L114", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/config/Requester.java", "func_name": "Requester.makeRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Makes a request to HP Haven OnDemand, converting the response body to the type specified by the type reference.\n@param tokenProxy The token proxy to use to make the request\n@param typeReference The desired type of the value returned by HP Haven OnDemand\n@param backendCaller Makes the request to HP Haven OnDemand\n@param The desired type of the value returned by HP Haven OnDemand\n@param The entity type of the token proxy\n@param The token type of the token proxy\n@return An object representing the output from HP Haven OnDemand\n@throws HodErrorException", "docstring_tokens": ["Makes", "a", "request", "to", "HP", "Haven", "OnDemand", "converting", "the", "response", "body", "to", "the", "type", "specified", "by", "the", "type", "reference", "."], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/config/Requester.java#L127-L133", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/config/Requester.java", "func_name": "Requester.makeRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Makes a request to HP Haven OnDemand, returning the response body as an input stream.\n@param tokenProxy The token proxy to use to make the request\n@param backendCaller Makes the request to HP Haven OnDemand\n@param The entity type of the token proxy\n@param The token type of the token proxy\n@return The response body\n@throws HodErrorException", "docstring_tokens": ["Makes", "a", "request", "to", "HP", "Haven", "OnDemand", "returning", "the", "response", "body", "as", "an", "input", "stream", "."], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/config/Requester.java#L144-L149", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/config/Requester.java", "func_name": "Requester.unsafeMakeRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Makes a request to HP Haven OnDemand, converting the response body to the type specified by the JavaType. This\nmethod does not guarantee that the type parameter U represents the given JavaType. If possible, use one of the\nsafe makeRequest methods instead.\n@param tokenProxy The token proxy to use to make the request\n@param type The desired type of the value returned by HP Haven OnDemand\n@param backendCaller Makes the request to HP Haven OnDemand\n@param The desired type of the value returned by HP Haven OnDemand\n@param The entity type of the token proxy\n@param The token type of the token proxy\n@return An object representing the output from HP Haven OnDemand\n@throws HodErrorException", "docstring_tokens": ["Makes", "a", "request", "to", "HP", "Haven", "OnDemand", "converting", "the", "response", "body", "to", "the", "type", "specified", "by", "the", "JavaType", ".", "This", "method", "does", "not", "guarantee", "that", "the", "type", "parameter", "U", "represents", "the", "given", "JavaType", ".", "If", "possible", "use", "one", "of", "the", "safe", "makeRequest", "methods", "instead", "."], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/config/Requester.java#L164-L170", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/converter/HodConverter.java", "func_name": "HodConverter.fromBody", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the object returned by calling fromBody on the underlying converter", "docstring_tokens": ["Returns", "the", "object", "returned", "by", "calling", "fromBody", "on", "the", "underlying", "converter"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/converter/HodConverter.java#L36-L48", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/behaviors/AjaxFieldUpdateBehavior.java", "func_name": "AjaxFieldUpdateBehavior.renderHead", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Render to the web response the eFapsContentReference.\n\n@param _response Response object", "docstring_tokens": ["Render", "to", "the", "web", "response", "the", "eFapsContentReference", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/behaviors/AjaxFieldUpdateBehavior.java#L130-L136", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/behaviors/AjaxFieldUpdateBehavior.java", "func_name": "AjaxFieldUpdateBehavior.onError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Default means nothing is done on error.\n\n@see org.apache.wicket.ajax.form.AjaxFormSubmitBehavior#onError(org.apache.wicket.ajax.AjaxRequestTarget)\n@param _target AjaxRequestTarget", "docstring_tokens": ["Default", "means", "nothing", "is", "done", "on", "error", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/behaviors/AjaxFieldUpdateBehavior.java#L144-L193", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/EFapsApplication.java", "func_name": "EFapsApplication.launch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Launch a job.\n\n@param _job the _job\n@param _jobName the _job name\n@return the execution bridge\n@throws EFapsException on error", "docstring_tokens": ["Launch", "a", "job", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/EFapsApplication.java#L314-L335", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/api/textindex/document/AddToTextIndexRequestBuilder.java", "func_name": "AddToTextIndexRequestBuilder.addReferencePrefixes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds values to the referencePrefixes parameter\n\n@param referencePrefix The first index\n@param referencePrefixes The remaining referencePrefixes\n@return this", "docstring_tokens": ["Adds", "values", "to", "the", "referencePrefixes", "parameter"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/api/textindex/document/AddToTextIndexRequestBuilder.java#L38-L43", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/api/textindex/document/AddToTextIndexRequestBuilder.java", "func_name": "AddToTextIndexRequestBuilder.addAdditionalMetadata", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the value of the metadata parameter\n\n@param metadatum The first index\n@param metadata The remaining metadata\n@return this", "docstring_tokens": ["Sets", "the", "value", "of", "the", "metadata", "parameter"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/api/textindex/document/AddToTextIndexRequestBuilder.java#L64-L69", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/api/queryprofile/QueryProfileRequestBuilder.java", "func_name": "QueryProfileRequestBuilder.addPromotionCategories", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds categories to the promotion_categories parameter\n\n@param category0 The first category to add\n@param categories Additional categories to add\n@return this", "docstring_tokens": ["Adds", "categories", "to", "the", "promotion_categories", "parameter"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/api/queryprofile/QueryProfileRequestBuilder.java#L70-L74", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/api/queryprofile/QueryProfileRequestBuilder.java", "func_name": "QueryProfileRequestBuilder.addSynonymCategories", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds categories to the synonym_categories parameter\n\n@param category0 The first category to add\n@param categories Additional categories to add\n@return this", "docstring_tokens": ["Adds", "categories", "to", "the", "synonym_categories", "parameter"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/api/queryprofile/QueryProfileRequestBuilder.java#L83-L87", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/api/queryprofile/QueryProfileRequestBuilder.java", "func_name": "QueryProfileRequestBuilder.addBlacklistCategories", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds categories to the blacklist_categories parameter\n\n@param category0 The first category to add\n@param categories Additional categories to add\n@return this", "docstring_tokens": ["Adds", "categories", "to", "the", "blacklist_categories", "parameter"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/api/queryprofile/QueryProfileRequestBuilder.java#L96-L100", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/behaviors/AjaxDownloadBehavior.java", "func_name": "AjaxDownloadBehavior.initiate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call this method to initiate the download.\n@param _target Ajaxtarget", "docstring_tokens": ["Call", "this", "method", "to", "initiate", "the", "download", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/behaviors/AjaxDownloadBehavior.java#L79-L85", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/behaviors/AjaxDownloadBehavior.java", "func_name": "AjaxDownloadBehavior.onRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "On request, respond with a ResourcStream.", "docstring_tokens": ["On", "request", "respond", "with", "a", "ResourcStream", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/behaviors/AjaxDownloadBehavior.java#L121-L129", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/behaviors/AjaxDownloadBehavior.java", "func_name": "AjaxDownloadBehavior.getResourceStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Hook method providing the actual resource stream.\n@return stream", "docstring_tokens": ["Hook", "method", "providing", "the", "actual", "resource", "stream", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/behaviors/AjaxDownloadBehavior.java#L148-L154", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/behaviors/AjaxDownloadBehavior.java", "func_name": "AjaxDownloadBehavior.getCallBackScript", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Script that searches for an existing iframe to use it for the download of the frame.\nIf it does not exist it will be created.\n\n@param _url the url\n@return the callback script", "docstring_tokens": ["Script", "that", "searches", "for", "an", "existing", "iframe", "to", "use", "it", "for", "the", "download", "of", "the", "frame", ".", "If", "it", "does", "not", "exist", "it", "will", "be", "created", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/behaviors/AjaxDownloadBehavior.java#L178-L191", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/ConnectionRegistry.java", "func_name": "ConnectionRegistry.sendKeepAlive", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Send the KeepAlive.\n@param _application Application the KeepAlive will be send for", "docstring_tokens": ["Send", "the", "KeepAlive", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/ConnectionRegistry.java#L522-L548", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/ConnectionRegistry.java", "func_name": "ConnectionRegistry.initKeepAlive", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Init the KeepAlive mechanism.", "docstring_tokens": ["Init", "the", "KeepAlive", "mechanism", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/ConnectionRegistry.java#L553-L563", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIUserSession.java", "func_name": "UIUserSession.getUIUserSessions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the UI user sessions.\n\n@return list of currently registered Users", "docstring_tokens": ["Gets", "the", "UI", "user", "sessions", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIUserSession.java#L109-L118", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/LabelComponent.java", "func_name": "LabelComponent.onComponentTagBody", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Must be overwritten so that no replacing of html tags is done.\n\n@see org.apache.wicket.Component#onComponentTagBody(org.apache.wicket.markup.MarkupStream,\norg.apache.wicket.markup.ComponentTag)\n\n@param _markupStream MarkupStream\n@param _openTag Tag", "docstring_tokens": ["Must", "be", "overwritten", "so", "that", "no", "replacing", "of", "html", "tags", "is", "done", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/LabelComponent.java#L85-L114", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/LabelComponent.java", "func_name": "LabelComponent.onRender", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method is overwritten to prevent the annoing warnings from Component to come up.\nThe warning come up due to the reason that this component moves the tags from parent\nelement to its child.", "docstring_tokens": ["Method", "is", "overwritten", "to", "prevent", "the", "annoing", "warnings", "from", "Component", "to", "come", "up", ".", "The", "warning", "come", "up", "due", "to", "the", "reason", "that", "this", "component", "moves", "the", "tags", "from", "parent", "element", "to", "its", "child", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/LabelComponent.java#L121-L151", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/EmbeddedLink.java", "func_name": "EmbeddedLink.getDashboardLink", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the dashboard link.\n\n@param _instanceKey instance key the link is wanted for\n@param _identifier the identifier\n@return new Embeded Link", "docstring_tokens": ["Gets", "the", "dashboard", "link", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/EmbeddedLink.java#L198-L205", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/config/ResponseParser.java", "func_name": "ResponseParser.parseResponse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse the response into a type represented by the Class object. Checks for a refreshed token and updates the token\nrepository accordingly.\n@param The desired type of the response body\n@param tokenProxy The token proxy to update in the token repository if required\n@param clazz A class object representing the desired type of the response body\n@param response The response to parse\n@return An object representing the result from HP Haven OnDemand", "docstring_tokens": ["Parse", "the", "response", "into", "a", "type", "represented", "by", "the", "Class", "object", ".", "Checks", "for", "a", "refreshed", "token", "and", "updates", "the", "token", "repository", "accordingly", "."], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/config/ResponseParser.java#L53-L55", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/config/ResponseParser.java", "func_name": "ResponseParser.parseResponse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse the response into a type represented by the TypeReference object. Checks for a refreshed token and updates\nthe token repository accordingly.\n@param The desired type of the response body\n@param tokenProxy The token proxy to update in the token repository if required\n@param typeReference A type reference object representing the desired type of the response body\n@param response The response to parse\n@return An object representing the result from HP Haven OnDemand", "docstring_tokens": ["Parse", "the", "response", "into", "a", "type", "represented", "by", "the", "TypeReference", "object", ".", "Checks", "for", "a", "refreshed", "token", "and", "updates", "the", "token", "repository", "accordingly", "."], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/config/ResponseParser.java#L66-L68", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/config/ResponseParser.java", "func_name": "ResponseParser.unsafeParseResponse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse the response into a type represented by the JavaType object. Checks for a refreshed token and updates\nthe token repository accordingly. This method does not guarantee that the type parameter T represents the given\nJavaType. If possible, use one of the safe parseResponse methods instead.\n@param The desired type of the response body\n@param tokenProxy The token proxy to update in the token repository if required\n@param type A JavaType representing the desired type of the response body\n@param response The response to parse\n@return An object representing the result from HP Haven OnDemand", "docstring_tokens": ["Parse", "the", "response", "into", "a", "type", "represented", "by", "the", "JavaType", "object", ".", "Checks", "for", "a", "refreshed", "token", "and", "updates", "the", "token", "repository", "accordingly", ".", "This", "method", "does", "not", "guarantee", "that", "the", "type", "parameter", "T", "represents", "the", "given", "JavaType", ".", "If", "possible", "use", "one", "of", "the", "safe", "parseResponse", "methods", "instead", "."], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/config/ResponseParser.java#L80-L88", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/config/ResponseParser.java", "func_name": "ResponseParser.parseResponse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks the response headers for a refreshed authentication token then returns the response body as an input stream.\n@param tokenProxy The token proxy to update in the token repository if required\n@param response The response to read\n@return The response body as an input stream", "docstring_tokens": ["Checks", "the", "response", "headers", "for", "a", "refreshed", "authentication", "token", "then", "returns", "the", "response", "body", "as", "an", "input", "stream", "."], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/config/ResponseParser.java#L96-L104", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIFieldTable.java", "func_name": "UIFieldTable.getEvents", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to get the events that are related to this UITable.\n\n@param _eventType eventype to get\n@return List of events", "docstring_tokens": ["Method", "to", "get", "the", "events", "that", "are", "related", "to", "this", "UITable", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIFieldTable.java#L180-L184", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/links/MenuContentLink.java", "func_name": "MenuContentLink.onComponentTagInternal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add to the tag.\n@param _tag tag to write", "docstring_tokens": ["Add", "to", "the", "tag", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/links/MenuContentLink.java#L136-L140", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/job/PollingJobStatusRunnable.java", "func_name": "PollingJobStatusRunnable.run", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks the status of the job. If the job has not finished, the runnable will schedule itself to run again after a\nshort wait", "docstring_tokens": ["Checks", "the", "status", "of", "the", "job", ".", "If", "the", "job", "has", "not", "finished", "the", "runnable", "will", "schedule", "itself", "to", "run", "again", "after", "a", "short", "wait"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/job/PollingJobStatusRunnable.java#L81-L156", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/behaviors/dojo/DnDBehavior.java", "func_name": "DnDBehavior.onComponentTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The tag of the component must be altered, so that the dojo dnd will be rendered.\n\n@see org.apache.wicket.behavior.AbstractBehavior#onComponentTag(org.apache.wicket.Component,\norg.apache.wicket.markup.ComponentTag)\n@param _component Component\n@param _tag tag to edit", "docstring_tokens": ["The", "tag", "of", "the", "component", "must", "be", "altered", "so", "that", "the", "dojo", "dnd", "will", "be", "rendered", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/behaviors/dojo/DnDBehavior.java#L108-L122", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/behaviors/dojo/DnDBehavior.java", "func_name": "DnDBehavior.renderHead", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the javascriupt to the head of the webpage.\n\n@see org.efaps.ui.wicket.behaviors.dojo.AbstractDojoBehavior#renderHead(\norg.apache.wicket.markup.html.IHeaderResponse)\n\n@param _component component the header will be rendered for\n@param _response rseponse", "docstring_tokens": ["Add", "the", "javascriupt", "to", "the", "head", "of", "the", "webpage", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/behaviors/dojo/DnDBehavior.java#L133-L151", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/menutree/MenuTree.java", "func_name": "MenuTree.setDefault", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the default selected item.\n\n@param _selectCmdUUID UUID of the selected Command", "docstring_tokens": ["Set", "the", "default", "selected", "item", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/menutree/MenuTree.java#L149-L166", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/pages/dialog/DialogPage.java", "func_name": "DialogPage.getLabel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method that gets the Value for the Buttons from the DBProperties.\n\n@param _cmdName Name of the Command, that Label for the Button should be\nretrieved\n@param _keytype type of the key e.g. \"Cancel\", \"Submit\", \"Close\"\n@return Label", "docstring_tokens": ["Method", "that", "gets", "the", "Value", "for", "the", "Buttons", "from", "the", "DBProperties", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/pages/dialog/DialogPage.java#L166-L176", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/field/factories/UITypeFactory.java", "func_name": "UITypeFactory.getEditableComp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the editable comp.\n\n@param _wicketId the wicket id\n@param _uiField the ui field\n@return the editable comp\n@throws EFapsException on error", "docstring_tokens": ["Gets", "the", "editable", "comp", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/field/factories/UITypeFactory.java#L71-L116", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/table/header/HeaderCellPanel.java", "func_name": "HeaderCellPanel.onAfterRender", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the markupid into the model.\n\n@see org.apache.wicket.Component#onAfterRender()", "docstring_tokens": ["Set", "the", "markupid", "into", "the", "model", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/table/header/HeaderCellPanel.java#L183-L191", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/date/DateTimePanel.java", "func_name": "DateTimePanel.getDateAsString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to get for the parameters returned from the form as a valid string. for a datetime\n\n@param _date date\n@param _hour hour\n@param _minute minutes\n@param _ampm am/pm\n@return valid string\n@throws EFapsException on error", "docstring_tokens": ["Method", "to", "get", "for", "the", "parameters", "returned", "from", "the", "form", "as", "a", "valid", "string", ".", "for", "a", "datetime"], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/date/DateTimePanel.java#L360-L373", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/date/DateTimePanel.java", "func_name": "DateTimePanel.getDateList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to get for the parameters returned from the form as a datetimes.\n\n@param _date date\n@param _hour hour\n@param _minute minutes\n@param _ampm am/pm\n@return valid string\n@throws EFapsException on error", "docstring_tokens": ["Method", "to", "get", "for", "the", "parameters", "returned", "from", "the", "form", "as", "a", "datetimes", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/date/DateTimePanel.java#L385-L440", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/date/DateTimePanel.java", "func_name": "DateTimePanel.onAfterRender", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "After rendering the datefields are added to the parent.", "docstring_tokens": ["After", "rendering", "the", "datefields", "are", "added", "to", "the", "parent", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/date/DateTimePanel.java#L446-L454", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/job/AbstractPollingService.java", "func_name": "AbstractPollingService.destroy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shuts down the executor service. This method should be called when the job service is no longer needed, if the\ndefault executor service was used", "docstring_tokens": ["Shuts", "down", "the", "executor", "service", ".", "This", "method", "should", "be", "called", "when", "the", "job", "service", "is", "no", "longer", "needed", "if", "the", "default", "executor", "service", "was", "used"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/job/AbstractPollingService.java#L48-L62", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/links/LoadInTargetAjaxLink.java", "func_name": "LoadInTargetAjaxLink.onClick", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to load something inside the opener window.\n\n@param _target AjaxRequestTarget", "docstring_tokens": ["Method", "to", "load", "something", "inside", "the", "opener", "window", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/links/LoadInTargetAjaxLink.java#L146-L192", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/FormContainer.java", "func_name": "FormContainer.onComponentTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "On component tag.\n\n@param _tag the tag\n\n@see org.apache.wicket.markup.html.form.Form\n#onComponentTag(org.apache.wicket.markup.ComponentTag)", "docstring_tokens": ["On", "component", "tag", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/FormContainer.java#L121-L137", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/FormContainer.java", "func_name": "FormContainer.handleMultiPart", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle the multipart to store the files and parameters in the context also.\n@return true if multipart", "docstring_tokens": ["Handle", "the", "multipart", "to", "store", "the", "files", "and", "parameters", "in", "the", "context", "also", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/FormContainer.java#L202-L242", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/FormContainer.java", "func_name": "FormContainer.resetSetCounter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reset the counters for sets.", "docstring_tokens": ["Reset", "the", "counters", "for", "sets", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/FormContainer.java#L298-L329", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/filter/AbstractAuthenticationFilter.java", "func_name": "AbstractAuthenticationFilter.init", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Called by the web container to indicate to a filter that it is being\nplaced into service. The servlet container calls the init method exactly\nonce after instantiating the filter. The init method must complete\nsuccessfully before the filter is asked to do any filtering work.\n\nThe web container cannot place the filter into service if the init method\neither 1.Throws a ServletException 2.Does not return within a time period\ndefined by the web container // sets the login handler\n\n@param _filterConfig filter configuration instance\n@see #INIT_PARAM_TITLE\n@see #title\n@see #INIT_PARAM_APPLICATION\n@see #loginhandler\n@throws ServletException on error", "docstring_tokens": ["Called", "by", "the", "web", "container", "to", "indicate", "to", "a", "filter", "that", "it", "is", "being", "placed", "into", "service", ".", "The", "servlet", "container", "calls", "the", "init", "method", "exactly", "once", "after", "instantiating", "the", "filter", ".", "The", "init", "method", "must", "complete", "successfully", "before", "the", "filter", "is", "asked", "to", "do", "any", "filtering", "work", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/filter/AbstractAuthenticationFilter.java#L75-L85", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/filter/AbstractAuthenticationFilter.java", "func_name": "AbstractAuthenticationFilter.doFilter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the current user is already logged in, nothing is filtered.\n@param _request HttpServletRequest\n@param _response HttpServletResponse\n@param _chain FilterChain\n@see #doAuthenticate\n@throws IOException on error\n@throws ServletException on error", "docstring_tokens": ["If", "the", "current", "user", "is", "already", "logged", "in", "nothing", "is", "filtered", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/filter/AbstractAuthenticationFilter.java#L106-L117", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/filter/AbstractAuthenticationFilter.java", "func_name": "AbstractAuthenticationFilter.checkLogin", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if the user with given name and password is allowed to login.\n\n@param _name user name to check\n@param _passwd password to check\n@return true if the user is allowed to login (name and password is\ncorrect), otherweise false\n@see #loginhandler\n@see #doFilter", "docstring_tokens": ["Checks", "if", "the", "user", "with", "given", "name", "and", "password", "is", "allowed", "to", "login", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/filter/AbstractAuthenticationFilter.java#L143-L179", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/form/command/AjaxExecuteLink.java", "func_name": "AjaxExecuteLink.onRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "On submit.\n\n@param _target AjaxRequestTarget", "docstring_tokens": ["On", "submit", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/form/command/AjaxExecuteLink.java#L75-L93", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/gridx/GridXComponent.java", "func_name": "GridXComponent.getPersistenceScript", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the persistence script.\n\n@param _uiGrid the ui grid\n@return the persistence script\n@throws EFapsException the e faps exception", "docstring_tokens": ["Gets", "the", "persistence", "script", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/gridx/GridXComponent.java#L476-L530", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/gridx/GridXComponent.java", "func_name": "GridXComponent.getPrintMenuItems", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the prints the menu items.\n\n@param _dojoClasses the dojo classes\n@return the prints the menu items", "docstring_tokens": ["Gets", "the", "prints", "the", "menu", "items", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/gridx/GridXComponent.java#L538-L570", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/gridx/GridXComponent.java", "func_name": "GridXComponent.getMenu", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the menu.\n\n@param _dojoClasses the dojo classes\n@return the menu\n@throws EFapsException on error", "docstring_tokens": ["Gets", "the", "menu", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/gridx/GridXComponent.java#L579-L600", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/gridx/GridXComponent.java", "func_name": "GridXComponent.getSubMenu", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the sub menu.\n\n@param _menu the menu\n@param _parent the parent\n@return the sub menu\n@throws EFapsException on error", "docstring_tokens": ["Gets", "the", "sub", "menu", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/gridx/GridXComponent.java#L610-L634", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/gridx/GridXComponent.java", "func_name": "GridXComponent.getDataJS", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the data JS.\n\n@param _uiGrid the ui grid\n@return the data JS\n@throws EFapsException on error", "docstring_tokens": ["Gets", "the", "data", "JS", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/gridx/GridXComponent.java#L785-L799", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/gridx/GridXComponent.java", "func_name": "GridXComponent.getDataReloadJS", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the javascript.\n\n@param _uiGrid the ui grid\n@return the javascript\n@throws EFapsException on error", "docstring_tokens": ["Gets", "the", "javascript", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/gridx/GridXComponent.java#L852-L896", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/modalwindow/ModalWindowAjaxPageCreator.java", "func_name": "ModalWindowAjaxPageCreator.createPage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method that creates the page.\n\n@return new Page", "docstring_tokens": ["Method", "that", "creates", "the", "page", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/modalwindow/ModalWindowAjaxPageCreator.java#L85-L129", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/gridx/behaviors/OpenModalBehavior.java", "func_name": "OpenModalBehavior.onEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Show the modal window.\n\n@param _target AjaxRequestTarget", "docstring_tokens": ["Show", "the", "modal", "window", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/gridx/behaviors/OpenModalBehavior.java#L52-L58", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/field/set/UIFieldSet.java", "func_name": "UIFieldSet.addValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the value.\n\n@param _rowInstance instance for the row to be added\n@param _uiFieldSetValue the _ui field set value", "docstring_tokens": ["Adds", "the", "value", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/field/set/UIFieldSet.java#L125-L129", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/field/set/UIFieldSet.java", "func_name": "UIFieldSet.getIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the index.\n\n@param _inputName the _input name\n@return the index", "docstring_tokens": ["Gets", "the", "index", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/field/set/UIFieldSet.java#L151-L159", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/field/set/UIFieldSet.java", "func_name": "UIFieldSet.addNewRow", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a new Row.\n\n@throws EFapsException on error", "docstring_tokens": ["Add", "a", "new", "Row", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/field/set/UIFieldSet.java#L194-L205", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/classification/ClassificationTree.java", "func_name": "ClassificationTree.addChildren", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recursive method to add child classifications.\n\n@param _uiClass classification to add\n@param _force force expanded", "docstring_tokens": ["Recursive", "method", "to", "add", "child", "classifications", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/classification/ClassificationTree.java#L101-L110", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/help/HelpUtil.java", "func_name": "HelpUtil.getHelp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the help.\n\n@param _cmdId the cmd id\n@return the help", "docstring_tokens": ["Gets", "the", "help", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/help/HelpUtil.java#L121-L135", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java", "func_name": "UIStructurBrowser.getNewStructurBrowser", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Internal method to call a constructor, it is used to set that this\nStructurBrowserModel is not a root.\n\n@param _instance Instance\n@param _strucBrwsr StructurBrowser the values will be copied from\n@return UIStructurBrowser\n@throws EFapsException on error", "docstring_tokens": ["Internal", "method", "to", "call", "a", "constructor", "it", "is", "used", "to", "set", "that", "this", "StructurBrowserModel", "is", "not", "a", "root", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java#L335-L350", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java", "func_name": "UIStructurBrowser.initialise", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method used to initialize this StructurBrowserModel.\n\n@throws EFapsException on error", "docstring_tokens": ["Method", "used", "to", "initialize", "this", "StructurBrowserModel", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java#L357-L392", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java", "func_name": "UIStructurBrowser.expand", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Expand the tree with the information from the Session.\n@param _expand is this inside an expand", "docstring_tokens": ["Expand", "the", "tree", "with", "the", "information", "from", "the", "Session", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java#L633-L668", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java", "func_name": "UIStructurBrowser.sortModel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to sort the data of this model. It calls an esjp for sorting.", "docstring_tokens": ["Method", "to", "sort", "the", "data", "of", "this", "model", ".", "It", "calls", "an", "esjp", "for", "sorting", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java#L700-L712", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java", "func_name": "UIStructurBrowser.checkHideColumn4Row", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method is called from the StructurBrowser in edit mode before rendering\nthe columns for row to be able to hide the columns for different rows by\nsetting the cell model to hide.", "docstring_tokens": ["Method", "is", "called", "from", "the", "StructurBrowser", "in", "edit", "mode", "before", "rendering", "the", "columns", "for", "row", "to", "be", "able", "to", "hide", "the", "columns", "for", "different", "rows", "by", "setting", "the", "cell", "model", "to", "hide", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java#L848-L858", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java", "func_name": "UIStructurBrowser.checkForAllowChildren", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method is used to check if a node has potential children.\n\n@param _instance Instance of a Node to be checked\n@return true if this Node has children, else false", "docstring_tokens": ["This", "method", "is", "used", "to", "check", "if", "a", "node", "has", "potential", "children", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java#L892-L903", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java", "func_name": "UIStructurBrowser.executeListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method is used to execute a listener with a specific event.\n@param _status status to be executed\n@param _uiID2Oid UI Id 2 Oid mapping", "docstring_tokens": ["This", "method", "is", "used", "to", "execute", "a", "listener", "with", "a", "specific", "event", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java#L910-L922", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java", "func_name": "UIStructurBrowser.requeryLabel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method is updating the Label, by querying the eFaps-DataBase.", "docstring_tokens": ["This", "method", "is", "updating", "the", "Label", "by", "querying", "the", "eFaps", "-", "DataBase", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java#L1200-L1215", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/behaviors/dojo/AutoCompleteBehavior.java", "func_name": "AutoCompleteBehavior.bind", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Bind this handler to the given component.\n\n@param _hostComponent the component to bind to", "docstring_tokens": ["Bind", "this", "handler", "to", "the", "given", "component", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/behaviors/dojo/AutoCompleteBehavior.java#L116-L128", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/search/ResultPanel.java", "func_name": "ResultPanel.getDataTable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the data table.\n\n@param _indexSearch the index search\n@return the data table", "docstring_tokens": ["Gets", "the", "data", "table", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/search/ResultPanel.java#L101-L134", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/field/UICmdField.java", "func_name": "UICmdField.executeEvents", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute the underlying events.\n\n@param _others others\n@param _uiID2Oid the ui i d2 oid\n@return list of returns\n@throws EFapsException on error", "docstring_tokens": ["Execute", "the", "underlying", "events", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/field/UICmdField.java#L112-L125", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/field/UICmdField.java", "func_name": "UICmdField.getRenderedContent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the script to render the content for the UserInterface in case that\nnot a standard button should be rendered.\n\n@param _script additional script from the UserInterface\n@param _uiID2Oid the ui i d2 oid\n@return html snipplet\n@throws EFapsException on error", "docstring_tokens": ["Get", "the", "script", "to", "render", "the", "content", "for", "the", "UserInterface", "in", "case", "that", "not", "a", "standard", "button", "should", "be", "rendered", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/field/UICmdField.java#L156-L170", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/pages/contentcontainer/ContentContainerPage.java", "func_name": "ContentContainerPage.getCommand", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to get a Command.\n\n@param _uuid Uuid of the Command\n@return a AbstractCommand\n@throws CacheReloadException on error", "docstring_tokens": ["Method", "to", "get", "a", "Command", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/pages/contentcontainer/ContentContainerPage.java#L282-L293", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/footer/FooterPanel.java", "func_name": "FooterPanel.getLabel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method that searches a DBProperty for the Label.\n\n@param _cmdObject the cmd object\n@param _keytype what Label should be searched\n@return if found DBProperty of the CommandAbstract, else a Default\n@throws EFapsException on error", "docstring_tokens": ["Method", "that", "searches", "a", "DBProperty", "for", "the", "Label", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/footer/FooterPanel.java#L243-L254", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/EFapsSession.java", "func_name": "EFapsSession.pruneFinishedTasks", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prune finished tasks.", "docstring_tokens": ["Prune", "finished", "tasks", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/EFapsSession.java#L167-L176", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/EFapsSession.java", "func_name": "EFapsSession.getJobsPage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the tasks page.\n\n@param _start the _start\n@param _size the _size\n@return the tasks page", "docstring_tokens": ["Gets", "the", "tasks", "page", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/EFapsSession.java#L185-L190", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/EFapsSession.java", "func_name": "EFapsSession.getBridge4Job", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the bridge for job.\n\n@param _jobName the _job name\n@param _prune the _prune\n@return the bridge4 job", "docstring_tokens": ["Gets", "the", "bridge", "for", "job", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/EFapsSession.java#L199-L213", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/EFapsSession.java", "func_name": "EFapsSession.isLogedIn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to check if a user is checked in.\n\n@return true if a user is checked in, else false\n@see #userName", "docstring_tokens": ["Method", "to", "check", "if", "a", "user", "is", "checked", "in", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/EFapsSession.java#L280-L289", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/EFapsSession.java", "func_name": "EFapsSession.lazyLogin", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Lazy login is used in copmination with a Single Sign On mechanism.\n\n@return true, if successful", "docstring_tokens": ["Lazy", "login", "is", "used", "in", "copmination", "with", "a", "Single", "Sign", "On", "mechanism", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/EFapsSession.java#L296-L324", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/EFapsSession.java", "func_name": "EFapsSession.login", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to log a user with the Parameters from the Request in.\n\n@see #checkLogin(String, String)", "docstring_tokens": ["Method", "to", "log", "a", "user", "with", "the", "Parameters", "from", "the", "Request", "in", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/EFapsSession.java#L331-L348", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/EFapsSession.java", "func_name": "EFapsSession.logout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Logs a user out and stores the UserAttribues in the eFaps database.", "docstring_tokens": ["Logs", "a", "user", "out", "and", "stores", "the", "UserAttribues", "in", "the", "eFaps", "database", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/EFapsSession.java#L353-L370", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/api/textindex/query/search/QueryRequestBuilder.java", "func_name": "QueryRequestBuilder.addIndexes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds indexes to the indexes parameter\n\n@param index0 The first index\n@param indexes The remaining indexes\n@return this", "docstring_tokens": ["Adds", "indexes", "to", "the", "indexes", "parameter"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/api/textindex/query/search/QueryRequestBuilder.java#L151-L156", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UICmdObject.java", "func_name": "UICmdObject.getModel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the model.\n\n@param _cmdId the cmd id\n@param _instance the instance\n@return the model", "docstring_tokens": ["Gets", "the", "model", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UICmdObject.java#L162-L166", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/pages/content/AbstractContentPage.java", "func_name": "AbstractContentPage.addComponents", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method that adds the Components to the Page.\n\n@param _form FormContainer\n@throws EFapsException on error", "docstring_tokens": ["Method", "that", "adds", "the", "Components", "to", "the", "Page", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/pages/content/AbstractContentPage.java#L163-L201", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/pages/AbstractMergePage.java", "func_name": "AbstractMergePage.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a child component to this container or to the body.\n\n@param _childs childrne to add\n@return the markup container\n@throws IllegalArgumentException Thrown if a child with the same id is replaced by the add operation.", "docstring_tokens": ["Adds", "a", "child", "component", "to", "this", "container", "or", "to", "the", "body", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/pages/AbstractMergePage.java#L137-L149", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java", "func_name": "AjaxSubmitCloseButton.convertDateFieldValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method used to convert the date value from the ui in date values for\neFaps.\n@param _target AjaxRequestTarget\n@return true if converted successfully, else false\n@throws EFapsException on error", "docstring_tokens": ["Method", "used", "to", "convert", "the", "date", "value", "from", "the", "ui", "in", "date", "values", "for", "eFaps", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java#L284-L315", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java", "func_name": "AjaxSubmitCloseButton.convertFieldValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method used to convert the values from the ui in values for\neFaps.\n@param _target AjaxRequestTarget\n@return true if converted successfully, else false\n@throws EFapsException on error", "docstring_tokens": ["Method", "used", "to", "convert", "the", "values", "from", "the", "ui", "in", "values", "for", "eFaps", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java#L324-L335", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java", "func_name": "AjaxSubmitCloseButton.onError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method is not used, but needed from the api.\n\n@param _target AjaxRequestTarget", "docstring_tokens": ["Method", "is", "not", "used", "but", "needed", "from", "the", "api", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java#L343-L397", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java", "func_name": "AjaxSubmitCloseButton.validateFieldValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to validate the values for fields.\n@param _target AjaxRequestTarget\n@return true if validation was valid, else false\n@throws EFapsException on error", "docstring_tokens": ["Method", "to", "validate", "the", "values", "for", "fields", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java#L485-L502", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java", "func_name": "AjaxSubmitCloseButton.evalFormElement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recursive method to validate the elements of the form.\n@param _target AjaxRequestTarget\n@param _html StringBuilder for the warning message\n@param _uiform UIForm to start the validation\n@return true if validation was valid, else false\n@throws EFapsException on error", "docstring_tokens": ["Recursive", "method", "to", "validate", "the", "elements", "of", "the", "form", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java#L512-L544", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java", "func_name": "AjaxSubmitCloseButton.validateForm", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes the Validation-Events related to the CommandAbstract which\ncalled this Form.\n\n@param _target AjaxRequestTarget to be used in the case a ModalPage\nshould be called\n@param _other other parameters\n@param _classifications lis of classifications\n@return true if the Validation was valid, otherwise false\n@throws EFapsException on error", "docstring_tokens": ["Executes", "the", "Validation", "-", "Events", "related", "to", "the", "CommandAbstract", "which", "called", "this", "Form", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java#L557-L617", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java", "func_name": "AjaxSubmitCloseButton.checkForRequired", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method checking if the mandatory field of the Form are filled with a value,\nand if not opens a WarnDialog and marks the fields in the Form via Ajax.\n\n@param _target RequestTarget used for this Request\n@return true if all mandatory fields are filled, else false", "docstring_tokens": ["Method", "checking", "if", "the", "mandatory", "field", "of", "the", "Form", "are", "filled", "with", "a", "value", "and", "if", "not", "opens", "a", "WarnDialog", "and", "marks", "the", "fields", "in", "the", "Form", "via", "Ajax", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java#L626-L649", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java", "func_name": "AjaxSubmitCloseButton.getFormPanels", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to get the FormPanel of this Page.\n\n@return FormPanel", "docstring_tokens": ["Method", "to", "get", "the", "FormPanel", "of", "this", "Page", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java#L656-L674", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java", "func_name": "AjaxSubmitCloseButton.showDialog", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shows a modal DialogPage.\n\n@param _target AjaxRequestTarget to be used for opening the modal\nDialogPage\n@param _key the Key to get the DBProperties from the eFapsDataBaase or a\ncode sniplett\n@param _isSniplett is the parameter _key a key to a property or a\nsniplett\n@param _goOnButton should a button to go on be rendered", "docstring_tokens": ["Shows", "a", "modal", "DialogPage", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/footer/AjaxSubmitCloseButton.java#L687-L725", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/filter/TransactionFilter.java", "func_name": "TransactionFilter.init", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Called by the web container to indicate to a filter that it is being\nplaced into service. The servlet container calls the init method exactly\nonce after instantiating the filter. The init method must complete\nsuccessfully before the filter is asked to do any filtering work. The web\ncontainer cannot place the filter into service if the init method either\n\n
    \n
  1. Throws a ServletException
  2. \n
  3. Does not return within a time period defined by the web container
  4. \n
\n@param _filterConfig filterconfig\n@throws ServletException on error", "docstring_tokens": ["Called", "by", "the", "web", "container", "to", "indicate", "to", "a", "filter", "that", "it", "is", "being", "placed", "into", "service", ".", "The", "servlet", "container", "calls", "the", "init", "method", "exactly", "once", "after", "instantiating", "the", "filter", ".", "The", "init", "method", "must", "complete", "successfully", "before", "the", "filter", "is", "asked", "to", "do", "any", "filtering", "work", ".", "The", "web", "container", "cannot", "place", "the", "filter", "into", "service", "if", "the", "init", "method", "either"], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/filter/TransactionFilter.java#L94-L116", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/api/resource/ResourceType.java", "func_name": "ResourceType.complementOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a set containing all the known resource types, except those is the given set\n\n@param resourceTypes The resource types which will not be included in the returned set\n@return The complement of the given set of resource types", "docstring_tokens": ["Returns", "a", "set", "containing", "all", "the", "known", "resource", "types", "except", "those", "is", "the", "given", "set"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/api/resource/ResourceType.java#L89-L93", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/api/resource/ResourceType.java", "func_name": "ResourceType.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a set containing the given resource types\n\n@param first The first resource type to add\n@param rest The remaining resource types to add\n@return A set containing the given resource types", "docstring_tokens": ["Returns", "a", "set", "containing", "the", "given", "resource", "types"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/api/resource/ResourceType.java#L102-L107", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/field/factories/HRefFactory.java", "func_name": "HRefFactory.isCheckOut", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if is a check out.\n\n@param _uiField the _ui field\n@return true, if is check out", "docstring_tokens": ["Checks", "if", "is", "a", "check", "out", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/field/factories/HRefFactory.java#L325-L329", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/field/factories/HRefFactory.java", "func_name": "HRefFactory.hasAccess2Menu", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks for access to menu.\n\n@param _uiField the ui field\n@return true, if successful\n@throws EFapsException on error", "docstring_tokens": ["Checks", "for", "access", "to", "menu", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/field/factories/HRefFactory.java#L338-L349", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIMenuItem.java", "func_name": "UIMenuItem.getTypeImage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method returns the URL to the Image of this MenuItem.\n\n@return URL of the Image\n@throws EFapsException on error", "docstring_tokens": ["This", "method", "returns", "the", "URL", "to", "the", "Image", "of", "this", "MenuItem", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIMenuItem.java#L275-L286", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIMenuItem.java", "func_name": "UIMenuItem.initialize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "this method initializes this MenuItem.\n\n@throws CacheReloadException on error", "docstring_tokens": ["this", "method", "initializes", "this", "MenuItem", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIMenuItem.java#L337-L386", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UIMenuItem.java", "func_name": "UIMenuItem.requeryLabel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Requery the Label.\n@return true if the label was changed, else false", "docstring_tokens": ["Requery", "the", "Label", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UIMenuItem.java#L423-L447", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/store/InfinispanPageStore.java", "func_name": "InfinispanPageStore.removePages4Session", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the session.\n\n@param _sessionId the session id", "docstring_tokens": ["Removes", "the", "session", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/store/InfinispanPageStore.java#L155-L163", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/links/ContentContainerLink.java", "func_name": "ContentContainerLink.onComponentTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The tag must be overwritten.\n\n@param _tag tag to write.", "docstring_tokens": ["The", "tag", "must", "be", "overwritten", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/links/ContentContainerLink.java#L101-L107", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/links/ContentContainerLink.java", "func_name": "ContentContainerLink.onClick", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method is executed on click.", "docstring_tokens": ["Method", "is", "executed", "on", "click", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/links/ContentContainerLink.java#L168-L195", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/request/EFapsRequestCycleListener.java", "func_name": "EFapsRequestCycleListener.getEFapsSession", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to get the EFapsSession.\n\n@param _request Request the Session is wanted for\n@return EFapsSession", "docstring_tokens": ["Method", "to", "get", "the", "EFapsSession", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/request/EFapsRequestCycleListener.java#L52-L57", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/request/EFapsRequestCycleListener.java", "func_name": "EFapsRequestCycleListener.onBeginRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Called when the request cycle object is beginning its response.\n\n@param _cycle RequestCycle this Listener belongs to", "docstring_tokens": ["Called", "when", "the", "request", "cycle", "object", "is", "beginning", "its", "response", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/request/EFapsRequestCycleListener.java#L64-L73", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/request/EFapsRequestCycleListener.java", "func_name": "EFapsRequestCycleListener.onEndRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Called when the request cycle object has finished its response.\n\n@param _cycle RequestCycle this Listener belongs to", "docstring_tokens": ["Called", "when", "the", "request", "cycle", "object", "has", "finished", "its", "response", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/request/EFapsRequestCycleListener.java#L80-L88", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java", "func_name": "RegistryManager.registerUserSession", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Register user session.\n\n@param _userName the user name\n@param _sessionId the session ID", "docstring_tokens": ["Register", "user", "session", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java#L87-L99", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java", "func_name": "RegistryManager.registerActivity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Register activity.\n\n@param _session the session", "docstring_tokens": ["Register", "activity", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java#L132-L142", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java", "func_name": "RegistryManager.addMsgConnection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the msg connection.\n\n@param _sessionId the session ID\n@param _key the key", "docstring_tokens": ["Adds", "the", "msg", "connection", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java#L160-L167", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java", "func_name": "RegistryManager.invalidateSession", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Invalidate session.\n\n@param _sessionId the session id", "docstring_tokens": ["Invalidate", "session", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java#L174-L179", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java", "func_name": "RegistryManager.removeUserSession", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the user session.\n\n@param _sessionId the session id", "docstring_tokens": ["Removes", "the", "user", "session", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java#L186-L194", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java", "func_name": "RegistryManager.getUsers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the users.\n\n@return the users", "docstring_tokens": ["Gets", "the", "users", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java#L234-L241", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java", "func_name": "RegistryManager.getConnections4User", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the connections 4 user.\n\n@param _login the login\n@return the connections 4 user", "docstring_tokens": ["Gets", "the", "connections", "4", "user", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java#L259-L281", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java", "func_name": "RegistryManager.getConnection4Session", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the connection 4 session.\n\n@param _sessionId the session id\n@return the connection 4 session", "docstring_tokens": ["Gets", "the", "connection", "4", "session", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java#L289-L302", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java", "func_name": "RegistryManager.getCache", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the cache.\n\n@return the cache", "docstring_tokens": ["Gets", "the", "cache", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/connectionregistry/RegistryManager.java#L309-L324", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIObject.java", "func_name": "AbstractUIObject.initialize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method initializes the model.\n\n@param _commandUUID UUID for this Model\n@param _openerId id of the opener\n@throws CacheReloadException on error", "docstring_tokens": ["Method", "initializes", "the", "model", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIObject.java#L155-L175", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIObject.java", "func_name": "AbstractUIObject.getCallingCommand", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the CommandAbstract which was originally called from the Frontend and\nlet to the construction of this model.\n\n@see #callingCmdUUID\n@return the calling CommandAbstract UIClassification\n@throws CacheReloadException on error", "docstring_tokens": ["Get", "the", "CommandAbstract", "which", "was", "originally", "called", "from", "the", "Frontend", "and", "let", "to", "the", "construction", "of", "this", "model", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIObject.java#L228-L239", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIObject.java", "func_name": "AbstractUIObject.executeEvents", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute the events.\n\n@param _eventType type of events to be executed\n@param _objectTuples tuples of objects passed to the event\n@return Lsit of returns from the events\n@throws EFapsException on error", "docstring_tokens": ["Execute", "the", "events", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/AbstractUIObject.java#L468-L500", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/values/DropDownField.java", "func_name": "DropDownField.addBehaviors", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the behaviors.", "docstring_tokens": ["Adds", "the", "behaviors", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/values/DropDownField.java#L146-L186", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/field/FieldConfiguration.java", "func_name": "FieldConfiguration.getWidthWeight", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the width weight.\n\n@return the width weight", "docstring_tokens": ["Gets", "the", "width", "weight", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/field/FieldConfiguration.java#L139-L146", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/field/FieldConfiguration.java", "func_name": "FieldConfiguration.evalLabel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Evaluate the label.\n\n@param _uiValue the _ui value\n@param _fieldInst the _field inst\n@return the label\n@throws CacheReloadException the cache reload exception", "docstring_tokens": ["Evaluate", "the", "label", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/field/FieldConfiguration.java#L213-L240", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/field/FieldConfiguration.java", "func_name": "FieldConfiguration.isTableField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if is table.\n\n@return true, if is table", "docstring_tokens": ["Checks", "if", "is", "table", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/field/FieldConfiguration.java#L280-L289", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/field/FieldConfiguration.java", "func_name": "FieldConfiguration.getSimFieldConfig", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the field config.\n\n@return the field config", "docstring_tokens": ["Gets", "the", "field", "config", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/field/FieldConfiguration.java#L296-L311", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/EsjpInvoker.java", "func_name": "EsjpInvoker.isVisible", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if is visible.\n\n@return true, if is visible", "docstring_tokens": ["Checks", "if", "is", "visible", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/EsjpInvoker.java#L135-L145", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/split/AjaxStorePositionBehavior.java", "func_name": "AjaxStorePositionBehavior.respond", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "On request the values are stored.\n\n@param _target AjaxRequestTarget", "docstring_tokens": ["On", "request", "the", "values", "are", "stored", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/split/AjaxStorePositionBehavior.java#L80-L93", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/button/AjaxButton.java", "func_name": "AjaxButton.initialize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Init the component.\n@param _model Model for this component\n@param _reference refernce to an icon\n@param _label label of the button", "docstring_tokens": ["Init", "the", "component", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/button/AjaxButton.java#L196-L209", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/autocomplete/AutoCompleteComboBox.java", "func_name": "AutoCompleteComboBox.getChoices", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to get the values from the esjp.\n\n@see org.apache.wicket.extensions.ajax.markup.html.autocomplete\n.AutoCompleteTextField#getChoices(java.lang.String)\n@param _input input from the webform\n@return iterator", "docstring_tokens": ["Method", "to", "get", "the", "values", "from", "the", "esjp", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/autocomplete/AutoCompleteComboBox.java#L118-L137", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/util/DateUtil.java", "func_name": "DateUtil.getDateTimeFormatter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the date time formatter.\n\n@return the date time formatter\n@throws EFapsException the e faps exception", "docstring_tokens": ["Gets", "the", "date", "time", "formatter", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/util/DateUtil.java#L116-L127", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/servlet/FileServlet.java", "func_name": "FileServlet.doGet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Search for the requested file in the folder corresponding to the user of the context.\n\n@param _req request variable\n@param _resp response variable\n@throws ServletException on error", "docstring_tokens": ["Search", "for", "the", "requested", "file", "in", "the", "folder", "corresponding", "to", "the", "user", "of", "the", "context", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/servlet/FileServlet.java#L72-L101", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/servlet/HelpServlet.java", "func_name": "HelpServlet.getMenu", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "get the CharSequence for the menu.\n\n@return the menu\n@throws EFapsException on error", "docstring_tokens": ["get", "the", "CharSequence", "for", "the", "menu", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/servlet/HelpServlet.java#L212-L243", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/servlet/HelpServlet.java", "func_name": "HelpServlet.getSubMenues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recursive method to get the CharSequence for the sub menu.\n\n@param _instance Instance of the parent menu\n@return the menu\n@throws EFapsException on error", "docstring_tokens": ["Recursive", "method", "to", "get", "the", "CharSequence", "for", "the", "sub", "menu", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/servlet/HelpServlet.java#L252-L296", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UITable.java", "func_name": "UITable.initialise", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method that initializes the TableModel.\n\n@throws EFapsException on error", "docstring_tokens": ["Method", "that", "initializes", "the", "TableModel", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UITable.java#L170-L231", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UITable.java", "func_name": "UITable.getInstanceList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to get the list of instance.\n\n@return List of instances\n@throws EFapsException on error", "docstring_tokens": ["Method", "to", "get", "the", "list", "of", "instance", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UITable.java#L239-L270", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UITable.java", "func_name": "UITable.addFilterList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a filterlist to the filters of this UiTable.\n\n@param _uitableHeader UitableHeader this filter belongs to\n@param _list lsi of value to filter", "docstring_tokens": ["Add", "a", "filterlist", "to", "the", "filters", "of", "this", "UiTable", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UITable.java#L619-L629", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UITable.java", "func_name": "UITable.addFilterClassifcation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a classification based filters of this UiTable.\n\n@param _uitableHeader UitableHeader this filter belongs to\n@param _uiClassification classification based filters\n@throws EFapsException on error", "docstring_tokens": ["Add", "a", "classification", "based", "filters", "of", "this", "UiTable", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UITable.java#L687-L698", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UITable.java", "func_name": "UITable.getFilter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to get a Filter from the list of filters belonging to this\nUITable.\n\n@param _uitableHeader UitableHeader this filter belongs to\n@return filter\n@throws EFapsException on error", "docstring_tokens": ["Method", "to", "get", "a", "Filter", "from", "the", "list", "of", "filters", "belonging", "to", "this", "UITable", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UITable.java#L730-L739", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UITable.java", "func_name": "UITable.getFilterPickList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the List of values for a PICKERLIST.\n\n@param _uitableHeader UitableHeader this filter belongs to\n@return List of Values\n@throws EFapsException on error", "docstring_tokens": ["Get", "the", "List", "of", "values", "for", "a", "PICKERLIST", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UITable.java#L748-L765", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UITable.java", "func_name": "UITable.getStatus4Type", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recursive method to get all status for a Type representing a StatusGrp.\n@param _type Type the status list is wanted for\n@return list of status\n@throws CacheReloadException on error", "docstring_tokens": ["Recursive", "method", "to", "get", "all", "status", "for", "a", "Type", "representing", "a", "StatusGrp", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UITable.java#L785-L798", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UITable.java", "func_name": "UITable.storeFilters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Store the Filter in the Session.", "docstring_tokens": ["Store", "the", "Filter", "in", "the", "Session", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UITable.java#L803-L814", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/UITable.java", "func_name": "UITable.removeFilter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to remove a filter from the filters.\n\n@param _uiTableHeader UITableHeader the filter is removed for", "docstring_tokens": ["Method", "to", "remove", "a", "filter", "from", "the", "filters", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/UITable.java#L884-L892", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java", "func_name": "UIGrid.getCell", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the cell.\n\n@param _column the column\n@param _uiValue the ui value\n@param _sortValue the sort value\n@param _fields the fields\n@return the cell\n@throws EFapsException the e faps exception", "docstring_tokens": ["Gets", "the", "cell", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java#L442-L483", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java", "func_name": "UIGrid.getInstances", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the instances.\n\n@return the instances\n@throws EFapsException the e faps exception", "docstring_tokens": ["Gets", "the", "instances", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java#L506-L526", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java", "func_name": "UIGrid.getFilter4Field", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the filter for field.\n\n@param _field the field\n@return the filter for field", "docstring_tokens": ["Gets", "the", "filter", "for", "field", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java#L534-L565", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java", "func_name": "UIGrid.getCommand", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the command.\n\n@return the command\n@throws CacheReloadException the cache reload exception", "docstring_tokens": ["Gets", "the", "command", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java#L611-L620", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java", "func_name": "UIGrid.getTitle", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method retrieves the Value for the Title from the eFaps Database.\n\n@return Value of the Title", "docstring_tokens": ["This", "method", "retrieves", "the", "Value", "for", "the", "Title", "from", "the", "eFaps", "Database", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java#L771-L801", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java", "func_name": "UIGrid.isDateFilter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if is date filter.\n\n@param _filter the filter\n@return true, if is date filter\n@throws EFapsException the e faps exception", "docstring_tokens": ["Checks", "if", "is", "date", "filter", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java#L852-L870", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java", "func_name": "UIGrid.getRow4Id", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the row for id.\n\n@param _rowId the row id\n@return the row for id\n@throws EFapsException the e faps exception", "docstring_tokens": ["Gets", "the", "row", "for", "id", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java#L1014-L1027", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java", "func_name": "UIGrid.print", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prints the.\n\n@param _uiGrid the ui grid\n@return the file", "docstring_tokens": ["Prints", "the", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/models/objects/grid/UIGrid.java#L1055-L1077", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/search/IndexSearch.java", "func_name": "IndexSearch.getQuery", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the query.\n\n@return the query", "docstring_tokens": ["Gets", "the", "query", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/search/IndexSearch.java#L95-L117", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/search/IndexSearch.java", "func_name": "IndexSearch.getExcluded", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the excluded.\n\n@return the excluded", "docstring_tokens": ["Gets", "the", "excluded", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/search/IndexSearch.java#L180-L187", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/search/IndexSearch.java", "func_name": "IndexSearch.dimFilterApplied", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if a dimension filter applied.\n\n@param _nodes the nodes\n@return true, if successful", "docstring_tokens": ["Check", "if", "a", "dimension", "filter", "applied", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/search/IndexSearch.java#L209-L225", "partition": "valid"} +{"repo": "eFaps/eFaps-WebApp", "path": "src/main/java/org/efaps/ui/wicket/components/search/IndexSearch.java", "func_name": "IndexSearch.fillDimensionProvider", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fill dimension provider.\n\n@param _updateDim the update dim", "docstring_tokens": ["Fill", "dimension", "provider", "."], "sha": "785c1aba0860dd65c673f123214fbe8c24ebdb17", "url": "https://github.com/eFaps/eFaps-WebApp/blob/785c1aba0860dd65c673f123214fbe8c24ebdb17/src/main/java/org/efaps/ui/wicket/components/search/IndexSearch.java#L232-L272", "partition": "valid"} +{"repo": "microfocus-idol/java-hod-client", "path": "src/main/java/com/hp/autonomy/hod/client/api/userstore/group/GroupsServiceImpl.java", "func_name": "GroupsServiceImpl.buildHierarchyParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Build the hierarchy parameters map for a create group request", "docstring_tokens": ["Build", "the", "hierarchy", "parameters", "map", "for", "a", "create", "group", "request"], "sha": "56359e5b93a5637c37ef82ce3fc78b95cf1f6d80", "url": "https://github.com/microfocus-idol/java-hod-client/blob/56359e5b93a5637c37ef82ce3fc78b95cf1f6d80/src/main/java/com/hp/autonomy/hod/client/api/userstore/group/GroupsServiceImpl.java#L123-L139", "partition": "valid"} +{"repo": "buschmais/jqa-xml-plugin", "path": "src/main/java/com/buschmais/jqassistant/plugin/xml/api/scanner/XMLFileFilter.java", "func_name": "XMLFileFilter.rootElementMatches", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Matches a file resource for being an XML file with a specific root\nelement.\n\n@param fileResource\nThe file resource.\n@param path\nThe path of the file resource.\n@param expectedRootElement\nThe expected local name of the root element.\n@return `true` If the file is an XML file and contains the\nexpected root element.\n@throws IOException\nIf the file resource cannot be read.", "docstring_tokens": ["Matches", "a", "file", "resource", "for", "being", "an", "XML", "file", "with", "a", "specific", "root", "element", "."], "sha": "a94331c0d1daf5ff83b96a7de1c06b2df45ddd8b", "url": "https://github.com/buschmais/jqa-xml-plugin/blob/a94331c0d1daf5ff83b96a7de1c06b2df45ddd8b/src/main/java/com/buschmais/jqassistant/plugin/xml/api/scanner/XMLFileFilter.java#L53-L69", "partition": "valid"} +{"repo": "DDTH/ddth-cache-adapter", "path": "ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/CacheEntry.java", "func_name": "CacheEntry.touch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "\"Touch\" the cache entry.\n\n@return\n@since 0.2.1 entry can be touched only if {@code expireAfterAccess > 0}.", "docstring_tokens": ["Touch", "the", "cache", "entry", "."], "sha": "7c897570cd2ce45f305601abbc4d3d61273da532", "url": "https://github.com/DDTH/ddth-cache-adapter/blob/7c897570cd2ce45f305601abbc4d3d61273da532/ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/CacheEntry.java#L149-L158", "partition": "valid"} +{"repo": "DDTH/ddth-cache-adapter", "path": "ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/redis/ShardedRedisCache.java", "func_name": "ShardedRedisCache.refreshTTL", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Refresh TTL of a cache entry.\n\n@param key\n@param ce\n@since 0.6.2", "docstring_tokens": ["Refresh", "TTL", "of", "a", "cache", "entry", "."], "sha": "7c897570cd2ce45f305601abbc4d3d61273da532", "url": "https://github.com/DDTH/ddth-cache-adapter/blob/7c897570cd2ce45f305601abbc4d3d61273da532/ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/redis/ShardedRedisCache.java#L303-L317", "partition": "valid"} +{"repo": "DDTH/ddth-cache-adapter", "path": "ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/utils/CacheUtils.java", "func_name": "CacheUtils.tryClone", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Try cloning an object.\n\n@param toBeCloned\n@return result from object's {@code clone()} method if object implements\ninterface {@link Cloneable}, otherwise the same object is\nreturned", "docstring_tokens": ["Try", "cloning", "an", "object", "."], "sha": "7c897570cd2ce45f305601abbc4d3d61273da532", "url": "https://github.com/DDTH/ddth-cache-adapter/blob/7c897570cd2ce45f305601abbc4d3d61273da532/ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/utils/CacheUtils.java#L20-L42", "partition": "valid"} +{"repo": "DDTH/ddth-cache-adapter", "path": "ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/AbstractCache.java", "func_name": "AbstractCache.init", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initializes the cache before use.", "docstring_tokens": ["Initializes", "the", "cache", "before", "use", "."], "sha": "7c897570cd2ce45f305601abbc4d3d61273da532", "url": "https://github.com/DDTH/ddth-cache-adapter/blob/7c897570cd2ce45f305601abbc4d3d61273da532/ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/AbstractCache.java#L84-L137", "partition": "valid"} +{"repo": "DDTH/ddth-cache-adapter", "path": "ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/AbstractCache.java", "func_name": "AbstractCache.setCacheProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Cache's custom properties.\n\n@param cacheProps\n@return\n@since 0.6.1", "docstring_tokens": ["Cache", "s", "custom", "properties", "."], "sha": "7c897570cd2ce45f305601abbc4d3d61273da532", "url": "https://github.com/DDTH/ddth-cache-adapter/blob/7c897570cd2ce45f305601abbc4d3d61273da532/ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/AbstractCache.java#L253-L256", "partition": "valid"} +{"repo": "DDTH/ddth-cache-adapter", "path": "ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/AbstractCache.java", "func_name": "AbstractCache.getCacheProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get cache's custom property.\n\n@param key\n@return\n@since 0.6.1", "docstring_tokens": ["Get", "cache", "s", "custom", "property", "."], "sha": "7c897570cd2ce45f305601abbc4d3d61273da532", "url": "https://github.com/DDTH/ddth-cache-adapter/blob/7c897570cd2ce45f305601abbc4d3d61273da532/ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/AbstractCache.java#L275-L277", "partition": "valid"} +{"repo": "DDTH/ddth-cache-adapter", "path": "ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/redis/BaseRedisCache.java", "func_name": "BaseRedisCache.calcCacheKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates cache key based on the key mode.\n\n
    \n
  • HASH & MONOPOLISTIC mode: return the key as-is
  • \n
  • NAMESPACE mode: return {@code cache_name:key}
  • \n
\n\n@param key\n@return", "docstring_tokens": ["Calculates", "cache", "key", "based", "on", "the", "key", "mode", "."], "sha": "7c897570cd2ce45f305601abbc4d3d61273da532", "url": "https://github.com/DDTH/ddth-cache-adapter/blob/7c897570cd2ce45f305601abbc4d3d61273da532/ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/redis/BaseRedisCache.java#L301-L311", "partition": "valid"} +{"repo": "DDTH/ddth-cache-adapter", "path": "ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/AbstractCacheFactory.java", "func_name": "AbstractCacheFactory.getCacheProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a cache's properties\n\n@param name\n@return", "docstring_tokens": ["Gets", "a", "cache", "s", "properties"], "sha": "7c897570cd2ce45f305601abbc4d3d61273da532", "url": "https://github.com/DDTH/ddth-cache-adapter/blob/7c897570cd2ce45f305601abbc4d3d61273da532/ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/AbstractCacheFactory.java#L137-L139", "partition": "valid"} +{"repo": "DDTH/ddth-cache-adapter", "path": "ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/localremote/LocalRemoteCache.java", "func_name": "LocalRemoteCache.set", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Puts an entry to both local and remote caches, with specified expiries.", "docstring_tokens": ["Puts", "an", "entry", "to", "both", "local", "and", "remote", "caches", "with", "specified", "expiries", "."], "sha": "7c897570cd2ce45f305601abbc4d3d61273da532", "url": "https://github.com/DDTH/ddth-cache-adapter/blob/7c897570cd2ce45f305601abbc4d3d61273da532/ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/localremote/LocalRemoteCache.java#L86-L98", "partition": "valid"} +{"repo": "DDTH/ddth-cache-adapter", "path": "ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/localremote/LocalRemoteCache.java", "func_name": "LocalRemoteCache.delete", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Delete an entry from both local and remote caches.", "docstring_tokens": ["Delete", "an", "entry", "from", "both", "local", "and", "remote", "caches", "."], "sha": "7c897570cd2ce45f305601abbc4d3d61273da532", "url": "https://github.com/DDTH/ddth-cache-adapter/blob/7c897570cd2ce45f305601abbc4d3d61273da532/ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/localremote/LocalRemoteCache.java#L103-L115", "partition": "valid"} +{"repo": "DDTH/ddth-cache-adapter", "path": "ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/localremote/LocalRemoteCache.java", "func_name": "LocalRemoteCache.deleteLocal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Delete an entry from the local cache.\n\n@param key", "docstring_tokens": ["Delete", "an", "entry", "from", "the", "local", "cache", "."], "sha": "7c897570cd2ce45f305601abbc4d3d61273da532", "url": "https://github.com/DDTH/ddth-cache-adapter/blob/7c897570cd2ce45f305601abbc4d3d61273da532/ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/localremote/LocalRemoteCache.java#L122-L130", "partition": "valid"} +{"repo": "DDTH/ddth-cache-adapter", "path": "ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/localremote/LocalRemoteCache.java", "func_name": "LocalRemoteCache.deleteAll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes all entries in both local and remote caches.", "docstring_tokens": ["Deletes", "all", "entries", "in", "both", "local", "and", "remote", "caches", "."], "sha": "7c897570cd2ce45f305601abbc4d3d61273da532", "url": "https://github.com/DDTH/ddth-cache-adapter/blob/7c897570cd2ce45f305601abbc4d3d61273da532/ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/localremote/LocalRemoteCache.java#L135-L147", "partition": "valid"} +{"repo": "DDTH/ddth-cache-adapter", "path": "ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/localremote/LocalRemoteCache.java", "func_name": "LocalRemoteCache.deleteAllLocal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes all entries in the local cache.", "docstring_tokens": ["Deletes", "all", "entries", "in", "the", "local", "cache", "."], "sha": "7c897570cd2ce45f305601abbc4d3d61273da532", "url": "https://github.com/DDTH/ddth-cache-adapter/blob/7c897570cd2ce45f305601abbc4d3d61273da532/ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/cacheimpl/localremote/LocalRemoteCache.java#L152-L160", "partition": "valid"} +{"repo": "jochen777/jFormchecker", "path": "src/main/java/de/jformchecker/FormChecker.java", "func_name": "FormChecker.getLabelForElement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "move to ViewFacade", "docstring_tokens": ["move", "to", "ViewFacade"], "sha": "ed2a07507e9eca590d0f5abcad7187a146f90447", "url": "https://github.com/jochen777/jFormchecker/blob/ed2a07507e9eca590d0f5abcad7187a146f90447/src/main/java/de/jformchecker/FormChecker.java#L190-L192", "partition": "valid"} +{"repo": "jochen777/jFormchecker", "path": "src/main/java/de/jformchecker/FormChecker.java", "func_name": "FormChecker.sortTabIndexes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "resort tab-indexes", "docstring_tokens": ["resort", "tab", "-", "indexes"], "sha": "ed2a07507e9eca590d0f5abcad7187a146f90447", "url": "https://github.com/jochen777/jFormchecker/blob/ed2a07507e9eca590d0f5abcad7187a146f90447/src/main/java/de/jformchecker/FormChecker.java#L259-L266", "partition": "valid"} +{"repo": "jochen777/jFormchecker", "path": "src/main/java/de/jformchecker/GenericFormBuilder.java", "func_name": "GenericFormBuilder.generateGenericForm", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Renders the html for the complete form with all elements within.", "docstring_tokens": ["Renders", "the", "html", "for", "the", "complete", "form", "with", "all", "elements", "within", "."], "sha": "ed2a07507e9eca590d0f5abcad7187a146f90447", "url": "https://github.com/jochen777/jFormchecker/blob/ed2a07507e9eca590d0f5abcad7187a146f90447/src/main/java/de/jformchecker/GenericFormBuilder.java#L48-L52", "partition": "valid"} +{"repo": "jochen777/jFormchecker", "path": "src/main/java/de/jformchecker/GenericFormBuilder.java", "func_name": "GenericFormBuilder.generateHtmlForElement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "builds the html for one element", "docstring_tokens": ["builds", "the", "html", "for", "one", "element"], "sha": "ed2a07507e9eca590d0f5abcad7187a146f90447", "url": "https://github.com/jochen777/jFormchecker/blob/ed2a07507e9eca590d0f5abcad7187a146f90447/src/main/java/de/jformchecker/GenericFormBuilder.java#L86-L108", "partition": "valid"} +{"repo": "jochen777/jFormchecker", "path": "src/main/java/de/jformchecker/GenericFormBuilder.java", "func_name": "GenericFormBuilder.getCompleteRenderedInput", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "override this, if you want to have a different order of the elements.", "docstring_tokens": ["override", "this", "if", "you", "want", "to", "have", "a", "different", "order", "of", "the", "elements", "."], "sha": "ed2a07507e9eca590d0f5abcad7187a146f90447", "url": "https://github.com/jochen777/jFormchecker/blob/ed2a07507e9eca590d0f5abcad7187a146f90447/src/main/java/de/jformchecker/GenericFormBuilder.java#L129-L150", "partition": "valid"} +{"repo": "jochen777/jFormchecker", "path": "src/main/java/de/jformchecker/View.java", "func_name": "View.getElement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "input-element via a macro!", "docstring_tokens": ["input", "-", "element", "via", "a", "macro!"], "sha": "ed2a07507e9eca590d0f5abcad7187a146f90447", "url": "https://github.com/jochen777/jFormchecker/blob/ed2a07507e9eca590d0f5abcad7187a146f90447/src/main/java/de/jformchecker/View.java#L58-L60", "partition": "valid"} +{"repo": "TrigonicSolutions/spring-utils", "path": "src/main/java/com/trigonic/utils/spring/context/EmbeddedWebContextConnector.java", "func_name": "EmbeddedWebContextConnector.registerAppContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Registers the specified embedded web context.\n\n@return the previously-registered {@link ApplicationContext} or null if nothing previously-registered", "docstring_tokens": ["Registers", "the", "specified", "embedded", "web", "context", "."], "sha": "d8fd70838e9f9bf3206b2163f5c11763353287c4", "url": "https://github.com/TrigonicSolutions/spring-utils/blob/d8fd70838e9f9bf3206b2163f5c11763353287c4/src/main/java/com/trigonic/utils/spring/context/EmbeddedWebContextConnector.java#L37-L39", "partition": "valid"} +{"repo": "jochen777/jFormchecker", "path": "src/main/java/de/jformchecker/elements/SelectInput.java", "func_name": "SelectInput.build", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "a map is not a good structure for that, because keys may be used more than once", "docstring_tokens": ["a", "map", "is", "not", "a", "good", "structure", "for", "that", "because", "keys", "may", "be", "used", "more", "than", "once"], "sha": "ed2a07507e9eca590d0f5abcad7187a146f90447", "url": "https://github.com/jochen777/jFormchecker/blob/ed2a07507e9eca590d0f5abcad7187a146f90447/src/main/java/de/jformchecker/elements/SelectInput.java#L24-L29", "partition": "valid"} +{"repo": "jochen777/jFormchecker", "path": "src/main/java/de/jformchecker/elements/AbstractInput.java", "func_name": "AbstractInput.buildAllAttributes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "builds attribs, elementId, TabIndex", "docstring_tokens": ["builds", "attribs", "elementId", "TabIndex"], "sha": "ed2a07507e9eca590d0f5abcad7187a146f90447", "url": "https://github.com/jochen777/jFormchecker/blob/ed2a07507e9eca590d0f5abcad7187a146f90447/src/main/java/de/jformchecker/elements/AbstractInput.java#L68-L85", "partition": "valid"} +{"repo": "jochen777/jFormchecker", "path": "src/main/java/de/jformchecker/elements/AbstractInput.java", "func_name": "AbstractInput.buildMaxLen", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "builds the maxlen attribute", "docstring_tokens": ["builds", "the", "maxlen", "attribute"], "sha": "ed2a07507e9eca590d0f5abcad7187a146f90447", "url": "https://github.com/jochen777/jFormchecker/blob/ed2a07507e9eca590d0f5abcad7187a146f90447/src/main/java/de/jformchecker/elements/AbstractInput.java#L188-L198", "partition": "valid"} +{"repo": "zoomulus/weaver", "path": "rest/src/main/java/com/zoomulus/weaver/rest/resource/Resource.java", "func_name": "Resource.getAcceptedContentTypes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Ensure most optimal match works", "docstring_tokens": ["Ensure", "most", "optimal", "match", "works"], "sha": "b0ffa0bd6733e87bc4acb5cdfba1035482ba1af3", "url": "https://github.com/zoomulus/weaver/blob/b0ffa0bd6733e87bc4acb5cdfba1035482ba1af3/rest/src/main/java/com/zoomulus/weaver/rest/resource/Resource.java#L62-L79", "partition": "valid"} +{"repo": "byoutline/EventCallback", "path": "eventcallback-api/src/main/java/com/byoutline/eventcallback/internal/SessionChecker.java", "func_name": "SessionChecker.isSameSession", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if currently we are during same session that we were during\ncallback creation.\n\n@return True if we are still during same session, false otherwise.", "docstring_tokens": ["Checks", "if", "currently", "we", "are", "during", "same", "session", "that", "we", "were", "during", "callback", "creation", "."], "sha": "d77b47609dc463dde335a71ad307475e150a5f7e", "url": "https://github.com/byoutline/EventCallback/blob/d77b47609dc463dde335a71ad307475e150a5f7e/eventcallback-api/src/main/java/com/byoutline/eventcallback/internal/SessionChecker.java#L26-L32", "partition": "valid"} +{"repo": "stanfy/enroscar-async", "path": "async/src/main/java/com/stanfy/enroscar/async/content/CursorAsyncBuilder.java", "func_name": "CursorAsyncBuilder.listConverter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wrap a provided converter.\nReturns a converter that creates of list of elements obtained with a provider converter.", "docstring_tokens": ["Wrap", "a", "provided", "converter", ".", "Returns", "a", "converter", "that", "creates", "of", "list", "of", "elements", "obtained", "with", "a", "provider", "converter", "."], "sha": "3e10145431c9f22e8032ca0ac25b654ce5cacdcf", "url": "https://github.com/stanfy/enroscar-async/blob/3e10145431c9f22e8032ca0ac25b654ce5cacdcf/async/src/main/java/com/stanfy/enroscar/async/content/CursorAsyncBuilder.java#L41-L43", "partition": "valid"} +{"repo": "stanfy/enroscar-async", "path": "async/src/main/java/com/stanfy/enroscar/async/internal/LoaderDescription.java", "func_name": "LoaderDescription.initStartedLoaders", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initialize already started loaders.", "docstring_tokens": ["Initialize", "already", "started", "loaders", "."], "sha": "3e10145431c9f22e8032ca0ac25b654ce5cacdcf", "url": "https://github.com/stanfy/enroscar-async/blob/3e10145431c9f22e8032ca0ac25b654ce5cacdcf/async/src/main/java/com/stanfy/enroscar/async/internal/LoaderDescription.java#L77-L99", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFLib/src/main/java/it/polimi/spf/lib/profile/SPFRemoteProfile.java", "func_name": "SPFRemoteProfile.getProfileOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Provides a reference to a remote profile. With this reference it is\npossible to perform read operations and retrieve information from remote\npeople.\n\n@param p\n- the {@link SPFPerson} whose profile to load.\n@return an instance of {@link RemoteProfile} to interact with the remote\nprofile.", "docstring_tokens": ["Provides", "a", "reference", "to", "a", "remote", "profile", ".", "With", "this", "reference", "it", "is", "possible", "to", "perform", "read", "operations", "and", "retrieve", "information", "from", "remote", "people", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFLib/src/main/java/it/polimi/spf/lib/profile/SPFRemoteProfile.java#L54-L60", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/view/TagsPicker.java", "func_name": "TagsPicker.setChangeListener", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the change listener.\n\n@param listener", "docstring_tokens": ["Set", "the", "change", "listener", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/view/TagsPicker.java#L154-L165", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xsd/schema/ValidatorExtensions.java", "func_name": "ValidatorExtensions.getDocumentBuilderFactory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the document builder factory.\n\n@param schema\nthe schema\n@return the document builder factory", "docstring_tokens": ["Gets", "the", "document", "builder", "factory", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xsd/schema/ValidatorExtensions.java#L73-L82", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xsd/schema/ValidatorExtensions.java", "func_name": "ValidatorExtensions.getDOMSource", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the dOM source.\n\n@param xml\nthe xml\n@param errorHandler\nthe error handler\n@return the dOM source\n@throws SAXException\nIf a SAX error occurs during parsing.\n@throws ParserConfigurationException\nif a DocumentBuilder cannot be created which satisfies the configuration\nrequested.\n@throws IOException\nSignals that an I/O exception has occurred.", "docstring_tokens": ["Gets", "the", "dOM", "source", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xsd/schema/ValidatorExtensions.java#L100-L104", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xsd/schema/ValidatorExtensions.java", "func_name": "ValidatorExtensions.getSchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the schema.\n\n@param xsd\nthe xsd\n@param errorHandler\nthe error handler\n@return the schema\n@throws SAXException\nIf a SAX error occurs during parsing.", "docstring_tokens": ["Gets", "the", "schema", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xsd/schema/ValidatorExtensions.java#L117-L130", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xsd/schema/ValidatorExtensions.java", "func_name": "ValidatorExtensions.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses the.\n\n@param xml\nthe xml\n@param errorHandler\nthe error handler\n@return the document\n@throws SAXException\nIf a SAX error occurs during parsing.\n@throws ParserConfigurationException\nif a DocumentBuilder cannot be created which satisfies the configuration\nrequested.\n@throws IOException\nSignals that an I/O exception has occurred.", "docstring_tokens": ["Parses", "the", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xsd/schema/ValidatorExtensions.java#L148-L155", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xsd/schema/ValidatorExtensions.java", "func_name": "ValidatorExtensions.validateSchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validate xml through xsd.\n\n@param xsd\nthe xsd\n@param xml\nthe xml\n@param errorHandler\nthe error handler\n@throws SAXException\nIf a SAX error occurs during parsing.\n@throws ParserConfigurationException\nif a DocumentBuilder cannot be created which satisfies the configuration\nrequested.\n@throws IOException\nSignals that an I/O exception has occurred.", "docstring_tokens": ["Validate", "xml", "through", "xsd", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xsd/schema/ValidatorExtensions.java#L174-L186", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xsd/schema/ValidatorExtensions.java", "func_name": "ValidatorExtensions.validateSchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validate given xml schema.\n\n@param SchemaUrl\nthe schema url\n@param XmlDocumentUrl\nthe xml document url\n@return true if the given xml is valid otherwise false\n@throws SAXException\nIf a SAX error occurs during parsing.\n@throws ParserConfigurationException\nif a DocumentBuilder cannot be created which satisfies the configuration\nrequested.\n@throws IOException\nSignals that an I/O exception has occurred.", "docstring_tokens": ["Validate", "given", "xml", "schema", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xsd/schema/ValidatorExtensions.java#L205-L223", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/tag/SimpleTag.java", "func_name": "SimpleTag.addChild", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the given child.\n\n@param child\nthe child\n@return true, if successful", "docstring_tokens": ["Adds", "the", "given", "child", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/tag/SimpleTag.java#L106-L113", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/tag/SimpleTag.java", "func_name": "SimpleTag.removeAttribute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the attribute with the given name.\n\n@param name\nthe name\n@return the string", "docstring_tokens": ["Removes", "the", "attribute", "with", "the", "given", "name", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/tag/SimpleTag.java#L140-L147", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/tag/SimpleTag.java", "func_name": "SimpleTag.toVelocityTemplate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates from this Tag object an velocity template as String object. It puts children Tag\nobject in the template recursively.\n\n@return the string buffer", "docstring_tokens": ["Creates", "from", "this", "Tag", "object", "an", "velocity", "template", "as", "String", "object", ".", "It", "puts", "children", "Tag", "object", "in", "the", "template", "recursively", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/tag/SimpleTag.java#L171-L199", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/tag/SimpleTag.java", "func_name": "SimpleTag.toXmlString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates from this Tag object an xml string.\n\n@return the string", "docstring_tokens": ["Creates", "from", "this", "Tag", "object", "an", "xml", "string", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/tag/SimpleTag.java#L206-L236", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFWFDMid/src/main/java/it/polimi/spf/wfd/ServiceList.java", "func_name": "ServiceList.addServiceIfNotPresent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to add a service inside the list in a secure way.\nThe service is added only if isn't already inside the list.\n\n@param service {@link WiFiP2pService} to add.", "docstring_tokens": ["Method", "to", "add", "a", "service", "inside", "the", "list", "in", "a", "secure", "way", ".", "The", "service", "is", "added", "only", "if", "isn", "t", "already", "inside", "the", "list", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFWFDMid/src/main/java/it/polimi/spf/wfd/ServiceList.java#L71-L93", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFWFDMid/src/main/java/it/polimi/spf/wfd/ServiceList.java", "func_name": "ServiceList.getServiceByDevice", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to get a service from the list, using only the device.\nThis method use only the deviceAddress, not the device name, because sometimes Android doesn't\nget the name, but only the mac address.\n\n@param device WifiP2pDevice that you want to use to search the service.\n@return The WiFiP2pService associated to the device or null, if the device isn't in the list.", "docstring_tokens": ["Method", "to", "get", "a", "service", "from", "the", "list", "using", "only", "the", "device", ".", "This", "method", "use", "only", "the", "deviceAddress", "not", "the", "device", "name", "because", "sometimes", "Android", "doesn", "t", "get", "the", "name", "but", "only", "the", "mac", "address", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFWFDMid/src/main/java/it/polimi/spf/wfd/ServiceList.java#L103-L125", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/local/SPFService.java", "func_name": "SPFService.onStartCommand", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Triggered by the front end to keep spf service active in foreground", "docstring_tokens": ["Triggered", "by", "the", "front", "end", "to", "keep", "spf", "service", "active", "in", "foreground"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/local/SPFService.java#L159-L186", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFTriggerTable.java", "func_name": "SPFTriggerTable.getAllTriggers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return all the triggers of the specified application\n\n@param appIdentifier\n- the identifier of the application\n@return a list of {@link SPFTrigger}", "docstring_tokens": ["Return", "all", "the", "triggers", "of", "the", "specified", "application"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFTriggerTable.java#L168-L180", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFTriggerTable.java", "func_name": "SPFTriggerTable.deleteAllTriggerOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Delete all the triggers registered with the given application identifier.\n\n@param appPackageName\n@return true if there is at least one row deleted", "docstring_tokens": ["Delete", "all", "the", "triggers", "registered", "with", "the", "given", "application", "identifier", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFTriggerTable.java#L206-L211", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFTriggerTable.java", "func_name": "SPFTriggerTable.deleteTrigger", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Delete the trigger with the given id.\n\n@param id\n@param appPackageName\n@return true if there is a deletion", "docstring_tokens": ["Delete", "the", "trigger", "with", "the", "given", "id", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFTriggerTable.java#L220-L226", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFTriggerTable.java", "func_name": "SPFTriggerTable.getTrigger", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the trigger with the specified id.\n\n@param triggerId\n@param appPackageName\n@return", "docstring_tokens": ["Return", "the", "trigger", "with", "the", "specified", "id", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFTriggerTable.java#L235-L245", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/security/SPFSecurityMonitor.java", "func_name": "SPFSecurityMonitor.validateAccess", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Local app security", "docstring_tokens": ["Local", "app", "security"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/security/SPFSecurityMonitor.java#L48-L61", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/XmlToObjectExtensions.java", "func_name": "XmlToObjectExtensions.toObjectWithXStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates from the given xml string an Object. The given map hold the aliases. For more\ninformation with aliasing see documation of xstream.\n\n@param \nthe generic type of the return type\n@param xmlString\nthe xml as string object\n@param aliases\nthe aliases\n@return the created object from the given xml string.", "docstring_tokens": ["Creates", "from", "the", "given", "xml", "string", "an", "Object", ".", "The", "given", "map", "hold", "the", "aliases", ".", "For", "more", "information", "with", "aliasing", "see", "documation", "of", "xstream", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/XmlToObjectExtensions.java#L102-L106", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/XmlToObjectExtensions.java", "func_name": "XmlToObjectExtensions.toObjectWithXStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates from the given xml string an java object. The given map hold the aliases. For more\ninformation with aliasing see documation of xstream.\n\n@param \nthe generic type of the return type\n@param xstream\nthe xstream object.\n@param xmlString\nthe xml\n@param aliases\nthe aliases\n@return the object", "docstring_tokens": ["Creates", "from", "the", "given", "xml", "string", "an", "java", "object", ".", "The", "given", "map", "hold", "the", "aliases", ".", "For", "more", "information", "with", "aliasing", "see", "documation", "of", "xstream", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/XmlToObjectExtensions.java#L138-L154", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/XmlToJsonExtensions.java", "func_name": "XmlToJsonExtensions.toJson", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates from the given xml string a json string.\n\n@param xmlString\nthe xml as string object\n@param aliases\nthe aliases\n@return the json string.", "docstring_tokens": ["Creates", "from", "the", "given", "xml", "string", "a", "json", "string", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/XmlToJsonExtensions.java#L62-L75", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFLib/src/main/java/it/polimi/spf/lib/services/InvocationStub.java", "func_name": "InvocationStub.invokeMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Invokes a remote service providing the name of the method to invoke name\nand the list of parameters. The invocation is a blocking network request\nand thus should not be performed on the main thread.\n\n@param methodName\n- the name of the method to invoke.\n@param args\n- the array of the parameters to pass to the method.\n@return the return value of the method, if any, or null if the method\nreturns void.\n@throws ServiceInvocationException\nif an invocation is thrown during the execution of the\nservice.", "docstring_tokens": ["Invokes", "a", "remote", "service", "providing", "the", "name", "of", "the", "method", "to", "invoke", "name", "and", "the", "list", "of", "parameters", ".", "The", "invocation", "is", "a", "blocking", "network", "request", "and", "thus", "should", "not", "be", "performed", "on", "the", "main", "thread", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFLib/src/main/java/it/polimi/spf/lib/services/InvocationStub.java#L163-L186", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFLib/src/main/java/it/polimi/spf/lib/services/InvocationStub.java", "func_name": "InvocationStub.checkCurrentThread", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if the current thread is the main thread, if so it logs a wrning.", "docstring_tokens": ["Checks", "if", "the", "current", "thread", "is", "the", "main", "thread", "if", "so", "it", "logs", "a", "wrning", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFLib/src/main/java/it/polimi/spf/lib/services/InvocationStub.java#L189-L193", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/Utils.java", "func_name": "Utils.logCall", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper to log a call to a method\n\n@param tag\n- the tag\n@param methodName\n- the name of the method\n@param args\n- the method args", "docstring_tokens": ["Helper", "to", "log", "a", "call", "to", "a", "method"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/Utils.java#L39-L43", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/XmlExtensions.java", "func_name": "XmlExtensions.loadObject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load from the given input stream that should represent an xml file and transform it to the\ngeneric type object.\n\n@param \nthe generic type\n@param is\nthe input stream\n@return the object from the given input stream.\n@throws IOException\nSignals that an I/O exception has occurred.", "docstring_tokens": ["Load", "from", "the", "given", "input", "stream", "that", "should", "represent", "an", "xml", "file", "and", "transform", "it", "to", "the", "generic", "type", "object", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/XmlExtensions.java#L89-L94", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/XmlExtensions.java", "func_name": "XmlExtensions.newTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a tag from the given string values. Can be used for creating html or xml tags.\n\n@param tagname\nthe tag name\n@param value\nthe value from the tag\n@param attributes\na map with the attributes\n@return the string", "docstring_tokens": ["Creates", "a", "tag", "from", "the", "given", "string", "values", ".", "Can", "be", "used", "for", "creating", "html", "or", "xml", "tags", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/XmlExtensions.java#L125-L150", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/search/SearchResponder.java", "func_name": "SearchResponder.matches", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies if the local profile matches the given query.\n\n@see Query\n@param q\n@return", "docstring_tokens": ["Verifies", "if", "the", "local", "profile", "matches", "the", "given", "query", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/search/SearchResponder.java#L58-L70", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/services/SPFServiceRegistry.java", "func_name": "SPFServiceRegistry.dispatchInvocation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Dispatches an invocation request to the right application. If the\napplication is not found, an error response is returned.\n\n@param request\n@return", "docstring_tokens": ["Dispatches", "an", "invocation", "request", "to", "the", "right", "application", ".", "If", "the", "application", "is", "not", "found", "an", "error", "response", "is", "returned", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/services/SPFServiceRegistry.java#L99-L119", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFLib/src/main/java/it/polimi/spf/lib/services/SPFServiceRegistry.java", "func_name": "SPFServiceRegistry.unregisterService", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Allows to unregister a previously registered service.\n\n@param serviceInterface", "docstring_tokens": ["Allows", "to", "unregister", "a", "previously", "registered", "service", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFLib/src/main/java/it/polimi/spf/lib/services/SPFServiceRegistry.java#L147-L163", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/search/SearchScheduler.java", "func_name": "SearchScheduler.generateQueryId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate a query id for the specified query. The query id is assigned to\nthe query descriptor.\n\n@param queryInfo\n@return the query id", "docstring_tokens": ["Generate", "a", "query", "id", "for", "the", "specified", "query", ".", "The", "query", "id", "is", "assigned", "to", "the", "query", "descriptor", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/search/SearchScheduler.java#L163-L167", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/search/SearchScheduler.java", "func_name": "SearchScheduler.onInstanceLost", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call this method when the middleware notify that a spf instance is lost.\nIt will notify the event to all the active searches that have the lost\ninstance in their results.\n\n@param uniqueIdentifier\nthe identifier of the lost instance", "docstring_tokens": ["Call", "this", "method", "when", "the", "middleware", "notify", "that", "a", "spf", "instance", "is", "lost", ".", "It", "will", "notify", "the", "event", "to", "all", "the", "active", "searches", "that", "have", "the", "lost", "instance", "in", "their", "results", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/search/SearchScheduler.java#L254-L270", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/search/SearchScheduler.java", "func_name": "SearchScheduler.stopSearch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call this method to stop the search and release the associated resources.\nThe application will not be notified about the event;\n\n@param qd\n@return", "docstring_tokens": ["Call", "this", "method", "to", "stop", "the", "search", "and", "release", "the", "associated", "resources", ".", "The", "application", "will", "not", "be", "notified", "about", "the", "event", ";"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/search/SearchScheduler.java#L279-L284", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/search/SearchScheduler.java", "func_name": "SearchScheduler.stopAllSearches", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unregister all the active queries associated with the given\nappIdentifier. Application will not be notified about the event.", "docstring_tokens": ["Unregister", "all", "the", "active", "queries", "associated", "with", "the", "given", "appIdentifier", ".", "Application", "will", "not", "be", "notified", "about", "the", "event", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/search/SearchScheduler.java#L310-L321", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFLib/src/main/java/it/polimi/spf/lib/SPF.java", "func_name": "SPF.connect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a connection to SPF asynchronously.\n\n@param context\n- the context used to bind to SPF service.\n@param listener\n- the listener that is notified when the connection to SPF is\nready, when the connection is closed or when an error occurs.", "docstring_tokens": ["Creates", "a", "connection", "to", "SPF", "asynchronously", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFLib/src/main/java/it/polimi/spf/lib/SPF.java#L89-L91", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFieldViewFactory.java", "func_name": "ProfileFieldViewFactory.createStandardDisplayView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Standard display view for all profile fields except tags", "docstring_tokens": ["Standard", "display", "view", "for", "all", "profile", "fields", "except", "tags"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFieldViewFactory.java#L150-L161", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFieldViewFactory.java", "func_name": "ProfileFieldViewFactory.createSpinner", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Edit view for multiple choiche fields", "docstring_tokens": ["Edit", "view", "for", "multiple", "choiche", "fields"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFieldViewFactory.java#L164-L182", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFieldViewFactory.java", "func_name": "ProfileFieldViewFactory.createDateView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Edit view for date fields", "docstring_tokens": ["Edit", "view", "for", "date", "fields"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFieldViewFactory.java#L185-L225", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFieldViewFactory.java", "func_name": "ProfileFieldViewFactory.createTagView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Edit and display view for tags", "docstring_tokens": ["Edit", "and", "display", "view", "for", "tags"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFieldViewFactory.java#L228-L248", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFieldViewFactory.java", "func_name": "ProfileFieldViewFactory.createStandardEditView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Edit view for all other fields", "docstring_tokens": ["Edit", "view", "for", "all", "other", "fields"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFieldViewFactory.java#L251-L267", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/proximity/SPFRemoteInstance.java", "func_name": "SPFRemoteInstance.sendNotification", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sends a notification to the remote SPF instance.\n\n@param uniqueIdentifier - the identifier of the sender.\n@param action - the notification action.", "docstring_tokens": ["Sends", "a", "notification", "to", "the", "remote", "SPF", "instance", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/proximity/SPFRemoteInstance.java#L81-L88", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/XmlTransformation.java", "func_name": "XmlTransformation.toXml", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "To xml.\n\n@return the string", "docstring_tokens": ["To", "xml", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/XmlTransformation.java#L41-L47", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/SPFApp.java", "func_name": "SPFApp.setContentViewWithMinimalElements", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to set the contentview with Title, Text and Image.", "docstring_tokens": ["Method", "to", "set", "the", "contentview", "with", "Title", "Text", "and", "Image", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/SPFApp.java#L130-L135", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/Helper.java", "func_name": "Helper.getFriendlyNameOfField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Provides the localized friendly name of a field.\n@param field - the field whose name to retrieve\n@return the friendly name of the field", "docstring_tokens": ["Provides", "the", "localized", "friendly", "name", "of", "a", "field", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/Helper.java#L71-L78", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFWFDMid/src/main/java/it/polimi/spf/wfd/EternalConnect.java", "func_name": "EternalConnect.killScheduler", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Kill the scheduler to stop the Eternal Connect in any case.", "docstring_tokens": ["Kill", "the", "scheduler", "to", "stop", "the", "Eternal", "Connect", "in", "any", "case", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFWFDMid/src/main/java/it/polimi/spf/wfd/EternalConnect.java#L162-L168", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/SPFContext.java", "func_name": "SPFContext.initialize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initializes SPFContext. After this method has been called, you can get\nreferences to SPFContext and SPF.\n\n@param context", "docstring_tokens": ["Initializes", "SPFContext", ".", "After", "this", "method", "has", "been", "called", "you", "can", "get", "references", "to", "SPFContext", "and", "SPF", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/SPFContext.java#L73-L81", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/SPFContext.java", "func_name": "SPFContext.broadcastEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Broadcasts an event to all registered listeners. Each listener will\nreceive a reference to the given bundle.\n\n@param code - the event code\n@param payload - the event payload", "docstring_tokens": ["Broadcasts", "an", "event", "to", "all", "registered", "listeners", ".", "Each", "listener", "will", "receive", "a", "reference", "to", "the", "given", "bundle", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/SPFContext.java#L187-L201", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFragment.java", "func_name": "ProfileFragment.createViewSelfProfileFragment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new instance of ProfileFragment to show the local profile.\n\n@return an instance of ProfileFragment", "docstring_tokens": ["Creates", "a", "new", "instance", "of", "ProfileFragment", "to", "show", "the", "local", "profile", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFragment.java#L132-L138", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFragment.java", "func_name": "ProfileFragment.onProfileDataAvailable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Called when the profile data is available, thus we can set up the view", "docstring_tokens": ["Called", "when", "the", "profile", "data", "is", "available", "thus", "we", "can", "set", "up", "the", "view"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFragment.java#L325-L370", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFragment.java", "func_name": "ProfileFragment.beginCrop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to start the activity to crop an image.\n\n@param source", "docstring_tokens": ["Method", "to", "start", "the", "activity", "to", "crop", "an", "image", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFragment.java#L462-L465", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFragment.java", "func_name": "ProfileFragment.handleCrop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to set an show a cropped imaged.\n\n@param resultCode\n@param result", "docstring_tokens": ["Method", "to", "set", "an", "show", "a", "cropped", "imaged", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFragment.java#L473-L501", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/json/ObjectToJsonExtensions.java", "func_name": "ObjectToJsonExtensions.toJson", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "To json.\n\n@param \nthe generic type\n@param object\nthe object\n@param newMapper\nflag that indicates if a new ObjectMapper should be created. if true a new\nObjectMapper will be created otherwise the ObjectMapper from this class will be\nreturned.\n@return the string\n@throws JsonProcessingException\nIf an error occurs when converting object to String", "docstring_tokens": ["To", "json", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/json/ObjectToJsonExtensions.java#L104-L110", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/view/TagsViewer.java", "func_name": "TagsViewer.addTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds and shows a new tag.\n\n@param tag", "docstring_tokens": ["Adds", "and", "shows", "a", "new", "tag", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/view/TagsViewer.java#L102-L109", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/view/TagsViewer.java", "func_name": "TagsViewer.setTags", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the list of tags to be displayed.\n\n@param tags", "docstring_tokens": ["Set", "the", "list", "of", "tags", "to", "be", "displayed", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/view/TagsViewer.java#L139-L145", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFNotificationManager.java", "func_name": "SPFNotificationManager.saveTrigger", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Saves the trigger on the database.\n\n@param t", "docstring_tokens": ["Saves", "the", "trigger", "on", "the", "database", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFNotificationManager.java#L96-L105", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFNotificationManager.java", "func_name": "SPFNotificationManager.deleteTrigger", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes the trigger specified by its id.\n\n@param id\n@return true if the trigger has been deleted", "docstring_tokens": ["Deletes", "the", "trigger", "specified", "by", "its", "id", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFNotificationManager.java#L113-L121", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFNotificationManager.java", "func_name": "SPFNotificationManager.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initialize and start all the threads and resources used by\nSPFNotification service. Call this method to initialize the logic that\nhandles triggers processing.", "docstring_tokens": ["Initialize", "and", "start", "all", "the", "threads", "and", "resources", "used", "by", "SPFNotification", "service", ".", "Call", "this", "method", "to", "initialize", "the", "logic", "that", "handles", "triggers", "processing", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFNotificationManager.java#L234-L240", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFWFDMid/src/main/java/it/polimi/spf/wfd/WifiDirectMiddleware.java", "func_name": "WifiDirectMiddleware.startRegistration", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Registers a local service.", "docstring_tokens": ["Registers", "a", "local", "service", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFWFDMid/src/main/java/it/polimi/spf/wfd/WifiDirectMiddleware.java#L192-L218", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/tag/Tag.java", "func_name": "Tag.addAttribute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the attribute with the given name and value.\n\n@param name\nthe name\n@param value\nthe value\n@return the string", "docstring_tokens": ["Adds", "the", "attribute", "with", "the", "given", "name", "and", "value", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/tag/Tag.java#L91-L98", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFLib/src/main/java/it/polimi/spf/lib/services/ServiceWrapper.java", "func_name": "ServiceWrapper.invokeMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Invokes a method of the service.\n\n@param request\n- The invocation request\n@return the return value\n@throws IllegalInvocationException\nif the request does not match the service\n@throws InvocationTargetException\nif an Exception is thrown during execution", "docstring_tokens": ["Invokes", "a", "method", "of", "the", "service", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFLib/src/main/java/it/polimi/spf/lib/services/ServiceWrapper.java#L94-L121", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/view/CircleSelectSpinner.java", "func_name": "CircleSelectSpinner.setSelection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the selected options based on an array of string.\n\n@param selection", "docstring_tokens": ["Sets", "the", "selected", "options", "based", "on", "an", "array", "of", "string", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/view/CircleSelectSpinner.java#L166-L176", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/view/CircleSelectSpinner.java", "func_name": "CircleSelectSpinner.setSelection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the selected options based on an array of positions.\n\n@param selectedIndicies", "docstring_tokens": ["Sets", "the", "selected", "options", "based", "on", "an", "array", "of", "positions", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/view/CircleSelectSpinner.java#L200-L210", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/view/CircleSelectSpinner.java", "func_name": "CircleSelectSpinner.getSelectedStrings", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a list of strings, one for each selected item.\n\n@return", "docstring_tokens": ["Returns", "a", "list", "of", "strings", "one", "for", "each", "selected", "item", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/view/CircleSelectSpinner.java#L226-L234", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/view/CircleSelectSpinner.java", "func_name": "CircleSelectSpinner.getSelectedIndicies", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a list of positions, one for each selected item.\n\n@return", "docstring_tokens": ["Returns", "a", "list", "of", "positions", "one", "for", "each", "selected", "item", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/view/CircleSelectSpinner.java#L241-L249", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFieldsFragment.java", "func_name": "ProfileFieldsFragment.onRefresh", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Refreshes the values of displayed fields.", "docstring_tokens": ["Refreshes", "the", "values", "of", "displayed", "fields", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/fragments/profile/ProfileFieldsFragment.java#L108-L114", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/services/AppCommunicationAgent.java", "func_name": "AppCommunicationAgent.shutdown", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unbinds all proxies available in caches and prevents the creation of new\nones.", "docstring_tokens": ["Unbinds", "all", "proxies", "available", "in", "caches", "and", "prevents", "the", "creation", "of", "new", "ones", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/services/AppCommunicationAgent.java#L174-L189", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/sax/handler/WriterHandler.java", "func_name": "WriterHandler.insertNewLine", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Insert a new line to the writer\n\n@throws SAXException\nany SAX exception, possibly wrapping another exception", "docstring_tokens": ["Insert", "a", "new", "line", "to", "the", "writer"], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/sax/handler/WriterHandler.java#L122-L132", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/sax/handler/WriterHandler.java", "func_name": "WriterHandler.writeToBuffer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write to buffer.\n\n@throws SAXException\nany SAX exception, possibly wrapping another exception", "docstring_tokens": ["Write", "to", "buffer", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/sax/handler/WriterHandler.java#L197-L206", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/json/ObjectToJsonQuietlyExtensions.java", "func_name": "ObjectToJsonQuietlyExtensions.toJsonQuietly", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates from the given Object a json string. Note if an exception occurs null will be\nreturned.\n\n@param \nthe generic type of the given argument\n@param object\nthe object.\n@return the json string or null if an error occured by parsing.", "docstring_tokens": ["Creates", "from", "the", "given", "Object", "a", "json", "string", ".", "Note", "if", "an", "exception", "occurs", "null", "will", "be", "returned", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/json/ObjectToJsonQuietlyExtensions.java#L54-L68", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFLib/src/main/java/it/polimi/spf/lib/Component.java", "func_name": "Component.load", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads a local component asynchronously.\n\n@param context\n- the context to use to bind to the service\n@param descriptor\n- a {@link Descriptor} to handle the creation of the\ncomponent;\n@param callback\n- the callback to be notified when the service is available\n@param \nthe type of the Component concrete implementation\n@param \nthe type of the AIDL interface that is wrapped by the\ncomponent", "docstring_tokens": ["Loads", "a", "local", "component", "asynchronously", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFLib/src/main/java/it/polimi/spf/lib/Component.java#L98-L121", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFLib/src/main/java/it/polimi/spf/lib/Component.java", "func_name": "Component.bindToService", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Performs the binding to the remote service\n\n@param context\n- the context used to bind to the service\n@param descriptor\n- the {@link Descriptor} to handle the service\n@param callback\n- the callback to notify of the service availability", "docstring_tokens": ["Performs", "the", "binding", "to", "the", "remote", "service"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFLib/src/main/java/it/polimi/spf/lib/Component.java#L133-L157", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFLib/src/main/java/it/polimi/spf/lib/Component.java", "func_name": "Component.disconnect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Disconnects the component from the remote service.\n\n@see Context#unbindService(ServiceConnection)", "docstring_tokens": ["Disconnects", "the", "component", "from", "the", "remote", "service", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFLib/src/main/java/it/polimi/spf/lib/Component.java#L176-L182", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFLib/src/main/java/it/polimi/spf/lib/Component.java", "func_name": "Component.handleError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Performs common error handling operations. Subclasses may override it to\nprovide specific behavior.\n\n@param err", "docstring_tokens": ["Performs", "common", "error", "handling", "operations", ".", "Subclasses", "may", "override", "it", "to", "provide", "specific", "behavior", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFLib/src/main/java/it/polimi/spf/lib/Component.java#L227-L232", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFTriggerEngine.java", "func_name": "SPFTriggerEngine.refreshTriggers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Update the current set of triggers with the given list.\n\n@param triggers2", "docstring_tokens": ["Update", "the", "current", "set", "of", "triggers", "with", "the", "given", "list", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/notification/SPFTriggerEngine.java#L118-L123", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/profile/ProfileTable.java", "func_name": "ProfileTable.addPersona", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new SPFPersona.\n\n@param persona\n- the {@link SPFPersona} to add.", "docstring_tokens": ["Creates", "a", "new", "SPFPersona", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/profile/ProfileTable.java#L252-L272", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/profile/ProfileTable.java", "func_name": "ProfileTable.removePersona", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Delete a SPFPersona. All the information related to the specified persona\nwill be erased.\n\n@param persona\n- the {@link SPFPersona} to remove", "docstring_tokens": ["Delete", "a", "SPFPersona", ".", "All", "the", "information", "related", "to", "the", "specified", "persona", "will", "be", "erased", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/profile/ProfileTable.java#L281-L295", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/services/ActivityConsumerRouteTable.java", "func_name": "ActivityConsumerRouteTable.registerService", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Registers the capabilities of a service to consume activities. If the\ndescriptor doesn't declare the service as capable of handling activities,\nno action will be performed.\n\n@param descriptor\n- the descriptor of the service to register\n@return true if the service was registered", "docstring_tokens": ["Registers", "the", "capabilities", "of", "a", "service", "to", "consume", "activities", ".", "If", "the", "descriptor", "doesn", "t", "declare", "the", "service", "as", "capable", "of", "handling", "activities", "no", "action", "will", "be", "performed", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/services/ActivityConsumerRouteTable.java#L165-L178", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/security/ApplicationRegistry.java", "func_name": "ApplicationRegistry.getAppAuthorizationByAppId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves an appauth given the identifier of an application\n\n@param appId\n- the Id of the application\n@return the appAuth of the application, or null if the app is not\ninstalled", "docstring_tokens": ["Retrieves", "an", "appauth", "given", "the", "identifier", "of", "an", "application"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/security/ApplicationRegistry.java#L94-L104", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/security/ApplicationRegistry.java", "func_name": "ApplicationRegistry.registerApplication", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Low level method to register applications. It will not validate the\ndescriptor given as parameter.\n\n@param descriptor\n@param persona\n@return - the token to give back.", "docstring_tokens": ["Low", "level", "method", "to", "register", "applications", ".", "It", "will", "not", "validate", "the", "descriptor", "given", "as", "parameter", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/security/ApplicationRegistry.java#L114-L130", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/security/ApplicationRegistry.java", "func_name": "ApplicationRegistry.unregisterApplication", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "To be called from application uninstall monitor\n\n@param appIdentifier", "docstring_tokens": ["To", "be", "called", "from", "application", "uninstall", "monitor"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/security/ApplicationRegistry.java#L148-L163", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/security/ApplicationRegistry.java", "func_name": "ApplicationRegistry.getPersonaOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the SPFPersona associated to the specified application. If the\napplication does not exist returns the default SPFPersona.\n\n@param appIdentifier\n- the identifier of the application\n@return a SPFPersona", "docstring_tokens": ["Returns", "the", "SPFPersona", "associated", "to", "the", "specified", "application", ".", "If", "the", "application", "does", "not", "exist", "returns", "the", "default", "SPFPersona", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/security/ApplicationRegistry.java#L192-L209", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFWFDMid/src/main/java/it/polimi/spf/wfd/groups/GroupOwnerActor.java", "func_name": "GroupOwnerActor.onMessageReceived", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "called from the GOInternalClient", "docstring_tokens": ["called", "from", "the", "GOInternalClient"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFWFDMid/src/main/java/it/polimi/spf/wfd/groups/GroupOwnerActor.java#L143-L154", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFApp/src/main/java/it/polimi/spf/app/fragments/groupinfo/ClientsGuiList.java", "func_name": "ClientsGuiList.addClientIfNotPresent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to add a client inside the list in a secure way.\nThe client is added only if isn't already inside the list.\n\n@param device {@link DeviceGuiElement} to add.", "docstring_tokens": ["Method", "to", "add", "a", "client", "inside", "the", "list", "in", "a", "secure", "way", ".", "The", "client", "is", "added", "only", "if", "isn", "t", "already", "inside", "the", "list", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFApp/src/main/java/it/polimi/spf/app/fragments/groupinfo/ClientsGuiList.java#L34-L47", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/SPF.java", "func_name": "SPF.connect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Life-cycle methods", "docstring_tokens": ["Life", "-", "cycle", "methods"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/SPF.java#L188-L200", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFShared/src/main/java/it/polimi/spf/shared/model/ProfileFieldContainer.java", "func_name": "ProfileFieldContainer.getFieldValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the value of a field from the container\n\n@param field - the field whose value to retrieve\n\n@return the value of the field, or null if the container doesn't have a value for such field", "docstring_tokens": ["Gets", "the", "value", "of", "a", "field", "from", "the", "container"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFShared/src/main/java/it/polimi/spf/shared/model/ProfileFieldContainer.java#L73-L80", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFShared/src/main/java/it/polimi/spf/shared/model/ProfileFieldContainer.java", "func_name": "ProfileFieldContainer.isModified", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns whether at least one field in the container has been modified\n\n@return true if at least the value of one field in the container has been modified, false\notherwise", "docstring_tokens": ["Returns", "whether", "at", "least", "one", "field", "in", "the", "container", "has", "been", "modified"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFShared/src/main/java/it/polimi/spf/shared/model/ProfileFieldContainer.java#L118-L127", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFLib/src/main/java/it/polimi/spf/lib/search/SPFSearch.java", "func_name": "SPFSearch.stopSearch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stops a previously registered search request performed by the\napplication. The application must provide the tag it registered the\nsearch with. The callback associated to the search does not receive any\nfurther notification.\n\n@param tag\n- the tag used to register the search.", "docstring_tokens": ["Stops", "a", "previously", "registered", "search", "request", "performed", "by", "the", "application", ".", "The", "application", "must", "provide", "the", "tag", "it", "registered", "the", "search", "with", ".", "The", "callback", "associated", "to", "the", "search", "does", "not", "receive", "any", "further", "notification", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFLib/src/main/java/it/polimi/spf/lib/search/SPFSearch.java#L99-L105", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFLib/src/main/java/it/polimi/spf/lib/search/SPFSearch.java", "func_name": "SPFSearch.stopAllSearches", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stops all searches registered by the application.\n\n@see SPFSearch#stopSearch(int)", "docstring_tokens": ["Stops", "all", "searches", "registered", "by", "the", "application", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFLib/src/main/java/it/polimi/spf/lib/search/SPFSearch.java#L112-L119", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFLib/src/main/java/it/polimi/spf/lib/search/SPFSearch.java", "func_name": "SPFSearch.lookup", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Allows to retrieve a reference to a remote person given its identifier.\nThis reference is valid until the given person is reachable from the\nproximity middleware.\n\n@param identifier\n@return", "docstring_tokens": ["Allows", "to", "retrieve", "a", "reference", "to", "a", "remote", "person", "given", "its", "identifier", ".", "This", "reference", "is", "valid", "until", "the", "given", "person", "is", "reachable", "from", "the", "proximity", "middleware", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFLib/src/main/java/it/polimi/spf/lib/search/SPFSearch.java#L129-L136", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/profile/SPFProfileManager.java", "func_name": "SPFProfileManager.getProfileFieldBulk", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method for proximity interface to provide access to local profile to\nremote spf instances\n\n@param auth\n- the {@link PersonAuth} of the sender of the request\n@param persona\n@param fields\n- the identifiers of the list of fields to read\n@return a {@link ProfileFieldContainer} with the value of read fields, if\naccessible.", "docstring_tokens": ["Method", "for", "proximity", "interface", "to", "provide", "access", "to", "local", "profile", "to", "remote", "spf", "instances"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/profile/SPFProfileManager.java#L82-L84", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/profile/SPFProfileManager.java", "func_name": "SPFProfileManager.getBaseInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the display_name of the user. If there is no display_name, the\nmethod returns its identifier.\n\n@param persona\n- the {@link SPFPersona} to read.\n@return the {@link BaseInfo} of the given persona", "docstring_tokens": ["Returns", "the", "display_name", "of", "the", "user", ".", "If", "there", "is", "no", "display_name", "the", "method", "returns", "its", "identifier", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/profile/SPFProfileManager.java#L120-L123", "partition": "valid"} +{"repo": "lightblueseas/xml-extensions", "path": "src/main/java/de/alpharogroup/xml/xpath/XPathExtensions.java", "func_name": "XPathExtensions.getNodeList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the node list from the given xml file and the given xpath expression.\n\n@param xml\nthe xml file as string.\n@param xpathExpression\nthe xpath expression as string.\n@return the node list\n@throws XPathExpressionException\nthe x path expression exception\n@throws ParserConfigurationException\nthe parser configuration exception\n@throws SAXException\nthe sAX exception\n@throws IOException\nSignals that an I/O exception has occurred.", "docstring_tokens": ["Gets", "the", "node", "list", "from", "the", "given", "xml", "file", "and", "the", "given", "xpath", "expression", "."], "sha": "4c79d3b2a27349cc7b682d88ce55ac06025e6612", "url": "https://github.com/lightblueseas/xml-extensions/blob/4c79d3b2a27349cc7b682d88ce55ac06025e6612/src/main/java/de/alpharogroup/xml/xpath/XPathExtensions.java#L101-L114", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFLib/src/main/java/it/polimi/spf/lib/LooperUtils.java", "func_name": "LooperUtils.onMainThread", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wraps a callback into a proxy that executes its methods on the main\nthread. Return types are not supported, a method with return type other\nthan void always returns null when called on the proxy.\n\n@param callbackInterface\n- the interface of the callback.\n@param callback\n- the callback implementation\n@return the proxy to execute methods on the main thread.", "docstring_tokens": ["Wraps", "a", "callback", "into", "a", "proxy", "that", "executes", "its", "methods", "on", "the", "main", "thread", ".", "Return", "types", "are", "not", "supported", "a", "method", "with", "return", "type", "other", "than", "void", "always", "returns", "null", "when", "called", "on", "the", "proxy", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFLib/src/main/java/it/polimi/spf/lib/LooperUtils.java#L50-L82", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/security/PersonPermissionTable.java", "func_name": "PersonPermissionTable.getPersonAuthFrom", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call this method every time you receive a remote request.\n\n@param receivedTkn\n- may be null\n@return", "docstring_tokens": ["Call", "this", "method", "every", "time", "you", "receive", "a", "remote", "request", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/security/PersonPermissionTable.java#L120-L142", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/security/PersonPermissionTable.java", "func_name": "PersonPermissionTable.createEntryForSentRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a pending request associated to the target id.\n\n@param targetUid\n@return", "docstring_tokens": ["Creates", "a", "pending", "request", "associated", "to", "the", "target", "id", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/security/PersonPermissionTable.java#L191-L203", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/security/PersonPermissionTable.java", "func_name": "PersonPermissionTable.createEntryForReceivedRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a pending request with the information contained in the message.\n\n@param fr\n@return", "docstring_tokens": ["Creates", "a", "pending", "request", "with", "the", "information", "contained", "in", "the", "message", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/security/PersonPermissionTable.java#L211-L219", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/security/PersonPermissionTable.java", "func_name": "PersonPermissionTable.entryExistsFor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "check if an entry for the specified user id exists. Returns the entry\nstate.\n\n@param userUID\n@return", "docstring_tokens": ["check", "if", "an", "entry", "for", "the", "specified", "user", "id", "exists", ".", "Returns", "the", "entry", "state", "."], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/security/PersonPermissionTable.java#L248-L260", "partition": "valid"} +{"repo": "deib-polimi/SPF2", "path": "sPFFramework/src/main/java/it/polimi/spf/framework/security/PersonPermissionTable.java", "func_name": "PersonPermissionTable.confirmRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Confirm a friendship request. the status of the entry associated with the\nspecified person, will be REQUEST_ACCEPTED\n\n@param targetUID\n- the unique identifier of the person\n@throws WrongPassphraseException\n@throws GeneralSecurityException", "docstring_tokens": ["Confirm", "a", "friendship", "request", ".", "the", "status", "of", "the", "entry", "associated", "with", "the", "specified", "person", "will", "be", "REQUEST_ACCEPTED"], "sha": "c5a856ab29116a671fe9bef7035f3efb605dc2a1", "url": "https://github.com/deib-polimi/SPF2/blob/c5a856ab29116a671fe9bef7035f3efb605dc2a1/sPFFramework/src/main/java/it/polimi/spf/framework/security/PersonPermissionTable.java#L399-L420", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/xml/XMLIndent.java", "func_name": "XMLIndent.addClosingTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a closing tag\n\n@param tagName the name of the closing tag to add", "docstring_tokens": ["Adds", "a", "closing", "tag"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/xml/XMLIndent.java#L98-L105", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/xml/XMLIndent.java", "func_name": "XMLIndent.addEmptyTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds an empty tag\n\n@param tagName the name of the empty tag to add", "docstring_tokens": ["Adds", "an", "empty", "tag"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/xml/XMLIndent.java#L111-L117", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/xml/XMLIndent.java", "func_name": "XMLIndent.addOpeningTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds an opening tag which contains the attributes specified. All the\nproperties will be turned into attributes.\n\n@param tagName the name of the opening tag to add\n@param attributes the attributes", "docstring_tokens": ["Adds", "an", "opening", "tag", "which", "contains", "the", "attributes", "specified", ".", "All", "the", "properties", "will", "be", "turned", "into", "attributes", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/xml/XMLIndent.java#L193-L200", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/io/IOUtils.java", "func_name": "IOUtils.deleteFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes the file provided. If it is a directory, recursively deletes a directory and its content.\n\n@param file\n@return true if the file was deleted, false\nif didn't exist\n@throws IOException", "docstring_tokens": ["Deletes", "the", "file", "provided", ".", "If", "it", "is", "a", "directory", "recursively", "deletes", "a", "directory", "and", "its", "content", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/io/IOUtils.java#L47-L70", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/io/IOUtils.java", "func_name": "IOUtils.createTempDirectory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a temporary directory.\n\n@param namespace\n@param name root name of the temporary directory\n@return the temp dir\n@throws IOException if there is a problem", "docstring_tokens": ["Creates", "a", "temporary", "directory", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/io/IOUtils.java#L103-L117", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/reflect/ReflectUtils.java", "func_name": "ReflectUtils.getProxiedObject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Given a proxy returns the object proxied. If the object is not a proxy, then return the object\nitself.\n\n@param proxy\n@return the proxied object (or proxy if not an object proxy)", "docstring_tokens": ["Given", "a", "proxy", "returns", "the", "object", "proxied", ".", "If", "the", "object", "is", "not", "a", "proxy", "then", "return", "the", "object", "itself", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/reflect/ReflectUtils.java#L62-L80", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/reflect/ReflectUtils.java", "func_name": "ReflectUtils.forName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convenient call to return a class in a different class loader... note that it will handle\ncorrectly a class in the same class loader\n\n@param clazz the clazz you want in a different class loader\n@param classLoader the class loader to use (may be null, which indicates the\ndefault class loader)\n@return Class instance for the supplied name\n@throws ClassNotFoundException if the class was not found\n@throws LinkageError if the class file could not be loaded\n@see Class#forName(String, boolean, ClassLoader)", "docstring_tokens": ["Convenient", "call", "to", "return", "a", "class", "in", "a", "different", "class", "loader", "...", "note", "that", "it", "will", "handle", "correctly", "a", "class", "in", "the", "same", "class", "loader"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/reflect/ReflectUtils.java#L206-L221", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/reflect/ReflectUtils.java", "func_name": "ReflectUtils.computeSignature", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Computes the signature of a method. Note that if 2 methods are declared\nin different classes or interfaces then I1.m and I2.m are different but\nthey can still have the same signature...\n\n@param m method\n@return the signature (unique per method definition)", "docstring_tokens": ["Computes", "the", "signature", "of", "a", "method", ".", "Note", "that", "if", "2", "methods", "are", "declared", "in", "different", "classes", "or", "interfaces", "then", "I1", ".", "m", "and", "I2", ".", "m", "are", "different", "but", "they", "can", "still", "have", "the", "same", "signature", "..."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/reflect/ReflectUtils.java#L255-L273", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/codec/OneWayMessageDigestCodec.java", "func_name": "OneWayMessageDigestCodec.createWellKnownInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This creates a well known instance.. the difference with the constructor\nis that all exceptions are caught and rethrown as RuntimeExcpetion\nbecause they should not happen.\n\n@param algorithm\n@param password\n@param codec\n@return the codec", "docstring_tokens": ["This", "creates", "a", "well", "known", "instance", "..", "the", "difference", "with", "the", "constructor", "is", "that", "all", "exceptions", "are", "caught", "and", "rethrown", "as", "RuntimeExcpetion", "because", "they", "should", "not", "happen", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/codec/OneWayMessageDigestCodec.java#L162-L178", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/url/URLBuilder.java", "func_name": "URLBuilder.reset", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call this method when you want to reset the internal string to start\nfrom scratch again", "docstring_tokens": ["Call", "this", "method", "when", "you", "want", "to", "reset", "the", "internal", "string", "to", "start", "from", "scratch", "again"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/url/URLBuilder.java#L633-L643", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/url/URLBuilder.java", "func_name": "URLBuilder.createFromPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Factory method from a path\n\n@param path the path (will be url encoded!)\n@return the builder", "docstring_tokens": ["Factory", "method", "from", "a", "path"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/url/URLBuilder.java#L759-L764", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/url/URLBuilder.java", "func_name": "URLBuilder.addQueryParameter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convenient call which adds a query parameter to the give url.\n\n@param url the original URL: will stay unchanged\n@param name the name of the query parameter\n@param value the value of the query parameter\n@return the new URL", "docstring_tokens": ["Convenient", "call", "which", "adds", "a", "query", "parameter", "to", "the", "give", "url", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/url/URLBuilder.java#L858-L863", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java", "func_name": "QueryBuilder.getParameter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the first parameter given its name\n\n@param name the name of the parameter\n@return the first parameter", "docstring_tokens": ["Get", "the", "first", "parameter", "given", "its", "name"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java#L128-L136", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java", "func_name": "QueryBuilder.addQueryParameter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add query parameter to query string.\n\n@param name\n@param value", "docstring_tokens": ["Add", "query", "parameter", "to", "query", "string", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java#L197-L204", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java", "func_name": "QueryBuilder.addParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the map of parameters\n@param parameters", "docstring_tokens": ["Adds", "the", "map", "of", "parameters"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java#L271-L277", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java", "func_name": "QueryBuilder.addIndexedParameter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a parameter that comes from an array at the provided index\n\n@param name the name of the parameter\n@param value the value\n@param index the index in the array", "docstring_tokens": ["Adds", "a", "parameter", "that", "comes", "from", "an", "array", "at", "the", "provided", "index"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java#L352-L355", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java", "func_name": "QueryBuilder.addQuery", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the query extracted from the URI. No Exception is thrown because the\nuri could not be built if it was not correct.\n\n@param uri", "docstring_tokens": ["Adds", "the", "query", "extracted", "from", "the", "URI", ".", "No", "Exception", "is", "thrown", "because", "the", "uri", "could", "not", "be", "built", "if", "it", "was", "not", "correct", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java#L396-L407", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java", "func_name": "QueryBuilder.validateQuery", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Internal method in charge of validating the query provided. Exception\nwhen query is not valid.\n\n@param query the query to validate\n@throws URISyntaxException if query invalid", "docstring_tokens": ["Internal", "method", "in", "charge", "of", "validating", "the", "query", "provided", ".", "Exception", "when", "query", "is", "not", "valid", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java#L441-L460", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java", "func_name": "QueryBuilder.addQuery", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Simply adds the query provided.\n\n@param query the query (null is ok)", "docstring_tokens": ["Simply", "adds", "the", "query", "provided", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java#L489-L505", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java", "func_name": "QueryBuilder.rebuildQuery", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Rebuild query instance with values in the map.", "docstring_tokens": ["Rebuild", "query", "instance", "with", "values", "in", "the", "map", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java#L629-L643", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java", "func_name": "QueryBuilder.replaceParameter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Replace existing or add new parameter with given\nvalue. Any existing parameter values are\ndeleted prior to adding the new value.\n\n@param name parameter to replace\n@return previous values or null if parameter doesn't exist", "docstring_tokens": ["Replace", "existing", "or", "add", "new", "parameter", "with", "given", "value", ".", "Any", "existing", "parameter", "values", "are", "deleted", "prior", "to", "adding", "the", "new", "value", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java#L688-L694", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/lifecycle/ShutdownProxy.java", "func_name": "ShutdownProxy.invoke", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method from the interface. Checks for shutdown then dispatches the call\n\n@param o\n@param method\n@param objects\n@return object\n@throws Throwable", "docstring_tokens": ["Method", "from", "the", "interface", ".", "Checks", "for", "shutdown", "then", "dispatches", "the", "call"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/lifecycle/ShutdownProxy.java#L104-L136", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/lifecycle/ShutdownProxy.java", "func_name": "ShutdownProxy.createShutdownProxy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the proxy to check for shutdown.\n\n@param o\n@param interfaces restriction on which interface to apply the proxy on\n@param shutdown\n@return the proxy", "docstring_tokens": ["Creates", "the", "proxy", "to", "check", "for", "shutdown", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/lifecycle/ShutdownProxy.java#L160-L171", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/lang/LangUtils.java", "func_name": "LangUtils.convertToBoolean", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts the object into a boolean value.\n\n@param o the object to convert\n@return a boolean", "docstring_tokens": ["Converts", "the", "object", "into", "a", "boolean", "value", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/lang/LangUtils.java#L244-L255", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/lang/LangUtils.java", "func_name": "LangUtils.getStackTrace", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the stack trace of the throwable as a string\n\n@param th the throwable\n@return the stack trace as a string", "docstring_tokens": ["Returns", "the", "stack", "trace", "of", "the", "throwable", "as", "a", "string"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/lang/LangUtils.java#L283-L289", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/io/PathUtils.java", "func_name": "PathUtils.removeTrailingSlash", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes a trailing slash if exists\n\n@param path\n@return the path without a trailing /", "docstring_tokens": ["Removes", "a", "trailing", "slash", "if", "exists"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/io/PathUtils.java#L101-L107", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/lifecycle/Shutdown.java", "func_name": "Shutdown.waitForShutdown", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Waits for shutdown to be completed. After calling shutdown, there may still be some pending work\nthat needs to be accomplised. This method will block until it is done but no longer than the\ntimeout.\n\n@param timeout how long to wait maximum for the shutdown\n@throws InterruptedException if interrupted while waiting\n@throws IllegalStateException if shutdown has not been called\n@throws TimeoutException if shutdown still not complete after timeout", "docstring_tokens": ["Waits", "for", "shutdown", "to", "be", "completed", ".", "After", "calling", "shutdown", "there", "may", "still", "be", "some", "pending", "work", "that", "needs", "to", "be", "accomplised", ".", "This", "method", "will", "block", "until", "it", "is", "done", "but", "no", "longer", "than", "the", "timeout", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/lifecycle/Shutdown.java#L84-L90", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/xml/XML.java", "func_name": "XML.addEmptyTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds an empty tag which contains the attributes specified. All the\nproperties will be turned into attributes.\n\n@param tagName the name of the empty tag to add\n@param attributes the attributes", "docstring_tokens": ["Adds", "an", "empty", "tag", "which", "contains", "the", "attributes", "specified", ".", "All", "the", "properties", "will", "be", "turned", "into", "attributes", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/xml/XML.java#L162-L168", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/xml/XML.java", "func_name": "XML.addAttribute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the attribute\n\n@param attrName name of the attribute to add\n@param attrValue value of the attribute to add", "docstring_tokens": ["Adds", "the", "attribute"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/xml/XML.java#L260-L268", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/xml/XML.java", "func_name": "XML.addAttributes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the attributes. All the properties will be used as attributes\n\n@param attributes the attributes to add", "docstring_tokens": ["Adds", "the", "attributes", ".", "All", "the", "properties", "will", "be", "used", "as", "attributes"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/xml/XML.java#L274-L287", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/URLResource.java", "func_name": "URLResource.extractInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extracts the info from the url", "docstring_tokens": ["Extracts", "the", "info", "from", "the", "url"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/URLResource.java#L174-L191", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/internal/AbstractResourceProvider.java", "func_name": "AbstractResourceProvider.chroot", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a new resource with the root resource set to this resource.\n\n@return the new resource", "docstring_tokens": ["Returns", "a", "new", "resource", "with", "the", "root", "resource", "set", "to", "this", "resource", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/internal/AbstractResourceProvider.java#L133-L149", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/internal/AbstractResourceProvider.java", "func_name": "AbstractResourceProvider.list", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If this resource denotes a directory, then it will return all resources that are contained in\nthe directory.\n\n@param filter the filter to include only some resources in the result\n@return all the resources contained in the directory or null if not a directory\n@throws IOException if there is an error accessing the resource", "docstring_tokens": ["If", "this", "resource", "denotes", "a", "directory", "then", "it", "will", "return", "all", "resources", "that", "are", "contained", "in", "the", "directory", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/internal/AbstractResourceProvider.java#L159-L183", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/internal/AbstractResource.java", "func_name": "AbstractResource.chroot", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a new resource with the root resource set to the relative path provided. Note that the\nnew resource points at the new root as well.\n\n@param relativePath\n@return the new resource", "docstring_tokens": ["Returns", "a", "new", "resource", "with", "the", "root", "resource", "set", "to", "the", "relative", "path", "provided", ".", "Note", "that", "the", "new", "resource", "points", "at", "the", "new", "root", "as", "well", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/internal/AbstractResource.java#L132-L136", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/FileResource.java", "func_name": "FileResource.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a file resource from a file\n\n@param file the file\n@return the resource (points to this file)", "docstring_tokens": ["Creates", "a", "file", "resource", "from", "a", "file"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/FileResource.java#L156-L169", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/concurrent/ExternalCommand.java", "func_name": "ExternalCommand.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "After creating the command, you have to start it...\n\n@throws IOException", "docstring_tokens": ["After", "creating", "the", "command", "you", "have", "to", "start", "it", "..."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/concurrent/ExternalCommand.java#L108-L116", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/concurrent/ExternalCommand.java", "func_name": "ExternalCommand.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an external process from the command. It is not started and you have to call\nstart on it!\n\n@param commands the command to execute\n@return the process", "docstring_tokens": ["Creates", "an", "external", "process", "from", "the", "command", ".", "It", "is", "not", "started", "and", "you", "have", "to", "call", "start", "on", "it!"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/concurrent/ExternalCommand.java#L319-L323", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/concurrent/ExternalCommand.java", "func_name": "ExternalCommand.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an external process from the command. The command is executed.\n\n@param commands the commands to execute\n@return the process\n@throws IOException if there is an error", "docstring_tokens": ["Creates", "an", "external", "process", "from", "the", "command", ".", "The", "command", "is", "executed", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/concurrent/ExternalCommand.java#L331-L336", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/concurrent/ExternalCommand.java", "func_name": "ExternalCommand.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes the external command in the given working directory and waits for it to be\nfinished.\n\n@param workingDirectory the root directory from where to run the command\n@param command the command to execute (should be relative to the working directory\n@param args the arguments to the command\n@return the process", "docstring_tokens": ["Executes", "the", "external", "command", "in", "the", "given", "working", "directory", "and", "waits", "for", "it", "to", "be", "finished", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/concurrent/ExternalCommand.java#L346-L360", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/clock/Chronos.java", "func_name": "Chronos.tick", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the number of milliseconds ellapsed since the last call to\nthis function.\n\n@return the number of milliseconds since last call", "docstring_tokens": ["Returns", "the", "number", "of", "milliseconds", "ellapsed", "since", "the", "last", "call", "to", "this", "function", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/clock/Chronos.java#L106-L114", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/clock/Chronos.java", "func_name": "Chronos.getElapsedTime", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a string that represents the time elapsed\n\n@return the elapsed time as a string", "docstring_tokens": ["Returns", "a", "string", "that", "represents", "the", "time", "elapsed"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/clock/Chronos.java#L145-L152", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/xml/AbstractXMLBuilder.java", "func_name": "AbstractXMLBuilder.addTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a tag which contains an attribute\n\n@param tagName the name of the tag to add\n@param value the value of the tag to add\n@param attrName the name of the attribute\n@param attrValue the value of the attribute", "docstring_tokens": ["Adds", "a", "tag", "which", "contains", "an", "attribute"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/xml/AbstractXMLBuilder.java#L63-L70", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/xml/AbstractXMLBuilder.java", "func_name": "AbstractXMLBuilder.addTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a tag which contains the attributes specified. All the\nproperties will be turned into attributes.\n\n@param tagName the name of the tag to add\n@param value the value of the tag to add\n@param attributes the attributes", "docstring_tokens": ["Adds", "a", "tag", "which", "contains", "the", "attributes", "specified", ".", "All", "the", "properties", "will", "be", "turned", "into", "attributes", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/xml/AbstractXMLBuilder.java#L95-L99", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/text/Indent.java", "func_name": "Indent.indentBlock", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Indents a block of text. You provide the block of text as a String and\nthe indent object and it returns another String with each line\nproperly indented.\n\n@param block the block of text to indent\n@param indent the indentation object to use\n@return the indented block", "docstring_tokens": ["Indents", "a", "block", "of", "text", ".", "You", "provide", "the", "block", "of", "text", "as", "a", "String", "and", "the", "indent", "object", "and", "it", "returns", "another", "String", "with", "each", "line", "properly", "indented", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/text/Indent.java#L189-L206", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/clock/ClockUtils.java", "func_name": "ClockUtils.toEndTime", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Computes the end time = now + timeout\n\n@param clock can be null to use system clock\n@param timeout (see {@link #toTimespan(Object)})\n@return 0 if", "docstring_tokens": ["Computes", "the", "end", "time", "=", "now", "+", "timeout"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/clock/ClockUtils.java#L63-L75", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/io/ram/RAMDirectory.java", "func_name": "RAMDirectory.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Copy the entry in this directory with the provided name\n\n@param entry\n@return the touched entry", "docstring_tokens": ["Copy", "the", "entry", "in", "this", "directory", "with", "the", "provided", "name"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/io/ram/RAMDirectory.java#L176-L181", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/io/ram/RAMDirectory.java", "func_name": "RAMDirectory.mkdir", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an empty directory and add it to this directory with this name. If the directory\nalready exists, it does not recreate it.\n\n@param name\n@return the created directory\n@throws IOException if the name represents a file", "docstring_tokens": ["Creates", "an", "empty", "directory", "and", "add", "it", "to", "this", "directory", "with", "this", "name", ".", "If", "the", "directory", "already", "exists", "it", "does", "not", "recreate", "it", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/io/ram/RAMDirectory.java#L222-L242", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/codec/CodecUtils.java", "func_name": "CodecUtils.encodeString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encodes the string using the codec provided.\n\n@param codec encode the string\n@param s the string to encode\n@return the encoded string", "docstring_tokens": ["Encodes", "the", "string", "using", "the", "codec", "provided", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/codec/CodecUtils.java#L37-L48", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/codec/CodecUtils.java", "func_name": "CodecUtils.decodeString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Decodes the string using the codec provided. Returns a string\n\n@param codec encode the string\n@param s the string to encode\n@return the encoded string\n@throws Codec.CannotDecodeException if cannot decode the string", "docstring_tokens": ["Decodes", "the", "string", "using", "the", "codec", "provided", ".", "Returns", "a", "string"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/codec/CodecUtils.java#L57-L69", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/internal/LocalCacheLeafResource.java", "func_name": "LocalCacheLeafResource.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Decorates the resource to implement a caching strategy.\n\n@param resource the resource to cache locally\n@return the (locally cached) resource", "docstring_tokens": ["Decorates", "the", "resource", "to", "implement", "a", "caching", "strategy", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/io/resource/internal/LocalCacheLeafResource.java#L240-L252", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/collections/CollectionsUtils.java", "func_name": "CollectionsUtils.reverse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reverses the array in place.\n@param array the array to reverse\n@return the same array provided NOT a new one!", "docstring_tokens": ["Reverses", "the", "array", "in", "place", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/collections/CollectionsUtils.java#L37-L56", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/collections/CollectionsUtils.java", "func_name": "CollectionsUtils.toEnumSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Turns an array of enumeration values into an enum set\n\n@param clazz the type of the enum\n@param ts the array of enums\n@return the enum set containing all the values from the array", "docstring_tokens": ["Turns", "an", "array", "of", "enumeration", "values", "into", "an", "enum", "set"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/collections/CollectionsUtils.java#L65-L76", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/collections/CollectionsUtils.java", "func_name": "CollectionsUtils.loadProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convenient call to load a properties file from the provided file", "docstring_tokens": ["Convenient", "call", "to", "load", "a", "properties", "file", "from", "the", "provided", "file"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/collections/CollectionsUtils.java#L81-L95", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/collections/CollectionsUtils.java", "func_name": "CollectionsUtils.loadProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convenient call to load a properties file from the provided reader", "docstring_tokens": ["Convenient", "call", "to", "load", "a", "properties", "file", "from", "the", "provided", "reader"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/collections/CollectionsUtils.java#L100-L108", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/clock/Timespan.java", "func_name": "Timespan.getAsString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a string representing this timespan expressed with the units provided.\n\n@param timeUnits the timeunits you want in the decomposition\n@return a string representation using the units.\n@see #getAsTimespans(EnumSet)", "docstring_tokens": ["Returns", "a", "string", "representing", "this", "timespan", "expressed", "with", "the", "units", "provided", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/clock/Timespan.java#L399-L424", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/clock/Timespan.java", "func_name": "Timespan.compareTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Compares 2 timespan. Based on duration in milliseconds.\n\n@param timespan\n@return 0 if same duration in milliseconds,", "docstring_tokens": ["Compares", "2", "timespan", ".", "Based", "on", "duration", "in", "milliseconds", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/clock/Timespan.java#L527-L534", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/lang/MemorySize.java", "func_name": "MemorySize.truncate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return a new instance of MemorySize that is truncated to the given unit\n\n@param sizeUnit\n@return a new instance of MemorySize that is truncated to the given unit", "docstring_tokens": ["Return", "a", "new", "instance", "of", "MemorySize", "that", "is", "truncated", "to", "the", "given", "unit"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/lang/MemorySize.java#L221-L236", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/lang/MemorySize.java", "func_name": "MemorySize.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return a new instance of MemorySize that adds up the size of this object\nwith that of the 'other'\n\n@param other\n@return a new instance of MemorySize that adds up the size of this object\nwith the that of the 'other'", "docstring_tokens": ["Return", "a", "new", "instance", "of", "MemorySize", "that", "adds", "up", "the", "size", "of", "this", "object", "with", "that", "of", "the", "other"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/lang/MemorySize.java#L246-L256", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/lang/MemorySize.java", "func_name": "MemorySize.compareTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Compare with another instance of MemorySize based on size in bytes\n\n@see java.lang.Comparable#compareTo(java.lang.Object)", "docstring_tokens": ["Compare", "with", "another", "instance", "of", "MemorySize", "based", "on", "size", "in", "bytes"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/lang/MemorySize.java#L374-L387", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/lang/MemorySize.java", "func_name": "MemorySize.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new instance of MemorySize by adding up the given\narray of memorySizes\n\n@param memorySizes\n@return a new instance of MemorySize", "docstring_tokens": ["Create", "a", "new", "instance", "of", "MemorySize", "by", "adding", "up", "the", "given", "array", "of", "memorySizes"], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/lang/MemorySize.java#L425-L443", "partition": "valid"} +{"repo": "linkedin/linkedin-utils", "path": "org.linkedin.util-core/src/main/java/org/linkedin/util/concurrent/ThreadPerTaskExecutor.java", "func_name": "ThreadPerTaskExecutor.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes the callable in a separate thread and return the future to get the result. Note\nthat this implementation is not efficient and should be used very carefully.\n\n@param callable\n@return the future to get the result.", "docstring_tokens": ["Executes", "the", "callable", "in", "a", "separate", "thread", "and", "return", "the", "future", "to", "get", "the", "result", ".", "Note", "that", "this", "implementation", "is", "not", "efficient", "and", "should", "be", "used", "very", "carefully", "."], "sha": "ca097410b537fb09847c42037593c0f474c0571f", "url": "https://github.com/linkedin/linkedin-utils/blob/ca097410b537fb09847c42037593c0f474c0571f/org.linkedin.util-core/src/main/java/org/linkedin/util/concurrent/ThreadPerTaskExecutor.java#L72-L79", "partition": "valid"} +{"repo": "oguzbabaoglu/android-custom-markers", "path": "fancymarkers/src/main/java/com/oguzbabaoglu/fancymarkers/MarkerManager.java", "func_name": "MarkerManager.addMarker", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a marker to the map.\n\n@param marker marker to add", "docstring_tokens": ["Add", "a", "marker", "to", "the", "map", "."], "sha": "958c2142adf7605be6c9533c7f54e36fa2213c26", "url": "https://github.com/oguzbabaoglu/android-custom-markers/blob/958c2142adf7605be6c9533c7f54e36fa2213c26/fancymarkers/src/main/java/com/oguzbabaoglu/fancymarkers/MarkerManager.java#L134-L143", "partition": "valid"} +{"repo": "oguzbabaoglu/android-custom-markers", "path": "fancymarkers/src/main/java/com/oguzbabaoglu/fancymarkers/MarkerManager.java", "func_name": "MarkerManager.removeMarker", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove a marker from the map.\n\n@param marker marker to remove", "docstring_tokens": ["Remove", "a", "marker", "from", "the", "map", "."], "sha": "958c2142adf7605be6c9533c7f54e36fa2213c26", "url": "https://github.com/oguzbabaoglu/android-custom-markers/blob/958c2142adf7605be6c9533c7f54e36fa2213c26/fancymarkers/src/main/java/com/oguzbabaoglu/fancymarkers/MarkerManager.java#L162-L171", "partition": "valid"} +{"repo": "oguzbabaoglu/android-custom-markers", "path": "fancymarkers/src/main/java/com/oguzbabaoglu/fancymarkers/BitmapGenerator.java", "func_name": "BitmapGenerator.fromView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a bitmap icon showing a screenshot of the view passed in.\n\n@param view View to convert\n@return Bitmap icon of view", "docstring_tokens": ["Returns", "a", "bitmap", "icon", "showing", "a", "screenshot", "of", "the", "view", "passed", "in", "."], "sha": "958c2142adf7605be6c9533c7f54e36fa2213c26", "url": "https://github.com/oguzbabaoglu/android-custom-markers/blob/958c2142adf7605be6c9533c7f54e36fa2213c26/fancymarkers/src/main/java/com/oguzbabaoglu/fancymarkers/BitmapGenerator.java#L42-L59", "partition": "valid"} +{"repo": "davidmoten/rxjava-file", "path": "src/main/java/com/github/davidmoten/rx/FileObservable.java", "func_name": "FileObservable.onlyRelatedTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if and only if the path corresponding to a WatchEvent\nrepresents the given file. This will be the case for Create, Modify,\nDelete events.\n\n@param file\nthe file to restrict events to\n@return predicate", "docstring_tokens": ["Returns", "true", "if", "and", "only", "if", "the", "path", "corresponding", "to", "a", "WatchEvent", "represents", "the", "given", "file", ".", "This", "will", "be", "the", "case", "for", "Create", "Modify", "Delete", "events", "."], "sha": "515b781521272e779e08988bb3006c6dc454ca39", "url": "https://github.com/davidmoten/rxjava-file/blob/515b781521272e779e08988bb3006c6dc454ca39/src/main/java/com/github/davidmoten/rx/FileObservable.java#L340-L364", "partition": "valid"} +{"repo": "davidmoten/rxjava-file", "path": "src/main/java/com/github/davidmoten/rx/internal/operators/OnSubscribeWatchServiceEvents.java", "func_name": "OnSubscribeWatchServiceEvents.emitEvents", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "returns true if and only there may be more events", "docstring_tokens": ["returns", "true", "if", "and", "only", "there", "may", "be", "more", "events"], "sha": "515b781521272e779e08988bb3006c6dc454ca39", "url": "https://github.com/davidmoten/rxjava-file/blob/515b781521272e779e08988bb3006c6dc454ca39/src/main/java/com/github/davidmoten/rx/internal/operators/OnSubscribeWatchServiceEvents.java#L50-L76", "partition": "valid"} +{"repo": "xabaras/ViewPagerIndicator", "path": "viewpagerindicator/src/main/java/it/xabaras/android/viewpagerindicator/widget/ViewPagerIndicator.java", "func_name": "ViewPagerIndicator.getSelectorDrawable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a StateListDrawable for the pager indicator\n\n@return a proper StateListDrawable", "docstring_tokens": ["Create", "a", "StateListDrawable", "for", "the", "pager", "indicator"], "sha": "4e0e0554e09bf632310af48fd279f4cb70704524", "url": "https://github.com/xabaras/ViewPagerIndicator/blob/4e0e0554e09bf632310af48fd279f4cb70704524/viewpagerindicator/src/main/java/it/xabaras/android/viewpagerindicator/widget/ViewPagerIndicator.java#L93-L114", "partition": "valid"} +{"repo": "xabaras/ViewPagerIndicator", "path": "viewpagerindicator/src/main/java/it/xabaras/android/viewpagerindicator/widget/ViewPagerIndicator.java", "func_name": "ViewPagerIndicator.initWithViewPager", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initialize ViewPagerIndicator with a properly set up ViewPager\n@param viewPager an instance of android.support.v4.view.ViewPager\n@throws IllegalStateException if no adapter has been provided to the viewPager", "docstring_tokens": ["Initialize", "ViewPagerIndicator", "with", "a", "properly", "set", "up", "ViewPager"], "sha": "4e0e0554e09bf632310af48fd279f4cb70704524", "url": "https://github.com/xabaras/ViewPagerIndicator/blob/4e0e0554e09bf632310af48fd279f4cb70704524/viewpagerindicator/src/main/java/it/xabaras/android/viewpagerindicator/widget/ViewPagerIndicator.java#L121-L135", "partition": "valid"} +{"repo": "xabaras/ViewPagerIndicator", "path": "viewpagerindicator/src/main/java/it/xabaras/android/viewpagerindicator/widget/ViewPagerIndicator.java", "func_name": "ViewPagerIndicator.addViews", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add page indicators based on the attached ViewPager", "docstring_tokens": ["Add", "page", "indicators", "based", "on", "the", "attached", "ViewPager"], "sha": "4e0e0554e09bf632310af48fd279f4cb70704524", "url": "https://github.com/xabaras/ViewPagerIndicator/blob/4e0e0554e09bf632310af48fd279f4cb70704524/viewpagerindicator/src/main/java/it/xabaras/android/viewpagerindicator/widget/ViewPagerIndicator.java#L140-L165", "partition": "valid"} +{"repo": "xabaras/ViewPagerIndicator", "path": "viewpagerindicator/src/main/java/it/xabaras/android/viewpagerindicator/widget/ViewPagerIndicator.java", "func_name": "ViewPagerIndicator.getMessageFor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Always get a message for an exception\n@param e an Exception\n@return a String describing the Exception", "docstring_tokens": ["Always", "get", "a", "message", "for", "an", "exception"], "sha": "4e0e0554e09bf632310af48fd279f4cb70704524", "url": "https://github.com/xabaras/ViewPagerIndicator/blob/4e0e0554e09bf632310af48fd279f4cb70704524/viewpagerindicator/src/main/java/it/xabaras/android/viewpagerindicator/widget/ViewPagerIndicator.java#L190-L194", "partition": "valid"} +{"repo": "groupon/locality-uuid.java", "path": "src/main/java/com/groupon/uuid/UUID.java", "func_name": "UUID.useSequentialIds", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Toggle UUID generator into sequential mode, so the random segment is in order and increases by one. In\nsequential mode, there is presumably a desire that UUIDs generated around the same time should begin with similar\ncharacters, but this is difficult in a distributed environment. The solution is to set the counter value based\non a hash of the UTC date and time up to a 10 minute precision. This means that UUID classes initialized at\nsimilar times should start with similar counter values, but this is not guaranteed. If one of these classes\nis generating vastly more UUIDs than others, then these counters can become skewed.\n\nCalling this method more than once without toggling back to variable mode has no effect, so it probably makes\nmore sense to call this from a static context, like your main method or in a class' static initialization.", "docstring_tokens": ["Toggle", "UUID", "generator", "into", "sequential", "mode", "so", "the", "random", "segment", "is", "in", "order", "and", "increases", "by", "one", ".", "In", "sequential", "mode", "there", "is", "presumably", "a", "desire", "that", "UUIDs", "generated", "around", "the", "same", "time", "should", "begin", "with", "similar", "characters", "but", "this", "is", "difficult", "in", "a", "distributed", "environment", ".", "The", "solution", "is", "to", "set", "the", "counter", "value", "based", "on", "a", "hash", "of", "the", "UTC", "date", "and", "time", "up", "to", "a", "10", "minute", "precision", ".", "This", "means", "that", "UUID", "classes", "initialized", "at", "similar", "times", "should", "start", "with", "similar", "counter", "values", "but", "this", "is", "not", "guaranteed", ".", "If", "one", "of", "these", "classes", "is", "generating", "vastly", "more", "UUIDs", "than", "others", "then", "these", "counters", "can", "become", "skewed", "."], "sha": "d765e5418b8e9f96f90d494d28b35ea6c9f61bde", "url": "https://github.com/groupon/locality-uuid.java/blob/d765e5418b8e9f96f90d494d28b35ea6c9f61bde/src/main/java/com/groupon/uuid/UUID.java#L307-L334", "partition": "valid"} +{"repo": "groupon/locality-uuid.java", "path": "src/main/java/com/groupon/uuid/UUID.java", "func_name": "UUID.intValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method maps a hex character to its 4-bit representation in an int.\n@param x Hex character in the range ('0' - '9', 'a' - 'f', 'A' - 'F').\n@return 4-bit number in int representing hex offset from 0.", "docstring_tokens": ["This", "method", "maps", "a", "hex", "character", "to", "its", "4", "-", "bit", "representation", "in", "an", "int", "."], "sha": "d765e5418b8e9f96f90d494d28b35ea6c9f61bde", "url": "https://github.com/groupon/locality-uuid.java/blob/d765e5418b8e9f96f90d494d28b35ea6c9f61bde/src/main/java/com/groupon/uuid/UUID.java#L349-L357", "partition": "valid"} +{"repo": "groupon/locality-uuid.java", "path": "src/main/java/com/groupon/uuid/UUID.java", "func_name": "UUID.mapToByte", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Map two hex characters to 4-bit numbers and combine them to produce 8-bit number in byte.\n@param a First hex character.\n@param b Second hex character.\n@return Byte representation of given hex characters.", "docstring_tokens": ["Map", "two", "hex", "characters", "to", "4", "-", "bit", "numbers", "and", "combine", "them", "to", "produce", "8", "-", "bit", "number", "in", "byte", "."], "sha": "d765e5418b8e9f96f90d494d28b35ea6c9f61bde", "url": "https://github.com/groupon/locality-uuid.java/blob/d765e5418b8e9f96f90d494d28b35ea6c9f61bde/src/main/java/com/groupon/uuid/UUID.java#L365-L369", "partition": "valid"} +{"repo": "groupon/locality-uuid.java", "path": "src/main/java/com/groupon/uuid/UUID.java", "func_name": "UUID.getTimestamp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extract timestamp from raw UUID bytes and return as int. If the UUID is not the default type, then we can't parse\nthe timestamp out and null is returned.\n@return Millisecond UTC timestamp from generation of the UUID, or null for unrecognized format.", "docstring_tokens": ["Extract", "timestamp", "from", "raw", "UUID", "bytes", "and", "return", "as", "int", ".", "If", "the", "UUID", "is", "not", "the", "default", "type", "then", "we", "can", "t", "parse", "the", "timestamp", "out", "and", "null", "is", "returned", "."], "sha": "d765e5418b8e9f96f90d494d28b35ea6c9f61bde", "url": "https://github.com/groupon/locality-uuid.java/blob/d765e5418b8e9f96f90d494d28b35ea6c9f61bde/src/main/java/com/groupon/uuid/UUID.java#L498-L510", "partition": "valid"} +{"repo": "groupon/locality-uuid.java", "path": "src/main/java/com/groupon/uuid/UUID.java", "func_name": "UUID.getMacFragment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extract MAC address fragment from raw UUID bytes, setting missing values to 0, thus the first 2 and a half bytes\nwill be 0, followed by 3 and a half bytes of the active MAC address when the UUID was generated.\n@return Byte array of UUID fragment, or null for unrecognized format.", "docstring_tokens": ["Extract", "MAC", "address", "fragment", "from", "raw", "UUID", "bytes", "setting", "missing", "values", "to", "0", "thus", "the", "first", "2", "and", "a", "half", "bytes", "will", "be", "0", "followed", "by", "3", "and", "a", "half", "bytes", "of", "the", "active", "MAC", "address", "when", "the", "UUID", "was", "generated", "."], "sha": "d765e5418b8e9f96f90d494d28b35ea6c9f61bde", "url": "https://github.com/groupon/locality-uuid.java/blob/d765e5418b8e9f96f90d494d28b35ea6c9f61bde/src/main/java/com/groupon/uuid/UUID.java#L517-L531", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/config/SocializeConfig.java", "func_name": "SocializeConfig.setProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets a custom property. This will override settings in socialize.properties.\n@param key\n@param value", "docstring_tokens": ["Sets", "a", "custom", "property", ".", "This", "will", "override", "settings", "in", "socialize", ".", "properties", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/config/SocializeConfig.java#L266-L278", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/config/SocializeConfig.java", "func_name": "SocializeConfig.setFacebookUserCredentials", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the FB credentials for the current user if available.\n@param userId\n@param token\n@deprecated No longer used. Any values set here will be ignored. Use FacebookUtils to link a known user.", "docstring_tokens": ["Sets", "the", "FB", "credentials", "for", "the", "current", "user", "if", "available", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/config/SocializeConfig.java#L366-L370", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/config/SocializeConfig.java", "func_name": "SocializeConfig.setSocializeCredentials", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the Socialize credentials for your App.\n@param consumerKey Your consumer key, obtained via registration at http://getsocialize.com\n@param consumerSecret Your consumer secret, obtained via registration at http://getsocialize.com", "docstring_tokens": ["Sets", "the", "Socialize", "credentials", "for", "your", "App", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/config/SocializeConfig.java#L447-L450", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/config/SocializeConfig.java", "func_name": "SocializeConfig.merge", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Merge properties into the config.\n@param other", "docstring_tokens": ["Merge", "properties", "into", "the", "config", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/config/SocializeConfig.java#L472-L490", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/api/action/share/SocializeShareUtils.java", "func_name": "SocializeShareUtils.doShare", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the socialize share object.", "docstring_tokens": ["Creates", "the", "socialize", "share", "object", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/api/action/share/SocializeShareUtils.java#L292-L309", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/api/action/share/SocializeShareUtils.java", "func_name": "SocializeShareUtils.handleNonNetworkShare", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handles a non-network share like email or SMS.", "docstring_tokens": ["Handles", "a", "non", "-", "network", "share", "like", "email", "or", "SMS", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/api/action/share/SocializeShareUtils.java#L312-L344", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/CommentUtils.java", "func_name": "CommentUtils.addComment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a comment to the given entity. This method will also prompt the user to share their comment.\n@param context The current context.\n@param entity The entity on which the comment will be associated.\n@param text The text of the comment.\n@param listener A listener to handle the result.", "docstring_tokens": ["Adds", "a", "comment", "to", "the", "given", "entity", ".", "This", "method", "will", "also", "prompt", "the", "user", "to", "share", "their", "comment", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/CommentUtils.java#L70-L72", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/CommentUtils.java", "func_name": "CommentUtils.deleteComment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes a comment. Only the person that created the comment can delete it.\n@param context The current context.\n@param id The ID of the comment to be deleted.\n@param listener A listener to handle the result.", "docstring_tokens": ["Deletes", "a", "comment", ".", "Only", "the", "person", "that", "created", "the", "comment", "can", "delete", "it", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/CommentUtils.java#L80-L82", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/CommentUtils.java", "func_name": "CommentUtils.addComment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a comment to the given entity. This method will NOT prompt the user to share their comment as the desired networks are passed as a parameter.\n@param context The current context.\n@param entity The entity on which the comment will be associated.\n@param text The text of the comment.\n@param commentOptions Optional parameters for the comment.\n@param listener A listener to handle the result.\n@param networks 0 or more networks on which to share the comment. It is assumed that the user is already linked to the given networks. If not an error will be reported in the listener for each propagation failure.", "docstring_tokens": ["Adds", "a", "comment", "to", "the", "given", "entity", ".", "This", "method", "will", "NOT", "prompt", "the", "user", "to", "share", "their", "comment", "as", "the", "desired", "networks", "are", "passed", "as", "a", "parameter", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/CommentUtils.java#L93-L95", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/CommentUtils.java", "func_name": "CommentUtils.getComment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves a single comment based on ID.\n@param context The current context.\n@param id\n@param listener A listener to handle the result.", "docstring_tokens": ["Retrieves", "a", "single", "comment", "based", "on", "ID", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/CommentUtils.java#L103-L105", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/CommentUtils.java", "func_name": "CommentUtils.getComments", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves comments based on a set of IDs.\n@param context The current context.\n@param listener A listener to handle the result.\n@param ids An array of comment IDs", "docstring_tokens": ["Retrieves", "comments", "based", "on", "a", "set", "of", "IDs", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/CommentUtils.java#L113-L115", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/CommentUtils.java", "func_name": "CommentUtils.getCommentsByUser", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves all comments made by the given user.\n@param context The current context.\n@param user The user.\n@param start The start index for pagination (from 0).\n@param end The end index for pagination.\n@param listener A listener to handle the result.", "docstring_tokens": ["Retrieves", "all", "comments", "made", "by", "the", "given", "user", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/CommentUtils.java#L125-L127", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/CommentUtils.java", "func_name": "CommentUtils.getCommentsByEntity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves all comments associated with the given entity.\n@param context The current context.\n@param entityKey The entity on which the comment were associated.\n@param start The start index for pagination (from 0).\n@param end The end index for pagination.\n@param listener A listener to handle the result.", "docstring_tokens": ["Retrieves", "all", "comments", "associated", "with", "the", "given", "entity", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/CommentUtils.java#L137-L139", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/CommentUtils.java", "func_name": "CommentUtils.getCommentsByApplication", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves all comments across all entities.\n@param context The current context.\n@param start The start index for pagination (from 0).\n@param end The end index for pagination.\n@param listener A listener to handle the result.", "docstring_tokens": ["Retrieves", "all", "comments", "across", "all", "entities", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/CommentUtils.java#L148-L150", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/CommentUtils.java", "func_name": "CommentUtils.showCommentView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shows the comments for an entity.\n@param listener A listener to handle the result.", "docstring_tokens": ["Shows", "the", "comments", "for", "an", "entity", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/CommentUtils.java#L156-L158", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/util/JSONParser.java", "func_name": "JSONParser.parseObject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Detects whether the inbound string is a JSONArray and if so wraps the array in an object with a single field called \"data\"\n@param json\n@return", "docstring_tokens": ["Detects", "whether", "the", "inbound", "string", "is", "a", "JSONArray", "and", "if", "so", "wraps", "the", "array", "in", "an", "object", "with", "a", "single", "field", "called", "data"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/util/JSONParser.java#L49-L60", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/facebook/Util.java", "func_name": "Util.openUrl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Connect to an HTTP URL and return the response as a string.\n\nNote that the HTTP method override is used on non-GET requests. (i.e.\nrequests are made as \"POST\" with method specified in the body).\n\n@param url - the resource to open: must be a welformed URL\n@param method - the HTTP method to use (\"GET\", \"POST\", etc.)\n@param params - the query parameter for the URL (e.g. access_token=foo)\n@return the URL contents as a String\n@throws MalformedURLException - if the URL format is invalid\n@throws IOException - if a network problem occurs", "docstring_tokens": ["Connect", "to", "an", "HTTP", "URL", "and", "return", "the", "response", "as", "a", "string", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/facebook/Util.java#L140-L234", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/facebook/Util.java", "func_name": "Util.parseJson", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse a server response into a JSON Object. This is a basic\nimplementation using org.json.JSONObject representation. More\nsophisticated applications may wish to do their own parsing.\n\nThe parsed JSON is checked for a variety of error fields and\na FacebookException is thrown if an error condition is set,\npopulated with the error message and error type or code if\navailable.\n\n@param response - string representation of the response\n@return the response as a JSON Object\n@throws JSONException - if the response is not valid JSON\n@throws FacebookError - if an error condition is set", "docstring_tokens": ["Parse", "a", "server", "response", "into", "a", "JSON", "Object", ".", "This", "is", "a", "basic", "implementation", "using", "org", ".", "json", ".", "JSONObject", "representation", ".", "More", "sophisticated", "applications", "may", "wish", "to", "do", "their", "own", "parsing", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/facebook/Util.java#L251-L287", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/facebook/Util.java", "func_name": "Util.showAlert", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Display a simple alert dialog with the given text and title.\n\n@param context\nAndroid context in which the dialog should be displayed\n@param title\nAlert dialog title\n@param text\nAlert dialog message", "docstring_tokens": ["Display", "a", "simple", "alert", "dialog", "with", "the", "given", "text", "and", "title", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/facebook/Util.java#L299-L304", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/facebook/Util.java", "func_name": "Util.logd", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A proxy for Log.d api that kills log messages in release build. It\nnot recommended to send sensitive information to log output in\nshipping apps.\n\n@param tag\n@param msg", "docstring_tokens": ["A", "proxy", "for", "Log", ".", "d", "api", "that", "kills", "log", "messages", "in", "release", "build", ".", "It", "not", "recommended", "to", "send", "sensitive", "information", "to", "log", "output", "in", "shipping", "apps", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/facebook/Util.java#L314-L318", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/google/gson/internal/bind/TypeAdapterRuntimeTypeWrapper.java", "func_name": "TypeAdapterRuntimeTypeWrapper.getRuntimeTypeIfMoreSpecific", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds a compatible runtime type if it is more specific", "docstring_tokens": ["Finds", "a", "compatible", "runtime", "type", "if", "it", "is", "more", "specific"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/google/gson/internal/bind/TypeAdapterRuntimeTypeWrapper.java#L75-L81", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/entity/SocializeAction.java", "func_name": "SocializeAction.setEntitySafe", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reverts to only set the entity key if the name is not defined.\nThis ensures an existing entity name is not wiped out when the action is saved.\n@param entity", "docstring_tokens": ["Reverts", "to", "only", "set", "the", "entity", "key", "if", "the", "name", "is", "not", "defined", ".", "This", "ensures", "an", "existing", "entity", "name", "is", "not", "wiped", "out", "when", "the", "action", "is", "saved", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/entity/SocializeAction.java#L69-L76", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/auth/facebook/FacebookUrlBuilder.java", "func_name": "FacebookUrlBuilder.buildProfileImageUrl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs the URL to access the FB graph API and retrieve a profile image for the\nuser with the given facebook id.\n@param id\n@return", "docstring_tokens": ["Constructs", "the", "URL", "to", "access", "the", "FB", "graph", "API", "and", "retrieve", "a", "profile", "image", "for", "the", "user", "with", "the", "given", "facebook", "id", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/auth/facebook/FacebookUrlBuilder.java#L16-L22", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ui/profile/ProfileLayoutView.java", "func_name": "ProfileLayoutView.onImageChange", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Called when the profile picture has been changed by the user.\n@param bitmap", "docstring_tokens": ["Called", "when", "the", "profile", "picture", "has", "been", "changed", "by", "the", "user", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ui/profile/ProfileLayoutView.java#L129-L134", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/oauth/signpost/signature/SignatureBaseString.java", "func_name": "SignatureBaseString.generate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds the signature base string from the data this instance was\nconfigured with.\n\n@return the signature base string\n@throws OAuthMessageSignerException", "docstring_tokens": ["Builds", "the", "signature", "base", "string", "from", "the", "data", "this", "instance", "was", "configured", "with", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/oauth/signpost/signature/SignatureBaseString.java#L52-L63", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/oauth/signpost/signature/SignatureBaseString.java", "func_name": "SignatureBaseString.normalizeRequestParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Normalizes the set of request parameters this instance was configured\nwith, as per OAuth spec section 9.1.1.\n\n@param parameters\nthe set of request parameters\n@return the normalized params string\n@throws IOException", "docstring_tokens": ["Normalizes", "the", "set", "of", "request", "parameters", "this", "instance", "was", "configured", "with", "as", "per", "OAuth", "spec", "section", "9", ".", "1", ".", "1", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/oauth/signpost/signature/SignatureBaseString.java#L95-L117", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/facebook/Facebook.java", "func_name": "Facebook.authorize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Default authorize method. Grants only basic permissions.\n\nSee authorize() below for @params.", "docstring_tokens": ["Default", "authorize", "method", ".", "Grants", "only", "basic", "permissions", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/facebook/Facebook.java#L105-L108", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/facebook/Facebook.java", "func_name": "Facebook.authorize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Full authorize method.\n\nStarts either an Activity or a dialog which prompts the user to log in to\nFacebook and grant the requested permissions to the given application.\n\nThis method will, when possible, use Facebook's single sign-on for\nAndroid to obtain an access token. This involves proxying a call through\nthe Facebook for Android stand-alone application, which will handle the\nauthentication flow, and return an OAuth access token for making API\ncalls.\n\nBecause this process will not be available for all users, if single\nsign-on is not possible, this method will automatically fall back to the\nOAuth 2.0 User-Agent flow. In this flow, the user credentials are handled\nby Facebook in an embedded WebView, not by the client application. As\nsuch, the dialog makes a network request and renders HTML content rather\nthan a native UI. The access token is retrieved from a redirect to a\nspecial URL that the WebView handles.\n\nNote that User credentials could be handled natively using the OAuth 2.0\nUsername and Password Flow, but this is not supported by this SDK.\n\nSee http://developers.facebook.com/docs/authentication/ and\nhttp://wiki.oauth.net/OAuth-2 for more details.\n\nNote that this method is asynchronous and the callback will be invoked in\nthe original calling thread (not in a background thread).\n\nAlso note that requests may be made to the API without calling authorize\nfirst, in which case only public information is returned.\n\nIMPORTANT: Note that single sign-on authentication will not function\ncorrectly if you do not include a call to the authorizeCallback() method\nin your onActivityResult() function! Please see below for more\ninformation. single sign-on may be disabled by passing FORCE_DIALOG_AUTH\nas the activityCode parameter in your call to authorize().\n\n@param activity\nThe Android activity in which we want to display the\nauthorization dialog.\n@param applicationId\nThe Facebook application identifier e.g. \"350685531728\"\n@param permissions\nA list of permissions required for this application: e.g.\n\"read_stream\", \"publish_stream\", \"offline_access\", etc. see\nhttp://developers.facebook.com/docs/authentication/permissions\nThis parameter should not be null -- if you do not require any\npermissions, then pass in an empty String array.\n@param activityCode\nSingle sign-on requires an activity result to be called back\nto the client application -- if you are waiting on other\nactivities to return data, pass a custom activity code here to\navoid collisions. If you would like to force the use of legacy\ndialog-based authorization, pass FORCE_DIALOG_AUTH for this\nparameter. Otherwise just omit this parameter and Facebook\nwill use a suitable default. See\nhttp://developer.android.com/reference/android/\napp/Activity.html for more information.\n@param listener\nCallback interface for notifying the calling application when\nthe authentication dialog has completed, failed, or been\ncanceled.", "docstring_tokens": ["Full", "authorize", "method", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/facebook/Facebook.java#L184-L200", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/facebook/Facebook.java", "func_name": "Facebook.validateActivityIntent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper to validate an activity intent by resolving and checking the\nprovider's package signature.\n\n@param context\n@param intent\n@return true if the service intent resolution happens successfully and the\nsignatures match.", "docstring_tokens": ["Helper", "to", "validate", "an", "activity", "intent", "by", "resolving", "and", "checking", "the", "provider", "s", "package", "signature", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/facebook/Facebook.java#L256-L266", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/facebook/Facebook.java", "func_name": "Facebook.logout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Invalidate the current user session by removing the access token in\nmemory, clearing the browser cookie, and calling auth.expireSession\nthrough the API.\n\nNote that this method blocks waiting for a network response, so do not\ncall it in a UI thread.\n\n@param context\nThe Android context in which the logout should be called: it\nshould be the same context in which the login occurred in\norder to clear any stored cookies\n@throws IOException\n@throws MalformedURLException\n@return JSON string representation of the auth.expireSession response\n(\"true\" if successful)", "docstring_tokens": ["Invalidate", "the", "current", "user", "session", "by", "removing", "the", "access", "token", "in", "memory", "clearing", "the", "browser", "cookie", "and", "calling", "auth", ".", "expireSession", "through", "the", "API", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/facebook/Facebook.java#L613-L622", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/facebook/Facebook.java", "func_name": "Facebook.dialog", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate a UI dialog for the request action in the given Android context\nwith the provided parameters.\n\nNote that this method is asynchronous and the callback will be invoked in\nthe original calling thread (not in a background thread).\n\n@param context\nThe Android context in which we will generate this dialog.\n@param action\nString representation of the desired method: e.g. \"feed\" ...\n@param parameters\nString key-value pairs to be passed as URL parameters.\n@param listener\nCallback interface to notify the application when the dialog\nhas completed.", "docstring_tokens": ["Generate", "a", "UI", "dialog", "for", "the", "request", "action", "in", "the", "given", "Android", "context", "with", "the", "provided", "parameters", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/facebook/Facebook.java#L783-L808", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/google/gson/DefaultDateTypeAdapter.java", "func_name": "DefaultDateTypeAdapter.serialize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "See issue 162", "docstring_tokens": ["See", "issue", "162"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/google/gson/DefaultDateTypeAdapter.java#L70-L75", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/networks/facebook/FacebookUtils.java", "func_name": "FacebookUtils.link", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Links the current user to a facebook account. The user will be presented with the Facebook authentication dialog.\n@param context The current context.\n@param listener A listener to handle the result.", "docstring_tokens": ["Links", "the", "current", "user", "to", "a", "facebook", "account", ".", "The", "user", "will", "be", "presented", "with", "the", "Facebook", "authentication", "dialog", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/networks/facebook/FacebookUtils.java#L110-L113", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/networks/facebook/FacebookUtils.java", "func_name": "FacebookUtils.link", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Links the current user to a facebook account with custom FB permissions. The user will be presented with the Facebook authentication dialog.\n@param context The current context.\n@param listener A listener to handle the result.\n@param permissions One or more permissions defined by http://developers.facebook.com/docs/authentication/permissions/", "docstring_tokens": ["Links", "the", "current", "user", "to", "a", "facebook", "account", "with", "custom", "FB", "permissions", ".", "The", "user", "will", "be", "presented", "with", "the", "Facebook", "authentication", "dialog", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/networks/facebook/FacebookUtils.java#L121-L124", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/networks/facebook/FacebookUtils.java", "func_name": "FacebookUtils.link", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Links an existing Facebook access token with the current user. No authentication dialog will be shown.\n@param context The current context.\n@param token The Facebook access token.\n@param verifyPermissions If true this method will also verify that the permissions assigned to the given token match the default permissions required by Socialize.\nIf not an authentication with FB will be attempted. If this parameter is false it is ASSUMED that permissions are valid.\n@param listener A listener to handle the result.", "docstring_tokens": ["Links", "an", "existing", "Facebook", "access", "token", "with", "the", "current", "user", ".", "No", "authentication", "dialog", "will", "be", "shown", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/networks/facebook/FacebookUtils.java#L134-L137", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/networks/facebook/FacebookUtils.java", "func_name": "FacebookUtils.postEntity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Posts an entity to the user's Facebook wall. Post data can be customized by implementing the onBeforePost method in the given SocialNetworkListener.\n@param context The current context.\n@param entity The Socialize entity to which the post corresponds (Required)\n@param text The text for the post.\n@param listener A listnener to handle callbacks from the post.", "docstring_tokens": ["Posts", "an", "entity", "to", "the", "user", "s", "Facebook", "wall", ".", "Post", "data", "can", "be", "customized", "by", "implementing", "the", "onBeforePost", "method", "in", "the", "given", "SocialNetworkListener", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/networks/facebook/FacebookUtils.java#L218-L253", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/networks/facebook/FacebookUtils.java", "func_name": "FacebookUtils.extendAccessToken", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extends the user's Facebook access token if needed.\n@param context The current context\n@param listener A listener to handle the result after re-authentication with Socialize.\n@deprecated Use onResume()", "docstring_tokens": ["Extends", "the", "user", "s", "Facebook", "access", "token", "if", "needed", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/networks/facebook/FacebookUtils.java#L422-L425", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/networks/facebook/FacebookUtils.java", "func_name": "FacebookUtils.getCurrentPermissions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves the current permissions for token provided.\n@param parent The current context.\n@param token The token for which we are going to retrieve permissions.\n@param callback A callback to handle the response.", "docstring_tokens": ["Retrieves", "the", "current", "permissions", "for", "token", "provided", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/networks/facebook/FacebookUtils.java#L443-L445", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/networks/facebook/FacebookUtils.java", "func_name": "FacebookUtils.getHashKeys", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the hash key used to authenticate this application with Facebook. Useful for debugging.\n@param context\n@return\n@throws NoSuchAlgorithmException", "docstring_tokens": ["Returns", "the", "hash", "key", "used", "to", "authenticate", "this", "application", "with", "Facebook", ".", "Useful", "for", "debugging", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/networks/facebook/FacebookUtils.java#L453-L476", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/EntityUtils.java", "func_name": "EntityUtils.saveEntity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Saves or Creates an entity\n@param context The current context.\n@param e The entity to be created.\n@param listener A listener to handle the result.", "docstring_tokens": ["Saves", "or", "Creates", "an", "entity"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/EntityUtils.java#L57-L59", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/EntityUtils.java", "func_name": "EntityUtils.getEntity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves an entity based on its key.\n@param context The current context.\n@param key The entity key.\n@param listener A listener to handle the result.", "docstring_tokens": ["Retrieves", "an", "entity", "based", "on", "its", "key", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/EntityUtils.java#L67-L69", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/EntityUtils.java", "func_name": "EntityUtils.getEntity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves an entity based on its id.\n@param context The current context.\n@param id The entity id.\n@param listener A listener to handle the result.", "docstring_tokens": ["Retrieves", "an", "entity", "based", "on", "its", "id", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/EntityUtils.java#L77-L79", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/EntityUtils.java", "func_name": "EntityUtils.getEntities", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves all entities sorted by creation date.\n@param context The current context.\n@param start The start index for pagination (0 based).\n@param end The end index for pagination (0 based).\n@param listener A listener to handle the result.", "docstring_tokens": ["Retrieves", "all", "entities", "sorted", "by", "creation", "date", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/EntityUtils.java#L88-L90", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/EntityUtils.java", "func_name": "EntityUtils.getEntities", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves the entities designated by the given keys.\n@param context The current context.\n@param listener A listener to handle the result.\n@param keys One or more entity keys.", "docstring_tokens": ["Retrieves", "the", "entities", "designated", "by", "the", "given", "keys", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/EntityUtils.java#L98-L100", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ui/DefaultSocializeActivityLifecycleListener.java", "func_name": "DefaultSocializeActivityLifecycleListener.onCreateContextMenu", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Called BEFORE the default activity onCreateContextMenu event.\n\n@param activity The calling activity.\n@param menu The context menu that is being built\n@param v The view for which the context menu is being built\n@param menuInfo Extra information about the item for which the context menu should be shown. This information will vary depending on the class of v.\n@return True to PREVENT the default implementation from executing.", "docstring_tokens": ["Called", "BEFORE", "the", "default", "activity", "onCreateContextMenu", "event", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ui/DefaultSocializeActivityLifecycleListener.java#L163-L166", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/SubscriptionUtils.java", "func_name": "SubscriptionUtils.subscribe", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Subscribes the current user to notifications for new comments on this entity.\n@param context The current context.\n@param e The entity.\n@param type The subscription type.\n@param listener A listener to handle the result.", "docstring_tokens": ["Subscribes", "the", "current", "user", "to", "notifications", "for", "new", "comments", "on", "this", "entity", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/SubscriptionUtils.java#L55-L57", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/SubscriptionUtils.java", "func_name": "SubscriptionUtils.isSubscribed", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines if the current user is subscribed to notifications on new comments for the given entity.\n@param context The current context.\n@param e The entity.\n@param type The subscription type.\n@param listener A listener to handle the result.", "docstring_tokens": ["Determines", "if", "the", "current", "user", "is", "subscribed", "to", "notifications", "on", "new", "comments", "for", "the", "given", "entity", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/SubscriptionUtils.java#L77-L79", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/notifications/NotificationChecker.java", "func_name": "NotificationChecker.checkRegistrations", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Called at application startup.\n@param context", "docstring_tokens": ["Called", "at", "application", "startup", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/notifications/NotificationChecker.java#L93-L186", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/google/gson/stream/JsonReader.java", "func_name": "JsonReader.peek", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the type of the next token without consuming it.", "docstring_tokens": ["Returns", "the", "type", "of", "the", "next", "token", "without", "consuming", "it", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/google/gson/stream/JsonReader.java#L357-L399", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/google/gson/stream/JsonReader.java", "func_name": "JsonReader.nextNull", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Consumes the next token from the JSON stream and asserts that it is a\nliteral null.\n\n@throws IllegalStateException if the next token is not null or if this\nreader is closed.", "docstring_tokens": ["Consumes", "the", "next", "token", "from", "the", "JSON", "stream", "and", "asserts", "that", "it", "is", "a", "literal", "null", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/google/gson/stream/JsonReader.java#L500-L508", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/google/gson/stream/JsonReader.java", "func_name": "JsonReader.readEscapeCharacter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unescapes the character identified by the character or characters that\nimmediately follow a backslash. The backslash '\\' should have already\nbeen read. This supports both unicode escapes \"u000A\" and two-character\nescapes \"\\n\".\n\n@throws NumberFormatException if any unicode escape sequences are\nmalformed.", "docstring_tokens": ["Unescapes", "the", "character", "identified", "by", "the", "character", "or", "characters", "that", "immediately", "follow", "a", "backslash", ".", "The", "backslash", "\\", "should", "have", "already", "been", "read", ".", "This", "supports", "both", "unicode", "escapes", "u000A", "and", "two", "-", "character", "escapes", "\\", "n", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/google/gson/stream/JsonReader.java#L1138-L1188", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ShareUtils.java", "func_name": "ShareUtils.showShareDialog", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Displays the default share dialog. In most cases this is the simplest version to use.\n@param context The current context.\n@param entity The entity being shared.", "docstring_tokens": ["Displays", "the", "default", "share", "dialog", ".", "In", "most", "cases", "this", "is", "the", "simplest", "version", "to", "use", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ShareUtils.java#L149-L151", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ShareUtils.java", "func_name": "ShareUtils.showShareDialog", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Displays the default share dialog and allows for the handling of share dialog events.\n@param context The current context.\n@param entity The entity being shared.\n@param listener A listener to handle events on the dialog.", "docstring_tokens": ["Displays", "the", "default", "share", "dialog", "and", "allows", "for", "the", "handling", "of", "share", "dialog", "events", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ShareUtils.java#L159-L161", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ShareUtils.java", "func_name": "ShareUtils.shareViaEmail", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shares the given entity via email. This method with launch the default email application on the device.\n@param context The current context.\n@param entity The entity being shared.\n@param listener A listener to handle events.", "docstring_tokens": ["Shares", "the", "given", "entity", "via", "email", ".", "This", "method", "with", "launch", "the", "default", "email", "application", "on", "the", "device", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ShareUtils.java#L182-L184", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ShareUtils.java", "func_name": "ShareUtils.shareViaGooglePlus", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shares the given entity via Google+. This method with launch the Google+ application on the device.\n@param context The current context.\n@param entity The entity being shared.\n@param listener A listener to handle events.", "docstring_tokens": ["Shares", "the", "given", "entity", "via", "Google", "+", ".", "This", "method", "with", "launch", "the", "Google", "+", "application", "on", "the", "device", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ShareUtils.java#L193-L195", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ShareUtils.java", "func_name": "ShareUtils.shareViaOther", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shares the given entity via a user selected medium. This method with launch the default application share dialog on the device.\n@param context The current context.\n@param entity The entity being shared.\n@param listener A listener to handle events.", "docstring_tokens": ["Shares", "the", "given", "entity", "via", "a", "user", "selected", "medium", ".", "This", "method", "with", "launch", "the", "default", "application", "share", "dialog", "on", "the", "device", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ShareUtils.java#L203-L205", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ShareUtils.java", "func_name": "ShareUtils.shareViaSMS", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shares the given entity via SMS. This method with launch the default SMS application on the device.\n@param context The current context.\n@param entity The entity being shared.\n@param listener A listener to handle events.", "docstring_tokens": ["Shares", "the", "given", "entity", "via", "SMS", ".", "This", "method", "with", "launch", "the", "default", "SMS", "application", "on", "the", "device", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ShareUtils.java#L213-L215", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ShareUtils.java", "func_name": "ShareUtils.shareViaSocialNetworks", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Shares the given entity via a Social Network such as Twitter or Facebook. This will prompt the user to select a network.\n@param context The current context.\n@param entity The entity being shared.\n@param shareOptions Options for the share. If text is available for the share it can be specified here.\n@param listener A listener to handle events.", "docstring_tokens": ["Shares", "the", "given", "entity", "via", "a", "Social", "Network", "such", "as", "Twitter", "or", "Facebook", ".", "This", "will", "prompt", "the", "user", "to", "select", "a", "network", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ShareUtils.java#L224-L226", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ShareUtils.java", "func_name": "ShareUtils.getShare", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves a single share event based on ID.\n@param context The current context.\n@param listener A listener to handle the result.\n@param id The ID of the share.", "docstring_tokens": ["Retrieves", "a", "single", "share", "event", "based", "on", "ID", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ShareUtils.java#L234-L236", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ShareUtils.java", "func_name": "ShareUtils.getShares", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves multiple share events based on ID.\n@param context The current context.\n@param listener A listener to handle the result.\n@param ids One or more IDs for the shares returned.", "docstring_tokens": ["Retrieves", "multiple", "share", "events", "based", "on", "ID", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ShareUtils.java#L244-L246", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ShareUtils.java", "func_name": "ShareUtils.getSharesByUser", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves all share events performed by the given user.\n@param context The current context.\n@param user The user who performed the share(s).\n@param start The start index for the result set (0 indexed).\n@param end The end index for the result set.\n@param listener A listener to handle the result.", "docstring_tokens": ["Retrieves", "all", "share", "events", "performed", "by", "the", "given", "user", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ShareUtils.java#L256-L258", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ShareUtils.java", "func_name": "ShareUtils.getSharesByEntity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves all share events performed on the given entity.\n@param context The current context.\n@param entityKey The key of the entity that was shared.\n@param start The start index for the result set (0 indexed).\n@param end The end index for the result set.\n@param listener A listener to handle the result.", "docstring_tokens": ["Retrieves", "all", "share", "events", "performed", "on", "the", "given", "entity", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ShareUtils.java#L268-L270", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ShareUtils.java", "func_name": "ShareUtils.getSharesByApplication", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves all share events across all entities.\n@param context The current context.\n@param start The start index for the result set (0 indexed).\n@param end The end index for the result set.\n@param listener A listener to handle the result.", "docstring_tokens": ["Retrieves", "all", "share", "events", "across", "all", "entities", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ShareUtils.java#L279-L281", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/LikeUtils.java", "func_name": "LikeUtils.like", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Records a like against the given entity for the current user. This method will also prompt the user to share their like.\n@param context The current context.\n@param entity The entity to be liked.\n@param listener A listener to handle the result.", "docstring_tokens": ["Records", "a", "like", "against", "the", "given", "entity", "for", "the", "current", "user", ".", "This", "method", "will", "also", "prompt", "the", "user", "to", "share", "their", "like", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/LikeUtils.java#L69-L71", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/LikeUtils.java", "func_name": "LikeUtils.like", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Records a like against the given entity for the current user. This method will NOT prompt the user to share their like.\n@param context The current context.\n@param entity The entity to be liked.\n@param likeOptions Optional parameters for the like.\n@param listener A listener to handle the result.\n@param networks 0 or more networks on which to share the like.", "docstring_tokens": ["Records", "a", "like", "against", "the", "given", "entity", "for", "the", "current", "user", ".", "This", "method", "will", "NOT", "prompt", "the", "user", "to", "share", "their", "like", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/LikeUtils.java#L81-L83", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/LikeUtils.java", "func_name": "LikeUtils.unlike", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes a like previously created for the current user.\n@param context The current context.\n@param entityKey The entity that was liked.\n@param listener A listener to handle the result.", "docstring_tokens": ["Removes", "a", "like", "previously", "created", "for", "the", "current", "user", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/LikeUtils.java#L92-L94", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/LikeUtils.java", "func_name": "LikeUtils.getLike", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves a like for an entity and the current user.\n@param context The current context.\n@param entityKey The entity that was liked.\n@param listener A listener to handle the result.", "docstring_tokens": ["Retrieves", "a", "like", "for", "an", "entity", "and", "the", "current", "user", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/LikeUtils.java#L102-L104", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/LikeUtils.java", "func_name": "LikeUtils.getLike", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves a like based on its ID.\n@param context The current context.\n@param id The id of the like.\n@param listener A listener to handle the result.", "docstring_tokens": ["Retrieves", "a", "like", "based", "on", "its", "ID", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/LikeUtils.java#L112-L114", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/LikeUtils.java", "func_name": "LikeUtils.isLiked", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines if the given entity has been liked by the current user.\n@param context The current context.\n@param entityKey The entity that was liked.\n@param listener listener A listener to handle the result.", "docstring_tokens": ["Determines", "if", "the", "given", "entity", "has", "been", "liked", "by", "the", "current", "user", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/LikeUtils.java#L122-L124", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/LikeUtils.java", "func_name": "LikeUtils.getLikesByUser", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Lists all likes for the given user.\n@param context The current context.\n@param user The user for whom likes will be queried.\n@param start The first index (for pagination), starting at 0\n@param end The last index (for pagination)\n@param listener A listener to handle the result.", "docstring_tokens": ["Lists", "all", "likes", "for", "the", "given", "user", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/LikeUtils.java#L134-L136", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/LikeUtils.java", "func_name": "LikeUtils.getLikesByEntity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Lists all likes for the given entity.\n@param context The current context.\n@param entityKey The entity for whom likes will be queried.\n@param start The first index (for pagination), starting at 0\n@param end The last index (for pagination)\n@param listener A listener to handle the result.", "docstring_tokens": ["Lists", "all", "likes", "for", "the", "given", "entity", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/LikeUtils.java#L146-L148", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/networks/facebook/FacebookUtilsImpl.java", "func_name": "FacebookUtilsImpl.getFacebook", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "DO NOT CALL", "docstring_tokens": ["DO", "NOT", "CALL"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/networks/facebook/FacebookUtilsImpl.java#L66-L73", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/oauth/signpost/AbstractOAuthConsumer.java", "func_name": "AbstractOAuthConsumer.collectHeaderParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Collects OAuth Authorization header parameters as per OAuth Core 1.0 spec\nsection 9.1.1", "docstring_tokens": ["Collects", "OAuth", "Authorization", "header", "parameters", "as", "per", "OAuth", "Core", "1", ".", "0", "spec", "section", "9", ".", "1", ".", "1"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/oauth/signpost/AbstractOAuthConsumer.java#L237-L240", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/oauth/signpost/AbstractOAuthConsumer.java", "func_name": "AbstractOAuthConsumer.collectBodyParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Collects x-www-form-urlencoded body parameters as per OAuth Core 1.0 spec\nsection 9.1.1", "docstring_tokens": ["Collects", "x", "-", "www", "-", "form", "-", "urlencoded", "body", "parameters", "as", "per", "OAuth", "Core", "1", ".", "0", "spec", "section", "9", ".", "1", ".", "1"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/oauth/signpost/AbstractOAuthConsumer.java#L246-L255", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/oauth/signpost/AbstractOAuthConsumer.java", "func_name": "AbstractOAuthConsumer.collectQueryParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Collects HTTP GET query string parameters as per OAuth Core 1.0 spec\nsection 9.1.1", "docstring_tokens": ["Collects", "HTTP", "GET", "query", "string", "parameters", "as", "per", "OAuth", "Core", "1", ".", "0", "spec", "section", "9", ".", "1", ".", "1"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/oauth/signpost/AbstractOAuthConsumer.java#L261-L269", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/google/gson/Gson.java", "func_name": "Gson.newJsonWriter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a new JSON writer configured for this GSON and with the non-execute\nprefix if that is configured.", "docstring_tokens": ["Returns", "a", "new", "JSON", "writer", "configured", "for", "this", "GSON", "and", "with", "the", "non", "-", "execute", "prefix", "if", "that", "is", "configured", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/google/gson/Gson.java#L564-L574", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/google/gson/internal/ConstructorConstructor.java", "func_name": "ConstructorConstructor.newDefaultImplementationConstructor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructors for common interface types like Map and List and their\nsubytpes.", "docstring_tokens": ["Constructors", "for", "common", "interface", "types", "like", "Map", "and", "List", "and", "their", "subytpes", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/google/gson/internal/ConstructorConstructor.java#L105-L145", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/util/StringUtils.java", "func_name": "StringUtils.replaceNewLines", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Replaces successive new line characters.\n@param src The source String.\n@param from Number of successive new lines (e.g. 3 would be \\n\\n\\n)\n@param to The number of new lines to replace with.\n@return The cleaned string.", "docstring_tokens": ["Replaces", "successive", "new", "line", "characters", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/util/StringUtils.java#L77-L95", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "demo/src/com/socialize/demo/snippets/ActionBarReload.java", "func_name": "ActionBarReload.reload", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "end-snippet-0", "docstring_tokens": ["end", "-", "snippet", "-", "0"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/demo/src/com/socialize/demo/snippets/ActionBarReload.java#L53-L76", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ui/util/GeoUtils.java", "func_name": "GeoUtils.getSimpleLocation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a simple one-line address based on city and country\n@param address\n@return", "docstring_tokens": ["Returns", "a", "simple", "one", "-", "line", "address", "based", "on", "city", "and", "country"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ui/util/GeoUtils.java#L79-L92", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/networks/facebook/v3/FacebookFacadeV3.java", "func_name": "FacebookFacadeV3.getUser", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "so we can mock", "docstring_tokens": ["so", "we", "can", "mock"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/networks/facebook/v3/FacebookFacadeV3.java#L201-L214", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ActionUtils.java", "func_name": "ActionUtils.getActionsByApplication", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the application-wide actions.\n@param context The current context.\n@param start The start index for pagination (0 based).\n@param end The end index for pagination (0 based).\n@param listener A listener to handle the result.", "docstring_tokens": ["Gets", "the", "application", "-", "wide", "actions", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ActionUtils.java#L53-L55", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ActionUtils.java", "func_name": "ActionUtils.getActionsByUser", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the actions of a single user.\n@param context The current context.\n@param userId The user for whom the actions will be returned.\n@param start The start index for pagination (0 based).\n@param end The end index for pagination (0 based).\n@param listener A listener to handle the result.", "docstring_tokens": ["Gets", "the", "actions", "of", "a", "single", "user", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ActionUtils.java#L65-L67", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ActionUtils.java", "func_name": "ActionUtils.getActionsByEntity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the actions for a given entity.\n@param context The current context.\n@param entityKey The entity key.\n@param start The start index for pagination (0 based).\n@param end The end index for pagination (0 based).\n@param listener A listener to handle the result.", "docstring_tokens": ["Gets", "the", "actions", "for", "a", "given", "entity", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ActionUtils.java#L77-L79", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ActionUtils.java", "func_name": "ActionUtils.getActionsByUserAndEntity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the actions of a single user on a single entity.\n@param context The current context.\n@param userId The user for whom the actions will be returned.\n@param entityKey The entity key.\n@param start The start index for pagination (0 based).\n@param end The end index for pagination (0 based).\n@param listener A listener to handle the result.", "docstring_tokens": ["Gets", "the", "actions", "of", "a", "single", "user", "on", "a", "single", "entity", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ActionUtils.java#L90-L92", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/google/gson/stream/JsonWriter.java", "func_name": "JsonWriter.close", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Closes the current scope by appending any necessary whitespace and the\ngiven bracket.", "docstring_tokens": ["Closes", "the", "current", "scope", "by", "appending", "any", "necessary", "whitespace", "and", "the", "given", "bracket", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/google/gson/stream/JsonWriter.java#L295-L311", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/google/gson/stream/JsonWriter.java", "func_name": "JsonWriter.name", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encodes the property name.\n\n@param name the name of the forthcoming value. May not be null.\n@return this writer.", "docstring_tokens": ["Encodes", "the", "property", "name", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/google/gson/stream/JsonWriter.java#L333-L342", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/google/gson/JsonParser.java", "func_name": "JsonParser.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses the specified JSON string into a parse tree\n\n@param json JSON text\n@return a parse tree of {@link JsonElement}s corresponding to the specified JSON\n@throws JsonParseException if the specified text is not valid JSON\n@since 1.3", "docstring_tokens": ["Parses", "the", "specified", "JSON", "string", "into", "a", "parse", "tree"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/google/gson/JsonParser.java#L57-L72", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/google/gson/JsonParser.java", "func_name": "JsonParser.parse", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the next value from the JSON stream as a parse tree.\n\n@throws JsonParseException if there is an IOException or if the specified\ntext is not valid JSON\n@since 1.6", "docstring_tokens": ["Returns", "the", "next", "value", "from", "the", "JSON", "stream", "as", "a", "parse", "tree", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/google/gson/JsonParser.java#L81-L98", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/networks/twitter/TwitterUtils.java", "func_name": "TwitterUtils.link", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Links the current user to their Twitter account using an existing Twitter oAuth token and secret.\n@param context The current activity.\n@param token The user's Twitter token.\n@param secret The user's Twitter token secret.\n@param listener A listener to handle the result.", "docstring_tokens": ["Links", "the", "current", "user", "to", "their", "Twitter", "account", "using", "an", "existing", "Twitter", "oAuth", "token", "and", "secret", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/networks/twitter/TwitterUtils.java#L76-L78", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/networks/twitter/TwitterUtils.java", "func_name": "TwitterUtils.setCredentials", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the Twitter App credentials for the application. This sets the same configuration properties as twitter.consumer.key and twitter.consumer.secret\n@param context The current context.\n@param consumerKey The Twitter App Consumer Key\n@param consumerSecret The Twitter App Consumer Secret", "docstring_tokens": ["Sets", "the", "Twitter", "App", "credentials", "for", "the", "application", ".", "This", "sets", "the", "same", "configuration", "properties", "as", "twitter", ".", "consumer", ".", "key", "and", "twitter", ".", "consumer", ".", "secret"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/networks/twitter/TwitterUtils.java#L113-L115", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/networks/twitter/TwitterUtils.java", "func_name": "TwitterUtils.tweetEntity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "\"Tweets\" an entity. A \"share\" event will be recorded in Socialize and the entity URL generated by Socialize will be posted to the user's Twitter feed.\nIf the user is not currently linked to a Twitter account they will be prompted to authenticate.\n@param context The current activity.\n@param entity The entity to be tweeted.\n@param text The text to be posted along with the tweet.\n@param listener A listener to handle the result.", "docstring_tokens": ["Tweets", "an", "entity", ".", "A", "share", "event", "will", "be", "recorded", "in", "Socialize", "and", "the", "entity", "URL", "generated", "by", "Socialize", "will", "be", "posted", "to", "the", "user", "s", "Twitter", "feed", ".", "If", "the", "user", "is", "not", "currently", "linked", "to", "a", "Twitter", "account", "they", "will", "be", "prompted", "to", "authenticate", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/networks/twitter/TwitterUtils.java#L143-L177", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/networks/twitter/TwitterUtils.java", "func_name": "TwitterUtils.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Performs a simple HTTP GET to the Twitter resource endpoint specified. If the user is not currently linked to a Twitter account they will be prompted to authenticate.\n@param context The current Activity.\n@param resource The resource to be called. NOTE: This should NOT include the full url (e.g. http://api.twitter.com) but just the resource.\nChanging the full URL endpoint can be done via the SocialNetworkPostListener onBeforePost callback.\n@param params The parameters to be posted.\n@param listener A listener to handle the result.", "docstring_tokens": ["Performs", "a", "simple", "HTTP", "GET", "to", "the", "Twitter", "resource", "endpoint", "specified", ".", "If", "the", "user", "is", "not", "currently", "linked", "to", "a", "Twitter", "account", "they", "will", "be", "prompted", "to", "authenticate", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/networks/twitter/TwitterUtils.java#L231-L265", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/networks/twitter/TwitterUtils.java", "func_name": "TwitterUtils.tweet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Performs a simple \"tweet\". If the user is not currently linked to a Twitter account they will be prompted to authenticate.\n@param context The current Activity.\n@param tweet The Tweet to be tweeted.\n@param listener A listener to handle the result.", "docstring_tokens": ["Performs", "a", "simple", "tweet", ".", "If", "the", "user", "is", "not", "currently", "linked", "to", "a", "Twitter", "account", "they", "will", "be", "prompted", "to", "authenticate", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/networks/twitter/TwitterUtils.java#L273-L307", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/networks/twitter/TwitterUtils.java", "func_name": "TwitterUtils.tweetPhoto", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Publishes a photo to a user's Twitter feed. If the user is not currently linked to a Twitter account they will be prompted to authenticate.\n@param context The current Activity.\n@param photo The image to be tweeted.\n@param listener A listener to handle the result.", "docstring_tokens": ["Publishes", "a", "photo", "to", "a", "user", "s", "Twitter", "feed", ".", "If", "the", "user", "is", "not", "currently", "linked", "to", "a", "Twitter", "account", "they", "will", "be", "prompted", "to", "authenticate", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/networks/twitter/TwitterUtils.java#L315-L349", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/util/BitmapUtils.java", "func_name": "BitmapUtils.getScaledBitmap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a scaled bitmap, cropped if necessary.\n@param bitmap\n@param scaleToWidth\n@param scaleToHeight\n@param recycleOriginal\n@return", "docstring_tokens": ["Returns", "a", "scaled", "bitmap", "cropped", "if", "necessary", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/util/BitmapUtils.java#L88-L150", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/api/SocializeApi.java", "func_name": "SocializeApi.putAsPostAsync", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Does a POST, but expects a single object in return.\n@param session\n@param endpoint\n@param object\n@param listener", "docstring_tokens": ["Does", "a", "POST", "but", "expects", "a", "single", "object", "in", "return", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/api/SocializeApi.java#L373-L381", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ui/view/SocializeButton.java", "func_name": "SocializeButton.setTextSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the text size in DIP\n@param textSize", "docstring_tokens": ["Set", "the", "text", "size", "in", "DIP"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ui/view/SocializeButton.java#L348-L354", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ui/profile/ProfileView.java", "func_name": "ProfileView.onImageChange", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Called when the user's profile image is changed.\n@param bitmap The image.", "docstring_tokens": ["Called", "when", "the", "user", "s", "profile", "image", "is", "changed", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ui/profile/ProfileView.java#L45-L57", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/UserUtils.java", "func_name": "UserUtils.saveUserAsync", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Saves the given user.\n@param context The current context.\n@param user The user to be saved.\n@param listener A listener to handle the result.", "docstring_tokens": ["Saves", "the", "given", "user", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/UserUtils.java#L89-L91", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/UserUtils.java", "func_name": "UserUtils.getUser", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves a User based on the given ID.\n@param context The current context.\n@param id The id of the user.\n@param listener A listener to handle the GET.", "docstring_tokens": ["Retrieves", "a", "User", "based", "on", "the", "given", "ID", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/UserUtils.java#L108-L110", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/UserUtils.java", "func_name": "UserUtils.saveUserSettings", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Saves the profile for the given user.\n@param context The current context.\n@param userSettings The user settings to be saved.\n@param listener A listener to handle the save.", "docstring_tokens": ["Saves", "the", "profile", "for", "the", "given", "user", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/UserUtils.java#L187-L189", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/entity/User.java", "func_name": "User.setAutoPostPreferences", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the auto post preferences for the user.\n@param networks\n@return true if the new settings differed from the old ones.", "docstring_tokens": ["Sets", "the", "auto", "post", "preferences", "for", "the", "user", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/entity/User.java#L263-L283", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/auth/facebook/FacebookService.java", "func_name": "FacebookService.authenticate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Authenticates with default permissions and Single Sign On.", "docstring_tokens": ["Authenticates", "with", "default", "permissions", "and", "Single", "Sign", "On", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/auth/facebook/FacebookService.java#L84-L87", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/auth/facebook/FacebookService.java", "func_name": "FacebookService.authenticateForRead", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Authenticates with Single Sign On.", "docstring_tokens": ["Authenticates", "with", "Single", "Sign", "On", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/auth/facebook/FacebookService.java#L107-L109", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/util/ReflectionUtils.java", "func_name": "ReflectionUtils.getStaticField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the value of the given static field from the given class.\n@param fieldName\n@param clazz\n@return\n@throws Exception", "docstring_tokens": ["Gets", "the", "value", "of", "the", "given", "static", "field", "from", "the", "given", "class", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/util/ReflectionUtils.java#L39-L54", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/util/ReflectionUtils.java", "func_name": "ReflectionUtils.getStaticFieldName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the name of the static field that corresponds to the given value\n@param value\n@param clazz\n@return\n@throws Exception", "docstring_tokens": ["Returns", "the", "name", "of", "the", "static", "field", "that", "corresponds", "to", "the", "given", "value"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/util/ReflectionUtils.java#L75-L84", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/SmartAlertUtils.java", "func_name": "SmartAlertUtils.onMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handles a GCM message. Returns true ONLY if this message was intended for Socialize.\n@param context\n@param intent\n@return", "docstring_tokens": ["Handles", "a", "GCM", "message", ".", "Returns", "true", "ONLY", "if", "this", "message", "was", "intended", "for", "Socialize", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/SmartAlertUtils.java#L49-L63", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/SmartAlertUtils.java", "func_name": "SmartAlertUtils.handleBroadcastIntent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handles a broadcast intent received by a Broadcast Receiver on Android.\nCall this method if you already have a broadcast receiver defined but want to also utilize Socialize SmartAlerts.\n@param context The current context.\n@param intent The broadcast intent provided by Android.\n@return Returns true if Socialize handled the intent. This indicates the intent was designed to be handled by Socialize and you do not need to handle it yourself.", "docstring_tokens": ["Handles", "a", "broadcast", "intent", "received", "by", "a", "Broadcast", "Receiver", "on", "Android", ".", "Call", "this", "method", "if", "you", "already", "have", "a", "broadcast", "receiver", "defined", "but", "want", "to", "also", "utilize", "Socialize", "SmartAlerts", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/SmartAlertUtils.java#L103-L105", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/util/Base64Utils.java", "func_name": "Base64Utils.encode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encodes a byte array into Base64 notation.\n\n@param source The data to convert\n@param off Offset in array where conversion should begin\n@param len Length of data to convert\n@param alphabet is the encoding alphabet\n@param maxLineLength maximum length of one line.\n@return the BASE64-encoded byte array", "docstring_tokens": ["Encodes", "a", "byte", "array", "into", "Base64", "notation", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/util/Base64Utils.java#L292-L339", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/util/Base64Utils.java", "func_name": "Base64Utils.decode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Decodes Base64 content using the supplied decodabet and returns\nthe decoded byte array.\n\n@param source The Base64 encoded data\n@param off The offset of where to begin decoding\n@param len The length of characters to decode\n@param decodabet the decodabet for decoding Base64 content\n@return decoded data", "docstring_tokens": ["Decodes", "Base64", "content", "using", "the", "supplied", "decodabet", "and", "returns", "the", "decoded", "byte", "array", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/util/Base64Utils.java#L495-L562", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ViewUtils.java", "func_name": "ViewUtils.view", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Records a view against the given entity for the current user.\n@param context The current context.\n@param e The entity to be viewed.\n@param listener A listener to handle the result.", "docstring_tokens": ["Records", "a", "view", "against", "the", "given", "entity", "for", "the", "current", "user", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ViewUtils.java#L54-L56", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ui/comment/CommentListView.java", "func_name": "CommentListView.onProfileUpdate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Called when the current logged in user updates their profile.", "docstring_tokens": ["Called", "when", "the", "current", "logged", "in", "user", "updates", "their", "profile", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ui/comment/CommentListView.java#L810-L838", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/oauth/signpost/OAuth.java", "func_name": "OAuth.decodeForm", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse a form-urlencoded document.", "docstring_tokens": ["Parse", "a", "form", "-", "urlencoded", "document", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/oauth/signpost/OAuth.java#L131-L151", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/oauth/signpost/OAuth.java", "func_name": "OAuth.toMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Construct a Map containing a copy of the given parameters. If several\nparameters have the same name, the Map will contain the first value,\nonly.", "docstring_tokens": ["Construct", "a", "Map", "containing", "a", "copy", "of", "the", "given", "parameters", ".", "If", "several", "parameters", "have", "the", "same", "name", "the", "Map", "will", "contain", "the", "first", "value", "only", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/oauth/signpost/OAuth.java#L172-L183", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/oauth/signpost/OAuth.java", "func_name": "OAuth.toHeaderElement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method to concatenate a parameter and its value to a pair that can\nbe used in an HTTP header. This method percent encodes both parts before\njoining them.\n\n@param name\nthe OAuth parameter name, e.g. oauth_token\n@param value\nthe OAuth parameter value, e.g. 'hello oauth'\n@return a name/value pair, e.g. oauth_token=\"hello%20oauth\"", "docstring_tokens": ["Helper", "method", "to", "concatenate", "a", "parameter", "and", "its", "value", "to", "a", "pair", "that", "can", "be", "used", "in", "an", "HTTP", "header", ".", "This", "method", "percent", "encodes", "both", "parts", "before", "joining", "them", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/oauth/signpost/OAuth.java#L296-L298", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/cache/TTLCache.java", "func_name": "TTLCache.put", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds an object to cache with the given time-to-live\n@param strKey\n@param object\n@param ttl", "docstring_tokens": ["Adds", "an", "object", "to", "cache", "with", "the", "given", "time", "-", "to", "-", "live"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/cache/TTLCache.java#L142-L144", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/cache/TTLCache.java", "func_name": "TTLCache.put", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds an object to cache that optionally lives forever.\n@param strKey\n@param object\n@param eternal\n@return", "docstring_tokens": ["Adds", "an", "object", "to", "cache", "that", "optionally", "lives", "forever", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/cache/TTLCache.java#L153-L155", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/cache/TTLCache.java", "func_name": "TTLCache.put", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds an object to cache with the given Time To Live in milliseconds\n@param k\n@param object\n@param ttl milliseconds\n@param eternal", "docstring_tokens": ["Adds", "an", "object", "to", "cache", "with", "the", "given", "Time", "To", "Live", "in", "milliseconds"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/cache/TTLCache.java#L174-L223", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/cache/TTLCache.java", "func_name": "TTLCache.getRaw", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Ignores proxy and always returns raw object\n@param strKey\n@return", "docstring_tokens": ["Ignores", "proxy", "and", "always", "returns", "raw", "object"], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/cache/TTLCache.java#L242-L248", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/cache/TTLCache.java", "func_name": "TTLCache.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets an object from cache. Returns null if the object does not exist, or has expired.\n@param key\n@return", "docstring_tokens": ["Gets", "an", "object", "from", "cache", ".", "Returns", "null", "if", "the", "object", "does", "not", "exist", "or", "has", "expired", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/cache/TTLCache.java#L255-L294", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/cache/TTLCache.java", "func_name": "TTLCache.exists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if the object with the given key resides in the cache.\n@param k\n@return true if the object with the given key resides in the cache.", "docstring_tokens": ["Returns", "true", "if", "the", "object", "with", "the", "given", "key", "resides", "in", "the", "cache", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/cache/TTLCache.java#L321-L327", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/cache/TTLCache.java", "func_name": "TTLCache.extendTTL", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extends the ttl of the object with the given key with the current system time.\n@param strKey", "docstring_tokens": ["Extends", "the", "ttl", "of", "the", "object", "with", "the", "given", "key", "with", "the", "current", "system", "time", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/cache/TTLCache.java#L374-L379", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ui/image/ImageLoader.java", "func_name": "ImageLoader.loadImageByData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads an image based on Base64 encoded bytes.\n@param id The id to give the request\n@param name The name to give the image in cache.\n@param encodedData The encoded image data.\n@param listener A listener to handle the callback.", "docstring_tokens": ["Loads", "an", "image", "based", "on", "Base64", "encoded", "bytes", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ui/image/ImageLoader.java#L73-L79", "partition": "valid"} +{"repo": "socialize/socialize-sdk-android", "path": "sdk/src/com/socialize/ui/image/ImageLoader.java", "func_name": "ImageLoader.loadImageByUrl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Asynchronously loads the image at the given url and calls the listener when it is loaded.\n@param id The id to give the request\n@param url The url to be loaded\n@param listener A listener to handle the callback.", "docstring_tokens": ["Asynchronously", "loads", "the", "image", "at", "the", "given", "url", "and", "calls", "the", "listener", "when", "it", "is", "loaded", "."], "sha": "23044d66c83718fe5c3f6f4b7b4033ac5b06fbee", "url": "https://github.com/socialize/socialize-sdk-android/blob/23044d66c83718fe5c3f6f4b7b4033ac5b06fbee/sdk/src/com/socialize/ui/image/ImageLoader.java#L91-L98", "partition": "valid"} +{"repo": "sps/metrics-opentsdb", "path": "src/main/java/com/github/sps/metrics/opentsdb/OpenTsdbMetric.java", "func_name": "OpenTsdbMetric.parseTags", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a tag string into a tag map.\n\n@param tagString a space-delimited string of key-value pairs. For example, {@code \"key1=value1 key_n=value_n\"}\n@return a tag {@link Map}\n@throws IllegalArgumentException if the tag string is corrupted.", "docstring_tokens": ["Convert", "a", "tag", "string", "into", "a", "tag", "map", "."], "sha": "84e0451d435b3cb18f5302287c77b986bca8102c", "url": "https://github.com/sps/metrics-opentsdb/blob/84e0451d435b3cb18f5302287c77b986bca8102c/src/main/java/com/github/sps/metrics/opentsdb/OpenTsdbMetric.java#L48-L67", "partition": "valid"} +{"repo": "sps/metrics-opentsdb", "path": "src/main/java/com/github/sps/metrics/opentsdb/OpenTsdbMetric.java", "func_name": "OpenTsdbMetric.formatTags", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a tag map into a space-delimited string.\n\n@param tagMap\n@return a space-delimited string of key-value pairs. For example, {@code \"key1=value1 key_n=value_n\"}", "docstring_tokens": ["Convert", "a", "tag", "map", "into", "a", "space", "-", "delimited", "string", "."], "sha": "84e0451d435b3cb18f5302287c77b986bca8102c", "url": "https://github.com/sps/metrics-opentsdb/blob/84e0451d435b3cb18f5302287c77b986bca8102c/src/main/java/com/github/sps/metrics/opentsdb/OpenTsdbMetric.java#L75-L88", "partition": "valid"} +{"repo": "sps/metrics-opentsdb", "path": "src/main/java/com/github/sps/metrics/opentsdb/OpenTsdbMetric.java", "func_name": "OpenTsdbMetric.fixEncodedTagsInNameAfterPrefix", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call this function whenever a potentially tag-encoded name is prefixed.\n\n@param name a metric name with encoded tag strings that has been prefixed.\n@return a fixed metric name", "docstring_tokens": ["Call", "this", "function", "whenever", "a", "potentially", "tag", "-", "encoded", "name", "is", "prefixed", "."], "sha": "84e0451d435b3cb18f5302287c77b986bca8102c", "url": "https://github.com/sps/metrics-opentsdb/blob/84e0451d435b3cb18f5302287c77b986bca8102c/src/main/java/com/github/sps/metrics/opentsdb/OpenTsdbMetric.java#L142-L162", "partition": "valid"} +{"repo": "sps/metrics-opentsdb", "path": "src/main/java/com/github/sps/metrics/opentsdb/OpenTsdbMetric.java", "func_name": "OpenTsdbMetric.named", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a Builder for a metric name.\n\n@param name name can contain either a pure CodaHale metric name, or a string returned by {@code encodeTagsInName}.\nIf it's the latter, the tags are parsed out and passed to {@code withTags}.\n@return a {@link Builder}", "docstring_tokens": ["Creates", "a", "Builder", "for", "a", "metric", "name", "."], "sha": "84e0451d435b3cb18f5302287c77b986bca8102c", "url": "https://github.com/sps/metrics-opentsdb/blob/84e0451d435b3cb18f5302287c77b986bca8102c/src/main/java/com/github/sps/metrics/opentsdb/OpenTsdbMetric.java#L171-L190", "partition": "valid"} +{"repo": "sps/metrics-opentsdb", "path": "src/main/java/com/github/sps/metrics/opentsdb/OpenTsdbMetric.java", "func_name": "OpenTsdbMetric.toTelnetPutString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a put string version of this metric compatible with the telnet-style reporter.\n\nFormat:\n
\nput (metric-name) (timestamp) (value) (tags)\n
\n\nExample:\n
\nput sys.cpu.nice 1346846400 18 host=web01 dc=lga\n
\n\n@return a string version of this metric compatible with the telnet reporter.", "docstring_tokens": ["Returns", "a", "put", "string", "version", "of", "this", "metric", "compatible", "with", "the", "telnet", "-", "style", "reporter", "."], "sha": "84e0451d435b3cb18f5302287c77b986bca8102c", "url": "https://github.com/sps/metrics-opentsdb/blob/84e0451d435b3cb18f5302287c77b986bca8102c/src/main/java/com/github/sps/metrics/opentsdb/OpenTsdbMetric.java#L309-L313", "partition": "valid"} +{"repo": "smola/galimatias", "path": "src/main/java/io/mola/galimatias/Domain.java", "func_name": "Domain.toHumanString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts the domain to a Unicode representation suitable for human interpretation. It does IDNA conversion.\n\n@see Host#toHumanString()\n@return unicode string", "docstring_tokens": ["Converts", "the", "domain", "to", "a", "Unicode", "representation", "suitable", "for", "human", "interpretation", ".", "It", "does", "IDNA", "conversion", "."], "sha": "35b54cc8bf93e5ed986d7e567118930f710ee53d", "url": "https://github.com/smola/galimatias/blob/35b54cc8bf93e5ed986d7e567118930f710ee53d/src/main/java/io/mola/galimatias/Domain.java#L126-L135", "partition": "valid"} +{"repo": "smola/galimatias", "path": "src/main/java/io/mola/galimatias/URLUtils.java", "func_name": "URLUtils.percentDecode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Percent-decodes a string.\n\nPercent-encoded bytes are assumed to represent UTF-8 characters.\n\n@see WHATWG URL Standard: Percent-encoded bytes\n\n@param input\n@return", "docstring_tokens": ["Percent", "-", "decodes", "a", "string", "."], "sha": "35b54cc8bf93e5ed986d7e567118930f710ee53d", "url": "https://github.com/smola/galimatias/blob/35b54cc8bf93e5ed986d7e567118930f710ee53d/src/main/java/io/mola/galimatias/URLUtils.java#L58-L108", "partition": "valid"} +{"repo": "smola/galimatias", "path": "src/main/java/io/mola/galimatias/URL.java", "func_name": "URL.queryParameter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the first query parameter value for a given name.\n\n@see {@link #queryParameters(String)}\n\n@param name Parameter name.\n@return The first parameter value or null if there parameter is not present.", "docstring_tokens": ["Gets", "the", "first", "query", "parameter", "value", "for", "a", "given", "name", "."], "sha": "35b54cc8bf93e5ed986d7e567118930f710ee53d", "url": "https://github.com/smola/galimatias/blob/35b54cc8bf93e5ed986d7e567118930f710ee53d/src/main/java/io/mola/galimatias/URL.java#L184-L213", "partition": "valid"} +{"repo": "smola/galimatias", "path": "src/main/java/io/mola/galimatias/URL.java", "func_name": "URL.queryParameters", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets all query parameter values for a given name.\n\n@param name Parameter name.\n@return A {@link java.util.List} with all parameter values or null if the parameter is not present.", "docstring_tokens": ["Gets", "all", "query", "parameter", "values", "for", "a", "given", "name", "."], "sha": "35b54cc8bf93e5ed986d7e567118930f710ee53d", "url": "https://github.com/smola/galimatias/blob/35b54cc8bf93e5ed986d7e567118930f710ee53d/src/main/java/io/mola/galimatias/URL.java#L221-L252", "partition": "valid"} +{"repo": "smola/galimatias", "path": "src/main/java/io/mola/galimatias/URL.java", "func_name": "URL.relativize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a relative URL reference for the given URL.\n\nBehaves as @{link java.net.URI#relativize(URL)}.\n\n@param url Absolute URL.\n@return Relative reference.", "docstring_tokens": ["Returns", "a", "relative", "URL", "reference", "for", "the", "given", "URL", "."], "sha": "35b54cc8bf93e5ed986d7e567118930f710ee53d", "url": "https://github.com/smola/galimatias/blob/35b54cc8bf93e5ed986d7e567118930f710ee53d/src/main/java/io/mola/galimatias/URL.java#L361-L392", "partition": "valid"} +{"repo": "smola/galimatias", "path": "src/main/java/io/mola/galimatias/URL.java", "func_name": "URL.buildHierarchical", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a URL object from a relative scheme and a host.\n\n@param scheme\n@param host\n@return\n@throws GalimatiasParseException", "docstring_tokens": ["Gets", "a", "URL", "object", "from", "a", "relative", "scheme", "and", "a", "host", "."], "sha": "35b54cc8bf93e5ed986d7e567118930f710ee53d", "url": "https://github.com/smola/galimatias/blob/35b54cc8bf93e5ed986d7e567118930f710ee53d/src/main/java/io/mola/galimatias/URL.java#L425-L430", "partition": "valid"} +{"repo": "smola/galimatias", "path": "src/main/java/io/mola/galimatias/URL.java", "func_name": "URL.buildOpaque", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a URL object from a non-relative scheme.\n\n@param scheme\n@return\n@throws GalimatiasParseException", "docstring_tokens": ["Gets", "a", "URL", "object", "from", "a", "non", "-", "relative", "scheme", "."], "sha": "35b54cc8bf93e5ed986d7e567118930f710ee53d", "url": "https://github.com/smola/galimatias/blob/35b54cc8bf93e5ed986d7e567118930f710ee53d/src/main/java/io/mola/galimatias/URL.java#L449-L454", "partition": "valid"} +{"repo": "smola/galimatias", "path": "src/main/java/io/mola/galimatias/URL.java", "func_name": "URL.toHumanString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Serializes the URL to a human-readable representation. That is,\npercent-decoded and with IDN domains in its Unicode representation.\n\n@return", "docstring_tokens": ["Serializes", "the", "URL", "to", "a", "human", "-", "readable", "representation", ".", "That", "is", "percent", "-", "decoded", "and", "with", "IDN", "domains", "in", "its", "Unicode", "representation", "."], "sha": "35b54cc8bf93e5ed986d7e567118930f710ee53d", "url": "https://github.com/smola/galimatias/blob/35b54cc8bf93e5ed986d7e567118930f710ee53d/src/main/java/io/mola/galimatias/URL.java#L705-L742", "partition": "valid"} +{"repo": "cero-t/sqltemplate", "path": "bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/SqlTemplate.java", "func_name": "SqlTemplate.queryStreamWithOrdinalParams", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes a quey for stream with ordinal parameters.", "docstring_tokens": ["Executes", "a", "quey", "for", "stream", "with", "ordinal", "parameters", "."], "sha": "62a8e9d2db50771953d33a645ae926c6086c33ed", "url": "https://github.com/cero-t/sqltemplate/blob/62a8e9d2db50771953d33a645ae926c6086c33ed/bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/SqlTemplate.java#L630-L639", "partition": "valid"} +{"repo": "cero-t/sqltemplate", "path": "bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/SqlTemplate.java", "func_name": "SqlTemplate.queryStreamWithNamedParams", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes a query for stream with named parameters.", "docstring_tokens": ["Executes", "a", "query", "for", "stream", "with", "named", "parameters", "."], "sha": "62a8e9d2db50771953d33a645ae926c6086c33ed", "url": "https://github.com/cero-t/sqltemplate/blob/62a8e9d2db50771953d33a645ae926c6086c33ed/bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/SqlTemplate.java#L644-L653", "partition": "valid"} +{"repo": "cero-t/sqltemplate", "path": "bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/util/BeanFields.java", "func_name": "BeanFields.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get fields of the given class.\n@param clazz the class\n@return the fields of the given class", "docstring_tokens": ["Get", "fields", "of", "the", "given", "class", "."], "sha": "62a8e9d2db50771953d33a645ae926c6086c33ed", "url": "https://github.com/cero-t/sqltemplate/blob/62a8e9d2db50771953d33a645ae926c6086c33ed/bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/util/BeanFields.java#L19-L27", "partition": "valid"} +{"repo": "cero-t/sqltemplate", "path": "bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/stream/ResultSetIterator.java", "func_name": "ResultSetIterator.fetchRow", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fetches a row if not fetched yet.", "docstring_tokens": ["Fetches", "a", "row", "if", "not", "fetched", "yet", "."], "sha": "62a8e9d2db50771953d33a645ae926c6086c33ed", "url": "https://github.com/cero-t/sqltemplate/blob/62a8e9d2db50771953d33a645ae926c6086c33ed/bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/stream/ResultSetIterator.java#L78-L91", "partition": "valid"} +{"repo": "cero-t/sqltemplate", "path": "bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/util/Jsr310JdbcUtils.java", "func_name": "Jsr310JdbcUtils.getAsLocalDateTime", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the column value as LocalDateTime.\n@param rs ResultSet\n@param index column index\n@return column value\n@throws SQLException in case of extraction failure", "docstring_tokens": ["Get", "the", "column", "value", "as", "LocalDateTime", "."], "sha": "62a8e9d2db50771953d33a645ae926c6086c33ed", "url": "https://github.com/cero-t/sqltemplate/blob/62a8e9d2db50771953d33a645ae926c6086c33ed/bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/util/Jsr310JdbcUtils.java#L98-L104", "partition": "valid"} +{"repo": "cero-t/sqltemplate", "path": "bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/util/Jsr310JdbcUtils.java", "func_name": "Jsr310JdbcUtils.getAsLocalDate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the column value as LocalDate.\n@param rs ResultSet\n@param index column index\n@return column value\n@throws SQLException in case of extraction failure", "docstring_tokens": ["Get", "the", "column", "value", "as", "LocalDate", "."], "sha": "62a8e9d2db50771953d33a645ae926c6086c33ed", "url": "https://github.com/cero-t/sqltemplate/blob/62a8e9d2db50771953d33a645ae926c6086c33ed/bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/util/Jsr310JdbcUtils.java#L113-L119", "partition": "valid"} +{"repo": "cero-t/sqltemplate", "path": "bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/util/Jsr310JdbcUtils.java", "func_name": "Jsr310JdbcUtils.getAsLocalTime", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the column value as LocalTime.\n@param rs ResultSet\n@param index column index\n@return column value\n@throws SQLException in case of extraction failure", "docstring_tokens": ["Get", "the", "column", "value", "as", "LocalTime", "."], "sha": "62a8e9d2db50771953d33a645ae926c6086c33ed", "url": "https://github.com/cero-t/sqltemplate/blob/62a8e9d2db50771953d33a645ae926c6086c33ed/bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/util/Jsr310JdbcUtils.java#L128-L134", "partition": "valid"} +{"repo": "cero-t/sqltemplate", "path": "bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/util/Jsr310JdbcUtils.java", "func_name": "Jsr310JdbcUtils.getAsZonedDateTime", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the column value as ZonedDateTime.\n@param rs ResultSet\n@param index column index\n@param zoneId zoneId\n@return column value\n@throws SQLException in case of extraction failure", "docstring_tokens": ["Get", "the", "column", "value", "as", "ZonedDateTime", "."], "sha": "62a8e9d2db50771953d33a645ae926c6086c33ed", "url": "https://github.com/cero-t/sqltemplate/blob/62a8e9d2db50771953d33a645ae926c6086c33ed/bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/util/Jsr310JdbcUtils.java#L144-L150", "partition": "valid"} +{"repo": "cero-t/sqltemplate", "path": "bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/util/Jsr310JdbcUtils.java", "func_name": "Jsr310JdbcUtils.getAsOffsetDateTime", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the column value as OffsetDateTime.\n@param rs ResultSet\n@param index column index\n@param zoneId zoneId\n@return column value\n@throws SQLException in case of extraction failure", "docstring_tokens": ["Get", "the", "column", "value", "as", "OffsetDateTime", "."], "sha": "62a8e9d2db50771953d33a645ae926c6086c33ed", "url": "https://github.com/cero-t/sqltemplate/blob/62a8e9d2db50771953d33a645ae926c6086c33ed/bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/util/Jsr310JdbcUtils.java#L160-L166", "partition": "valid"} +{"repo": "cero-t/sqltemplate", "path": "bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/util/Jsr310JdbcUtils.java", "func_name": "Jsr310JdbcUtils.getAsOffsetTime", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the column value as OffsetTime.\n@param rs ResultSet\n@param index column index\n@param zoneId zoneId\n@return column value\n@throws SQLException in case of extraction failure", "docstring_tokens": ["Get", "the", "column", "value", "as", "OffsetTime", "."], "sha": "62a8e9d2db50771953d33a645ae926c6086c33ed", "url": "https://github.com/cero-t/sqltemplate/blob/62a8e9d2db50771953d33a645ae926c6086c33ed/bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/util/Jsr310JdbcUtils.java#L176-L182", "partition": "valid"} +{"repo": "cero-t/sqltemplate", "path": "bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/mapper/BeanMapper.java", "func_name": "BeanMapper.getColumnValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the column value.\n\n@param rs ResultSet\n@param index column index\n@param requiredType the required value type\n@return column value\n@throws SQLException in case of extraction failure", "docstring_tokens": ["Get", "the", "column", "value", "."], "sha": "62a8e9d2db50771953d33a645ae926c6086c33ed", "url": "https://github.com/cero-t/sqltemplate/blob/62a8e9d2db50771953d33a645ae926c6086c33ed/bootiful-sqltemplate-core/src/main/java/ninja/cero/sqltemplate/core/mapper/BeanMapper.java#L164-L166", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/urls/CdnPathBuilder.java", "func_name": "CdnPathBuilder.crop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds top-left-aligned crop.\n\n@param width Crop width\n@param height Crop height", "docstring_tokens": ["Adds", "top", "-", "left", "-", "aligned", "crop", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/urls/CdnPathBuilder.java#L91-L98", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/urls/CdnPathBuilder.java", "func_name": "CdnPathBuilder.cropCenter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds center-aligned crop.\n\n@param width Crop width\n@param height Crop height", "docstring_tokens": ["Adds", "center", "-", "aligned", "crop", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/urls/CdnPathBuilder.java#L106-L114", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/urls/CdnPathBuilder.java", "func_name": "CdnPathBuilder.cropColor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds top-left-aligned crop with a filled background.\n\n@param width Crop width\n@param height Crop height\n@param color Background color", "docstring_tokens": ["Adds", "top", "-", "left", "-", "aligned", "crop", "with", "a", "filled", "background", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/urls/CdnPathBuilder.java#L123-L132", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/urls/CdnPathBuilder.java", "func_name": "CdnPathBuilder.resizeWidth", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resizes width, keeping the aspect ratio.\n\n@param width New width", "docstring_tokens": ["Resizes", "width", "keeping", "the", "aspect", "ratio", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/urls/CdnPathBuilder.java#L157-L163", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/urls/CdnPathBuilder.java", "func_name": "CdnPathBuilder.resize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resizes width and height\n\n@param width New width\n@param height New height", "docstring_tokens": ["Resizes", "width", "and", "height"], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/urls/CdnPathBuilder.java#L183-L190", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/urls/CdnPathBuilder.java", "func_name": "CdnPathBuilder.scaleCrop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Scales the image until one of the dimensions fits,\nthen crops the bottom or right side.\n\n@param width New width\n@param height New height", "docstring_tokens": ["Scales", "the", "image", "until", "one", "of", "the", "dimensions", "fits", "then", "crops", "the", "bottom", "or", "right", "side", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/urls/CdnPathBuilder.java#L199-L206", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/urls/CdnPathBuilder.java", "func_name": "CdnPathBuilder.scaleCropCenter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Scales the image until one of the dimensions fits,\ncenters it, then crops the rest.\n\n@param width New width\n@param height New height", "docstring_tokens": ["Scales", "the", "image", "until", "one", "of", "the", "dimensions", "fits", "centers", "it", "then", "crops", "the", "rest", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/urls/CdnPathBuilder.java#L215-L223", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/urls/CdnPathBuilder.java", "func_name": "CdnPathBuilder.blur", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Performs Gaussian blur on result image.\n\n@param strength Strength is standard deviation (aka blur radius) multiplied by ten. Strength\ncan be up to 5000. Default is 10.", "docstring_tokens": ["Performs", "Gaussian", "blur", "on", "result", "image", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/urls/CdnPathBuilder.java#L271-L278", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/urls/CdnPathBuilder.java", "func_name": "CdnPathBuilder.sharp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Performs sharpening on result image. This can be useful after scaling down.\n\n@param strength Strength can be from 0 to 20. Default is 5.", "docstring_tokens": ["Performs", "sharpening", "on", "result", "image", ".", "This", "can", "be", "useful", "after", "scaling", "down", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/urls/CdnPathBuilder.java#L293-L300", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/urls/CdnPathBuilder.java", "func_name": "CdnPathBuilder.preview", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reduces an image proportionally in order to fit it into given dimensions.\n\n@param width New width\n@param height New height", "docstring_tokens": ["Reduces", "an", "image", "proportionally", "in", "order", "to", "fit", "it", "into", "given", "dimensions", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/urls/CdnPathBuilder.java#L308-L315", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/api/Client.java", "func_name": "Client.getProject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Requests project info from the API.\n\n@return Project resource", "docstring_tokens": ["Requests", "project", "info", "from", "the", "API", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/api/Client.java#L184-L189", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/api/Client.java", "func_name": "Client.getFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Requests file data.\n\n@param fileId Resource UUID\n@return File resource", "docstring_tokens": ["Requests", "file", "data", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/api/Client.java#L197-L202", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/api/Client.java", "func_name": "Client.deleteFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Marks a file as deleted.\n\n@param fileId Resource UUID", "docstring_tokens": ["Marks", "a", "file", "as", "deleted", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/api/Client.java#L218-L222", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/api/Client.java", "func_name": "Client.saveFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Marks a file as saved.\n\nThis has to be done for all files you want to keep.\nUnsaved files are eventually purged.\n\n@param fileId Resource UUID", "docstring_tokens": ["Marks", "a", "file", "as", "saved", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/api/Client.java#L232-L236", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/api/RequestHelper.java", "func_name": "RequestHelper.executeCommand", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes the request et the Uploadcare API and return the HTTP Response object.\n\nThe existence of this method(and it's return type) enables the end user to extend the\nfunctionality of the\nUploadcare API client by creating a subclass of {@link com.uploadcare.api.Client}.\n\n@param request request to be sent to the API\n@param apiHeaders TRUE if the default API headers should be set\n@return HTTP Response object", "docstring_tokens": ["Executes", "the", "request", "et", "the", "Uploadcare", "API", "and", "return", "the", "HTTP", "Response", "object", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/api/RequestHelper.java#L213-L229", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/api/RequestHelper.java", "func_name": "RequestHelper.checkResponseStatus", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the response status codes are within acceptable boundaries and throws\ncorresponding exceptions\notherwise.\n\n@param response The response object to be checked", "docstring_tokens": ["Verifies", "that", "the", "response", "status", "codes", "are", "within", "acceptable", "boundaries", "and", "throws", "corresponding", "exceptions", "otherwise", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/api/RequestHelper.java#L238-L255", "partition": "valid"} +{"repo": "uploadcare/uploadcare-java", "path": "src/main/java/com/uploadcare/urls/Urls.java", "func_name": "Urls.uploadFromUrl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a URL for URL upload.\n\n@param sourceUrl URL to upload from\n@param pubKey Public key\n@param store Store the file upon uploading.\n\n@see com.uploadcare.upload.UrlUploader", "docstring_tokens": ["Creates", "a", "URL", "for", "URL", "upload", "."], "sha": "4ddc3927a886f192907eb9b7c0f51112320738f6", "url": "https://github.com/uploadcare/uploadcare-java/blob/4ddc3927a886f192907eb9b7c0f51112320738f6/src/main/java/com/uploadcare/urls/Urls.java#L85-L92", "partition": "valid"} +{"repo": "adennie/fb-android-dagger", "path": "src/main/java/com/fizzbuzz/android/dagger/InjectingActionBarActivity.java", "func_name": "InjectingActionBarActivity.inject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Injects a target object using this ActionBarActivity's object graph.\n\n@param target the target object", "docstring_tokens": ["Injects", "a", "target", "object", "using", "this", "ActionBarActivity", "s", "object", "graph", "."], "sha": "cd9c3ab16b3983769dfafdf59083ccf17475c912", "url": "https://github.com/adennie/fb-android-dagger/blob/cd9c3ab16b3983769dfafdf59083ccf17475c912/src/main/java/com/fizzbuzz/android/dagger/InjectingActionBarActivity.java#L65-L69", "partition": "valid"} +{"repo": "yanzhenjie/CompatAlertDialog", "path": "alertdialog/src/main/java/com/yanzhenjie/alertdialog/AlertDialog.java", "func_name": "AlertDialog.newBuilder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create new Builder.\n\n@param context context.\n@param themeResId theme res id.\n@return {@link Builder}.", "docstring_tokens": ["Create", "new", "Builder", "."], "sha": "291afe4e95ef9df79116f458448c9d5b26d6608d", "url": "https://github.com/yanzhenjie/CompatAlertDialog/blob/291afe4e95ef9df79116f458448c9d5b26d6608d/alertdialog/src/main/java/com/yanzhenjie/alertdialog/AlertDialog.java#L64-L69", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/transform/load/ReflectiveClassLoader.java", "func_name": "ReflectiveClassLoader.findClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the class with the given name if it has already been loaded by\nthe given class loader\n\n

If the class has not been loaded yet, this method returns {@code\nnull}.

\n\n@param className the full name of the class to be loaded\n@return the class instance, if found", "docstring_tokens": ["Returns", "the", "class", "with", "the", "given", "name", "if", "it", "has", "already", "been", "loaded", "by", "the", "given", "class", "loader"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/transform/load/ReflectiveClassLoader.java#L76-L87", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/transform/load/ReflectiveClassLoader.java", "func_name": "ReflectiveClassLoader.loadClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads the class defined with the given name and bytecode using the given\nclass loader\n\n

Since package and class idendity includes the ClassLoader instance\nused to load a class, we use reflection on the given class loader to\ndefine generated classes.

\n\n

If we used our own class loader (in order to be able to access the\nprotected \"defineClass\" method), we would likely still be able to load\ngenerated classes; however, they would not have access to package-private\nclasses and members of their super classes.

\n\n@param className the full name of the class to be loaded\n@param bytecode the bytecode of the class to load\n@return the class instance", "docstring_tokens": ["Loads", "the", "class", "defined", "with", "the", "given", "name", "and", "bytecode", "using", "the", "given", "class", "loader"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/transform/load/ReflectiveClassLoader.java#L106-L118", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/matchers/trie/TrieNode.java", "func_name": "TrieNode.doSearch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Core search method\n\n

This method uses a {@link CharBuffer} to perform searches, and changes\nthis buffer's position as the match progresses. The two other arguments\nare the depth of the current search (ie the number of nodes visited\nsince root) and the index of the last node where a match was found (ie\nthe last node where {@link #fullWord} was true.

\n\n@param buffer the charbuffer\n@param matchedLength the last matched length (-1 if no match yet)\n@param currentLength the current length walked by the trie\n@return the length of the match found, -1 otherwise", "docstring_tokens": ["Core", "search", "method"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/matchers/trie/TrieNode.java#L76-L118", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/matchers/trie/TrieBuilder.java", "func_name": "TrieBuilder.addWord", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add one word to the trie\n\n@param word the word to add\n@return this\n@throws IllegalArgumentException word is empty", "docstring_tokens": ["Add", "one", "word", "to", "the", "trie"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/matchers/trie/TrieBuilder.java#L45-L58", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/support/StringBuilderVar.java", "func_name": "StringBuilderVar.append", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Appends the given char.\nIf this instance is currently uninitialized the given char is used for initialization.\n\n@param c the char to append\n@return true", "docstring_tokens": ["Appends", "the", "given", "char", ".", "If", "this", "instance", "is", "currently", "uninitialized", "the", "given", "char", "is", "used", "for", "initialization", "."], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/support/StringBuilderVar.java#L110-L116", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/misc/Reference.java", "func_name": "Reference.getAndSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Replaces this references value with the given one.\n\n@param value the new value\n@return the previous value", "docstring_tokens": ["Replaces", "this", "references", "value", "with", "the", "given", "one", "."], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/misc/Reference.java#L107-L112", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/misc/AsmUtils.java", "func_name": "AsmUtils.isAssignableTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines whether the class with the given descriptor is assignable to\nthe given type.\n\n@param classInternalName the class descriptor\n@param type the type\n@return true if the class with the given descriptor is assignable to the\ngiven type", "docstring_tokens": ["Determines", "whether", "the", "class", "with", "the", "given", "descriptor", "is", "assignable", "to", "the", "given", "type", "."], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/misc/AsmUtils.java#L212-L221", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/run/trace/TracingListener.java", "func_name": "TracingListener.copyParseInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "MUST be called after copyInputText!", "docstring_tokens": ["MUST", "be", "called", "after", "copyInputText!"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/run/trace/TracingListener.java#L268-L287", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/transform/hash/InstructionGroupHasher.java", "func_name": "InstructionGroupHasher.hash", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate a hash of the group, use it to name it\n\n@param group the instruction group\n@param className this group's parent class name", "docstring_tokens": ["Generate", "a", "hash", "of", "the", "group", "use", "it", "to", "name", "it"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/transform/hash/InstructionGroupHasher.java#L66-L73", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseParser.java", "func_name": "BaseParser.ignoreCase", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Match a given character in a case-insensitive manner\n\n@param c the character to match\n@return a rule", "docstring_tokens": ["Match", "a", "given", "character", "in", "a", "case", "-", "insensitive", "manner"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseParser.java#L144-L150", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseParser.java", "func_name": "BaseParser.unicodeChar", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Match one Unicode character\n\n@param codePoint the code point\n@return a rule", "docstring_tokens": ["Match", "one", "Unicode", "character"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseParser.java#L158-L166", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseParser.java", "func_name": "BaseParser.unicodeRange", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Match a Unicode character range\n\n

Note that this method will delegate to \"regular\" character matchers if\npart of, or all of, the specified range is into the basic multilingual\nplane.

\n\n@param low the lower code point (inclusive)\n@param high the upper code point (inclusive)\n@return a rule", "docstring_tokens": ["Match", "a", "Unicode", "character", "range"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseParser.java#L179-L192", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseParser.java", "func_name": "BaseParser.anyOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Match any of the characters in the given string\n\n

This method delegates to {@link #anyOf(Characters)}.

\n\n@param characters the characters\n@return a rule\n\n@see #anyOf(Characters)", "docstring_tokens": ["Match", "any", "of", "the", "characters", "in", "the", "given", "string"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseParser.java#L218-L224", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseParser.java", "func_name": "BaseParser.anyOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Match any given character among a set of characters\n\n

Both {@link #anyOf(char[])} and {@link #anyOf(String)} ultimately\ndelegate to this method, which caches its resuls.

\n\n@param characters the characters\n@return a new rule", "docstring_tokens": ["Match", "any", "given", "character", "among", "a", "set", "of", "characters"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseParser.java#L259-L269", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseParser.java", "func_name": "BaseParser.string", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Match a string literal\n\n@param string the string to match\n@return a rule", "docstring_tokens": ["Match", "a", "string", "literal"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseParser.java#L306-L311", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseParser.java", "func_name": "BaseParser.string", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Match a given set of characters as a string literal\n\n@param characters the characters of the string to match\n@return a rule", "docstring_tokens": ["Match", "a", "given", "set", "of", "characters", "as", "a", "string", "literal"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseParser.java#L319-L326", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseParser.java", "func_name": "BaseParser.ignoreCase", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Match a string literal in a case insensitive manner\n\n@param string the string to match\n@return a rule", "docstring_tokens": ["Match", "a", "string", "literal", "in", "a", "case", "insensitive", "manner"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseParser.java#L334-L339", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseParser.java", "func_name": "BaseParser.optional", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Try and match a rule zero or one time\n\n

This rule therefore always succeeds.

\n\n@param rule the subrule\n@return a rule", "docstring_tokens": ["Try", "and", "match", "a", "rule", "zero", "or", "one", "time"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseParser.java#L722-L728", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseParser.java", "func_name": "BaseParser.optional", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Try and match a given set of rules once\n\n

This rule will therefore never fail.

\n\n@param rule the first subrule\n@param rule2 the second subrule\n@param moreRules the other subrules\n@return a rule", "docstring_tokens": ["Try", "and", "match", "a", "given", "set", "of", "rules", "once"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseParser.java#L740-L746", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseParser.java", "func_name": "BaseParser.repeat", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Kickstart a repeat rule\n\n

Like {@link #repeat(Object)}, except several rules are accepted as\narguments.

\n\n@param rule first rule\n@param rule2 second rule\n@param moreRules other rules\n@return a rule\n\n@see #sequence(Object, Object, Object...)", "docstring_tokens": ["Kickstart", "a", "repeat", "rule"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseParser.java#L858-L864", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseParser.java", "func_name": "BaseParser.zeroOrMore", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Try and match a set of rules zero or more times\n\n

This is an alias for {@code repeat(rule, rule2, ...).min(0)}.

\n\n@param rule the first subrule\n@param rule2 the second subrule\n@param moreRules the other subrules\n@return a rule", "docstring_tokens": ["Try", "and", "match", "a", "set", "of", "rules", "zero", "or", "more", "times"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseParser.java#L972-L977", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseParser.java", "func_name": "BaseParser.fromStringLiteral", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a string literal to a parser rule\n\n@param string the string\n@return the rule", "docstring_tokens": ["Convert", "a", "string", "literal", "to", "a", "parser", "rule"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseParser.java#L1208-L1213", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseParser.java", "func_name": "BaseParser.toRules", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert the given object array to an array of rules\n\n@param objects the objects to convert\n@return the rules corresponding to the given objects", "docstring_tokens": ["Convert", "the", "given", "object", "array", "to", "an", "array", "of", "rules"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseParser.java#L1234-L1238", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseParser.java", "func_name": "BaseParser.toRule", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts the given object to a rule\n\n@param obj the object to convert\n@return the rule corresponding to the given object", "docstring_tokens": ["Converts", "the", "given", "object", "to", "a", "rule"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseParser.java#L1246-L1267", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseActions.java", "func_name": "BaseActions.push", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inserts the given value a given number of elements below the current top\nof the value stack\n\n@param down the number of elements to skip before inserting the value (0\nbeing equivalent to {@code push(value)})\n@param value the value\n@return true\n\n@throws IllegalArgumentException the stack does not contain enough\nelements to perform this operation", "docstring_tokens": ["Inserts", "the", "given", "value", "a", "given", "number", "of", "elements", "below", "the", "current", "top", "of", "the", "value", "stack"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseActions.java#L184-L189", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseActions.java", "func_name": "BaseActions.popAs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the value at the top of the value stack and casts it before\nreturning it\n\n@param c the class to cast to\n@param type of the class\n@return the current top value\n@throws IllegalArgumentException the stack is empty\n\n@see #pop()", "docstring_tokens": ["Removes", "the", "value", "at", "the", "top", "of", "the", "value", "stack", "and", "casts", "it", "before", "returning", "it"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseActions.java#L215-L218", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseActions.java", "func_name": "BaseActions.popAs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the value the given number of elements below the top of the value\nstack and casts it before returning it\n\n@param c the class to cast to\n@param down the number of elements to skip before removing the value (0\nbeing equivalent to {@code pop()})\n@param type of the class\n@return the value\n@throws IllegalArgumentException the stack does not contain enough\nelements to perform this operation\n\n@see #pop(int)", "docstring_tokens": ["Removes", "the", "value", "the", "given", "number", "of", "elements", "below", "the", "top", "of", "the", "value", "stack", "and", "casts", "it", "before", "returning", "it"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseActions.java#L251-L254", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseActions.java", "func_name": "BaseActions.peekAs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns and casts the value at the top of the value stack without\nremoving it\n\n@param c the class to cast to\n@param type of the class\n@return the value\n\n@see #peek()", "docstring_tokens": ["Returns", "and", "casts", "the", "value", "at", "the", "top", "of", "the", "value", "stack", "without", "removing", "it"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseActions.java#L311-L314", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/BaseActions.java", "func_name": "BaseActions.poke", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Replaces the element the given number of elements below the current top\nof the value stack\n\n@param down the number of elements to skip before replacing the value (0\nbeing equivalent to {@code poke(value)})\n@param value the value to replace with\n@return true\n\n@throws IllegalArgumentException the stack does not contain enough\nelements to perform this operation", "docstring_tokens": ["Replaces", "the", "element", "the", "given", "number", "of", "elements", "below", "the", "current", "top", "of", "the", "value", "stack"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/BaseActions.java#L379-L384", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/run/ParseRunner.java", "func_name": "ParseRunner.match", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Internal method. DO NOT USE!\n\n@param context the MatcherContext\n@param type parameter of the values on the parser stack\n@return true on a match; false otherwise", "docstring_tokens": ["Internal", "method", ".", "DO", "NOT", "USE!"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/run/ParseRunner.java#L157-L184", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/support/IndexRange.java", "func_name": "IndexRange.overlapsWith", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines whether this range overlaps with the given other one.\n\n@param other the other range\n@return true if there is at least one index that is contained in both ranges", "docstring_tokens": ["Determines", "whether", "this", "range", "overlaps", "with", "the", "given", "other", "one", "."], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/support/IndexRange.java#L74-L78", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/support/IndexRange.java", "func_name": "IndexRange.touches", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines whether this range immediated follows or precedes the given other one.\n\n@param other the other range\n@return true if this range immediated follows or precedes the given other one.", "docstring_tokens": ["Determines", "whether", "this", "range", "immediated", "follows", "or", "precedes", "the", "given", "other", "one", "."], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/support/IndexRange.java#L110-L114", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/support/IndexRange.java", "func_name": "IndexRange.mergedWith", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Created a new IndexRange that spans all characters between the smallest and the highest index of the two ranges.\n\n@param other the other range\n@return a new IndexRange instance", "docstring_tokens": ["Created", "a", "new", "IndexRange", "that", "spans", "all", "characters", "between", "the", "smallest", "and", "the", "highest", "index", "of", "the", "two", "ranges", "."], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/support/IndexRange.java#L122-L127", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/Grappa.java", "func_name": "Grappa.getByteCode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate the byte code of a transformed parser class\n\n

When you create a parser using {@link\n#createParser(Class, Object...)}, Parboiled generates a new class which\nis the one you actually use for parsing. This method allows to get the\nbyte code of such a generated class in a byte array.

\n\n@param parserClass the parser class\n@param

class of the parser\n@param see {@link BaseParser}\n@return the byte code\n\n@throws RuntimeException byte code generation failure\n@see ParserTransformer#getByteCode(Class)", "docstring_tokens": ["Generate", "the", "byte", "code", "of", "a", "transformed", "parser", "class"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/Grappa.java#L94-L102", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/matchers/trie/TrieNodeBuilder.java", "func_name": "TrieNodeBuilder.doAddWord", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a word\n\n

Here also, a {@link CharBuffer} is used, which changes position as we\nprogress into building the tree, character by character, node by node.\n

\n\n

If the buffer is \"empty\" when entering this method, it means a match\nmust be recorded (see {@link #fullWord}).

\n\n@param buffer the buffer (never null)", "docstring_tokens": ["Add", "a", "word"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/matchers/trie/TrieNodeBuilder.java#L58-L72", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/matchers/wrap/ProxyMatcher.java", "func_name": "ProxyMatcher.unwrap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves the innermost Matcher that is not a ProxyMatcher.\n\n@param matcher the matcher to unwrap\n@return the given instance if it is not a ProxyMatcher, otherwise the innermost non-proxy Matcher", "docstring_tokens": ["Retrieves", "the", "innermost", "Matcher", "that", "is", "not", "a", "ProxyMatcher", "."], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/matchers/wrap/ProxyMatcher.java#L156-L166", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/EventBusParser.java", "func_name": "EventBusParser.register", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Register a listener to the event bus\n\n@param listener the listener\n@return always true\n\n@see EventBus#register(Object)", "docstring_tokens": ["Register", "a", "listener", "to", "the", "event", "bus"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/EventBusParser.java#L96-L100", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/parsers/EventBusParser.java", "func_name": "EventBusParser.post", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Post an arbitrary, non null, object on the bus\n\n@param object the object (must not be null)\n@return always true", "docstring_tokens": ["Post", "an", "arbitrary", "non", "null", "object", "on", "the", "bus"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/parsers/EventBusParser.java#L108-L113", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/matchers/base/AbstractMatcher.java", "func_name": "AbstractMatcher.getSubContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "default implementation is to simply delegate to the context", "docstring_tokens": ["default", "implementation", "is", "to", "simply", "delegate", "to", "the", "context"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/matchers/base/AbstractMatcher.java#L94-L98", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/misc/RangeMatcherBuilder.java", "func_name": "RangeMatcherBuilder.min", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return a rule with a minimum number of cycles to run\n\n@param nrCycles the number of cycles\n@return a rule\n@throws IllegalArgumentException {@code nrCycles} is less than 0\n\n@see Range#atLeast(Comparable)", "docstring_tokens": ["Return", "a", "rule", "with", "a", "minimum", "number", "of", "cycles", "to", "run"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/misc/RangeMatcherBuilder.java#L61-L67", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/misc/RangeMatcherBuilder.java", "func_name": "RangeMatcherBuilder.max", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return a rule with a maximum number of cycles to run\n\n@param nrCycles the number of cycles\n@return a rule\n@throws IllegalArgumentException {@code nrCycles} is less than 0\n\n@see Range#atMost(Comparable)", "docstring_tokens": ["Return", "a", "rule", "with", "a", "maximum", "number", "of", "cycles", "to", "run"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/misc/RangeMatcherBuilder.java#L78-L84", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/misc/RangeMatcherBuilder.java", "func_name": "RangeMatcherBuilder.times", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return a rule with an exact number of cycles to run\n\n@param nrCycles the number of cycles\n@return a rule\n@throws IllegalArgumentException {@code nrCycles} is less than 0\n\n@see Range#singleton(Comparable)", "docstring_tokens": ["Return", "a", "rule", "with", "an", "exact", "number", "of", "cycles", "to", "run"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/misc/RangeMatcherBuilder.java#L95-L101", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/misc/RangeMatcherBuilder.java", "func_name": "RangeMatcherBuilder.times", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return a rule with both lower and upper bounds on the number of cycles\n\n

Note that the range of cycles to run is closed on both ends (that is,\nthe minimum and maximum number of cycles) are inclusive.\n

\n\n@param minCycles the minimum number of cycles\n@param maxCycles the maximum number of cycles\n@return a rule\n@throws IllegalArgumentException minimum number of cycles is negative; or\nmaximum number of cycles is less than the minimum\n\n@see Range#closed(Comparable, Comparable)", "docstring_tokens": ["Return", "a", "rule", "with", "both", "lower", "and", "upper", "bounds", "on", "the", "number", "of", "cycles"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/misc/RangeMatcherBuilder.java#L118-L127", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/misc/RangeMatcherBuilder.java", "func_name": "RangeMatcherBuilder.range", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Core method for building a repeating matcher\n\n

This is the method which all other methods (min, max, times) delegate\nto; among other things it is responsible for the logic of simplifying\nmatchers where possible.

\n\n

The simplifications are as follows:

\n\n
    \n
  • [0..0]: returns an {@link EmptyMatcher};
  • \n
  • [0..1]: returns an {@link OptionalMatcher} with the rule as a\nsubmatcher;
  • \n
  • [1..1]: returns the rule itself.
  • \n
\n\n

If none of these apply, this method delegates as follows:

\n\n
    \n
  • [n..+\u221e) for whatever n: delegates to {@link #boundedDown(int)};\n
  • \n
  • [0..n] for n >= 2: delegates to {@link #boundedUp(int)};
  • \n
  • [n..n] for n >= 2: delegates to {@link #exactly(int)};
  • \n
  • [n..m] with 0 < n < m: delegates to {@link\n#boundedBoth(int, int)}.
  • \n
\n\n@param range the range\n@return the final resulting rule", "docstring_tokens": ["Core", "method", "for", "building", "a", "repeating", "matcher"], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/misc/RangeMatcherBuilder.java#L159-L202", "partition": "valid"} +{"repo": "fge/grappa", "path": "src/main/java/com/github/fge/grappa/support/Characters.java", "func_name": "Characters.allBut", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new Characters instance containing all characters minus the given ones.\n\n@param chars the chars to NOT include\n@return a new Characters object", "docstring_tokens": ["Creates", "a", "new", "Characters", "instance", "containing", "all", "characters", "minus", "the", "given", "ones", "."], "sha": "7ade86b8371aec4e2b9a6815a85cf88a12eba6e4", "url": "https://github.com/fge/grappa/blob/7ade86b8371aec4e2b9a6815a85cf88a12eba6e4/src/main/java/com/github/fge/grappa/support/Characters.java#L89-L97", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "tibco-application-management-schema/src/main/java/com/tibco/xmlns/applicationmanagement/Plugins.java", "func_name": "Plugins.getDeploymentDescriptor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the value of the deploymentDescriptor property.\n\n

\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a set method for the deploymentDescriptor property.\n\n

\nFor example, to add a new item, do as follows:\n

\ngetDeploymentDescriptor().add(newItem);\n
\n\n\n

\nObjects of the following type(s) are allowed in the list\n{@link JAXBElement }{@code <}{@link DeploymentDescriptorFactory }{@code >}\n{@link JAXBElement }{@code <}{@link Modules }{@code >}\n{@link JAXBElement }{@code <}{@link DeploymentDescriptorType }{@code >}\n{@link JAXBElement }{@code <}{@link StartAsOneOf }{@code >}\n{@link JAXBElement }{@code <}{@link CustomTSMPlugInConfiguration }{@code >}\n{@link JAXBElement }{@code <}{@link DiffExcludeFilter }{@code >}\n{@link JAXBElement }{@code <}{@link ClassLoaderExtension }{@code >}\n{@link JAXBElement }{@code <}{@link RequiresAuthentication }{@code >}\n{@link JAXBElement }{@code <}{@link NameValuePairs }{@code >}\n{@link JAXBElement }{@code <}{@link SupportsFaultTolerance }{@code >}\n{@link JAXBElement }{@code <}{@link RequiredComponents }{@code >}", "docstring_tokens": ["Gets", "the", "value", "of", "the", "deploymentDescriptor", "property", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/tibco-application-management-schema/src/main/java/com/tibco/xmlns/applicationmanagement/Plugins.java#L97-L102", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "tibco-application-management-schema/src/main/java/com/tibco/xmlns/applicationmanagement/Authentications.java", "func_name": "Authentications.getAuthenticationConfiguration", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the value of the authenticationConfiguration property.\n\n

\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a set method for the authenticationConfiguration property.\n\n

\nFor example, to add a new item, do as follows:\n

\ngetAuthenticationConfiguration().add(newItem);\n
\n\n\n

\nObjects of the following type(s) are allowed in the list\n{@link JAXBElement }{@code <}{@link CookieAuthenticationConfiguration }{@code >}\n{@link JAXBElement }{@code <}{@link URLAuthenticationConfiguration }{@code >}\n{@link JAXBElement }{@code <}{@link CustomAuthenticationConfiguration }{@code >}\n{@link JAXBElement }{@code <}{@link WebServerAuthenticationConfiguration }{@code >}\n{@link JAXBElement }{@code <}{@link AuthenticationConfigurationType }{@code >}\n{@link JAXBElement }{@code <}{@link HttpSessionAuthenticationConfiguration }{@code >}", "docstring_tokens": ["Gets", "the", "value", "of", "the", "authenticationConfiguration", "property", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/tibco-application-management-schema/src/main/java/com/tibco/xmlns/applicationmanagement/Authentications.java#L87-L92", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/packaging/ApplicationManagement.java", "func_name": "ApplicationManagement.getBWServices", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method retrieves the list of objects of type \"BWServiceType\".", "docstring_tokens": ["This", "method", "retrieves", "the", "list", "of", "objects", "of", "type", "BWServiceType", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/packaging/ApplicationManagement.java#L201-L211", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/packaging/ApplicationManagement.java", "func_name": "ApplicationManagement.addMonitoringEventsToAllServices", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add <events> in <monitor> element of all <bw> elements.\n@param events", "docstring_tokens": ["Add", "<", ";", "events", ">", "in", "<", ";", "monitor", ">", "element", "of", "all", "<", ";", "bw", ">", "elements", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/packaging/ApplicationManagement.java#L1416-L1426", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/compile/repository/GlobalVariables.java", "func_name": "GlobalVariables.getGlobalVariable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the value of the globalVariable property.\n\n

\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a set method for the globalVariable property.\n\n

\nFor example, to add a new item, do as follows:\n

\ngetGlobalVariable().add(newItem);\n
\n\n\n

\nObjects of the following type(s) are allowed in the list\n{@link GlobalVariables.GlobalVariable }", "docstring_tokens": ["Gets", "the", "value", "of", "the", "globalVariable", "property", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/compile/repository/GlobalVariables.java#L114-L119", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "tibco-application-management-schema/src/main/java/com/tibco/xmlns/applicationmanagement/Services.java", "func_name": "Services.getBaseService", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the value of the baseService property.\n\n

\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a set method for the baseService property.\n\n

\nFor example, to add a new item, do as follows:\n

\ngetBaseService().add(newItem);\n
\n\n\n

\nObjects of the following type(s) are allowed in the list\n{@link JAXBElement }{@code <}{@link Bw }{@code >}\n{@link JAXBElement }{@code <}{@link Service }{@code >}\n{@link JAXBElement }{@code <}{@link ServiceType }{@code >}\n{@link JAXBElement }{@code <}{@link Im }{@code >}\n{@link JAXBElement }{@code <}{@link FormFlow }{@code >}\n{@link JAXBElement }{@code <}{@link Adapter }{@code >}", "docstring_tokens": ["Gets", "the", "value", "of", "the", "baseService", "property", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/tibco-application-management-schema/src/main/java/com/tibco/xmlns/applicationmanagement/Services.java#L77-L82", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "tibco-application-management-schema/src/main/java/com/tibco/xmlns/applicationmanagement/Events.java", "func_name": "Events.getEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the value of the event property.\n\n

\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a set method for the event property.\n\n

\nFor example, to add a new item, do as follows:\n

\ngetEvent().add(newItem);\n
\n\n\n

\nObjects of the following type(s) are allowed in the list\n{@link JAXBElement }{@code <}{@link EventType }{@code >}\n{@link JAXBElement }{@code <}{@link LogEvent }{@code >}\n{@link JAXBElement }{@code <}{@link SuspendProcessEvent }{@code >}\n{@link JAXBElement }{@code <}{@link FailureEvent }{@code >}", "docstring_tokens": ["Gets", "the", "value", "of", "the", "event", "property", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/tibco-application-management-schema/src/main/java/com/tibco/xmlns/applicationmanagement/Events.java#L75-L80", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/AbstractBWMojo.java", "func_name": "AbstractBWMojo.checkBWProject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This will check that the BW project specified in the POM project exists.\n\nTODO : add additional checks about BW project integrity\n\n@throws MojoExecutionException", "docstring_tokens": ["This", "will", "check", "that", "the", "BW", "project", "specified", "in", "the", "POM", "project", "exists", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/AbstractBWMojo.java#L641-L647", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/AbstractBWMojo.java", "func_name": "AbstractBWMojo.readDependenciesFromFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This will read the dependencies from the 'resolved' file found in the\nbuild directory. This file was created earlier in the build by the\n'resolve-bw-dependencies' execution of the 'process-resources' phase.\n\n@return The list of dependencies of type {@link dependencyType}\n@throws IOException", "docstring_tokens": ["This", "will", "read", "the", "dependencies", "from", "the", "resolved", "file", "found", "in", "the", "build", "directory", ".", "This", "file", "was", "created", "earlier", "in", "the", "build", "by", "the", "resolve", "-", "bw", "-", "dependencies", "execution", "of", "the", "process", "-", "resources", "phase", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/AbstractBWMojo.java#L765-L802", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/AbstractBWMojo.java", "func_name": "AbstractBWMojo.launchTIBCOBinary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Same as launchTIBCOBinary with 'fork=false' and 'synchronous=true'", "docstring_tokens": ["Same", "as", "launchTIBCOBinary", "with", "fork", "=", "false", "and", "synchronous", "=", "true"], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/AbstractBWMojo.java#L1156-L1158", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "tibco-application-management-schema/src/main/java/com/tibco/xmlns/applicationmanagement/Actions.java", "func_name": "Actions.getAction", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the value of the action property.\n\n

\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a set method for the action property.\n\n

\nFor example, to add a new item, do as follows:\n

\ngetAction().add(newItem);\n
\n\n\n

\nObjects of the following type(s) are allowed in the list\n{@link JAXBElement }{@code <}{@link AlertAction }{@code >}\n{@link JAXBElement }{@code <}{@link ActionType }{@code >}\n{@link JAXBElement }{@code <}{@link CustomAction }{@code >}\n{@link JAXBElement }{@code <}{@link EmailAction }{@code >}", "docstring_tokens": ["Gets", "the", "value", "of", "the", "action", "property", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/tibco-application-management-schema/src/main/java/com/tibco/xmlns/applicationmanagement/Actions.java#L75-L80", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/compile/CompileEARMojo.java", "func_name": "CompileEARMojo.cleanDirectory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Delete all file of a directory and then delete this directory\n\n@param directory\n@return", "docstring_tokens": ["Delete", "all", "file", "of", "a", "directory", "and", "then", "delete", "this", "directory"], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/compile/CompileEARMojo.java#L184-L193", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "tibco-bw-process-model-schema/src/main/java/org/w3/_2001/xmlschema/SimpleType.java", "func_name": "SimpleType.getFinal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the value of the final property.\n\n

\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a set method for the final property.\n\n

\nFor example, to add a new item, do as follows:\n

\ngetFinal().add(newItem);\n
\n\n\n

\nObjects of the following type(s) are allowed in the list\n{@link String }", "docstring_tokens": ["Gets", "the", "value", "of", "the", "final", "property", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/tibco-bw-process-model-schema/src/main/java/org/w3/_2001/xmlschema/SimpleType.java#L161-L166", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "tibco-application-management-schema/src/main/java/com/tibco/xmlns/applicationmanagement/Rulebases.java", "func_name": "Rulebases.getRulebase", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the value of the rulebase property.\n\n

\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a set method for the rulebase property.\n\n

\nFor example, to add a new item, do as follows:\n

\ngetRulebase().add(newItem);\n
\n\n\n

\nObjects of the following type(s) are allowed in the list\n{@link Rulebases.Rulebase }", "docstring_tokens": ["Gets", "the", "value", "of", "the", "rulebase", "property", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/tibco-application-management-schema/src/main/java/com/tibco/xmlns/applicationmanagement/Rulebases.java#L81-L86", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/compile/UpdateAliasesLibsMojo.java", "func_name": "UpdateAliasesLibsMojo.addAlias", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method add an alias in the object used internally by TIBCO\nBusinessWorks.\n\n@param list, an object used internally by TIBCO BusinessWorks.\n@param aliasName, the name of the alias as normalized b\n{@link AbstractBWMojo}.", "docstring_tokens": ["This", "method", "add", "an", "alias", "in", "the", "object", "used", "internally", "by", "TIBCO", "BusinessWorks", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/compile/UpdateAliasesLibsMojo.java#L130-L143", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/compile/UpdateAliasesLibsMojo.java", "func_name": "UpdateAliasesLibsMojo.processFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method adds the JAR aliases to a \".aliaslib\" file\n\n@param f, the \".aliaslib\" file to update\n@throws MojoExecutionException", "docstring_tokens": ["This", "method", "adds", "the", "JAR", "aliases", "to", "a", ".", "aliaslib", "file"], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/compile/UpdateAliasesLibsMojo.java#L183-L203", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "tibco-bw-process-model-schema/src/main/java/org/xmlsoap/schemas/wsdl/TOperation.java", "func_name": "TOperation.getRest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the rest of the content model.\n\n

\nYou are getting this \"catch-all\" property because of the following reason:\nThe field name \"Output\" is used by two different parts of a schema. See:\nline 217 of file:/C:/temp/tibco_xsd/bw/wsdl.xsd\nline 209 of file:/C:/temp/tibco_xsd/bw/wsdl.xsd\n

\nTo get rid of this property, apply a property customization to one\nof both of the following declarations to change their names:\nGets the value of the rest property.\n\n

\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a set method for the rest property.\n\n

\nFor example, to add a new item, do as follows:\n

\ngetRest().add(newItem);\n
\n\n\n

\nObjects of the following type(s) are allowed in the list\n{@link JAXBElement }{@code <}{@link TParam }{@code >}\n{@link JAXBElement }{@code <}{@link TParam }{@code >}\n{@link JAXBElement }{@code <}{@link TFault }{@code >}", "docstring_tokens": ["Gets", "the", "rest", "of", "the", "content", "model", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/tibco-bw-process-model-schema/src/main/java/org/xmlsoap/schemas/wsdl/TOperation.java#L105-L110", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "tibco-application-management-schema/src/main/java/com/tibco/xmlns/dd/NameValuePairs.java", "func_name": "NameValuePairs.getNVPair", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the value of the nvPair property.\n\n

\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a set method for the nvPair property.\n\n

\nFor example, to add a new item, do as follows:\n

\ngetNVPair().add(newItem);\n
\n\n\n

\nObjects of the following type(s) are allowed in the list\n{@link JAXBElement }{@code <}{@link NVPairType }{@code >}\n{@link JAXBElement }{@code <}{@link NameValuePairInteger }{@code >}\n{@link JAXBElement }{@code <}{@link NameValuePairPassword }{@code >}\n{@link JAXBElement }{@code <}{@link NameValuePairBoolean }{@code >}\n{@link JAXBElement }{@code <}{@link NameValuePair }{@code >}", "docstring_tokens": ["Gets", "the", "value", "of", "the", "nvPair", "property", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/tibco-application-management-schema/src/main/java/com/tibco/xmlns/dd/NameValuePairs.java#L103-L108", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/source/POMManager.java", "func_name": "POMManager.addDependency", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the Maven dependency to a POM file.\n\n@param pom\n@param dependency\n@throws IOException\n@throws XmlPullParserException", "docstring_tokens": ["Add", "the", "Maven", "dependency", "to", "a", "POM", "file", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/source/POMManager.java#L139-L145", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/source/POMManager.java", "func_name": "POMManager.removeDependency", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove the Maven dependency from a POM file.\n\n@param pom\n@param dependency\n@throws IOException\n@throws XmlPullParserException", "docstring_tokens": ["Remove", "the", "Maven", "dependency", "from", "a", "POM", "file", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/source/POMManager.java#L176-L186", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/source/POMManager.java", "func_name": "POMManager.dependencyExists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check whether a dependency exists in a list of dependencies.\n\n@param dependency\n@param dependencies\n@return true if the dependency exists in dependencies list", "docstring_tokens": ["Check", "whether", "a", "dependency", "exists", "in", "a", "list", "of", "dependencies", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/source/POMManager.java#L249-L257", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/source/POMManager.java", "func_name": "POMManager.dependencyExists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check whether a dependency exists in a POM.\n\n@param pom\n@param dependency\n@param logger\n@return true if the dependency exists in the POM\n@throws IOException\n@throws XmlPullParserException", "docstring_tokens": ["Check", "whether", "a", "dependency", "exists", "in", "a", "POM", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/source/POMManager.java#L269-L273", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/source/POMManager.java", "func_name": "POMManager.addProjectAsModule", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a project as a module.\n\n@param pom\n@param relativePath\n@param logger\n@throws IOException\n@throws XmlPullParserException", "docstring_tokens": ["Add", "a", "project", "as", "a", "module", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/source/POMManager.java#L321-L338", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/source/POMManager.java", "func_name": "POMManager.moduleExists", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check whether a module exists in a POM.\n\n@param rootPOM\n@param relative\n@param log\n@return\n@throws XmlPullParserException\n@throws IOException", "docstring_tokens": ["Check", "whether", "a", "module", "exists", "in", "a", "POM", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/source/POMManager.java#L368-L385", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/AbstractBWArtifactMojo.java", "func_name": "AbstractBWArtifactMojo.getArtifactFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves the full path of the artifact that will be created.\n\n@param basedir, the directory where the artifact will be created\n@param finalName, the name of the artifact, without file extension\n@param classifier\n@return a {@link File} object with the path of the artifact", "docstring_tokens": ["Retrieves", "the", "full", "path", "of", "the", "artifact", "that", "will", "be", "created", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/AbstractBWArtifactMojo.java#L164-L172", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-javaxpath-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/javaxpath/XPathResourceBuilderMojo.java", "func_name": "XPathResourceBuilderMojo.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "MOJO execution method.", "docstring_tokens": ["MOJO", "execution", "method", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-javaxpath-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/javaxpath/XPathResourceBuilderMojo.java#L75-L97", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-javaxpath-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/javaxpath/XPathResourceBuilderMojo.java", "func_name": "XPathResourceBuilderMojo.extractFileContent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads the complete content of the javaxpath file.\n\n@param filename\n@return\n@throws IOException", "docstring_tokens": ["Reads", "the", "complete", "content", "of", "the", "javaxpath", "file", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-javaxpath-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/javaxpath/XPathResourceBuilderMojo.java#L106-L123", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/packaging/GenerateXMLFromPropertiesMojo.java", "func_name": "GenerateXMLFromPropertiesMojo.updateRepoInstances", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This will update the <repoInstances> element.", "docstring_tokens": ["This", "will", "update", "the", "<", ";", "repoInstances", ">", "element", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/packaging/GenerateXMLFromPropertiesMojo.java#L179-L223", "partition": "valid"} +{"repo": "fastconnect/tibco-bwmaven", "path": "bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/compile/repository/Repository.java", "func_name": "Repository.getAny", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the value of the any property.\n\n

\nThis accessor method returns a reference to the live list,\nnot a snapshot. Therefore any modification you make to the\nreturned list will be present inside the JAXB object.\nThis is why there is not a set method for the any property.\n\n

\nFor example, to add a new item, do as follows:\n

\ngetAny().add(newItem);\n
\n\n\n

\nObjects of the following type(s) are allowed in the list\n{@link Element }\n{@link java.lang.Object }", "docstring_tokens": ["Gets", "the", "value", "of", "the", "any", "property", "."], "sha": "09637c0e9f029fff41a7d84078965b63d261aed2", "url": "https://github.com/fastconnect/tibco-bwmaven/blob/09637c0e9f029fff41a7d84078965b63d261aed2/bw-maven-plugin/src/main/java/fr/fastconnect/factory/tibco/bw/maven/compile/repository/Repository.java#L89-L94", "partition": "valid"} +{"repo": "gquintana/metrics-sql", "path": "src/main/java/com/github/gquintana/metrics/sql/Driver.java", "func_name": "Driver.newInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Instantiate a new object of type T\n\n@param clazz Object class\n@param params Constructor args\n@param Object type\n@return New object", "docstring_tokens": ["Instantiate", "a", "new", "object", "of", "type", "T"], "sha": "1f7966be77007cd99c383009e373c140aecd8ac7", "url": "https://github.com/gquintana/metrics-sql/blob/1f7966be77007cd99c383009e373c140aecd8ac7/src/main/java/com/github/gquintana/metrics/sql/Driver.java#L65-L93", "partition": "valid"} +{"repo": "gquintana/metrics-sql", "path": "src/main/java/com/github/gquintana/metrics/proxy/ProxyClass.java", "func_name": "ProxyClass.createClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create proxy class\n@param Expected proxy type\n@return Class of proxy for given classloader and interfaces", "docstring_tokens": ["Create", "proxy", "class"], "sha": "1f7966be77007cd99c383009e373c140aecd8ac7", "url": "https://github.com/gquintana/metrics-sql/blob/1f7966be77007cd99c383009e373c140aecd8ac7/src/main/java/com/github/gquintana/metrics/proxy/ProxyClass.java#L78-L80", "partition": "valid"} +{"repo": "gquintana/metrics-sql", "path": "src/main/java/com/github/gquintana/metrics/proxy/ProxyClass.java", "func_name": "ProxyClass.createConstructor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create proxy constructor\n\nCreate proxy class\n@param Expected proxy type\n@return Constructor of proxy for given classloader and interfaces", "docstring_tokens": ["Create", "proxy", "constructor"], "sha": "1f7966be77007cd99c383009e373c140aecd8ac7", "url": "https://github.com/gquintana/metrics-sql/blob/1f7966be77007cd99c383009e373c140aecd8ac7/src/main/java/com/github/gquintana/metrics/proxy/ProxyClass.java#L88-L94", "partition": "valid"} +{"repo": "gquintana/metrics-sql", "path": "src/main/java/com/github/gquintana/metrics/sql/MetricHelper.java", "func_name": "MetricHelper.startStatementExecuteTimer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Start Timer when statement is executed\n\n@param query SQL query\n@return Started timer context or null", "docstring_tokens": ["Start", "Timer", "when", "statement", "is", "executed"], "sha": "1f7966be77007cd99c383009e373c140aecd8ac7", "url": "https://github.com/gquintana/metrics-sql/blob/1f7966be77007cd99c383009e373c140aecd8ac7/src/main/java/com/github/gquintana/metrics/sql/MetricHelper.java#L79-L83", "partition": "valid"} +{"repo": "gquintana/metrics-sql", "path": "src/main/java/com/github/gquintana/metrics/sql/MetricHelper.java", "func_name": "MetricHelper.startCallableStatementLifeTimer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Start Timer when callable statement is created\n\n@return Started timer context or null", "docstring_tokens": ["Start", "Timer", "when", "callable", "statement", "is", "created"], "sha": "1f7966be77007cd99c383009e373c140aecd8ac7", "url": "https://github.com/gquintana/metrics-sql/blob/1f7966be77007cd99c383009e373c140aecd8ac7/src/main/java/com/github/gquintana/metrics/sql/MetricHelper.java#L123-L127", "partition": "valid"} +{"repo": "gquintana/metrics-sql", "path": "src/main/java/com/github/gquintana/metrics/sql/MetricHelper.java", "func_name": "MetricHelper.startResultSetLifeTimer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Start Timer when result set is created\n\n@return Started timer context or null", "docstring_tokens": ["Start", "Timer", "when", "result", "set", "is", "created"], "sha": "1f7966be77007cd99c383009e373c140aecd8ac7", "url": "https://github.com/gquintana/metrics-sql/blob/1f7966be77007cd99c383009e373c140aecd8ac7/src/main/java/com/github/gquintana/metrics/sql/MetricHelper.java#L145-L149", "partition": "valid"} +{"repo": "gquintana/metrics-sql", "path": "src/main/java/com/github/gquintana/metrics/sql/MetricHelper.java", "func_name": "MetricHelper.markResultSetRowMeter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Increment when result set row is read", "docstring_tokens": ["Increment", "when", "result", "set", "row", "is", "read"], "sha": "1f7966be77007cd99c383009e373c140aecd8ac7", "url": "https://github.com/gquintana/metrics-sql/blob/1f7966be77007cd99c383009e373c140aecd8ac7/src/main/java/com/github/gquintana/metrics/sql/MetricHelper.java#L153-L157", "partition": "valid"} +{"repo": "gquintana/metrics-sql", "path": "src/main/java/com/github/gquintana/metrics/sql/JdbcProxyFactory.java", "func_name": "JdbcProxyFactory.newProxy", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a proxy for given JDBC proxy handler\n@param Proxy type\n@param proxyHandler Proxy handler\n@return Proxy", "docstring_tokens": ["Create", "a", "proxy", "for", "given", "JDBC", "proxy", "handler"], "sha": "1f7966be77007cd99c383009e373c140aecd8ac7", "url": "https://github.com/gquintana/metrics-sql/blob/1f7966be77007cd99c383009e373c140aecd8ac7/src/main/java/com/github/gquintana/metrics/sql/JdbcProxyFactory.java#L83-L85", "partition": "valid"} +{"repo": "gquintana/metrics-sql", "path": "src/main/java/com/github/gquintana/metrics/sql/JdbcProxyFactory.java", "func_name": "JdbcProxyFactory.wrapConnection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wrap a connection to monitor it.\n\n@param wrappedConnection Connection to wrap\n@return Wrapped connection", "docstring_tokens": ["Wrap", "a", "connection", "to", "monitor", "it", "."], "sha": "1f7966be77007cd99c383009e373c140aecd8ac7", "url": "https://github.com/gquintana/metrics-sql/blob/1f7966be77007cd99c383009e373c140aecd8ac7/src/main/java/com/github/gquintana/metrics/sql/JdbcProxyFactory.java#L103-L106", "partition": "valid"} +{"repo": "gquintana/metrics-sql", "path": "src/main/java/com/github/gquintana/metrics/sql/JdbcProxyFactory.java", "func_name": "JdbcProxyFactory.wrapStatement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wrap a simple statement to monitor it.\n\n@param statement Statement to wrap\n@return Wrapped statement", "docstring_tokens": ["Wrap", "a", "simple", "statement", "to", "monitor", "it", "."], "sha": "1f7966be77007cd99c383009e373c140aecd8ac7", "url": "https://github.com/gquintana/metrics-sql/blob/1f7966be77007cd99c383009e373c140aecd8ac7/src/main/java/com/github/gquintana/metrics/sql/JdbcProxyFactory.java#L114-L117", "partition": "valid"} +{"repo": "gquintana/metrics-sql", "path": "src/main/java/com/github/gquintana/metrics/sql/JdbcProxyFactory.java", "func_name": "JdbcProxyFactory.wrapPreparedStatement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wrap a prepared statement to monitor it.\n\n@param preparedStatement Prepared statement to wrap\n@param sql SQL\n@return Wrapped prepared statement", "docstring_tokens": ["Wrap", "a", "prepared", "statement", "to", "monitor", "it", "."], "sha": "1f7966be77007cd99c383009e373c140aecd8ac7", "url": "https://github.com/gquintana/metrics-sql/blob/1f7966be77007cd99c383009e373c140aecd8ac7/src/main/java/com/github/gquintana/metrics/sql/JdbcProxyFactory.java#L126-L130", "partition": "valid"} +{"repo": "gquintana/metrics-sql", "path": "src/main/java/com/github/gquintana/metrics/sql/JdbcProxyFactory.java", "func_name": "JdbcProxyFactory.wrapCallableStatement", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wrap a callable statement to monitor it.\n\n@param callableStatement Prepared statement to wrap\n@param sql SQL\n@return Wrapped prepared statement", "docstring_tokens": ["Wrap", "a", "callable", "statement", "to", "monitor", "it", "."], "sha": "1f7966be77007cd99c383009e373c140aecd8ac7", "url": "https://github.com/gquintana/metrics-sql/blob/1f7966be77007cd99c383009e373c140aecd8ac7/src/main/java/com/github/gquintana/metrics/sql/JdbcProxyFactory.java#L139-L143", "partition": "valid"} +{"repo": "gquintana/metrics-sql", "path": "src/main/java/com/github/gquintana/metrics/sql/JdbcProxyFactory.java", "func_name": "JdbcProxyFactory.getResultSetType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determine the interface implemented by this result set\n\n@param resultSet Result set", "docstring_tokens": ["Determine", "the", "interface", "implemented", "by", "this", "result", "set"], "sha": "1f7966be77007cd99c383009e373c140aecd8ac7", "url": "https://github.com/gquintana/metrics-sql/blob/1f7966be77007cd99c383009e373c140aecd8ac7/src/main/java/com/github/gquintana/metrics/sql/JdbcProxyFactory.java#L174-L198", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/plugin/CowExecutor.java", "func_name": "CowExecutor.buildArgs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Build an args array that can be passed to cowsay.\n@return commandline args", "docstring_tokens": ["Build", "an", "args", "array", "that", "can", "be", "passed", "to", "cowsay", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/plugin/CowExecutor.java#L118-L139", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/plugin/CowExecutor.java", "func_name": "CowExecutor.buildFaceArgs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Face specific flags, either a face mode or face customizations.\n@param args The arg line to add to.", "docstring_tokens": ["Face", "specific", "flags", "either", "a", "face", "mode", "or", "face", "customizations", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/plugin/CowExecutor.java#L145-L162", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/plugin/CowExecutor.java", "func_name": "CowExecutor.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Run cowsay with the provided properties.\n@return The formatted cow message.\n@throws IllegalStateException If mandatory properties have not been set.", "docstring_tokens": ["Run", "cowsay", "with", "the", "provided", "properties", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/plugin/CowExecutor.java#L182-L192", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/ant/CowsayTask.java", "func_name": "CowsayTask.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Run cowsay with the provided attributes.\n@throws BuildException If something goes wrong during execution.", "docstring_tokens": ["Run", "cowsay", "with", "the", "provided", "attributes", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/ant/CowsayTask.java#L107-L119", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/I18n.java", "func_name": "I18n.setLanguage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the language.\n@param language A BCP47 language, e.g. \"en\", \"fr\".", "docstring_tokens": ["Set", "the", "language", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/I18n.java#L27-L30", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/I18n.java", "func_name": "I18n.getMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a message in the correct language.\n@param key The lookup key for the message.\n@return The message in the correct language, if found, otherwise in the default language.", "docstring_tokens": ["Get", "a", "message", "in", "the", "correct", "language", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/I18n.java#L37-L42", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Cowsay.java", "func_name": "Cowsay.sayOrThink", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Do some cowsaying or cowthinking.\n@param args the command line arguments\n@param think if true will think instead of say (the --cowthink flag can also invoke thinking)", "docstring_tokens": ["Do", "some", "cowsaying", "or", "cowthinking", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Cowsay.java#L46-L110", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Cowsay.java", "func_name": "Cowsay.formatHtml", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "May apply HTML markup to the cow, if requested in the command line.\n@param commandLine The command line with user options.\n@param plainCow The cow formatted in plain text.\n@param moosage The message the cow is saying.\n@param isThought true if this is cowthink instead of cowsay.\n@return Either the plaintext cow or an HTML marked up version, depending on command line.", "docstring_tokens": ["May", "apply", "HTML", "markup", "to", "the", "cow", "if", "requested", "in", "the", "command", "line", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Cowsay.java#L120-L139", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Cowsay.java", "func_name": "Cowsay.getCowFaceByMode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If a pre-defined cow mode has been set on the command line then use that face.\n@param commandLine The command line with user options.\n@return The cowface for the mode selected on the command line or null if no mode set.", "docstring_tokens": ["If", "a", "pre", "-", "defined", "cow", "mode", "has", "been", "set", "on", "the", "command", "line", "then", "use", "that", "face", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Cowsay.java#L146-L156", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Cowsay.java", "func_name": "Cowsay.getCowFace", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a regular cow face optionally formatted with custom eyes and tongue from the command line.\n@param commandLine The command line with user options.\n@return A regular cowface, possibly formatted with custom tongue and/or eyes.", "docstring_tokens": ["Get", "a", "regular", "cow", "face", "optionally", "formatted", "with", "custom", "eyes", "and", "tongue", "from", "the", "command", "line", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Cowsay.java#L163-L173", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/CowFormatter.java", "func_name": "CowFormatter.extractCowTemplate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extracts the ascii art part of the cowfile, removing any before or after PERL comments, variable assignments, weird EOC markers etc.\n@param cow The raw cowfile content.\n@return The ascii art portion of the cowfile.\n@throws CowParseException if the cowfile cannot be parsed.", "docstring_tokens": ["Extracts", "the", "ascii", "art", "part", "of", "the", "cowfile", "removing", "any", "before", "or", "after", "PERL", "comments", "variable", "assignments", "weird", "EOC", "markers", "etc", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/CowFormatter.java#L28-L37", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Cowloader.java", "func_name": "Cowloader.load", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call this with the provided cowfileSpec - that is the value passed to `-f` on the commandline.\n\n@param cowfileSpec If cowfileSpec contains a filepath separator it is interpreted as relative to CWD\notherwise the COWPATH will be searched. If not found on the COWPATH we will search for a bundled cowfile.\n@return The content of the specified cowfile (or default cowfile if cowfileSpec is null or empty).", "docstring_tokens": ["Call", "this", "with", "the", "provided", "cowfileSpec", "-", "that", "is", "the", "value", "passed", "to", "-", "f", "on", "the", "commandline", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Cowloader.java#L54-L76", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Cowloader.java", "func_name": "Cowloader.cowInputStreamToString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads a cowfile from an InputStream and returns a string.\n@param cowInputStream The InputStream instance to read into a String.\n@return A String representing the result of reading the entire InputStream.", "docstring_tokens": ["Reads", "a", "cowfile", "from", "an", "InputStream", "and", "returns", "a", "string", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Cowloader.java#L83-L106", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Cowloader.java", "func_name": "Cowloader.getCowFromPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "In the case that the cowfileSpec is a filesystem path call this method to attempt to load the cowfile.\nIt will attempt to load the cowfile relative to CWD and if that fails it will try as an absolute path.\n@param path A path to a cowfile either relative to CWD or an absolute path.\n@return An InputStream to the cowfile if it exists.", "docstring_tokens": ["In", "the", "case", "that", "the", "cowfileSpec", "is", "a", "filesystem", "path", "call", "this", "method", "to", "attempt", "to", "load", "the", "cowfile", ".", "It", "will", "attempt", "to", "load", "the", "cowfile", "relative", "to", "CWD", "and", "if", "that", "fails", "it", "will", "try", "as", "an", "absolute", "path", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Cowloader.java#L114-L128", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Cowloader.java", "func_name": "Cowloader.getCowFromCowPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This will attempt to load a cowfile, by name, from the COWPATH environment variable or bundled cowfiles.\nNote that bundled cowfiles are considered part of the COWPATH since this is how to original `cowsay` worked.\nCOWPATH takes precedence and bundled cowfiles are only considered after searching the COWPATH.\n\n@param cowName The name of a cowfile, e.g. \"sheep\" or \"sheep.cow\".\n@return An InputStream to the first matching cowfile found.", "docstring_tokens": ["This", "will", "attempt", "to", "load", "a", "cowfile", "by", "name", "from", "the", "COWPATH", "environment", "variable", "or", "bundled", "cowfiles", ".", "Note", "that", "bundled", "cowfiles", "are", "considered", "part", "of", "the", "COWPATH", "since", "this", "is", "how", "to", "original", "cowsay", "worked", ".", "COWPATH", "takes", "precedence", "and", "bundled", "cowfiles", "are", "only", "considered", "after", "searching", "the", "COWPATH", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Cowloader.java#L138-L152", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Cowloader.java", "func_name": "Cowloader.isCowfile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determine if this File appears to be a genuine cowfile.\nThis is not a deep check, more rigor will be applied later.\n@param cowfile A potential cowfile.\n@return true if this File seems to be a cowfile.", "docstring_tokens": ["Determine", "if", "this", "File", "appears", "to", "be", "a", "genuine", "cowfile", ".", "This", "is", "not", "a", "deep", "check", "more", "rigor", "will", "be", "applied", "later", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Cowloader.java#L220-L225", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Cowloader.java", "func_name": "Cowloader.cowfileToCowInputStream", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads a File to an InputStream.\nNot sure why I thought this should be a separate method, I guess it made sense at the time.\n@param cowfile The cowfile to read.\n@return An InputStream which can be used to read the File.", "docstring_tokens": ["Reads", "a", "File", "to", "an", "InputStream", ".", "Not", "sure", "why", "I", "thought", "this", "should", "be", "a", "separate", "method", "I", "guess", "it", "made", "sense", "at", "the", "time", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Cowloader.java#L233-L241", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Cowloader.java", "func_name": "Cowloader.getCowfile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a cowfile, by name, from the given directory.\n@param folder The absolute path to the filesystem folder.\n@param cowName The name of the cowfile to load (without the \".cow\" extension).\n@return A File if the cowfile is found in this directory otherwise null.", "docstring_tokens": ["Get", "a", "cowfile", "by", "name", "from", "the", "given", "directory", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Cowloader.java#L258-L266", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Cowloader.java", "func_name": "Cowloader.getCowFiles", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets all cowfiles found in the given directory.\n@param folder The absolute path to the filesystem folder.\n@return A list of all cowfiles found in this directory.", "docstring_tokens": ["Gets", "all", "cowfiles", "found", "in", "the", "given", "directory", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Cowloader.java#L273-L283", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/CowFace.java", "func_name": "CowFace.getByMode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get cow args by mode.\n@param mode A mode key, \"b\" for Borg, \"d\" for dead, \"g\" for greedy etc\n@return The CowArgs for the given mode or null if not found", "docstring_tokens": ["Get", "cow", "args", "by", "mode", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/CowFace.java#L81-L86", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/CowFace.java", "func_name": "CowFace.setEyes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set custom cow eyes.\n@param eyes The eyes to use - if more than two characters long the first two will be used.", "docstring_tokens": ["Set", "custom", "cow", "eyes", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/CowFace.java#L92-L100", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/CowFace.java", "func_name": "CowFace.setTongue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set custom cow tongue.\n@param tongue The tongue to use - if more than two characters long the first two will be used.", "docstring_tokens": ["Set", "custom", "cow", "tongue", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/CowFace.java#L106-L114", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/CowFace.java", "func_name": "CowFace.isKnownMode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determine if the given mode flag is known and mapped to a particular cow face.\n@param mode The key to the mode, generally a single character, e.g. \"b\" for \"Borg\" mode.\n@return true if this is a known mode.", "docstring_tokens": ["Determine", "if", "the", "given", "mode", "flag", "is", "known", "and", "mapped", "to", "a", "particular", "cow", "face", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/CowFace.java#L121-L124", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/CowsayCli.java", "func_name": "CowsayCli.parseCmdArgs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses an array of arguments.\n@param argv Arguments array.\n@return The parsed arguments.", "docstring_tokens": ["Parses", "an", "array", "of", "arguments", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/CowsayCli.java#L93-L118", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/CowsayCli.java", "func_name": "CowsayCli.showCmdLineHelp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Displays help message to user.", "docstring_tokens": ["Displays", "help", "message", "to", "user", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/CowsayCli.java#L146-L150", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Bubble.java", "func_name": "Bubble.formatBubble", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Draws a complete bubble around a line-wrapped message.\n@param bubble The BubbleWrap to use (e.g. SPEECH_BUBBLE or THOUGHT_BUBBLE)\n@param message The message to wrap, it should already be line-wrapped if appropriate.\n@param longestLine The length of the longest line in the message.\n@return The message, wrapped in a bubble.", "docstring_tokens": ["Draws", "a", "complete", "bubble", "around", "a", "line", "-", "wrapped", "message", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Bubble.java#L36-L52", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Message.java", "func_name": "Message.wrapMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Applies word wrapping to the message to handle long lines.\n@param message The raw input message.\n@return The message with long lines wrapped.", "docstring_tokens": ["Applies", "word", "wrapping", "to", "the", "message", "to", "handle", "long", "lines", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Message.java#L57-L71", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Message.java", "func_name": "Message.formatMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds the bubble around the message.\n@param message The plain message as provided by the user.\n@return The message, line-wrapped and bubble-wrapped.", "docstring_tokens": ["Builds", "the", "bubble", "around", "the", "message", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Message.java#L78-L91", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Message.java", "func_name": "Message.setWordwrap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the length of the wordwrap, default is \"40\", zero disables line-wrap.\n@param wordwrap A number indicating where (approximately) to line-wrap the message.", "docstring_tokens": ["Set", "the", "length", "of", "the", "wordwrap", "default", "is", "40", "zero", "disables", "line", "-", "wrap", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Message.java#L97-L106", "partition": "valid"} +{"repo": "ricksbrown/cowsay", "path": "src/main/java/com/github/ricksbrown/cowsay/Message.java", "func_name": "Message.getLongestLineLen", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "For a given multiline message determines the character count of the longest line.\n@param message The message after line-wrap has been applied but before any bubble wrapping.\n@return The count of characters in the longest line.", "docstring_tokens": ["For", "a", "given", "multiline", "message", "determines", "the", "character", "count", "of", "the", "longest", "line", "."], "sha": "a18e4185090835e971d97fa178191ffc2e794b3c", "url": "https://github.com/ricksbrown/cowsay/blob/a18e4185090835e971d97fa178191ffc2e794b3c/src/main/java/com/github/ricksbrown/cowsay/Message.java#L124-L132", "partition": "valid"} +{"repo": "loggly/loggly-client", "path": "loggly-client/src/main/java/com/github/tony19/loggly/LogglyClient.java", "func_name": "LogglyClient.log", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Posts a log message to Loggly\n@param message message to be logged\n@return {@code true} if successful; {@code false} otherwise", "docstring_tokens": ["Posts", "a", "log", "message", "to", "Loggly"], "sha": "44b26819589a8d18d3f46b3596cabe24f9a43d2a", "url": "https://github.com/loggly/loggly-client/blob/44b26819589a8d18d3f46b3596cabe24f9a43d2a/loggly-client/src/main/java/com/github/tony19/loggly/LogglyClient.java#L98-L109", "partition": "valid"} +{"repo": "loggly/loggly-client", "path": "loggly-client/src/main/java/com/github/tony19/loggly/LogglyClient.java", "func_name": "LogglyClient.log", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Posts a log message asynchronously to Loggly\n@param message message to be logged\n@param callback callback to be invoked on completion of the post", "docstring_tokens": ["Posts", "a", "log", "message", "asynchronously", "to", "Loggly"], "sha": "44b26819589a8d18d3f46b3596cabe24f9a43d2a", "url": "https://github.com/loggly/loggly-client/blob/44b26819589a8d18d3f46b3596cabe24f9a43d2a/loggly-client/src/main/java/com/github/tony19/loggly/LogglyClient.java#L116-L133", "partition": "valid"} +{"repo": "loggly/loggly-client", "path": "loggly-client/src/main/java/com/github/tony19/loggly/LogglyClient.java", "func_name": "LogglyClient.logBulk", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Posts several log messages in bulk to Loggly asynchronously\n@param messages messages to be logged\n@param callback callback to be invoked on completion of the post", "docstring_tokens": ["Posts", "several", "log", "messages", "in", "bulk", "to", "Loggly", "asynchronously"], "sha": "44b26819589a8d18d3f46b3596cabe24f9a43d2a", "url": "https://github.com/loggly/loggly-client/blob/44b26819589a8d18d3f46b3596cabe24f9a43d2a/loggly-client/src/main/java/com/github/tony19/loggly/LogglyClient.java#L171-L191", "partition": "valid"} +{"repo": "loggly/loggly-client", "path": "loggly-client/src/main/java/com/github/tony19/loggly/LogglyClient.java", "func_name": "LogglyClient.joinStrings", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Combines a collection of messages to be sent to Loggly.\nIn order to preserve event boundaries, the new lines in\neach message are replaced with '\\r', which get stripped\nby Loggly.\n@param messages messages to be combined\n@return a single string containing all the messages", "docstring_tokens": ["Combines", "a", "collection", "of", "messages", "to", "be", "sent", "to", "Loggly", ".", "In", "order", "to", "preserve", "event", "boundaries", "the", "new", "lines", "in", "each", "message", "are", "replaced", "with", "\\", "r", "which", "get", "stripped", "by", "Loggly", "."], "sha": "44b26819589a8d18d3f46b3596cabe24f9a43d2a", "url": "https://github.com/loggly/loggly-client/blob/44b26819589a8d18d3f46b3596cabe24f9a43d2a/loggly-client/src/main/java/com/github/tony19/loggly/LogglyClient.java#L201-L214", "partition": "valid"} +{"repo": "loggly/loggly-client", "path": "sample/LogglyClientDemo.java", "func_name": "LogglyClientDemo.main", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs a demo of the Loggly client\n\n@param args command-line arguments. The first and only argument\nshould be your Loggly customer token.\nhttp://loggly.com/docs/customer-token-authentication-token/", "docstring_tokens": ["Runs", "a", "demo", "of", "the", "Loggly", "client"], "sha": "44b26819589a8d18d3f46b3596cabe24f9a43d2a", "url": "https://github.com/loggly/loggly-client/blob/44b26819589a8d18d3f46b3596cabe24f9a43d2a/sample/LogglyClientDemo.java#L33-L84", "partition": "valid"} +{"repo": "aoindustries/ao-dbc", "path": "src/main/java/com/aoindustries/dbc/meta/Catalog.java", "func_name": "Catalog.getSchemas", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets all schemas for this catalog keyed by unique name.\n\n@see java.sql.DatabaseMetaData#getSchemas()", "docstring_tokens": ["Gets", "all", "schemas", "for", "this", "catalog", "keyed", "by", "unique", "name", "."], "sha": "0185471bdbcf6ef3c3557dc059e1981641fd30b6", "url": "https://github.com/aoindustries/ao-dbc/blob/0185471bdbcf6ef3c3557dc059e1981641fd30b6/src/main/java/com/aoindustries/dbc/meta/Catalog.java#L74-L103", "partition": "valid"} +{"repo": "aoindustries/ao-dbc", "path": "src/main/java/com/aoindustries/dbc/meta/Catalog.java", "func_name": "Catalog.getSchema", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the schema of the provided name.\n\n@throws NoRowException if the schema doesn't exist", "docstring_tokens": ["Gets", "the", "schema", "of", "the", "provided", "name", "."], "sha": "0185471bdbcf6ef3c3557dc059e1981641fd30b6", "url": "https://github.com/aoindustries/ao-dbc/blob/0185471bdbcf6ef3c3557dc059e1981641fd30b6/src/main/java/com/aoindustries/dbc/meta/Catalog.java#L110-L114", "partition": "valid"} +{"repo": "aoindustries/semanticcms-autogit-servlet", "path": "src/main/java/com/semanticcms/autogit/servlet/AutoGitContextListener.java", "func_name": "AutoGitContextListener.contextInitialized", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set to null when context shutdown", "docstring_tokens": ["Set", "to", "null", "when", "context", "shutdown"], "sha": "a3f5001fa4efee6d19af300330bf8218579c6948", "url": "https://github.com/aoindustries/semanticcms-autogit-servlet/blob/a3f5001fa4efee6d19af300330bf8218579c6948/src/main/java/com/semanticcms/autogit/servlet/AutoGitContextListener.java#L112-L167", "partition": "valid"} +{"repo": "aoindustries/semanticcms-autogit-servlet", "path": "src/main/java/com/semanticcms/autogit/servlet/AutoGitContextListener.java", "func_name": "AutoGitContextListener.resync", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resyncs the entire directory recursively, registering and canceling any\ndiscrepancies found.", "docstring_tokens": ["Resyncs", "the", "entire", "directory", "recursively", "registering", "and", "canceling", "any", "discrepancies", "found", "."], "sha": "a3f5001fa4efee6d19af300330bf8218579c6948", "url": "https://github.com/aoindustries/semanticcms-autogit-servlet/blob/a3f5001fa4efee6d19af300330bf8218579c6948/src/main/java/com/semanticcms/autogit/servlet/AutoGitContextListener.java#L189-L208", "partition": "valid"} +{"repo": "aoindustries/ao-dbc", "path": "src/main/java/com/aoindustries/dbc/meta/Schema.java", "func_name": "Schema.getTables", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets all tables for this schema keyed by unique name.\n\n@see java.sql.DatabaseMetaData#getTables()", "docstring_tokens": ["Gets", "all", "tables", "for", "this", "schema", "keyed", "by", "unique", "name", "."], "sha": "0185471bdbcf6ef3c3557dc059e1981641fd30b6", "url": "https://github.com/aoindustries/ao-dbc/blob/0185471bdbcf6ef3c3557dc059e1981641fd30b6/src/main/java/com/aoindustries/dbc/meta/Schema.java#L90-L104", "partition": "valid"} +{"repo": "aoindustries/ao-dbc", "path": "src/main/java/com/aoindustries/dbc/meta/Schema.java", "func_name": "Schema.getTable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the table of the provided name.\n\n@throws NoRowException if the table doesn't exist", "docstring_tokens": ["Gets", "the", "table", "of", "the", "provided", "name", "."], "sha": "0185471bdbcf6ef3c3557dc059e1981641fd30b6", "url": "https://github.com/aoindustries/ao-dbc/blob/0185471bdbcf6ef3c3557dc059e1981641fd30b6/src/main/java/com/aoindustries/dbc/meta/Schema.java#L111-L115", "partition": "valid"} +{"repo": "aoindustries/ao-io-buffer", "path": "src/main/java/com/aoindustries/io/buffer/TempFileResult.java", "func_name": "TempFileResult.writeToImpl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Implementation of writeTo\n\n@param out\n@param writeStart The absolute index to write from\n@param writeEnd The absolute index one past last character to write\n@throws IOException", "docstring_tokens": ["Implementation", "of", "writeTo"], "sha": "9c98fb8e92cab7cae854c336379938db3a53c8c7", "url": "https://github.com/aoindustries/ao-io-buffer/blob/9c98fb8e92cab7cae854c336379938db3a53c8c7/src/main/java/com/aoindustries/io/buffer/TempFileResult.java#L161-L196", "partition": "valid"} +{"repo": "aoindustries/ao-dbc", "path": "src/main/java/com/aoindustries/dbc/meta/DatabaseMetaData.java", "func_name": "DatabaseMetaData.getCatalogs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets all catalogs for this database keyed by unique name.\n\n@see java.sql.DatabaseMetaData#getCatalogs()", "docstring_tokens": ["Gets", "all", "catalogs", "for", "this", "database", "keyed", "by", "unique", "name", "."], "sha": "0185471bdbcf6ef3c3557dc059e1981641fd30b6", "url": "https://github.com/aoindustries/ao-dbc/blob/0185471bdbcf6ef3c3557dc059e1981641fd30b6/src/main/java/com/aoindustries/dbc/meta/DatabaseMetaData.java#L93-L107", "partition": "valid"} +{"repo": "aoindustries/ao-dbc", "path": "src/main/java/com/aoindustries/dbc/meta/DatabaseMetaData.java", "func_name": "DatabaseMetaData.getCatalog", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the catalog of the provided name.\n\n@throws NoRowException if the catalog doesn't exist", "docstring_tokens": ["Gets", "the", "catalog", "of", "the", "provided", "name", "."], "sha": "0185471bdbcf6ef3c3557dc059e1981641fd30b6", "url": "https://github.com/aoindustries/ao-dbc/blob/0185471bdbcf6ef3c3557dc059e1981641fd30b6/src/main/java/com/aoindustries/dbc/meta/DatabaseMetaData.java#L114-L118", "partition": "valid"} +{"repo": "aoindustries/ao-io-buffer", "path": "src/main/java/com/aoindustries/io/buffer/CharArrayBufferWriter.java", "func_name": "CharArrayBufferWriter.getBuffer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Grows as-needed to fit the provided new capacity.\n\n@returns the possibly new buffer.", "docstring_tokens": ["Grows", "as", "-", "needed", "to", "fit", "the", "provided", "new", "capacity", "."], "sha": "9c98fb8e92cab7cae854c336379938db3a53c8c7", "url": "https://github.com/aoindustries/ao-io-buffer/blob/9c98fb8e92cab7cae854c336379938db3a53c8c7/src/main/java/com/aoindustries/io/buffer/CharArrayBufferWriter.java#L88-L112", "partition": "valid"} +{"repo": "aoindustries/ao-io-buffer", "path": "src/main/java/com/aoindustries/io/buffer/LoggingResult.java", "func_name": "LoggingResult.log", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Provides detailed logging for a media encoder.", "docstring_tokens": ["Provides", "detailed", "logging", "for", "a", "media", "encoder", "."], "sha": "9c98fb8e92cab7cae854c336379938db3a53c8c7", "url": "https://github.com/aoindustries/ao-io-buffer/blob/9c98fb8e92cab7cae854c336379938db3a53c8c7/src/main/java/com/aoindustries/io/buffer/LoggingResult.java#L61-L76", "partition": "valid"} +{"repo": "aoindustries/ao-io-buffer", "path": "src/main/java/com/aoindustries/io/buffer/LoggingResult.java", "func_name": "LoggingResult.log", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Provides detailed logging for a writer.", "docstring_tokens": ["Provides", "detailed", "logging", "for", "a", "writer", "."], "sha": "9c98fb8e92cab7cae854c336379938db3a53c8c7", "url": "https://github.com/aoindustries/ao-io-buffer/blob/9c98fb8e92cab7cae854c336379938db3a53c8c7/src/main/java/com/aoindustries/io/buffer/LoggingResult.java#L81-L102", "partition": "valid"} +{"repo": "io7m/jlexing", "path": "com.io7m.jlexing.core/src/main/java/com/io7m/jlexing/core/LexicalPositions.java", "func_name": "LexicalPositions.zeroWithFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Construct a lexical position at line 0, column 0, with the given file.\n\n@param file The type name\n@param The type of file names\n\n@return A lexical position", "docstring_tokens": ["Construct", "a", "lexical", "position", "at", "line", "0", "column", "0", "with", "the", "given", "file", "."], "sha": "0f3d8d21478bf32bcefbdb6879c699f5a7cc9bfd", "url": "https://github.com/io7m/jlexing/blob/0f3d8d21478bf32bcefbdb6879c699f5a7cc9bfd/com.io7m.jlexing.core/src/main/java/com/io7m/jlexing/core/LexicalPositions.java#L58-L62", "partition": "valid"} +{"repo": "aoindustries/ao-io-buffer", "path": "src/main/java/com/aoindustries/io/buffer/SegmentedResult.java", "func_name": "SegmentedResult.append", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Appends the given range of a segment. to the buffer.", "docstring_tokens": ["Appends", "the", "given", "range", "of", "a", "segment", ".", "to", "the", "buffer", "."], "sha": "9c98fb8e92cab7cae854c336379938db3a53c8c7", "url": "https://github.com/aoindustries/ao-io-buffer/blob/9c98fb8e92cab7cae854c336379938db3a53c8c7/src/main/java/com/aoindustries/io/buffer/SegmentedResult.java#L167-L199", "partition": "valid"} +{"repo": "aoindustries/ao-io-buffer", "path": "src/main/java/com/aoindustries/io/buffer/SegmentedResult.java", "func_name": "SegmentedResult.writeSegment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the given range of a segment to the given writer using the given encoder.", "docstring_tokens": ["Writes", "the", "given", "range", "of", "a", "segment", "to", "the", "given", "writer", "using", "the", "given", "encoder", "."], "sha": "9c98fb8e92cab7cae854c336379938db3a53c8c7", "url": "https://github.com/aoindustries/ao-io-buffer/blob/9c98fb8e92cab7cae854c336379938db3a53c8c7/src/main/java/com/aoindustries/io/buffer/SegmentedResult.java#L242-L275", "partition": "valid"} +{"repo": "aoindustries/ao-io-buffer", "path": "src/main/java/com/aoindustries/io/buffer/SegmentedResult.java", "func_name": "SegmentedResult.charAt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the character at the given index in a segment.\nThis is the absolute index, the offset is not added-in.", "docstring_tokens": ["Gets", "the", "character", "at", "the", "given", "index", "in", "a", "segment", ".", "This", "is", "the", "absolute", "index", "the", "offset", "is", "not", "added", "-", "in", "."], "sha": "9c98fb8e92cab7cae854c336379938db3a53c8c7", "url": "https://github.com/aoindustries/ao-io-buffer/blob/9c98fb8e92cab7cae854c336379938db3a53c8c7/src/main/java/com/aoindustries/io/buffer/SegmentedResult.java#L355-L374", "partition": "valid"} +{"repo": "aoindustries/ao-dbc", "path": "src/main/java/com/aoindustries/dbc/Database.java", "func_name": "Database.getSqlDataTypes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads the custom types when first needed and caches the results.", "docstring_tokens": ["Loads", "the", "custom", "types", "when", "first", "needed", "and", "caches", "the", "results", "."], "sha": "0185471bdbcf6ef3c3557dc059e1981641fd30b6", "url": "https://github.com/aoindustries/ao-dbc/blob/0185471bdbcf6ef3c3557dc059e1981641fd30b6/src/main/java/com/aoindustries/dbc/Database.java#L106-L118", "partition": "valid"} +{"repo": "aoindustries/ao-dbc", "path": "src/main/java/com/aoindustries/dbc/meta/Table.java", "func_name": "Table.getColumnMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets all columns for this schema keyed by unique name.\n\n@see java.sql.DatabaseMetaData#getColumns(java.lang.String, java.lang.String, java.lang.String, java.lang.String)", "docstring_tokens": ["Gets", "all", "columns", "for", "this", "schema", "keyed", "by", "unique", "name", "."], "sha": "0185471bdbcf6ef3c3557dc059e1981641fd30b6", "url": "https://github.com/aoindustries/ao-dbc/blob/0185471bdbcf6ef3c3557dc059e1981641fd30b6/src/main/java/com/aoindustries/dbc/meta/Table.java#L109-L136", "partition": "valid"} +{"repo": "aoindustries/ao-dbc", "path": "src/main/java/com/aoindustries/dbc/meta/Table.java", "func_name": "Table.getColumn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the column of the provided name.\n\n@throws NoRowException if the column doesn't exist", "docstring_tokens": ["Gets", "the", "column", "of", "the", "provided", "name", "."], "sha": "0185471bdbcf6ef3c3557dc059e1981641fd30b6", "url": "https://github.com/aoindustries/ao-dbc/blob/0185471bdbcf6ef3c3557dc059e1981641fd30b6/src/main/java/com/aoindustries/dbc/meta/Table.java#L143-L147", "partition": "valid"} +{"repo": "aoindustries/ao-dbc", "path": "src/main/java/com/aoindustries/dbc/meta/Table.java", "func_name": "Table.getColumns", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets all columns for this schema in their ordinal position order.\nColumn with ordinal position one is at index zero.\n\n@see #getColumnMap()", "docstring_tokens": ["Gets", "all", "columns", "for", "this", "schema", "in", "their", "ordinal", "position", "order", ".", "Column", "with", "ordinal", "position", "one", "is", "at", "index", "zero", "."], "sha": "0185471bdbcf6ef3c3557dc059e1981641fd30b6", "url": "https://github.com/aoindustries/ao-dbc/blob/0185471bdbcf6ef3c3557dc059e1981641fd30b6/src/main/java/com/aoindustries/dbc/meta/Table.java#L159-L176", "partition": "valid"} +{"repo": "aoindustries/ao-dbc", "path": "src/main/java/com/aoindustries/dbc/meta/Table.java", "func_name": "Table.getColumn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the column of the provided ordinal position, where positions start at one.\n\n@throws NoRowException if the column doesn't exist", "docstring_tokens": ["Gets", "the", "column", "of", "the", "provided", "ordinal", "position", "where", "positions", "start", "at", "one", "."], "sha": "0185471bdbcf6ef3c3557dc059e1981641fd30b6", "url": "https://github.com/aoindustries/ao-dbc/blob/0185471bdbcf6ef3c3557dc059e1981641fd30b6/src/main/java/com/aoindustries/dbc/meta/Table.java#L183-L189", "partition": "valid"} +{"repo": "aoindustries/ao-dbc", "path": "src/main/java/com/aoindustries/dbc/meta/Table.java", "func_name": "Table.getImportedTables", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the set of tables that this table depends on.\n\nThis is based on getImportedKeys", "docstring_tokens": ["Gets", "the", "set", "of", "tables", "that", "this", "table", "depends", "on", "."], "sha": "0185471bdbcf6ef3c3557dc059e1981641fd30b6", "url": "https://github.com/aoindustries/ao-dbc/blob/0185471bdbcf6ef3c3557dc059e1981641fd30b6/src/main/java/com/aoindustries/dbc/meta/Table.java#L241-L262", "partition": "valid"} +{"repo": "aoindustries/ao-dbc", "path": "src/main/java/com/aoindustries/dbc/meta/Table.java", "func_name": "Table.getExportedTables", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the set of tables that depend on this table.\n\nThis is based on getExportedKeys", "docstring_tokens": ["Gets", "the", "set", "of", "tables", "that", "depend", "on", "this", "table", "."], "sha": "0185471bdbcf6ef3c3557dc059e1981641fd30b6", "url": "https://github.com/aoindustries/ao-dbc/blob/0185471bdbcf6ef3c3557dc059e1981641fd30b6/src/main/java/com/aoindustries/dbc/meta/Table.java#L273-L294", "partition": "valid"} +{"repo": "aoindustries/ao-io-buffer", "path": "src/main/java/com/aoindustries/io/buffer/SegmentedWriter.java", "func_name": "SegmentedWriter.addSegment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a new segment.", "docstring_tokens": ["Adds", "a", "new", "segment", "."], "sha": "9c98fb8e92cab7cae854c336379938db3a53c8c7", "url": "https://github.com/aoindustries/ao-io-buffer/blob/9c98fb8e92cab7cae854c336379938db3a53c8c7/src/main/java/com/aoindustries/io/buffer/SegmentedWriter.java#L130-L162", "partition": "valid"} +{"repo": "aoindustries/ao-io-buffer", "path": "src/main/java/com/aoindustries/io/buffer/LoggingWriter.java", "func_name": "LoggingWriter.log", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes a character, unicode escaping as needed.", "docstring_tokens": ["Writes", "a", "character", "unicode", "escaping", "as", "needed", "."], "sha": "9c98fb8e92cab7cae854c336379938db3a53c8c7", "url": "https://github.com/aoindustries/ao-io-buffer/blob/9c98fb8e92cab7cae854c336379938db3a53c8c7/src/main/java/com/aoindustries/io/buffer/LoggingWriter.java#L63-L83", "partition": "valid"} +{"repo": "aoindustries/ao-io-buffer", "path": "src/main/java/com/aoindustries/io/buffer/LoggingWriter.java", "func_name": "LoggingWriter.log", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes a String, unicode escaping as needed.", "docstring_tokens": ["Writes", "a", "String", "unicode", "escaping", "as", "needed", "."], "sha": "9c98fb8e92cab7cae854c336379938db3a53c8c7", "url": "https://github.com/aoindustries/ao-io-buffer/blob/9c98fb8e92cab7cae854c336379938db3a53c8c7/src/main/java/com/aoindustries/io/buffer/LoggingWriter.java#L88-L113", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/content/Values.java", "func_name": "Values.putAll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Put all of the values into the existing set.\n\n@param values length must be a multiple of two: {@code String key, Object value, ...}\n@throws IllegalArgumentException if a value type is not supported", "docstring_tokens": ["Put", "all", "of", "the", "values", "into", "the", "existing", "set", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/content/Values.java#L72-L103", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/gms/maps/GoogleMaps.java", "func_name": "GoogleMaps.moveCameraToLastLocation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Move and zoom to the most recently reported location.\n\n@see CameraUpdateFactory#newLatLngZoom(LatLng, float)", "docstring_tokens": ["Move", "and", "zoom", "to", "the", "most", "recently", "reported", "location", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/gms/maps/GoogleMaps.java#L63-L66", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/gms/maps/GoogleMaps.java", "func_name": "GoogleMaps.animateCameraToIncludePosition", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the position is not visible on the map, animate the camera to include it, after the delay.", "docstring_tokens": ["If", "the", "position", "is", "not", "visible", "on", "the", "map", "animate", "the", "camera", "to", "include", "it", "after", "the", "delay", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/gms/maps/GoogleMaps.java#L78-L87", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/view/Reveals.java", "func_name": "Reveals.circleToRect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get an Animator that reveals the rectangular View from the circular View.\n\n@param circle to start reveal from\n@param rect to reveal, probably should already be {@link View#INVISIBLE invisible}", "docstring_tokens": ["Get", "an", "Animator", "that", "reveals", "the", "rectangular", "View", "from", "the", "circular", "View", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/view/Reveals.java#L40-L42", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/view/Reveals.java", "func_name": "Reveals.circleFromRect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get an Animator that \"unreveals\" the rectangular View to the circular View.\n\n@param circle to end \"unreveal\" at\n@param rect to \"unreveal\", will be {@link View#INVISIBLE invisible} when the animation\nends", "docstring_tokens": ["Get", "an", "Animator", "that", "unreveals", "the", "rectangular", "View", "to", "the", "circular", "View", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/view/Reveals.java#L51-L53", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/transition/Transitions.java", "func_name": "Transitions.arcMotion", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a cached arc motion transition.", "docstring_tokens": ["Get", "a", "cached", "arc", "motion", "transition", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/transition/Transitions.java#L70-L76", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/text/style/Spans.java", "func_name": "Spans.bold", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a cached bold span.\n\n@param i starts at zero\n@since 2.6.0", "docstring_tokens": ["Get", "a", "cached", "bold", "span", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/text/style/Spans.java#L86-L98", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/view/Animators.java", "func_name": "Animators.scaleIn", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Scale in the View to full size.\n\n@since 4.0.0", "docstring_tokens": ["Scale", "in", "the", "View", "to", "full", "size", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/view/Animators.java#L51-L53", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/view/Animators.java", "func_name": "Animators.scaleOut", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Scale out the View to zero size.\n\n@since 4.0.0", "docstring_tokens": ["Scale", "out", "the", "View", "to", "zero", "size", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/view/Animators.java#L60-L62", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/view/Animators.java", "func_name": "Animators.scaleShowNext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Scale out the ViewSwitcher, show the next View, scale it back in, and run the action.\n\n@since 4.0.0", "docstring_tokens": ["Scale", "out", "the", "ViewSwitcher", "show", "the", "next", "View", "scale", "it", "back", "in", "and", "run", "the", "action", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/view/Animators.java#L113-L115", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/content/Content.java", "func_name": "Content.getCount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the number of rows at the URI.\n\n@return {@link Integer#MIN_VALUE} if the URI could not be queried\n@since 2.3.0", "docstring_tokens": ["Get", "the", "number", "of", "rows", "at", "the", "URI", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/content/Content.java#L87-L90", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/location/Addresses.java", "func_name": "Addresses.concatAddressLines", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a single line address which uses the delimiter between the original lines.", "docstring_tokens": ["Get", "a", "single", "line", "address", "which", "uses", "the", "delimiter", "between", "the", "original", "lines", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/location/Addresses.java#L41-L50", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/gms/common/api/GoogleApiClients.java", "func_name": "GoogleApiClients.connect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Register the listeners and then connect the client.", "docstring_tokens": ["Register", "the", "listeners", "and", "then", "connect", "the", "client", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/gms/common/api/GoogleApiClients.java#L37-L43", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/app/Fragments.java", "func_name": "Fragments.transit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Begin a transaction that uses the transition.\n\n@return null if the FragmentManager is null", "docstring_tokens": ["Begin", "a", "transaction", "that", "uses", "the", "transition", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/app/Fragments.java#L133-L136", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/text/style/MutableForegroundColorSpan.java", "func_name": "MutableForegroundColorSpan.getForegroundColor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the result of applying the alpha to the color.", "docstring_tokens": ["Get", "the", "result", "of", "applying", "the", "alpha", "to", "the", "color", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/text/style/MutableForegroundColorSpan.java#L78-L81", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/view/Views.java", "func_name": "Views.setOnClickListeners", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the listener on all of the Views.\n\n@since 4.0.0", "docstring_tokens": ["Set", "the", "listener", "on", "all", "of", "the", "Views", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/view/Views.java#L181-L185", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/util/Log.java", "func_name": "Log.getLevelName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the name of the level.\n\n@param level one of the Android {@link android.util.Log Log} constants", "docstring_tokens": ["Get", "the", "name", "of", "the", "level", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/util/Log.java#L137-L154", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/app/MoreActivityOptions.java", "func_name": "MoreActivityOptions.makeScaleUpAnimation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Scale the new Activity from the View to its full size.\n\n@see ActivityOptions#makeScaleUpAnimation(View, int, int, int, int)", "docstring_tokens": ["Scale", "the", "new", "Activity", "from", "the", "View", "to", "its", "full", "size", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/app/MoreActivityOptions.java#L37-L40", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/view/inputmethod/InputMethods.java", "func_name": "InputMethods.show", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Show the current input method for the focused View which can receive input.", "docstring_tokens": ["Show", "the", "current", "input", "method", "for", "the", "focused", "View", "which", "can", "receive", "input", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/view/inputmethod/InputMethods.java#L34-L37", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/view/inputmethod/InputMethods.java", "func_name": "InputMethods.hide", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Hide the input method for the View's window.", "docstring_tokens": ["Hide", "the", "input", "method", "for", "the", "View", "s", "window", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/view/inputmethod/InputMethods.java#L42-L44", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/database/Cursors.java", "func_name": "Cursors.hasPosition", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "True if the cursor has a row at the position.\n\n@since 4.0.0", "docstring_tokens": ["True", "if", "the", "cursor", "has", "a", "row", "at", "the", "position", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/database/Cursors.java#L48-L50", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/database/Cursors.java", "func_name": "Cursors.count", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the number of rows in the cursor.\n\n@param close true to close the cursor or false to leave it open", "docstring_tokens": ["Get", "the", "number", "of", "rows", "in", "the", "cursor", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/database/Cursors.java#L64-L68", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/database/Cursors.java", "func_name": "Cursors.firstInt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the int value in the first row and column.\n\n@param close true to close the cursor or false to leave it open\n@return {@link Integer#MIN_VALUE} if the cursor is empty\n@since 2.5.0", "docstring_tokens": ["Get", "the", "int", "value", "in", "the", "first", "row", "and", "column", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/database/Cursors.java#L87-L91", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/database/Cursors.java", "func_name": "Cursors.firstLong", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the long value in the first row and column.\n\n@param close true to close the cursor or false to leave it open\n@return {@link Long#MIN_VALUE} if the cursor is empty", "docstring_tokens": ["Get", "the", "long", "value", "in", "the", "first", "row", "and", "column", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/database/Cursors.java#L108-L112", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/database/Cursors.java", "func_name": "Cursors.firstString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the String value in the first row and column.\n\n@param close true to close the cursor or false to leave it open\n@return null if the cursor is empty", "docstring_tokens": ["Get", "the", "String", "value", "in", "the", "first", "row", "and", "column", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/database/Cursors.java#L130-L135", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/database/Cursors.java", "func_name": "Cursors.allInts", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get all int values in the first column.\n\n@param close true to close the cursor or false to leave it open\n@since 2.5.0", "docstring_tokens": ["Get", "all", "int", "values", "in", "the", "first", "column", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/database/Cursors.java#L152-L162", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/database/Cursors.java", "func_name": "Cursors.allLongs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get all long values in the first column.\n\n@param close true to close the cursor or false to leave it open", "docstring_tokens": ["Get", "all", "long", "values", "in", "the", "first", "column", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/database/Cursors.java#L176-L186", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/database/Cursors.java", "func_name": "Cursors.allStrings", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get all String values in the first column.\n\n@param close true to close the cursor or false to leave it open", "docstring_tokens": ["Get", "all", "String", "values", "in", "the", "first", "column", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/database/Cursors.java#L200-L210", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/databinding/BindingAdapters.java", "func_name": "BindingAdapters.load", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set a placeholder before loading an image, optionally resizing and transforming it. All\nattributes are optional.\n\n@param transform can be \"circle\"", "docstring_tokens": ["Set", "a", "placeholder", "before", "loading", "an", "image", "optionally", "resizing", "and", "transforming", "it", ".", "All", "attributes", "are", "optional", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/databinding/BindingAdapters.java#L120-L132", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/widget/LayoutManagers.java", "func_name": "LayoutManagers.getOrientation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the orientation of the RecyclerView's LayoutManager.\n\n@return -1 if the RecyclerView doesn't have a LayoutManager\n@see RecyclerView#VERTICAL\n@see RecyclerView#HORIZONTAL", "docstring_tokens": ["Get", "the", "orientation", "of", "the", "RecyclerView", "s", "LayoutManager", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/widget/LayoutManagers.java#L44-L52", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/widget/LayoutManagers.java", "func_name": "LayoutManagers.getSpanCount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the number of spans laid out by the RecyclerView's LayoutManager.\n\n@return 0 if the RecyclerView doesn't have a LayoutManager", "docstring_tokens": ["Get", "the", "number", "of", "spans", "laid", "out", "by", "the", "RecyclerView", "s", "LayoutManager", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/widget/LayoutManagers.java#L59-L70", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/widget/Layouts.java", "func_name": "Layouts.addRule", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the rule to the View's RelativeLayout params and request a layout of the View.", "docstring_tokens": ["Add", "the", "rule", "to", "the", "View", "s", "RelativeLayout", "params", "and", "request", "a", "layout", "of", "the", "View", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/widget/Layouts.java#L43-L48", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/database/ReadCursor.java", "func_name": "ReadCursor.wasRead", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "True if this method has been previously called for the current row. False if the cursor is\nbefore the first row or after the last row.", "docstring_tokens": ["True", "if", "this", "method", "has", "been", "previously", "called", "for", "the", "current", "row", ".", "False", "if", "the", "cursor", "is", "before", "the", "first", "row", "or", "after", "the", "last", "row", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/database/ReadCursor.java#L44-L54", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/os/Loopers.java", "func_name": "Loopers.mineOrMain", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get this thread's Looper, if it's a Looper thread. Otherwise get the main thread Looper.", "docstring_tokens": ["Get", "this", "thread", "s", "Looper", "if", "it", "s", "a", "Looper", "thread", ".", "Otherwise", "get", "the", "main", "thread", "Looper", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/os/Loopers.java#L34-L37", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/util/SparseArrays.java", "func_name": "SparseArrays.values", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the values of the SparseArray.", "docstring_tokens": ["Get", "the", "values", "of", "the", "SparseArray", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/util/SparseArrays.java#L48-L51", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/util/SparseArrays.java", "func_name": "SparseArrays.values", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the values of the LongSparseArray.", "docstring_tokens": ["Get", "the", "values", "of", "the", "LongSparseArray", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/util/SparseArrays.java#L157-L160", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/view/TranslateImagePageChangeListener.java", "func_name": "TranslateImagePageChangeListener.checkAdapter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if the pager has a new adapter and switch to it if it does.", "docstring_tokens": ["Check", "if", "the", "pager", "has", "a", "new", "adapter", "and", "switch", "to", "it", "if", "it", "does", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/view/TranslateImagePageChangeListener.java#L102-L114", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/view/TranslateImagePageChangeListener.java", "func_name": "TranslateImagePageChangeListener.checkDrawable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if the ImageView has a new Drawable and calculate the new scaling if it does.", "docstring_tokens": ["Check", "if", "the", "ImageView", "has", "a", "new", "Drawable", "and", "calculate", "the", "new", "scaling", "if", "it", "does", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/view/TranslateImagePageChangeListener.java#L119-L143", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/view/TranslateImagePageChangeListener.java", "func_name": "TranslateImagePageChangeListener.updateMatrix", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Scale the image and translate it according to the pager position and offset.", "docstring_tokens": ["Scale", "the", "image", "and", "translate", "it", "according", "to", "the", "pager", "position", "and", "offset", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/view/TranslateImagePageChangeListener.java#L148-L163", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/content/SQLiteContentProvider.java", "func_name": "SQLiteContentProvider.updDel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Update or delete records and get the number of rows affected.", "docstring_tokens": ["Update", "or", "delete", "records", "and", "get", "the", "number", "of", "rows", "affected", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/content/SQLiteContentProvider.java#L107-L122", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/content/SQLiteContentProvider.java", "func_name": "SQLiteContentProvider.elements", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the updated SQL elements for the URI and, when not inserting, a cursor with the query\nresults.", "docstring_tokens": ["Get", "the", "updated", "SQL", "elements", "for", "the", "URI", "and", "when", "not", "inserting", "a", "cursor", "with", "the", "query", "results", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/content/SQLiteContentProvider.java#L152-L205", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/graphics/Bitmaps.java", "func_name": "Bitmaps.getByteCount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the number of bytes that would be used to store a bitmap with the size, in pixels, and\nstorage config.", "docstring_tokens": ["Get", "the", "number", "of", "bytes", "that", "would", "be", "used", "to", "store", "a", "bitmap", "with", "the", "size", "in", "pixels", "and", "storage", "config", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/graphics/Bitmaps.java#L45-L62", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/graphics/Bitmaps.java", "func_name": "Bitmaps.mutable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the bitmap is immutable, get a mutable copy of it. After a copy is created, the source\nbitmap will be recycled. If the bitmap is already mutable, it will be returned.\n\n@return null if a copy could not be made", "docstring_tokens": ["If", "the", "bitmap", "is", "immutable", "get", "a", "mutable", "copy", "of", "it", ".", "After", "a", "copy", "is", "created", "the", "source", "bitmap", "will", "be", "recycled", ".", "If", "the", "bitmap", "is", "already", "mutable", "it", "will", "be", "returned", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/graphics/Bitmaps.java#L70-L81", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/content/Intents.java", "func_name": "Intents.hasActivity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "True if the Intent can be resolved to an Activity.", "docstring_tokens": ["True", "if", "the", "Intent", "can", "be", "resolved", "to", "an", "Activity", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/content/Intents.java#L49-L51", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/content/Intents.java", "func_name": "Intents.mailto", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get an Activity Intent that launches an email app with the headers. Any null or empty\nparameters are skipped. The subject and body will be encoded.\n\n@since 4.0.0", "docstring_tokens": ["Get", "an", "Activity", "Intent", "that", "launches", "an", "email", "app", "with", "the", "headers", ".", "Any", "null", "or", "empty", "parameters", "are", "skipped", ".", "The", "subject", "and", "body", "will", "be", "encoded", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/content/Intents.java#L68-L71", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/app/ui/PanesActivity.java", "func_name": "PanesActivity.setDefaultContentView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Use the default layout for the panes.", "docstring_tokens": ["Use", "the", "default", "layout", "for", "the", "panes", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/app/ui/PanesActivity.java#L63-L65", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/app/ui/PanesActivity.java", "func_name": "PanesActivity.findFragmentByPane", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the fragment that is displayed in the pane.\n\n@return null if a fragment hasn't been added to the pane yet", "docstring_tokens": ["Get", "the", "fragment", "that", "is", "displayed", "in", "the", "pane", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/app/ui/PanesActivity.java#L131-L136", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/os/Bundles.java", "func_name": "Bundles.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a Bundle of the keys and values.", "docstring_tokens": ["Get", "a", "Bundle", "of", "the", "keys", "and", "values", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/os/Bundles.java#L43-L48", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/app/ContentService.java", "func_name": "ContentService.newIntent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get an Intent to insert or update rows of the content.\n\n@param action must be {@link Intent#ACTION_INSERT ACTION_INSERT} or\n{@link Intent#ACTION_EDIT ACTION_EDIT}\n@since 4.0.0", "docstring_tokens": ["Get", "an", "Intent", "to", "insert", "or", "update", "rows", "of", "the", "content", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/app/ContentService.java#L79-L81", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/app/ContentService.java", "func_name": "ContentService.newUpdateIntent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get an Intent to update the selected rows of the content.\n\n@since 4.0.0", "docstring_tokens": ["Get", "an", "Intent", "to", "update", "the", "selected", "rows", "of", "the", "content", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/app/ContentService.java#L88-L91", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/app/ContentService.java", "func_name": "ContentService.newDeleteIntent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get an Intent to delete rows of the content.\n\n@since 4.0.0", "docstring_tokens": ["Get", "an", "Intent", "to", "delete", "rows", "of", "the", "content", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/app/ContentService.java#L98-L100", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/app/ContentService.java", "func_name": "ContentService.newDeleteIntent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get an Intent to delete the selected rows of the content.\n\n@since 4.0.0", "docstring_tokens": ["Get", "an", "Intent", "to", "delete", "the", "selected", "rows", "of", "the", "content", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/app/ContentService.java#L107-L110", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/content/res/Themes.java", "func_name": "Themes.getActionBarSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the ActionBar height in the Context's theme.", "docstring_tokens": ["Get", "the", "ActionBar", "height", "in", "the", "Context", "s", "theme", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/content/res/Themes.java#L81-L86", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/content/res/Themes.java", "func_name": "Themes.getActionBarBackground", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the ActionBar background in the Context's theme.\n\n@return null if a background is not defined", "docstring_tokens": ["Get", "the", "ActionBar", "background", "in", "the", "Context", "s", "theme", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/content/res/Themes.java#L93-L107", "partition": "valid"} +{"repo": "pushbit/sprockets-android", "path": "sprockets/src/main/java/net/sf/sprockets/net/Network.java", "func_name": "Network.isConnected", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "True if a data network is connected.", "docstring_tokens": ["True", "if", "a", "data", "network", "is", "connected", "."], "sha": "b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882", "url": "https://github.com/pushbit/sprockets-android/blob/b667fb56bc9cfc9d7587ddcdb3b6bf7d79726882/sprockets/src/main/java/net/sf/sprockets/net/Network.java#L35-L38", "partition": "valid"} +{"repo": "sksamuel/google-diff-match-patch", "path": "src/main/java/com/sksamuel/diffpatch/DiffMatchPatch.java", "func_name": "DiffMatchPatch.diff_cleanupEfficiency", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reduce the number of edits by eliminating operationally trivial equalities.\n@param diffs LinkedList of Diff objects.", "docstring_tokens": ["Reduce", "the", "number", "of", "edits", "by", "eliminating", "operationally", "trivial", "equalities", "."], "sha": "50e819ead94a8e153c2830a47927c064d12df201", "url": "https://github.com/sksamuel/google-diff-match-patch/blob/50e819ead94a8e153c2830a47927c064d12df201/src/main/java/com/sksamuel/diffpatch/DiffMatchPatch.java#L1036-L1137", "partition": "valid"} +{"repo": "sksamuel/google-diff-match-patch", "path": "src/main/java/com/sksamuel/diffpatch/DiffMatchPatch.java", "func_name": "DiffMatchPatch.patch_make", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Compute a list of patches to turn text1 into text2.\ntext2 is not provided, diffs are the delta between text1 and text2.\n@param text1 Old text.\n@param diffs Array of Diff objects for text1 to text2.\n@return LinkedList of Patch objects.", "docstring_tokens": ["Compute", "a", "list", "of", "patches", "to", "turn", "text1", "into", "text2", ".", "text2", "is", "not", "provided", "diffs", "are", "the", "delta", "between", "text1", "and", "text2", "."], "sha": "50e819ead94a8e153c2830a47927c064d12df201", "url": "https://github.com/sksamuel/google-diff-match-patch/blob/50e819ead94a8e153c2830a47927c064d12df201/src/main/java/com/sksamuel/diffpatch/DiffMatchPatch.java#L1811-L1889", "partition": "valid"} +{"repo": "pnerg/java-scala-util", "path": "src/main/java/javascalautils/Some.java", "func_name": "Some.flatMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an Option consisting of the result of applying the given function to the current value.\n\n@since 1.2", "docstring_tokens": ["Returns", "an", "Option", "consisting", "of", "the", "result", "of", "applying", "the", "given", "function", "to", "the", "current", "value", "."], "sha": "7823aa9ab3fb5091c233b3605c53050de37db61d", "url": "https://github.com/pnerg/java-scala-util/blob/7823aa9ab3fb5091c233b3605c53050de37db61d/src/main/java/javascalautils/Some.java#L105-L113", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "contextprovider/jaxws/src/main/java/io/tracee/contextlogger/contextprovider/jaxws/AbstractTraceeErrorLoggingHandler.java", "func_name": "AbstractTraceeErrorLoggingHandler.convertSoapMessageAsString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts a SOAPMessage instance to string representation.", "docstring_tokens": ["Converts", "a", "SOAPMessage", "instance", "to", "string", "representation", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/contextprovider/jaxws/src/main/java/io/tracee/contextlogger/contextprovider/jaxws/AbstractTraceeErrorLoggingHandler.java#L75-L87", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "contextprovider/annotationprocessor/src/main/java/io/tracee/contextlogger/contextprovider/api/TraceeContextLoggerAbstractProcessor.java", "func_name": "TraceeContextLoggerAbstractProcessor.getOrCreateProfileProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Central method to get cached FileObjectWrapper. Creates new FileObjectWrapper if it can't be found", "docstring_tokens": ["Central", "method", "to", "get", "cached", "FileObjectWrapper", ".", "Creates", "new", "FileObjectWrapper", "if", "it", "can", "t", "be", "found"], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/contextprovider/annotationprocessor/src/main/java/io/tracee/contextlogger/contextprovider/api/TraceeContextLoggerAbstractProcessor.java#L77-L89", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "contextprovider/annotationprocessor/src/main/java/io/tracee/contextlogger/contextprovider/api/TraceeContextLoggerAbstractMethodAnnotationProcessor.java", "func_name": "TraceeContextLoggerAbstractMethodAnnotationProcessor.isValidMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if passed element is a method declared as public, not abstract and not static\n\n@param element the element to check\n@return true if passed element is public, not abstract and not static method", "docstring_tokens": ["Checks", "if", "passed", "element", "is", "a", "method", "declared", "as", "public", "not", "abstract", "and", "not", "static"], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/contextprovider/annotationprocessor/src/main/java/io/tracee/contextlogger/contextprovider/api/TraceeContextLoggerAbstractMethodAnnotationProcessor.java#L24-L55", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "contextprovider/annotationprocessor/src/main/java/io/tracee/contextlogger/contextprovider/api/TraceeContextLoggerAbstractMethodAnnotationProcessor.java", "func_name": "TraceeContextLoggerAbstractMethodAnnotationProcessor.isGetterMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if passed element has a non void return type and takes no parameters\n\n@param executableElement\n@return true if passed element has a non void return type and takes no parameters", "docstring_tokens": ["Checks", "if", "passed", "element", "has", "a", "non", "void", "return", "type", "and", "takes", "no", "parameters"], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/contextprovider/annotationprocessor/src/main/java/io/tracee/contextlogger/contextprovider/api/TraceeContextLoggerAbstractMethodAnnotationProcessor.java#L64-L82", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/profile/ProfileSettings.java", "func_name": "ProfileSettings.getPropertyValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether the property for the passed key is enabled or not.\n\n@param propertyKey the property key to check\n@return true, if the property is enabled in profile or manual overrides and not disabled in manual overrides, otherwise false", "docstring_tokens": ["Checks", "whether", "the", "property", "for", "the", "passed", "key", "is", "enabled", "or", "not", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/profile/ProfileSettings.java#L50-L74", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "contextprovider/annotationprocessor/src/main/java/io/tracee/contextlogger/contextprovider/api/TraceeContextLoggerAbstractTypeAnnotationProcessor.java", "func_name": "TraceeContextLoggerAbstractTypeAnnotationProcessor.checkIfClassHasNoargsConstructor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if class has noargs constructor or default noargs constructor.\n\n@param typeElement the type element to check.\n@return true if element has noarg constructor or no constructor at all", "docstring_tokens": ["Checks", "if", "class", "has", "noargs", "constructor", "or", "default", "noargs", "constructor", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/contextprovider/annotationprocessor/src/main/java/io/tracee/contextlogger/contextprovider/api/TraceeContextLoggerAbstractTypeAnnotationProcessor.java#L52-L70", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/utility/TraceeContextLogAnnotationUtilities.java", "func_name": "TraceeContextLogAnnotationUtilities.getAnnotationFromType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets an annotation of passed instance.\n\n@param instance he instance to get the annotation from\n@param the annotations class to get\n@return the annotation if present, otherwise null", "docstring_tokens": ["Gets", "an", "annotation", "of", "passed", "instance", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/utility/TraceeContextLogAnnotationUtilities.java#L42-L47", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/utility/TraceeContextLogAnnotationUtilities.java", "func_name": "TraceeContextLogAnnotationUtilities.checkMethodHasNonVoidReturnType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether the passsed method has a non void return value.\n\n@param method the method to check\n@return true if the method has a non void return type, otherwise false", "docstring_tokens": ["Checks", "whether", "the", "passsed", "method", "has", "a", "non", "void", "return", "value", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/utility/TraceeContextLogAnnotationUtilities.java#L98-L111", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/outputgenerator/writer/function/TypeProviderFunction.java", "func_name": "TypeProviderFunction.apply", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Write the type string to the Stringbuilder\n\n@param stringBuilder the stringbuilder to write to\n@param outputStyle the output style to use\n@param outputElement the output element to write the type string for.\n@return true, if any output was written to the stringbuilder, otherwise false.", "docstring_tokens": ["Write", "the", "type", "string", "to", "the", "Stringbuilder"], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/outputgenerator/writer/function/TypeProviderFunction.java#L26-L47", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/contextprovider/TypeToWrapper.java", "func_name": "TypeToWrapper.findWrapperClasses", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a list with all wrapper classes.\n\n@return a list with all wrapper classes", "docstring_tokens": ["Gets", "a", "list", "with", "all", "wrapper", "classes", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/contextprovider/TypeToWrapper.java#L66-L80", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/contextprovider/TypeToWrapper.java", "func_name": "TypeToWrapper.getImplicitContextDataProviders", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generic function to get a implicit data provider classes from resource files.\n\n@return a set that contains all context provider type the were found", "docstring_tokens": ["Generic", "function", "to", "get", "a", "implicit", "data", "provider", "classes", "from", "resource", "files", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/contextprovider/TypeToWrapper.java#L87-L105", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/contextprovider/TypeToWrapper.java", "func_name": "TypeToWrapper.getAvailableWrappers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to get all available wrappers.\n\n@return all wrapping between wrapper classes and their wrapped types.", "docstring_tokens": ["Method", "to", "get", "all", "available", "wrappers", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/contextprovider/TypeToWrapper.java#L112-L132", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/ConnectorFactory.java", "func_name": "ConnectorFactory.initConnectors", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initializes all available connectors.", "docstring_tokens": ["Initializes", "all", "available", "connectors", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/ConnectorFactory.java#L48-L71", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/ConnectorFactory.java", "func_name": "ConnectorFactory.sendErrorReportToConnectors", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Send error report to all initialized connector instances.\n\n@param connectorOutputProvider the context data provider used for output", "docstring_tokens": ["Send", "error", "report", "to", "all", "initialized", "connector", "instances", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/ConnectorFactory.java#L78-L85", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/ConnectorFactory.java", "func_name": "ConnectorFactory.getConnectorConfigurationNames", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extracts all names for connector configurations from System properties.\n\n@return a Set containing all connector configuration names", "docstring_tokens": ["Extracts", "all", "names", "for", "connector", "configurations", "from", "System", "properties", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/ConnectorFactory.java#L92-L112", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/ConnectorFactory.java", "func_name": "ConnectorFactory.getPropertiesForConnectorConfigurationName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Collects all properties for a given connector configuration name and writes them to a Map.\n\n@param connectorName the name of the connector configuration\n@return a Map containing all properties for a connector configuration name", "docstring_tokens": ["Collects", "all", "properties", "for", "a", "given", "connector", "configuration", "name", "and", "writes", "them", "to", "a", "Map", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/ConnectorFactory.java#L120-L147", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/ConnectorFactory.java", "func_name": "ConnectorFactory.createConnector", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tries to create a Connector for a given connector configuration name.\n\n@param connectorConfigurationName the name of the connector configuration\n@return the connector if it could be created and initialized without error, otherwise null", "docstring_tokens": ["Tries", "to", "create", "a", "Connector", "for", "a", "given", "connector", "configuration", "name", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/ConnectorFactory.java#L155-L181", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/ConnectorFactory.java", "func_name": "ConnectorFactory.isConnectorConfigured", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether the LogConnector is defined or not.\n\n@param connectorClass the connector to check for\n@return true, if LogConnector is already defined, otherwise false.", "docstring_tokens": ["Checks", "whether", "the", "LogConnector", "is", "defined", "or", "not", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/ConnectorFactory.java#L189-L199", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "utility/src/main/java/io/tracee/contextlogger/utility/reflection/IsGetterMethodPredicate.java", "func_name": "IsGetterMethodPredicate.hasGetterPrefixInMethodName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Getter method names must have a specific prefix.\n\n@param method the method to check\n@return true, if the method name prefix is a getter Prefix, otherwise false", "docstring_tokens": ["Getter", "method", "names", "must", "have", "a", "specific", "prefix", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/utility/src/main/java/io/tracee/contextlogger/utility/reflection/IsGetterMethodPredicate.java#L64-L78", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "utility/src/main/java/io/tracee/contextlogger/utility/reflection/IsGetterMethodPredicate.java", "func_name": "IsGetterMethodPredicate.isPublicNonStaticMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Getter methods must be public and not be static.\n\n@param method the method to check\n@return true if the method is not static and public, otherwise false", "docstring_tokens": ["Getter", "methods", "must", "be", "public", "and", "not", "be", "static", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/utility/src/main/java/io/tracee/contextlogger/utility/reflection/IsGetterMethodPredicate.java#L86-L89", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "utility/src/main/java/io/tracee/contextlogger/utility/reflection/IsGetterMethodPredicate.java", "func_name": "IsGetterMethodPredicate.hasCompatibleReturnTypes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Getter method and field must have compatible fields.\n\n@param type the type to search the field in\n@param method the method to check\n@return true, if field type is assignable to methods return type", "docstring_tokens": ["Getter", "method", "and", "field", "must", "have", "compatible", "fields", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/utility/src/main/java/io/tracee/contextlogger/utility/reflection/IsGetterMethodPredicate.java#L130-L136", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "utility/src/main/java/io/tracee/contextlogger/utility/reflection/IsGetterMethodPredicate.java", "func_name": "IsGetterMethodPredicate.getCorrespondingField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method for getting a corresponsing field for a method\n\n@param type the type to search the field in\n@param method the getter method to search the field for\n@return the Field or null if the field for the passed method doesn't exists", "docstring_tokens": ["Helper", "method", "for", "getting", "a", "corresponsing", "field", "for", "a", "method"], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/utility/src/main/java/io/tracee/contextlogger/utility/reflection/IsGetterMethodPredicate.java#L145-L154", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "utility/src/main/java/io/tracee/contextlogger/utility/GetterUtilities.java", "func_name": "GetterUtilities.isGetterMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether the method name starts with a getter prefix.\n\n@param methodName the method name to check for\n@return true if the method name starts with eiher one of values stored in GETTER_PREFIXES", "docstring_tokens": ["Checks", "whether", "the", "method", "name", "starts", "with", "a", "getter", "prefix", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/utility/src/main/java/io/tracee/contextlogger/utility/GetterUtilities.java#L34-L47", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "utility/src/main/java/io/tracee/contextlogger/utility/GetterUtilities.java", "func_name": "GetterUtilities.capitalizeFirstCharOfString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Capitalizes first char of an input string.\n\n@param input the string to be processed;\n@return The input string with the first capitalized char. Returns empty string, if passed input String is null or empty.", "docstring_tokens": ["Capitalizes", "first", "char", "of", "an", "input", "string", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/utility/src/main/java/io/tracee/contextlogger/utility/GetterUtilities.java#L122-L132", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "utility/src/main/java/io/tracee/contextlogger/utility/GetterUtilities.java", "func_name": "GetterUtilities.decapitalizeFirstCharOfString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Decapitalizes first char of an input string.\n\n@param input the string to be processed;\n@return The input string with the first capitalized char. Returns empty string, if passed input String is null or empty.", "docstring_tokens": ["Decapitalizes", "first", "char", "of", "an", "input", "string", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/utility/src/main/java/io/tracee/contextlogger/utility/GetterUtilities.java#L140-L150", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "utility/src/main/java/io/tracee/contextlogger/utility/GetterUtilities.java", "func_name": "GetterUtilities.stripGetterPrefix", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Strips getter prefix from input string\n\n@param input the input string to be processed\n@return the string stripped by getter prefix", "docstring_tokens": ["Strips", "getter", "prefix", "from", "input", "string"], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/utility/src/main/java/io/tracee/contextlogger/utility/GetterUtilities.java#L158-L169", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "contextprovider/aspectj/src/main/java/io/tracee/contextlogger/contextprovider/aspectj/WatchdogAspect.java", "func_name": "WatchdogAspect.sendErrorReportToConnectors", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sends the error reports to all connectors.\n\n@param proceedingJoinPoint the aspectj calling context\n@param annotatedId the id defined in the watchdog annotation", "docstring_tokens": ["Sends", "the", "error", "reports", "to", "all", "connectors", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/contextprovider/aspectj/src/main/java/io/tracee/contextlogger/contextprovider/aspectj/WatchdogAspect.java#L99-L120", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/outputgenerator/functions/TraceeContextProviderWrapperFunction.java", "func_name": "TraceeContextProviderWrapperFunction.apply", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wraps the passed instance inside a matching tracee context logging provider instance.\nWill return the passed instance, if no matching tracee context logging provider exists.\n\n@param contextLoggerConfiguration the configuration to use\n@param instanceToWrap the instance to wrap\n@return either a tracee context provider that encapsulates the passed instance or the instance itself if no matching context provider exists", "docstring_tokens": ["Wraps", "the", "passed", "instance", "inside", "a", "matching", "tracee", "context", "logging", "provider", "instance", ".", "Will", "return", "the", "passed", "instance", "if", "no", "matching", "tracee", "context", "logging", "provider", "exists", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/outputgenerator/functions/TraceeContextProviderWrapperFunction.java#L35-L70", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/outputgenerator/functions/TraceeContextProviderWrapperFunction.java", "func_name": "TraceeContextProviderWrapperFunction.createInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new instance of the passed type via reflection.\n\n@param type the type of the new instance\n@return a new instance of the passed type or null if an exception occurred during the creation of the instance of if the passed type is null.", "docstring_tokens": ["Creates", "a", "new", "instance", "of", "the", "passed", "type", "via", "reflection", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/outputgenerator/functions/TraceeContextProviderWrapperFunction.java#L78-L87", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/profile/ProfileLookup.java", "func_name": "ProfileLookup.getCurrentProfile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the current profile.\nUses the following algorithm to determine the profile.\n1. If System Property is set force it as profile\n2. If Custom Profile resource can be located in classpath use that file as profile\n3. Use default profile\n\n@return", "docstring_tokens": ["Gets", "the", "current", "profile", ".", "Uses", "the", "following", "algorithm", "to", "determine", "the", "profile", ".", "1", ".", "If", "System", "Property", "is", "set", "force", "it", "as", "profile", "2", ".", "If", "Custom", "Profile", "resource", "can", "be", "located", "in", "classpath", "use", "that", "file", "as", "profile", "3", ".", "Use", "default", "profile"], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/profile/ProfileLookup.java#L27-L44", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/profile/ProfileLookup.java", "func_name": "ProfileLookup.openProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads properties from resources.\n\n@param propertyFileName the property file name to load\n@return the properties, or null if the properties can't be found\n@throws IOException if property file can't be opened", "docstring_tokens": ["Loads", "properties", "from", "resources", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/profile/ProfileLookup.java#L110-L133", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/impl/ConfigBuilderImpl.java", "func_name": "ConfigBuilderImpl.fillManualContextOverrideMap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds passed contexts value pairs to manualContextOverrides.\n\n@param contexts The property name of the context data.\n@param value the value which should be set.", "docstring_tokens": ["Adds", "passed", "contexts", "value", "pairs", "to", "manualContextOverrides", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/impl/ConfigBuilderImpl.java#L114-L126", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "core/src/main/java/io/tracee/contextlogger/impl/ConfigBuilderImpl.java", "func_name": "ConfigBuilderImpl.createContextStringRepresentationLogBuilder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a TraceeGsonContextStringRepresentationBuilder instance which can be used for creating the createStringRepresentation message.\n\n@return An instance of TraceeGsonContextStringRepresentationBuilder", "docstring_tokens": ["Creates", "a", "TraceeGsonContextStringRepresentationBuilder", "instance", "which", "can", "be", "used", "for", "creating", "the", "createStringRepresentation", "message", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/core/src/main/java/io/tracee/contextlogger/impl/ConfigBuilderImpl.java#L133-L142", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "contextprovider/aspectj/src/main/java/io/tracee/contextlogger/contextprovider/aspectj/util/WatchdogUtils.java", "func_name": "WatchdogUtils.checkIfMethodThrowsContainsPassedException", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether the passed Throwable is contained in methods throws part.\n\n@param proceedingJoinPoint The aspectj join point\n@param thrownException The Throwable which must be looked for\n@return true if Throwable was found and must be suppressed, otherwise false", "docstring_tokens": ["Checks", "whether", "the", "passed", "Throwable", "is", "contained", "in", "methods", "throws", "part", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/contextprovider/aspectj/src/main/java/io/tracee/contextlogger/contextprovider/aspectj/util/WatchdogUtils.java#L68-L76", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "contextprovider/aspectj/src/main/java/io/tracee/contextlogger/contextprovider/aspectj/util/WatchdogUtils.java", "func_name": "WatchdogUtils.checkClassIsDefinedInThrowsException", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether the passed Throwable is defined included in passed classes array or is subtype of one of the included classes.\n\n@param classes the classes to search\n@param thrownException the Throwable which must be searched for\n@return true if Throwable was found, otherwise false", "docstring_tokens": ["Checks", "whether", "the", "passed", "Throwable", "is", "defined", "included", "in", "passed", "classes", "array", "or", "is", "subtype", "of", "one", "of", "the", "included", "classes", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/contextprovider/aspectj/src/main/java/io/tracee/contextlogger/contextprovider/aspectj/util/WatchdogUtils.java#L85-L102", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "contextprovider/aspectj/src/main/java/io/tracee/contextlogger/contextprovider/aspectj/util/WatchdogUtils.java", "func_name": "WatchdogUtils.getDefinedThrowsFromMethodSignature", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets all Exceptions declared at the throws part of the method signature.\n\n@param proceedingJoinPoint the proceeding join point to get the method signature from.\n@return All defined exceptions that must be caught (are defined in the method signature in the throws part)", "docstring_tokens": ["Gets", "all", "Exceptions", "declared", "at", "the", "throws", "part", "of", "the", "method", "signature", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/contextprovider/aspectj/src/main/java/io/tracee/contextlogger/contextprovider/aspectj/util/WatchdogUtils.java#L110-L120", "partition": "valid"} +{"repo": "tracee/contextlogger", "path": "contextprovider/aspectj/src/main/java/io/tracee/contextlogger/contextprovider/aspectj/util/WatchdogUtils.java", "func_name": "WatchdogUtils.checkProcessWatchdog", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether the exception should be processed or not.\n\n@param watchdogAnnotation the watchdog annotation to check.\n@return true, if passed watchdogAnnotation is not null and not disabled vie system properties, otherwise false.", "docstring_tokens": ["Checks", "whether", "the", "exception", "should", "be", "processed", "or", "not", "."], "sha": "ca7f0aee79a0993ab387a403561f760a7dc072e8", "url": "https://github.com/tracee/contextlogger/blob/ca7f0aee79a0993ab387a403561f760a7dc072e8/contextprovider/aspectj/src/main/java/io/tracee/contextlogger/contextprovider/aspectj/util/WatchdogUtils.java#L128-L144", "partition": "valid"} +{"repo": "alexruiz/fest-assert-1.x", "path": "src/main/java/org/fest/assertions/GroupAssert.java", "func_name": "GroupAssert.hasSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the number of values in the actual group is equal to the given one.\n\n@param expected the expected number of values in the actual group.\n@return this assertion object.\n@throws AssertionError if the number of values of the actual group is not equal to the given one.", "docstring_tokens": ["Verifies", "that", "the", "number", "of", "values", "in", "the", "actual", "group", "is", "equal", "to", "the", "given", "one", "."], "sha": "f026c3059c8b2e40052f0388309cace819ac93a4", "url": "https://github.com/alexruiz/fest-assert-1.x/blob/f026c3059c8b2e40052f0388309cace819ac93a4/src/main/java/org/fest/assertions/GroupAssert.java#L96-L104", "partition": "valid"} +{"repo": "alexruiz/fest-assert-1.x", "path": "src/main/java/org/fest/assertions/ItemGroupAssert.java", "func_name": "ItemGroupAssert.assertDoesNotHaveDuplicates", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies that the actual group of objects does not have duplicates.\n\n@throws AssertionError if the actual group of objects is {@code null}.\n@throws AssertionError if the actual group of objects has duplicates.", "docstring_tokens": ["Verifies", "that", "the", "actual", "group", "of", "objects", "does", "not", "have", "duplicates", "."], "sha": "f026c3059c8b2e40052f0388309cace819ac93a4", "url": "https://github.com/alexruiz/fest-assert-1.x/blob/f026c3059c8b2e40052f0388309cace819ac93a4/src/main/java/org/fest/assertions/ItemGroupAssert.java#L153-L161", "partition": "valid"} +{"repo": "rtyley/android-viewholder-listviews", "path": "src/main/java/com/madgag/android/listviews/ViewHoldingListAdapter.java", "func_name": "ViewHoldingListAdapter.getDropDownView", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Declared by SpinnerAdapter, this method allows your spinner to show\ndifferent views in your drop down vs the 'closed' spinned box.", "docstring_tokens": ["Declared", "by", "SpinnerAdapter", "this", "method", "allows", "your", "spinner", "to", "show", "different", "views", "in", "your", "drop", "down", "vs", "the", "closed", "spinned", "box", "."], "sha": "45002759b0a0c7bcb162e5bd8c2f74f43d69e33c", "url": "https://github.com/rtyley/android-viewholder-listviews/blob/45002759b0a0c7bcb162e5bd8c2f74f43d69e33c/src/main/java/com/madgag/android/listviews/ViewHoldingListAdapter.java#L85-L87", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/api/src/main/java/org/ldp4j/application/vocabulary/AbstractImmutableVocabulary.java", "func_name": "AbstractImmutableVocabulary.reserveTermName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Allow the reservation of term names during the initialization of the\nvocabulary.\n\n@param name\nthen name of the term\n@return a number that represents the position in which the term was\nreserved\n@throws IllegalArgumentException\nif the specified name is not valid or it has been already\nreserved.\n@throws IllegalStateException\nif the vocabulary has been already initialized.", "docstring_tokens": ["Allow", "the", "reservation", "of", "term", "names", "during", "the", "initialization", "of", "the", "vocabulary", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/api/src/main/java/org/ldp4j/application/vocabulary/AbstractImmutableVocabulary.java#L283-L289", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/api/src/main/java/org/ldp4j/application/vocabulary/AbstractImmutableVocabulary.java", "func_name": "AbstractImmutableVocabulary.registerTerm", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Upon reservation, the method enables registering the properly built\nimmutable term instance.\n\n@param term\nthe term to be registered.\n@throws IllegalArgumentException\nif the specified term instance cannot be registered, either\nbecause the ordinal is invalid or because another term\nwith the same name has already been registered.\n@throws IllegalStateException\nif the vocabulary has been already initialized.", "docstring_tokens": ["Upon", "reservation", "the", "method", "enables", "registering", "the", "properly", "built", "immutable", "term", "instance", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/api/src/main/java/org/ldp4j/application/vocabulary/AbstractImmutableVocabulary.java#L304-L309", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/api/src/main/java/org/ldp4j/application/vocabulary/AbstractImmutableVocabulary.java", "func_name": "AbstractImmutableVocabulary.initialize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Complete the initialization of the vocabulary. Beyond this point the\nvocabulary can be put to use.\n\n@throws IllegalStateException\nif the vocabulary has been already initialized or not all the\nreserved names have been registered.", "docstring_tokens": ["Complete", "the", "initialization", "of", "the", "vocabulary", ".", "Beyond", "this", "point", "the", "vocabulary", "can", "be", "put", "to", "use", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/api/src/main/java/org/ldp4j/application/vocabulary/AbstractImmutableVocabulary.java#L319-L329", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/examples/src/main/java/org/ldp4j/example/BadDataResourceHandler.java", "func_name": "BadDataResourceHandler.getRepresentation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get custom representation with bad data\n\n@return the representation", "docstring_tokens": ["Get", "custom", "representation", "with", "bad", "data"], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/examples/src/main/java/org/ldp4j/example/BadDataResourceHandler.java#L83-L105", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/core/src/main/java/org/ldp4j/commons/net/URIUtils.java", "func_name": "URIUtils.relativeResolution", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "5.2. Relative Resolution\n\nThis section describes an algorithm for converting a URI reference\nthat might be relative to a given base URI into the parsed components\nof the reference's target. The components can then be recomposed, as\ndescribed in Section 5.3, to form the target URI. This algorithm\nprovides definitive results that can be used to test the output of\nother implementations. Applications may implement relative reference\nresolution by using some other algorithm, provided that the results\nmatch what would be given by this one.\n\n5.2.1. Pre-parse the Base URI\n\nThe base URI (Base) is established according to the procedure of\nSection 5.1 and parsed into the five main components described in\nSection 3. Note that only the scheme component is required to be\npresent in a base URI; the other components may be empty or\nundefined. A component is undefined if its associated delimiter does\nnot appear in the URI reference; the path component is never\nundefined, though it may be empty.\n\nNormalization of the base URI, as described in Sections 6.2.2 and\n6.2.3, is optional. A URI reference must be transformed to its\ntarget URI before it can be normalized.\n\n5.2.2. Transform References\n\nFor each URI reference (R), the following pseudocode describes an\nalgorithm for transforming R into its target URI (T):\n-- The URI reference is parsed into the five URI components\n--\n(R.scheme, R.authority, R.path, R.query, R.fragment) = parse(R);\n\n-- A non-strict parser may ignore a scheme in the reference\n-- if it is identical to the base URI's scheme.\n--\nif ((not strict) and (R.scheme == Base.scheme)) then\nundefine(R.scheme);\nendif;\n\nif defined(R.scheme) then\nT.scheme = R.scheme;\nT.authority = R.authority;\nT.path = remove_dot_segments(R.path);\nT.query = R.query;\nelse\nif defined(R.authority) then\nT.authority = R.authority;\nT.path = remove_dot_segments(R.path);\nT.query = R.query;\nelse\nif (R.path == \"\") then\nT.path = Base.path;\nif defined(R.query) then\nT.query = R.query;\nelse\nT.query = Base.query;\nendif;\nelse\nif (R.path starts-with \"/\") then\nT.path = remove_dot_segments(R.path);\nelse\nT.path = merge(Base.path, R.path);\nT.path = remove_dot_segments(T.path);\nendif;\nT.query = R.query;\nendif;\nT.authority = Base.authority;\nendif;\nT.scheme = Base.scheme;\nendif;\n\nT.fragment = R.fragment;", "docstring_tokens": ["5", ".", "2", ".", "Relative", "Resolution"], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/core/src/main/java/org/ldp4j/commons/net/URIUtils.java#L232-L253", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/core/src/main/java/org/ldp4j/commons/net/URIUtils.java", "func_name": "URIUtils.merge", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "5.2.3. Merge Paths\n\nThe pseudocode above refers to a \"merge\" routine for merging a\nrelative-path reference with the path of the base URI. This is\naccomplished as follows:\n\no If the base URI has a defined authority component and an empty\npath, then return a string consisting of \"/\" concatenated with the\nreference's path; otherwise,\no return a string consisting of the reference's path component\nappended to all but the last segment of the base URI's path (i.e.,\nexcluding any characters after the right-most \"/\" in the base URI\npath, or excluding the entire base URI path if it does not contain\nany \"/\" characters).\n\n@param hasAuthority", "docstring_tokens": ["5", ".", "2", ".", "3", ".", "Merge", "Paths"], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/core/src/main/java/org/ldp4j/commons/net/URIUtils.java#L293-L299", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/core/src/main/java/org/ldp4j/commons/net/URIUtils.java", "func_name": "URIUtils.removeDotSegments", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "5.2.4. Remove Dot Segments\n\nThe pseudocode also refers to a \"remove_dot_segments\" routine for\ninterpreting and removing the special \".\" and \"..\" complete path\nsegments from a referenced path. This is done after the path is\nextracted from a reference, whether or not the path was relative, in\norder to remove any invalid or extraneous dot-segments prior to\nforming the target URI. Although there are many ways to accomplish\nthis removal process, we describe a simple method using two string\nbuffers.\n\n1. The input buffer is initialized with the now-appended path\ncomponents and the output buffer is initialized to the empty\nstring.\n\n2. While the input buffer is not empty, loop as follows:\n\nA. If the input buffer begins with a prefix of \"../\" or \"./\",\nthen remove that prefix from the input buffer; otherwise,\n\nB. if the input buffer begins with a prefix of \"/./\" or \"/.\",\nwhere \".\" is a complete path segment, then replace that\nprefix with \"/\" in the input buffer; otherwise,\n\nC. if the input buffer begins with a prefix of \"/../\" or \"/..\",\nwhere \"..\" is a complete path segment, then replace that\nprefix with \"/\" in the input buffer and remove the last\nsegment and its preceding \"/\" (if any) from the output\nbuffer; otherwise,\n\nD. if the input buffer consists only of \".\" or \"..\", then remove\nthat from the input buffer; otherwise,\n\nE. move the first path segment in the input buffer to the end of\nthe output buffer, including the initial \"/\" character (if\nany) and any subsequent characters up to, but not including,\nthe next \"/\" character or the end of the input buffer.\n\n3. Finally, the output buffer is returned as the result of\nremove_dot_segments.", "docstring_tokens": ["5", ".", "2", ".", "4", ".", "Remove", "Dot", "Segments"], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/core/src/main/java/org/ldp4j/commons/net/URIUtils.java#L343-L350", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/api/src/main/java/org/ldp4j/application/data/NamingScheme.java", "func_name": "NamingScheme.name", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Concatenates elements to form a dotted name, discarding null values\nand empty strings.\n\n@param name\nthe first element of the name\n@param names\nthe remaining elements of the name\n@return {@code name} and {@code names} concatenated by periods", "docstring_tokens": ["Concatenates", "elements", "to", "form", "a", "dotted", "name", "discarding", "null", "values", "and", "empty", "strings", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/api/src/main/java/org/ldp4j/application/data/NamingScheme.java#L198-L200", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/api/src/main/java/org/ldp4j/application/data/NamingScheme.java", "func_name": "NamingScheme.name", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Concatenates a canonical class name and elements to form a dotted name, discarding any null values or empty strings\nany null values or empty strings.\n\n@param clazz\nthe first element of the name\n@param names\nthe remaining elements of the name\n@return {@code clazz} and {@code names} concatenated by periods", "docstring_tokens": ["Concatenates", "a", "canonical", "class", "name", "and", "elements", "to", "form", "a", "dotted", "name", "discarding", "any", "null", "values", "or", "empty", "strings", "any", "null", "values", "or", "empty", "strings", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/api/src/main/java/org/ldp4j/application/data/NamingScheme.java#L212-L214", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/http/src/main/java/org/ldp4j/http/MediaTypes.java", "func_name": "MediaTypes.wildcard", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a wildcard media type for a given primary type\n\n@param type\nThe media type primary type\n@return a wildcard media type for the given primary type\n@throws NullPointerException\nif the type is null\n@throws IllegalArgumentException\nif the specified type is not valid", "docstring_tokens": ["Create", "a", "wildcard", "media", "type", "for", "a", "given", "primary", "type"], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/http/src/main/java/org/ldp4j/http/MediaTypes.java#L152-L155", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/http/src/main/java/org/ldp4j/http/MediaTypes.java", "func_name": "MediaTypes.wildcard", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a wildcard structured-syntax media type for a given primary type\n\n@param type\nThe media type primary type\n@param suffix\nThe suffix associated to the structured-syntax\n@return a wildcard media type for the given primary type and suffix\n@throws NullPointerException\nif the type or suffix is null\n@throws IllegalArgumentException\nif the specified type or suffix is not valid", "docstring_tokens": ["Create", "a", "wildcard", "structured", "-", "syntax", "media", "type", "for", "a", "given", "primary", "type"], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/http/src/main/java/org/ldp4j/http/MediaTypes.java#L170-L174", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/http/src/main/java/org/ldp4j/http/MediaTypes.java", "func_name": "MediaTypes.of", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a media type\n\n@param type\nThe media type primary type\n@param subtype\nThe media type subtype\n@return A media type for the specified media range\n@throws NullPointerException\nif any of the specified media range elements is null\n@throws InvalidMediaTypeException\nif any of the specified media range elements is not valid", "docstring_tokens": ["Create", "a", "media", "type"], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/http/src/main/java/org/ldp4j/http/MediaTypes.java#L202-L206", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/http/src/main/java/org/ldp4j/http/MediaTypes.java", "func_name": "MediaTypes.toHeader", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Format the media type in a HTTP-header compliant manner using preferred\nformat.\n\n@param mediaType\nthe media type to format\n@return the compliant representation of the media type\n@see [RFC\n7231] Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content,\nsection 3.1.1.1", "docstring_tokens": ["Format", "the", "media", "type", "in", "a", "HTTP", "-", "header", "compliant", "manner", "using", "preferred", "format", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/http/src/main/java/org/ldp4j/http/MediaTypes.java#L338-L361", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/examples/src/main/java/org/ldp4j/example/DynamicResourceResolver.java", "func_name": "DynamicResourceResolver.run", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Update the resource representation adding the path where the resource is\npublished and whether or not if given that URI it can be resolved to the\nsame resource.", "docstring_tokens": ["Update", "the", "resource", "representation", "adding", "the", "path", "where", "the", "resource", "is", "published", "and", "whether", "or", "not", "if", "given", "that", "URI", "it", "can", "be", "resolved", "to", "the", "same", "resource", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/examples/src/main/java/org/ldp4j/example/DynamicResourceResolver.java#L82-L124", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/api/src/main/java/org/ldp4j/application/vocabulary/ImmutableTerm.java", "func_name": "ImmutableTerm.compareTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Compares this term with the specified object for order. Returns a\nnegative integer, zero, or a positive integer as this object is less\nthan, equal to, or greater than the specified object.\n\nTerm constants are only comparable to other term constants of the same\nvocabulary. The natural order implemented by this method is the order in\nwhich the constants are declared.", "docstring_tokens": ["Compares", "this", "term", "with", "the", "specified", "object", "for", "order", ".", "Returns", "a", "negative", "integer", "zero", "or", "a", "positive", "integer", "as", "this", "object", "is", "less", "than", "equal", "to", "or", "greater", "than", "the", "specified", "object", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/api/src/main/java/org/ldp4j/application/vocabulary/ImmutableTerm.java#L181-L188", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/examples/src/main/java/org/ldp4j/example/NameProvider.java", "func_name": "NameProvider.pendingAttachmentNames", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the pending names for the specified attachment.\n\n@param attachmentId\nthe name of the attachment.\n@return the pending names for the specified attachment.", "docstring_tokens": ["Return", "the", "pending", "names", "for", "the", "specified", "attachment", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/examples/src/main/java/org/ldp4j/example/NameProvider.java#L107-L114", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/examples/src/main/java/org/ldp4j/example/NameProvider.java", "func_name": "NameProvider.addAttachmentName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a name to the list of available names for a given attachment.\n\n@param attachmentId\nthe name of the attachment.\n@param nextName\nthe member name.", "docstring_tokens": ["Add", "a", "name", "to", "the", "list", "of", "available", "names", "for", "a", "given", "attachment", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/examples/src/main/java/org/ldp4j/example/NameProvider.java#L162-L164", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/examples/src/main/java/org/ldp4j/example/NameProvider.java", "func_name": "NameProvider.nextAttachmentName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the next available name for a given attachment. The name will be\nremoved from the list of available names for the specified attachment.\n\n@param attachmentId\nthe name of the attachment.\n@return the next available name for the specified attachment.", "docstring_tokens": ["Return", "the", "next", "available", "name", "for", "a", "given", "attachment", ".", "The", "name", "will", "be", "removed", "from", "the", "list", "of", "available", "names", "for", "the", "specified", "attachment", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/examples/src/main/java/org/ldp4j/example/NameProvider.java#L194-L200", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/examples/src/main/java/org/ldp4j/example/NameProvider.java", "func_name": "NameProvider.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new name provider.\n\n@param resource\nthe name of the owner of the name provider.\n@return a name provider.", "docstring_tokens": ["Create", "a", "new", "name", "provider", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/examples/src/main/java/org/ldp4j/example/NameProvider.java#L209-L212", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/http/src/main/java/org/ldp4j/http/ImmutableMediaType.java", "func_name": "ImmutableMediaType.parseSuffix", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "As per RFC 6838, Section 4.2 structuring syntaxes specifier syntaxes are\ndefined after the last '+' symbol.\n\n@see [RFC 6838]\nMedia Type Specifications and Registration Procedures, Section\n4.2", "docstring_tokens": ["As", "per", "RFC", "6838", "Section", "4", ".", "2", "structuring", "syntaxes", "specifier", "syntaxes", "are", "defined", "after", "the", "last", "+", "symbol", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/http/src/main/java/org/ldp4j/http/ImmutableMediaType.java#L293-L304", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/http/src/main/java/org/ldp4j/http/ImmutableMediaType.java", "func_name": "ImmutableMediaType.checkQuotedString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks the given quoted string for illegal characters, as defined in RFC\n7230, section 3.2.6.\n\n@throws IllegalArgumentException\nin case of illegal characters\n@see Hypertext\nTransfer Protocol (HTTP/1.1): Message Syntax and Routing, Section\n3.2.6", "docstring_tokens": ["Checks", "the", "given", "quoted", "string", "for", "illegal", "characters", "as", "defined", "in", "RFC", "7230", "section", "3", ".", "2", ".", "6", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/http/src/main/java/org/ldp4j/http/ImmutableMediaType.java#L411-L426", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/core/src/main/java/org/ldp4j/xml/CodePointIterator.java", "func_name": "CodePointIterator.next", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the next code point in the iteration.\n\n@return the next code point in the iteration\n@throws NoSuchElementException\nif the iteration has no more code points", "docstring_tokens": ["Returns", "the", "next", "code", "point", "in", "the", "iteration", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/core/src/main/java/org/ldp4j/xml/CodePointIterator.java#L75-L84", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/examples/src/main/java/org/ldp4j/example/DynamicResourceUpdater.java", "func_name": "DynamicResourceUpdater.run", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Update the resource representation adding a temporal timestamp of when\nthe resource was last updated.", "docstring_tokens": ["Update", "the", "resource", "representation", "adding", "a", "temporal", "timestamp", "of", "when", "the", "resource", "was", "last", "updated", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/examples/src/main/java/org/ldp4j/example/DynamicResourceUpdater.java#L72-L97", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/core/src/main/java/org/ldp4j/commons/net/URIRef.java", "func_name": "URIRef.toURI", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "5.3. Component Recomposition\n\nParsed URI components can be recomposed to obtain the corresponding\nURI reference string. Using pseudocode, this would be:\n\nresult = \"\"\n\nif defined(scheme) then\nappend scheme to result;\nappend \":\" to result;\nendif;\n\nif defined(authority) then\nappend \"//\" to result;\nappend authority to result;\nendif;\n\nappend path to result;\n\nif defined(query) then\nappend \"?\" to result;\nappend query to result;\nendif;\n\nif defined(fragment) then\nappend \"#\" to result;\nappend fragment to result;\nendif;\n\nreturn result;\n\nNote that we are careful to preserve the distinction between a\ncomponent that is undefined, meaning that its separator was not\npresent in the reference, and a component that is empty, meaning that\nthe separator was present and was immediately followed by the next\ncomponent separator or the end of the reference.", "docstring_tokens": ["5", ".", "3", ".", "Component", "Recomposition"], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/core/src/main/java/org/ldp4j/commons/net/URIRef.java#L89-L112", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/rmf/bean/src/main/java/org/ldp4j/rdf/bean/spi/RuntimeInstance.java", "func_name": "RuntimeInstance.closeQuietly", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Close an input stream logging possible failures.\n@param is The input stream that is to be closed.\n@param message The message to log in case of failure.", "docstring_tokens": ["Close", "an", "input", "stream", "logging", "possible", "failures", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/rmf/bean/src/main/java/org/ldp4j/rdf/bean/spi/RuntimeInstance.java#L191-L201", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/core/src/main/java/org/ldp4j/xml/Characters.java", "func_name": "Characters.isNameStartChar", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines if a character is a Name start character.\n\n@param codePoint\nThe code point of the character to be tested. For UTF-16\ncharacters the code point corresponds to the value of the char\nthat represents the character.\n@return {@code true} if {@code codePoint} is a Name start character,\notherwise {@code false}\n@see Name definition in the Extensible Markup\nLanguage (XML) 1.0 (Fifth Edition) specification.", "docstring_tokens": ["Determines", "if", "a", "character", "is", "a", "Name", "start", "character", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/core/src/main/java/org/ldp4j/xml/Characters.java#L51-L69", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/core/src/main/java/org/ldp4j/xml/Characters.java", "func_name": "Characters.isNameChar", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Determines if a character is a Name character.\n\n@param codePoint\nThe code point of the character to be tested. For UTF-8 and UTF-16\ncharacters the code point corresponds to the value of the char\nthat represents the character.\n@return {@code true} if {@code codePoint} is a Name character,\notherwise {@code false}\n@see Name definition in the Extensible Markup\nLanguage (XML) 1.0 (Fifth Edition) specification.", "docstring_tokens": ["Determines", "if", "a", "character", "is", "a", "Name", "character", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/core/src/main/java/org/ldp4j/xml/Characters.java#L84-L93", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/http/src/main/java/org/ldp4j/http/HttpUtils.java", "func_name": "HttpUtils.checkToken", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks the given type name for illegal characters, as defined in RFC\n7230, section 3.2.6.\n\n@param token\nthe string to validate\n@throws IllegalArgumentException\nin case of illegal characters\n@see Hypertext\nTransfer Protocol (HTTP/1.1): Message Syntax and Routing, Section\n3.2.6", "docstring_tokens": ["Checks", "the", "given", "type", "name", "for", "illegal", "characters", "as", "defined", "in", "RFC", "7230", "section", "3", ".", "2", ".", "6", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/http/src/main/java/org/ldp4j/http/HttpUtils.java#L138-L146", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/server/core/src/main/java/org/ldp4j/server/data/DataTransformator.java", "func_name": "DataTransformator.mediaType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create transformator with the specified media type\n\n@param mediaType\nthe new media type\n@return a new transformator with the same configuration except for the\nmedia type, which is set to the specified one\n@throws UnsupportedMediaTypeException\nif the media type is not valid", "docstring_tokens": ["Create", "transformator", "with", "the", "specified", "media", "type"], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/server/core/src/main/java/org/ldp4j/server/data/DataTransformator.java#L211-L216", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/api/src/main/java/org/ldp4j/application/vocabulary/TypeAdapter.java", "func_name": "TypeAdapter.registerAdapterClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Register a new adapter class.\n\n@param clazz\nthe adapter class.\n@throws NullPointerException\nif the adapter class is {@code null}.", "docstring_tokens": ["Register", "a", "new", "adapter", "class", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/api/src/main/java/org/ldp4j/application/vocabulary/TypeAdapter.java#L145-L148", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/api/src/main/java/org/ldp4j/application/vocabulary/TypeAdapter.java", "func_name": "TypeAdapter.createAdapter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get an adapter capable of transforming instances of a source type into\ninstances of a target type.\n\n@param sourceType\nThe type of the instances that the adapter should be able to\ntransform.\n@param targetType\nThe type of instances that the adapter should be able to\ncreate.\n@return An adapter capable of transforming instances of the {@code sourceType}\ninto instances of the {@code targetType}.\n@throws CannotAdaptClassesException\nwhen no adapter capable of carrying out such transformation\nis available.", "docstring_tokens": ["Get", "an", "adapter", "capable", "of", "transforming", "instances", "of", "a", "source", "type", "into", "instances", "of", "a", "target", "type", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/api/src/main/java/org/ldp4j/application/vocabulary/TypeAdapter.java#L166-L168", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/api/src/main/java/org/ldp4j/application/vocabulary/TypeAdapter.java", "func_name": "TypeAdapter.adapt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Transform a given object into an instance of the specified type.\n\n@param object\nThe object that is to be transformed.\n@param resultClass\nThe type of instance that is to be created.\n@return An instance of type {@code resultClass} created upon the\nspecified @ object} .\n@throws CannotAdaptClassesException\nwhen no adapter capable of carrying out such transformation\nis available.", "docstring_tokens": ["Transform", "a", "given", "object", "into", "an", "instance", "of", "the", "specified", "type", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/api/src/main/java/org/ldp4j/application/vocabulary/TypeAdapter.java#L183-L185", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/util/src/main/java/org/ldp4j/application/util/ImmutableNamespaces.java", "func_name": "ImmutableNamespaces.withPrefix", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a copy of the namespaces which includes a mapping between a given\nprefix and namespace URI.\n\n@param prefix\nthe prefix to be added\n@param namespaceURI\nthe namespace URI to be mapped to the prefix\n@return a copy of the instance that includes the mapping between the\nspecified namespace URI and prefix.\n@throws NullPointerException if the prefix or namespace URI are null.", "docstring_tokens": ["Create", "a", "copy", "of", "the", "namespaces", "which", "includes", "a", "mapping", "between", "a", "given", "prefix", "and", "namespace", "URI", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/util/src/main/java/org/ldp4j/application/util/ImmutableNamespaces.java#L79-L85", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/util/src/main/java/org/ldp4j/application/util/ImmutableNamespaces.java", "func_name": "ImmutableNamespaces.withoutPrefix", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a copy of the namespaces without the prefixes.\n\n@param prefixes\nthe prefixes to be excluded from the copy\n@return a copy of the instance that excludes the mappings for the\nspecified prefixes.", "docstring_tokens": ["Create", "a", "copy", "of", "the", "namespaces", "without", "the", "prefixes", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/util/src/main/java/org/ldp4j/application/util/ImmutableNamespaces.java#L95-L101", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/core/src/main/java/org/ldp4j/xml/XMLUtils.java", "func_name": "XMLUtils.escapeXML", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Escapes a character sequence so that it is valid XML.\n\n@param s\nThe character sequence.\n@return The escaped version of the character sequence.", "docstring_tokens": ["Escapes", "a", "character", "sequence", "so", "that", "it", "is", "valid", "XML", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/core/src/main/java/org/ldp4j/xml/XMLUtils.java#L106-L126", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/examples/src/main/java/org/ldp4j/example/QueryableResourceHandler.java", "func_name": "QueryableResourceHandler.query", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Instead of retrieving the contents of the resource, return a description\nof the query received.", "docstring_tokens": ["Instead", "of", "retrieving", "the", "contents", "of", "the", "resource", "return", "a", "description", "of", "the", "query", "received", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/examples/src/main/java/org/ldp4j/example/QueryableResourceHandler.java#L67-L70", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/examples/src/main/java/org/ldp4j/example/InMemoryContainerHandler.java", "func_name": "InMemoryContainerHandler.addNameProvider", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add a name provider for a container resource.\n\n@param containerName\nthe name of the container.\n@param provider\nthe name provider.", "docstring_tokens": ["Add", "a", "name", "provider", "for", "a", "container", "resource", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/examples/src/main/java/org/ldp4j/example/InMemoryContainerHandler.java#L57-L59", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/examples/src/main/java/org/ldp4j/example/InMemoryContainerHandler.java", "func_name": "InMemoryContainerHandler.nameProvider", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the name provider registered for a given container resource.\n\n@param containerName\nthe name of the container.\n@return the provider for the specified container resource.", "docstring_tokens": ["Return", "the", "name", "provider", "registered", "for", "a", "given", "container", "resource", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/examples/src/main/java/org/ldp4j/example/InMemoryContainerHandler.java#L68-L74", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/engine/api/src/main/java/org/ldp4j/application/engine/ApplicationEngine.java", "func_name": "ApplicationEngine.unwrap", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return an object of the specified type to allow access to the\nprovider-specific API. If the provider's ApplicationEngine implementation\ndoes not support the specified class, the ApplicationEngineException is\nthrown.\n\n@param the type of object to be returned\n@param clazz\nthe class of the object to be returned. This is normally\neither the underlying {@code ApplicationEngine} implementation\nclass or an interface that it implements.\n@return an instance of the specified class\n@throws ApplicationEngineException\nif the provider does not support the call", "docstring_tokens": ["Return", "an", "object", "of", "the", "specified", "type", "to", "allow", "access", "to", "the", "provider", "-", "specific", "API", ".", "If", "the", "provider", "s", "ApplicationEngine", "implementation", "does", "not", "support", "the", "specified", "class", "the", "ApplicationEngineException", "is", "thrown", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/engine/api/src/main/java/org/ldp4j/application/engine/ApplicationEngine.java#L583-L589", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/core/src/main/java/org/ldp4j/net/Path.java", "func_name": "Path.isOutOfScope", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if the path is out of the scope.\n\n@return {@code true}, if is out of the scope, {@code false} otherwise", "docstring_tokens": ["Checks", "if", "the", "path", "is", "out", "of", "the", "scope", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/core/src/main/java/org/ldp4j/net/Path.java#L184-L205", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/core/src/main/java/org/ldp4j/net/Path.java", "func_name": "Path.withDirectory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new path with a given directory.\n\n@param directory the directory for the path\n@return the new path", "docstring_tokens": ["Create", "a", "new", "path", "with", "a", "given", "directory", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/core/src/main/java/org/ldp4j/net/Path.java#L268-L272", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/core/src/main/java/org/ldp4j/net/Path.java", "func_name": "Path.withFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a new path with a given file.\n\n@param file the file for the path\n@return the new path", "docstring_tokens": ["Create", "a", "new", "path", "with", "a", "given", "file", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/core/src/main/java/org/ldp4j/net/Path.java#L280-L284", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "commons/core/src/main/java/org/ldp4j/net/Path.java", "func_name": "Path.assembleRelativeSegments", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If there are no segments in the resolved path, and we are trying to\nresolve a directory coming from a path, we have to make explicit that we\nwant the directory", "docstring_tokens": ["If", "there", "are", "no", "segments", "in", "the", "resolved", "path", "and", "we", "are", "trying", "to", "resolve", "a", "directory", "coming", "from", "a", "path", "we", "have", "to", "make", "explicit", "that", "we", "want", "the", "directory"], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/commons/core/src/main/java/org/ldp4j/net/Path.java#L367-L373", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/api/src/main/java/org/ldp4j/application/ext/Generics.java", "func_name": "Generics.getTypeParameter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds the type parameter for the given class which is assignable to the\nbound class.\n\n@param clazz\na parameterized class\n@param bound\nthe type bound\n@param \nthe type bound\n@return the class's type parameter", "docstring_tokens": ["Finds", "the", "type", "parameter", "for", "the", "given", "class", "which", "is", "assignable", "to", "the", "bound", "class", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/api/src/main/java/org/ldp4j/application/ext/Generics.java#L71-L89", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/engine/sdk/src/main/java/org/ldp4j/application/sdk/internal/PrimitiveObjectFactory.java", "func_name": "PrimitiveObjectFactory.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a primitive object factory for the specified primitive class\n\n@param \nthe primitive class type\n@param valueClass\nthe primitive class to use\n@return an object factory\n@throws NullPointerException\nif the specified class is {@code null}\n@throws IllegalArgumentException\nif the specified class is not a primitive class", "docstring_tokens": ["Create", "a", "primitive", "object", "factory", "for", "the", "specified", "primitive", "class"], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/engine/sdk/src/main/java/org/ldp4j/application/sdk/internal/PrimitiveObjectFactory.java#L122-L126", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/server/core/src/main/java/org/ldp4j/server/utils/VariantUtils.java", "func_name": "VariantUtils.createVariants", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get a list of acceptable variants. Current implementation only leverages\nmedia type for the specification of variants.\n\n@param mediaTypes\nThe list of acceptable media types.\n@return A list of acceptable variants.", "docstring_tokens": ["Get", "a", "list", "of", "acceptable", "variants", ".", "Current", "implementation", "only", "leverages", "media", "type", "for", "the", "specification", "of", "variants", "."], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/server/core/src/main/java/org/ldp4j/server/utils/VariantUtils.java#L64-L73", "partition": "valid"} +{"repo": "ldp4j/ldp4j", "path": "framework/application/data/src/main/java/org/ldp4j/application/data/IndividualReference.java", "func_name": "IndividualReference.resolve", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find the individual of the data set with the same identifier\n\n@param dataSet\nthe data set\n@return the individual with the same identifier, or {@code null} if no\nindividual has the same identifier.", "docstring_tokens": ["Find", "the", "individual", "of", "the", "data", "set", "with", "the", "same", "identifier"], "sha": "4236dfb3a746be390155c1056bbb5a8d4dccc49f", "url": "https://github.com/ldp4j/ldp4j/blob/4236dfb3a746be390155c1056bbb5a8d4dccc49f/framework/application/data/src/main/java/org/ldp4j/application/data/IndividualReference.java#L156-L159", "partition": "valid"} +{"repo": "akquinet/android-marvin", "path": "marvin/src/main/java/de/akquinet/android/marvin/matchers/ViewGroupComparison.java", "func_name": "ViewGroupComparison.equalChildrenCountAs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Is value = expected?", "docstring_tokens": ["Is", "value", "=", "expected?"], "sha": "a0dfd0383e5cedd03ddb49382137bf7dd6ca9b85", "url": "https://github.com/akquinet/android-marvin/blob/a0dfd0383e5cedd03ddb49382137bf7dd6ca9b85/marvin/src/main/java/de/akquinet/android/marvin/matchers/ViewGroupComparison.java#L61-L64", "partition": "valid"} +{"repo": "akquinet/android-marvin", "path": "marvin/src/main/java/de/akquinet/android/marvin/matchers/ViewGroupComparison.java", "func_name": "ViewGroupComparison.moreChildrenThan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Is value > expected?", "docstring_tokens": ["Is", "value", ">", "expected?"], "sha": "a0dfd0383e5cedd03ddb49382137bf7dd6ca9b85", "url": "https://github.com/akquinet/android-marvin/blob/a0dfd0383e5cedd03ddb49382137bf7dd6ca9b85/marvin/src/main/java/de/akquinet/android/marvin/matchers/ViewGroupComparison.java#L69-L72", "partition": "valid"} +{"repo": "akquinet/android-marvin", "path": "marvin/src/main/java/de/akquinet/android/marvin/matchers/ViewGroupComparison.java", "func_name": "ViewGroupComparison.moreChildrenOrEqual", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Is value >= expected?", "docstring_tokens": ["Is", "value", ">", "=", "expected?"], "sha": "a0dfd0383e5cedd03ddb49382137bf7dd6ca9b85", "url": "https://github.com/akquinet/android-marvin/blob/a0dfd0383e5cedd03ddb49382137bf7dd6ca9b85/marvin/src/main/java/de/akquinet/android/marvin/matchers/ViewGroupComparison.java#L77-L80", "partition": "valid"} +{"repo": "akquinet/android-marvin", "path": "marvin/src/main/java/de/akquinet/android/marvin/matchers/ViewGroupComparison.java", "func_name": "ViewGroupComparison.lessChildrenThan", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Is value < expected?", "docstring_tokens": ["Is", "value", "<", "expected?"], "sha": "a0dfd0383e5cedd03ddb49382137bf7dd6ca9b85", "url": "https://github.com/akquinet/android-marvin/blob/a0dfd0383e5cedd03ddb49382137bf7dd6ca9b85/marvin/src/main/java/de/akquinet/android/marvin/matchers/ViewGroupComparison.java#L85-L88", "partition": "valid"} +{"repo": "akquinet/android-marvin", "path": "marvin/src/main/java/de/akquinet/android/marvin/matchers/ViewGroupComparison.java", "func_name": "ViewGroupComparison.lessChildrenOrEqual", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Is value <= expected?", "docstring_tokens": ["Is", "value", "<", "=", "expected?"], "sha": "a0dfd0383e5cedd03ddb49382137bf7dd6ca9b85", "url": "https://github.com/akquinet/android-marvin/blob/a0dfd0383e5cedd03ddb49382137bf7dd6ca9b85/marvin/src/main/java/de/akquinet/android/marvin/matchers/ViewGroupComparison.java#L93-L96", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/MeasureClass.java", "func_name": "MeasureClass.getMeasuresByYearState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method returns a list of state ballot measures in a given year.\n\n@param year\n@param stateId\n@return {@link Measures}: List of minimal measure information.", "docstring_tokens": ["This", "method", "returns", "a", "list", "of", "state", "ballot", "measures", "in", "a", "given", "year", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/MeasureClass.java#L59-L61", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/MeasureClass.java", "func_name": "MeasureClass.getMeasure", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method returns a single Ballot Measure detail.\n\n@param measureId\n@return {@link Measure}: detail on single measure", "docstring_tokens": ["This", "method", "returns", "a", "single", "Ballot", "Measure", "detail", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/MeasureClass.java#L69-L71", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/RatingClass.java", "func_name": "RatingClass.getCandidateRating", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method dumps a candidate's rating by an SIG.\n\n@param candidateId\n@return {@link CandidateRating}", "docstring_tokens": ["This", "method", "dumps", "a", "candidate", "s", "rating", "by", "an", "SIG", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/RatingClass.java#L158-L160", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/RatingClass.java", "func_name": "RatingClass.getRating", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method dumps all candidate ratings from a scorecard by an SIG.\n\n@param ratingId\n@return {@link Rating}\n@throws VoteSmartException, VoteSmartErrorException", "docstring_tokens": ["This", "method", "dumps", "all", "candidate", "ratings", "from", "a", "scorecard", "by", "an", "SIG", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/RatingClass.java#L180-L182", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/ElectionClass.java", "func_name": "ElectionClass.getElectionByYearState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method grabs district basic election data according to year and stateid.\n\n@param year\n@return {@link Elections}", "docstring_tokens": ["This", "method", "grabs", "district", "basic", "election", "data", "according", "to", "year", "and", "stateid", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/ElectionClass.java#L84-L86", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/ElectionClass.java", "func_name": "ElectionClass.getElectionByZip", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method grabs district basic election data according to zip code.\n\n@param zip5\n@return {@link ElectionByZip}:", "docstring_tokens": ["This", "method", "grabs", "district", "basic", "election", "data", "according", "to", "zip", "code", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/ElectionClass.java#L105-L107", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/ElectionClass.java", "func_name": "ElectionClass.getStageCandidates", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method grabs district basic election data according to electionId and stageId.\nPer state lists of a Presidential election are available by specifying the stateId.\n\n@param electionId\n@param stageId\n@param party\n@return {@link StageCandidates}:", "docstring_tokens": ["This", "method", "grabs", "district", "basic", "election", "data", "according", "to", "electionId", "and", "stageId", ".", "Per", "state", "lists", "of", "a", "Presidential", "election", "are", "available", "by", "specifying", "the", "stateId", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/ElectionClass.java#L153-L155", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/AddressClass.java", "func_name": "AddressClass.getOfficeByOfficeState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method grabs office address and basic candidate information according to the officeId and state.\n\n@param officeId\n@return {@link AddressAddress}: Candidate name and list of offices", "docstring_tokens": ["This", "method", "grabs", "office", "address", "and", "basic", "candidate", "information", "according", "to", "the", "officeId", "and", "state", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/AddressClass.java#L132-L134", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/OfficeClass.java", "func_name": "OfficeClass.getOfficesByType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method dumps offices we keep track of according to type.\n\n@param officeTypeId\n@return {@link Offices}:", "docstring_tokens": ["This", "method", "dumps", "offices", "we", "keep", "track", "of", "according", "to", "type", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/OfficeClass.java#L118-L120", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/OfficeClass.java", "func_name": "OfficeClass.getOfficesByLevel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method dumps offices we keep track of according to level.\n\n@param levelId\n@return {@link Offices}:", "docstring_tokens": ["This", "method", "dumps", "offices", "we", "keep", "track", "of", "according", "to", "level", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/OfficeClass.java#L128-L130", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/OfficeClass.java", "func_name": "OfficeClass.getOfficesByTypeLevel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method dumps offices we keep track of according to type and level.\n\n@param officeTypeId\n@param officeLevelId\n@return {@link Offices}:", "docstring_tokens": ["This", "method", "dumps", "offices", "we", "keep", "track", "of", "according", "to", "type", "and", "level", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/OfficeClass.java#L139-L141", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/OfficeClass.java", "func_name": "OfficeClass.getOfficesByBranchLevel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method dumps offices we keep track of according to branch and level.\n\n@param branchId\n@param levelId\n@return {@link Offices}:", "docstring_tokens": ["This", "method", "dumps", "offices", "we", "keep", "track", "of", "according", "to", "branch", "and", "level", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/OfficeClass.java#L150-L152", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/LocalClass.java", "func_name": "LocalClass.getCounties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fetches counties in a state.\n\n@param stateId\n@return {@link Counties}:", "docstring_tokens": ["Fetches", "counties", "in", "a", "state", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/LocalClass.java#L68-L70", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/LocalClass.java", "func_name": "LocalClass.getCities", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fetches cities in a state.\n\n@param stateId\n@return {@link Cities}:", "docstring_tokens": ["Fetches", "cities", "in", "a", "state", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/LocalClass.java#L78-L80", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/LocalClass.java", "func_name": "LocalClass.getOfficials", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Fetches officials for a locality.\n\n@param localId\n@return {@link LocalCandidateList}:", "docstring_tokens": ["Fetches", "officials", "for", "a", "locality", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/LocalClass.java#L88-L90", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/api/VoteSmart.java", "func_name": "VoteSmart.query", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Queries the API server for the information requested\n\n@param method\n@param argMap\n@param responseType\n@throws VoteSmartErrorException", "docstring_tokens": ["Queries", "the", "API", "server", "for", "the", "information", "requested"], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/api/VoteSmart.java#L116-L170", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/OfficialsClass.java", "func_name": "OfficialsClass.getStatewide", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method grabs a list of officials according to state representation.\n\n@param stateId\n@return {@link CandidateList}", "docstring_tokens": ["This", "method", "grabs", "a", "list", "of", "officials", "according", "to", "state", "representation", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/OfficialsClass.java#L99-L101", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/OfficialsClass.java", "func_name": "OfficialsClass.getByOfficeTypeState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method grabs a list of officials according to office type and state representation.\n\n@param officeTypeId\n@param stateId\n@return {@link CandidateList}", "docstring_tokens": ["This", "method", "grabs", "a", "list", "of", "officials", "according", "to", "office", "type", "and", "state", "representation", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/OfficialsClass.java#L141-L143", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/OfficialsClass.java", "func_name": "OfficialsClass.getByZip", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method grabs a list of officials according to the zip code they represent.\n\n@param zip5\n@return {@link CandidateList}", "docstring_tokens": ["This", "method", "grabs", "a", "list", "of", "officials", "according", "to", "the", "zip", "code", "they", "represent", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/OfficialsClass.java#L181-L183", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/CandidateBioClass.java", "func_name": "CandidateBioClass.getAddlBio", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method grabs the extended bio for each candidate that has one.\n\n@param candidateId\n@return {@link AddlBio}: Additional items in a list.", "docstring_tokens": ["This", "method", "grabs", "the", "extended", "bio", "for", "each", "candidate", "that", "has", "one", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/CandidateBioClass.java#L69-L71", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/CandidateBioClass.java", "func_name": "CandidateBioClass.getBio", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method grabs the extended bio for each candidate that has one.\nIt uses the updated version 'getDetailedBio' of the call.\n\n@param candidateId\n@return {@link AddlBio}: Additional items in a list.", "docstring_tokens": ["This", "method", "grabs", "the", "extended", "bio", "for", "each", "candidate", "that", "has", "one", ".", "It", "uses", "the", "updated", "version", "getDetailedBio", "of", "the", "call", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/CandidateBioClass.java#L80-L82", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/CandidatesClass.java", "func_name": "CandidatesClass.getByLastname", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method grabs a list of candidates according to a lastname match.\n\n@param lastName\n@param electionYear\n@return {@link CandidateList}: list of detailed candidate information.", "docstring_tokens": ["This", "method", "grabs", "a", "list", "of", "candidates", "according", "to", "a", "lastname", "match", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/CandidatesClass.java#L186-L188", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/CandidatesClass.java", "func_name": "CandidatesClass.getByElection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method grabs a list of candidates according to a fuzzy lastname match.\n\n@param electionId\n@return {@link CandidateList}: list of detailed candidate information.", "docstring_tokens": ["This", "method", "grabs", "a", "list", "of", "candidates", "according", "to", "a", "fuzzy", "lastname", "match", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/CandidatesClass.java#L241-L243", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/CandidatesClass.java", "func_name": "CandidatesClass.getByDistrict", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method grabs a list of candidates according to the district they represent.\n\n@param districtId\n@param electionYear\n@return {@link CandidateList}: list of detailed candidate information.", "docstring_tokens": ["This", "method", "grabs", "a", "list", "of", "candidates", "according", "to", "the", "district", "they", "represent", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/CandidatesClass.java#L273-L275", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/CommitteeClass.java", "func_name": "CommitteeClass.getCommitteesByTypeState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the list of committees that fit the criteria.\n\n@param typeId\n@return {@link Committees}:", "docstring_tokens": ["Returns", "the", "list", "of", "committees", "that", "fit", "the", "criteria", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/CommitteeClass.java#L88-L90", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/CommitteeClass.java", "func_name": "CommitteeClass.getCommittee", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns detailed committee data.\n\n@param committeeId\n@return {@link Committee}:", "docstring_tokens": ["Returns", "detailed", "committee", "data", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/CommitteeClass.java#L109-L111", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/CommitteeClass.java", "func_name": "CommitteeClass.getCommitteeMembers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns members of the committee.\n\n@param committeeId\n@return {@link CommitteeMembers}:", "docstring_tokens": ["Returns", "members", "of", "the", "committee", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/CommitteeClass.java#L119-L121", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/LeadershipClass.java", "func_name": "LeadershipClass.getPositions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets leadership positions by state and office.\n\n@param stateId\n@return {@link Leadership}:", "docstring_tokens": ["Gets", "leadership", "positions", "by", "state", "and", "office", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/LeadershipClass.java#L73-L75", "partition": "valid"} +{"repo": "karlnicholas/votesmart", "path": "src/main/java/org/votesmart/classes/LeadershipClass.java", "func_name": "LeadershipClass.getOfficials", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets officials that hold the leadership role in certain states.\n\n@param leadershipId\n@return {@link Leaders}:", "docstring_tokens": ["Gets", "officials", "that", "hold", "the", "leadership", "role", "in", "certain", "states", "."], "sha": "b7e0cb58e48071ae904bc0924691e99f2c4e314e", "url": "https://github.com/karlnicholas/votesmart/blob/b7e0cb58e48071ae904bc0924691e99f2c4e314e/src/main/java/org/votesmart/classes/LeadershipClass.java#L94-L96", "partition": "valid"} +{"repo": "michael-borkowski/spiceJ", "path": "spiceJ/core/src/main/java/at/borkowski/spicej/impl/SleepWakeup.java", "func_name": "SleepWakeup.sleep", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sleeps for the provided amount of milliseconds, ignoring thread\ninterrupts.\n\n@param ms\nhow many milliseconds to sleep", "docstring_tokens": ["Sleeps", "for", "the", "provided", "amount", "of", "milliseconds", "ignoring", "thread", "interrupts", "."], "sha": "c1d4f1170199efc7769e68bd9b853e1c53c9a99d", "url": "https://github.com/michael-borkowski/spiceJ/blob/c1d4f1170199efc7769e68bd9b853e1c53c9a99d/spiceJ/core/src/main/java/at/borkowski/spicej/impl/SleepWakeup.java#L40-L47", "partition": "valid"} +{"repo": "michael-borkowski/spiceJ", "path": "spiceJ/real-time/src/main/java/at/borkowski/spicej/rt/RealTimeTickSource.java", "func_name": "RealTimeTickSource.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Starts generating tick events, starting from 0. This method must not be\ncalled when the tick source is already running.", "docstring_tokens": ["Starts", "generating", "tick", "events", "starting", "from", "0", ".", "This", "method", "must", "not", "be", "called", "when", "the", "tick", "source", "is", "already", "running", "."], "sha": "c1d4f1170199efc7769e68bd9b853e1c53c9a99d", "url": "https://github.com/michael-borkowski/spiceJ/blob/c1d4f1170199efc7769e68bd9b853e1c53c9a99d/spiceJ/real-time/src/main/java/at/borkowski/spicej/rt/RealTimeTickSource.java#L115-L129", "partition": "valid"} +{"repo": "michael-borkowski/spiceJ", "path": "spiceJ/proxy/src/main/java/at/borkowski/spicej/proxy/StreamGobbler.java", "func_name": "StreamGobbler.waitFor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Waits until the gobbler finished. If the gobbler encountered any\nexception, it is thrown from this method.\n\n@throws Throwable\nif the gobbler has thrown an exception", "docstring_tokens": ["Waits", "until", "the", "gobbler", "finished", ".", "If", "the", "gobbler", "encountered", "any", "exception", "it", "is", "thrown", "from", "this", "method", "."], "sha": "c1d4f1170199efc7769e68bd9b853e1c53c9a99d", "url": "https://github.com/michael-borkowski/spiceJ/blob/c1d4f1170199efc7769e68bd9b853e1c53c9a99d/spiceJ/proxy/src/main/java/at/borkowski/spicej/proxy/StreamGobbler.java#L60-L73", "partition": "valid"} +{"repo": "michael-borkowski/spiceJ", "path": "spiceJ/proxy/src/main/java/at/borkowski/spicej/proxy/StreamGobbler.java", "func_name": "StreamGobbler.close", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Interrupts the gobbler and closes its streams.", "docstring_tokens": ["Interrupts", "the", "gobbler", "and", "closes", "its", "streams", "."], "sha": "c1d4f1170199efc7769e68bd9b853e1c53c9a99d", "url": "https://github.com/michael-borkowski/spiceJ/blob/c1d4f1170199efc7769e68bd9b853e1c53c9a99d/spiceJ/proxy/src/main/java/at/borkowski/spicej/proxy/StreamGobbler.java#L78-L92", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/MapUtils.java", "func_name": "MapUtils.merge", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Merging single level aggregation maps\n\n@param stream source to merge\n@param mergeFunction operation\n@param mapSupplier new map supplier\n@param type of key\n@param type of value\n@param type of map supplier\n@return new merged map", "docstring_tokens": ["Merging", "single", "level", "aggregation", "maps"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/MapUtils.java#L29-L40", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/MapUtils.java", "func_name": "MapUtils.split", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Splits map to list of maps\n@param map to be split\n@param limit max number of items in splitted map\n@param key type\n@param value type\n@return list of maps", "docstring_tokens": ["Splits", "map", "to", "list", "of", "maps"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/MapUtils.java#L51-L61", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/MapUtils.java", "func_name": "MapUtils.mapSizer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Collector splitting map into seperate maps\n@param limit max number of items in slitted map\n@param key type\n@param value type\n@return collected map with size less or equal to limit", "docstring_tokens": ["Collector", "splitting", "map", "into", "seperate", "maps"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/MapUtils.java#L70-L104", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/MapUtils.java", "func_name": "MapUtils.sort", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sorts map with comparator\n\n@param map to be sorted\n@param comparator to apply\n@param type of key\n@param type of value\n@return sorted map (LinkedHashMap)", "docstring_tokens": ["Sorts", "map", "with", "comparator"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/MapUtils.java#L115-L129", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/MapUtils.java", "func_name": "MapUtils.firstValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns first value in map as given by the iterator or null if empty\n\n@param map to get first value out\n@param object type of result\n@return first value in map or null if null or empty", "docstring_tokens": ["Returns", "first", "value", "in", "map", "as", "given", "by", "the", "iterator", "or", "null", "if", "empty"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/MapUtils.java#L138-L146", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/Assert.java", "func_name": "Assert.isNull", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tests if object is null\n\n@param test must be null\n@param message to return in exception\n@param object type\n@throws IllegalArgumentException if object != null", "docstring_tokens": ["Tests", "if", "object", "is", "null"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/Assert.java#L62-L65", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/Assert.java", "func_name": "Assert.notNull", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tests if object is != null\n\n@param test must not be null\n@param message to return in exception\n@param object type\n@throws IllegalArgumentException if object == null", "docstring_tokens": ["Tests", "if", "object", "is", "!", "=", "null"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/Assert.java#L75-L78", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/Assert.java", "func_name": "Assert.notNullOrEmptyTrimmed", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tests if String is null or empty when trimmed\n\n@param value must be non empty string\n@param message to return in exception\n@throws IllegalArgumentException if value == null, value == \"\" or value.trim() == \"\"", "docstring_tokens": ["Tests", "if", "String", "is", "null", "or", "empty", "when", "trimmed"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/Assert.java#L87-L90", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/Assert.java", "func_name": "Assert.isNullOrEmpty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tests if set is null or empty\n\n@param set must be null or empty\n@param message to return in exception\n@param object type\n@throws IllegalArgumentException if list != null or list.size() greater than 0", "docstring_tokens": ["Tests", "if", "set", "is", "null", "or", "empty"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/Assert.java#L166-L169", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/Assert.java", "func_name": "Assert.isNullOrEmpty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tests if array is null or empty\n\n@param array must be null or empty\n@param message to return in exception\n@param object type\n@throws IllegalArgumentException if list != null or list.size() greater than 0", "docstring_tokens": ["Tests", "if", "array", "is", "null", "or", "empty"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/Assert.java#L179-L182", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/ResourceUtils.java", "func_name": "ResourceUtils.getResourceAsString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads class resource to String\n\n@param resourceFile to read\n@param clazz to use for resource access\n@return String representing the resource or null if resource could not be read", "docstring_tokens": ["Loads", "class", "resource", "to", "String"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/ResourceUtils.java#L29-L49", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/ResourceUtils.java", "func_name": "ResourceUtils.getResourceWords", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads resource as a set of Strings, where each word is added to the set\n\n@param resourceFile to read\n@param clazz to use for resource access\n@return set of strings (lines) or null if resource could not be read", "docstring_tokens": ["Loads", "resource", "as", "a", "set", "of", "Strings", "where", "each", "word", "is", "added", "to", "the", "set"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/ResourceUtils.java#L67-L95", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/ResourceUtils.java", "func_name": "ResourceUtils.getLastModifiedTime", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get resource last modified date\n\n@param resourceFile to read\n@param clazz to use for resource access\n@return last modified date or null if resource could not be read", "docstring_tokens": ["Get", "resource", "last", "modified", "date"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/ResourceUtils.java#L115-L128", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/ResourceUtils.java", "func_name": "ResourceUtils.getString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load input stream into string\n\n@param is stream\n@param encoding to use when reading input stream\n@return String representation of given input", "docstring_tokens": ["Load", "input", "stream", "into", "string"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/ResourceUtils.java#L152-L179", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/ResourceUtils.java", "func_name": "ResourceUtils.getBytes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load input stream into byte array\n\n@param is stream\n@return byte representation of given input", "docstring_tokens": ["Load", "input", "stream", "into", "byte", "array"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/ResourceUtils.java#L187-L209", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/ResourceUtils.java", "func_name": "ResourceUtils.readFileToString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reads file into String\n\n@param file to be read\n@return file content\n@throws IOException in case file does't exist or is not a file", "docstring_tokens": ["Reads", "file", "into", "String"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/ResourceUtils.java#L218-L226", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/ResourceUtils.java", "func_name": "ResourceUtils.getResourceAbsolutePath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets absolute file path of resource\n\n@param resource to get absolute file path for\n@param clazz namespace holding resource\n@return file path if found\n@throws IllegalArgumentException if resource can not be found", "docstring_tokens": ["Gets", "absolute", "file", "path", "of", "resource"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/ResourceUtils.java#L236-L245", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/KeyGenerator.java", "func_name": "KeyGenerator.generateString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates random string from ELEMENTS set of chars and numbers\n\n@param length desired length of key greater than 0\n@return random string of desired length (min 1, max 100 characters long)", "docstring_tokens": ["Generates", "random", "string", "from", "ELEMENTS", "set", "of", "chars", "and", "numbers"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/KeyGenerator.java#L24-L37", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/KeyGenerator.java", "func_name": "KeyGenerator.generateLong", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates non negative long key of maximum length 18\n\n@param length desired length of key grater than 0 (must consider max possible length of a long value)\n@return long key (min 1, max 19 digits long)", "docstring_tokens": ["Generates", "non", "negative", "long", "key", "of", "maximum", "length", "18"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/KeyGenerator.java#L45-L68", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/ArrayUtils.java", "func_name": "ArrayUtils.join", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "joins two arrays and preserves array order\narray1 items are followed by array2 items as given\n@param array1 first array\n@param array2 second array\n@param class type of object in arrays\n@return joined array holding both arrays in same order as given", "docstring_tokens": ["joins", "two", "arrays", "and", "preserves", "array", "order", "array1", "items", "are", "followed", "by", "array2", "items", "as", "given"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/ArrayUtils.java#L22-L52", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/SetUtils.java", "func_name": "SetUtils.split", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Splits set in 1..N chunks of maxSize or less\n\n@param set to be spitted\n@param maxSize of a given chunk\n@param type of class in set\n@return list of sets containing all elements of original set without duplicates", "docstring_tokens": ["Splits", "set", "in", "1", "..", "N", "chunks", "of", "maxSize", "or", "less"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/SetUtils.java#L22-L43", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/InstantTimeUtils.java", "func_name": "InstantTimeUtils.getMonthStart", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets first millisecond of first day in month\n\n@param time to get first millisecond\n@return first millisecond of month for given time", "docstring_tokens": ["Gets", "first", "millisecond", "of", "first", "day", "in", "month"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/InstantTimeUtils.java#L225-L231", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/InstantTimeUtils.java", "func_name": "InstantTimeUtils.getMonthEnd", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns last millisecond of last day in month ... +1 = next first day in month\n\n@param time to get last second in month\n@return last millisecond of month for given time", "docstring_tokens": ["Returns", "last", "millisecond", "of", "last", "day", "in", "month", "...", "+", "1", "=", "next", "first", "day", "in", "month"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/InstantTimeUtils.java#L239-L246", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/StringUtils.java", "func_name": "StringUtils.trimToNull", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Trims down text to null if empty\n\n@param text to be trimmed\n@return text or null if empty", "docstring_tokens": ["Trims", "down", "text", "to", "null", "if", "empty"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/StringUtils.java#L203-L212", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/StringUtils.java", "func_name": "StringUtils.capitalize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Capitalizes first character in given string\n\n@param input to capitalize first character\n@return capitalized string or null if null", "docstring_tokens": ["Capitalizes", "first", "character", "in", "given", "string"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/StringUtils.java#L220-L235", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/StringUtils.java", "func_name": "StringUtils.join", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Joins array of objects into string, where items are separated\nwith a defined separator.\n\n@param args array of Object\n@param separator to be used between elements\n@return items joined into a single string", "docstring_tokens": ["Joins", "array", "of", "objects", "into", "string", "where", "items", "are", "separated", "with", "a", "defined", "separator", "."], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/StringUtils.java#L331-L334", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/StringUtils.java", "func_name": "StringUtils.join", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Joins set of items to a single string, where items are separated\nwith a defined separator.\n\n@param items to join into string\n@param separator to be used between elements\n@return items joined into a single string", "docstring_tokens": ["Joins", "set", "of", "items", "to", "a", "single", "string", "where", "items", "are", "separated", "with", "a", "defined", "separator", "."], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/StringUtils.java#L367-L370", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/StringUtils.java", "func_name": "StringUtils.getWords", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extracts words from text removing non alpha characters\n\n@param text to extract words from\n@return list of found words or empty list if none found", "docstring_tokens": ["Extracts", "words", "from", "text", "removing", "non", "alpha", "characters"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/StringUtils.java#L409-L424", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/StringUtils.java", "func_name": "StringUtils.trimTextDown", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reduces text to max given size preserving words\n\n@param text to trim down\n@param size max desired size\n@return trimmed down text with \"...\" or original text if fitting size", "docstring_tokens": ["Reduces", "text", "to", "max", "given", "size", "preserving", "words"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/StringUtils.java#L465-L478", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/StringUtils.java", "func_name": "StringUtils.trimTextDown", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reduces text size to a given size\n\n@param text to reduce\n@param sizeMinusAppend size final string should be max long\n@param append string to append at the end to indicate trimming\n@return trimmed text with appended text of given max size, or original text if shorter than desired", "docstring_tokens": ["Reduces", "text", "size", "to", "a", "given", "size"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/StringUtils.java#L488-L505", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/StringUtils.java", "func_name": "StringUtils.asListOfChars", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts text to list of characters\n\n@param text to be converted\n@return list of characters", "docstring_tokens": ["Converts", "text", "to", "list", "of", "characters"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/StringUtils.java#L524-L537", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/StringUtils.java", "func_name": "StringUtils.relevance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Calculates matching relevance between given string and search expression\n\n@param value to search in\n@param search to search for\n@return -1 not relevant, 0..N - where lower values represents more relevant results", "docstring_tokens": ["Calculates", "matching", "relevance", "between", "given", "string", "and", "search", "expression"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/StringUtils.java#L562-L609", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/StringUtils.java", "func_name": "StringUtils.unQuote", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes double or single quotes if any are present\n\n@param text to remove double quotes from\n@return un quoted string", "docstring_tokens": ["Removes", "double", "or", "single", "quotes", "if", "any", "are", "present"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/StringUtils.java#L694-L706", "partition": "valid"} +{"repo": "zandero/utils", "path": "src/main/java/com/zandero/utils/DateTimeUtils.java", "func_name": "DateTimeUtils.getTimezoneTime", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns time for given time zone\n@param time current time\n@param timezone time zone (-12 / +12)\n@return time in other time zone", "docstring_tokens": ["Returns", "time", "for", "given", "time", "zone"], "sha": "fc0bcb955ec76034293600d899bed1faae89f8c8", "url": "https://github.com/zandero/utils/blob/fc0bcb955ec76034293600d899bed1faae89f8c8/src/main/java/com/zandero/utils/DateTimeUtils.java#L185-L198", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/model/Filter.java", "func_name": "Filter.hasTag", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loops through the FilterTags held by this Filter, and returns the state of the tag if it exists, and -1 if it does not.\n\n@param tagID The id of the tag to get the state of\n@return -1 if the tag was not found, otherwise the state of the tag", "docstring_tokens": ["Loops", "through", "the", "FilterTags", "held", "by", "this", "Filter", "and", "returns", "the", "state", "of", "the", "tag", "if", "it", "exists", "and", "-", "1", "if", "it", "does", "not", "."], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/model/Filter.java#L235-L243", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/CheckstyleViolationCheckMojo.java", "func_name": "CheckstyleViolationCheckMojo.isViolation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if the given severity is considered a violation.\n\n@param severity The severity to check\n@return true if the given severity is a violation, otherwise false", "docstring_tokens": ["Checks", "if", "the", "given", "severity", "is", "considered", "a", "violation", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/CheckstyleViolationCheckMojo.java#L679-L690", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/IconTool.java", "func_name": "IconTool.iconSeverity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Render a simple icon of given level.\n\n@param level one of INFO, WARNING or ERROR constants", "docstring_tokens": ["Render", "a", "simple", "icon", "of", "given", "level", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/IconTool.java#L78-L82", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/IconTool.java", "func_name": "IconTool.iconSeverity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Render an icon of given level with associated text.\n\n@param level one of INFO, WARNING or ERROR constants\n@param textType one of NO_TEXT, TEXT_SIMPLE, TEXT_TITLE or\nTEXT_ABBREV constants", "docstring_tokens": ["Render", "an", "icon", "of", "given", "level", "with", "associated", "text", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/IconTool.java#L91-L101", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/model/Project.java", "func_name": "Project.getTagsList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generates a HTML formatted and categorized list of the tags that are associated with this topic\n\n@return A HTML String to display in a table", "docstring_tokens": ["Generates", "a", "HTML", "formatted", "and", "categorized", "list", "of", "the", "tags", "that", "are", "associated", "with", "this", "topic"], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/model/Project.java#L137-L190", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/model/contentspec/CSNode.java", "func_name": "CSNode.setNextAndClean", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the Next Node and cleans up any old references.\n\n@param next The next node.", "docstring_tokens": ["Sets", "the", "Next", "Node", "and", "cleans", "up", "any", "old", "references", "."], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/model/contentspec/CSNode.java#L209-L215", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/model/contentspec/CSNode.java", "func_name": "CSNode.setPreviousAndClean", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the Previous Node and cleans up any old references.\n\n@param previous The previous node.", "docstring_tokens": ["Sets", "the", "Previous", "Node", "and", "cleans", "up", "any", "old", "references", "."], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/model/contentspec/CSNode.java#L262-L268", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java", "func_name": "NodesContainer.find", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds the node by host and port.\n\n@param host\n- the host.\n@param port\n- the port.\n@return - the found node, or null otherwise.", "docstring_tokens": ["Finds", "the", "node", "by", "host", "and", "port", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java#L63-L65", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java", "func_name": "NodesContainer.find", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds the set of nodes by host.\n\n@param host\n- the host.\n@return - the found nodes.", "docstring_tokens": ["Finds", "the", "set", "of", "nodes", "by", "host", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java#L74-L86", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java", "func_name": "NodesContainer.getAllNotDead", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets all the nodes not in status DEAD.\n\n@return - all the nodes not in status DEAD.", "docstring_tokens": ["Gets", "all", "the", "nodes", "not", "in", "status", "DEAD", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java#L102-L112", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java", "func_name": "NodesContainer.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds one more node to the container.\n\n@param node\n- the node.", "docstring_tokens": ["Adds", "one", "more", "node", "to", "the", "container", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java#L137-L140", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java", "func_name": "NodesContainer.remove", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the specified node.\n\n@param node\n- the node.", "docstring_tokens": ["Removes", "the", "specified", "node", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java#L148-L151", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java", "func_name": "NodesContainer.markAsAlive", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Marks the node as ALIVE in case of its status is not ALIVE.\n\n@param node\n- the node.", "docstring_tokens": ["Marks", "the", "node", "as", "ALIVE", "in", "case", "of", "its", "status", "is", "not", "ALIVE", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java#L159-L164", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java", "func_name": "NodesContainer.markAsDead", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Marks the node as DEAD in case of its status is not DEAD.\n\n@param node\n- the node.", "docstring_tokens": ["Marks", "the", "node", "as", "DEAD", "in", "case", "of", "its", "status", "is", "not", "DEAD", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java#L172-L177", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java", "func_name": "NodesContainer.sendEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sends the event to all the handlers.\n\n@param node\n- the event node.\n@param type\n- the event type.", "docstring_tokens": ["Sends", "the", "event", "to", "all", "the", "handlers", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/model/NodesContainer.java#L197-L202", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/exec/DefaultCheckstyleExecutor.java", "func_name": "DefaultCheckstyleExecutor.getCheckstyleVersion", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the effective Checkstyle version at runtime.\n\n@return the MANIFEST implementation version of Checkstyle API package (can be null)\n@todo Copied from CheckstyleReportGenerator - move to a utility class", "docstring_tokens": ["Get", "the", "effective", "Checkstyle", "version", "at", "runtime", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/exec/DefaultCheckstyleExecutor.java#L431-L435", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/exec/DefaultCheckstyleExecutor.java", "func_name": "DefaultCheckstyleExecutor.configureResourceLocator", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configures search paths in the resource locator.\nThis method should only be called once per execution.\n\n@param request executor request data.", "docstring_tokens": ["Configures", "search", "paths", "in", "the", "resource", "locator", ".", "This", "method", "should", "only", "be", "called", "once", "per", "execution", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/exec/DefaultCheckstyleExecutor.java#L704-L740", "partition": "valid"} +{"repo": "pascalw/jFactory", "path": "core/src/main/java/nl/pwiddershoven/jfactory/ObjectFactory.java", "func_name": "ObjectFactory.build", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Build object.\n@return", "docstring_tokens": ["Build", "object", "."], "sha": "afaffced982bd51d1a86342f27128b596149ac3a", "url": "https://github.com/pascalw/jFactory/blob/afaffced982bd51d1a86342f27128b596149ac3a/core/src/main/java/nl/pwiddershoven/jfactory/ObjectFactory.java#L36-L53", "partition": "valid"} +{"repo": "pascalw/jFactory", "path": "core/src/main/java/nl/pwiddershoven/jfactory/ObjectFactory.java", "func_name": "ObjectFactory.createObjectPropertyValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Merge passed attributes with the supplied property values.\n@param defaultPropertyValues\n@param attributes\n@return", "docstring_tokens": ["Merge", "passed", "attributes", "with", "the", "supplied", "property", "values", "."], "sha": "afaffced982bd51d1a86342f27128b596149ac3a", "url": "https://github.com/pascalw/jFactory/blob/afaffced982bd51d1a86342f27128b596149ac3a/core/src/main/java/nl/pwiddershoven/jfactory/ObjectFactory.java#L201-L222", "partition": "valid"} +{"repo": "pascalw/jFactory", "path": "core/src/main/java/nl/pwiddershoven/jfactory/ObjectFactory.java", "func_name": "ObjectFactory.currentSequence", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve the current sequence value for the given property.\n@param name name of the property that should be assigned the sequence value.\n@return The current value of the referenced sequence.", "docstring_tokens": ["Retrieve", "the", "current", "sequence", "value", "for", "the", "given", "property", "."], "sha": "afaffced982bd51d1a86342f27128b596149ac3a", "url": "https://github.com/pascalw/jFactory/blob/afaffced982bd51d1a86342f27128b596149ac3a/core/src/main/java/nl/pwiddershoven/jfactory/ObjectFactory.java#L265-L277", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "visualization/visualization-model/src/main/java/se/jguru/nazgul/tools/visualization/model/diagram/NodeID.java", "func_name": "NodeID.compareTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Compares the supplied NodeID to this one.\n\n@param that A NodeID to compare to this one.\n@return THe difference in", "docstring_tokens": ["Compares", "the", "supplied", "NodeID", "to", "this", "one", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/visualization/visualization-model/src/main/java/se/jguru/nazgul/tools/visualization/model/diagram/NodeID.java#L142-L154", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/BufferedNodeEventHandler.java", "func_name": "BufferedNodeEventHandler.getAndClearEventslist", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the copy of the buffer and clears the buffer.\n\n@return - the copy of events since the last call of this method.", "docstring_tokens": ["Gets", "the", "copy", "of", "the", "buffer", "and", "clears", "the", "buffer", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/BufferedNodeEventHandler.java#L57-L61", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "visualization/visualization-spi-doclet/src/main/java/se/jguru/nazgul/tools/visualization/spi/doclet/javadoc/VisualizationWrappedRootDoc.java", "func_name": "VisualizationWrappedRootDoc.findPackagesFromClassesInJavaDocRun", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds all PackageDoc objects from the classes in this JavaDoc execution.\n\n@return a non-null (but possibly empty) SortedSet containing all {@link PackageDoc}s from the current execution.", "docstring_tokens": ["Finds", "all", "PackageDoc", "objects", "from", "the", "classes", "in", "this", "JavaDoc", "execution", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/visualization/visualization-spi-doclet/src/main/java/se/jguru/nazgul/tools/visualization/spi/doclet/javadoc/VisualizationWrappedRootDoc.java#L119-L133", "partition": "valid"} +{"repo": "pascalw/jFactory", "path": "core/src/main/java/nl/pwiddershoven/jfactory/ReflectionUtils.java", "func_name": "ReflectionUtils.setProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the property identified by name to the provided value.\n@param target\n@param name\n@param value\n@return true on success, false if property wasn't found.", "docstring_tokens": ["Set", "the", "property", "identified", "by", "name", "to", "the", "provided", "value", "."], "sha": "afaffced982bd51d1a86342f27128b596149ac3a", "url": "https://github.com/pascalw/jFactory/blob/afaffced982bd51d1a86342f27128b596149ac3a/core/src/main/java/nl/pwiddershoven/jfactory/ReflectionUtils.java#L28-L41", "partition": "valid"} +{"repo": "pascalw/jFactory", "path": "core/src/main/java/nl/pwiddershoven/jfactory/ReflectionUtils.java", "func_name": "ReflectionUtils.setField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the field identified by name to the given value.\n@param target\n@param name\n@param value\n@return true on success, false if field wasn't found.", "docstring_tokens": ["Set", "the", "field", "identified", "by", "name", "to", "the", "given", "value", "."], "sha": "afaffced982bd51d1a86342f27128b596149ac3a", "url": "https://github.com/pascalw/jFactory/blob/afaffced982bd51d1a86342f27128b596149ac3a/core/src/main/java/nl/pwiddershoven/jfactory/ReflectionUtils.java#L50-L62", "partition": "valid"} +{"repo": "pascalw/jFactory", "path": "core/src/main/java/nl/pwiddershoven/jfactory/ReflectionUtils.java", "func_name": "ReflectionUtils.getAnnotatedMethods", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get all methods on the given class that are annotated with the given annotation type.\n@param targetClass\n@param annotationType\n@return", "docstring_tokens": ["Get", "all", "methods", "on", "the", "given", "class", "that", "are", "annotated", "with", "the", "given", "annotation", "type", "."], "sha": "afaffced982bd51d1a86342f27128b596149ac3a", "url": "https://github.com/pascalw/jFactory/blob/afaffced982bd51d1a86342f27128b596149ac3a/core/src/main/java/nl/pwiddershoven/jfactory/ReflectionUtils.java#L70-L80", "partition": "valid"} +{"repo": "pascalw/jFactory", "path": "core/src/main/java/nl/pwiddershoven/jfactory/ReflectionUtils.java", "func_name": "ReflectionUtils.invokeMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Invoke the given method on the given target using the given arguments.\nAllows to call private and protected methods.\n@throws RuntimeException if method could not be invoked.\n@param target\n@param method\n@param arguments", "docstring_tokens": ["Invoke", "the", "given", "method", "on", "the", "given", "target", "using", "the", "given", "arguments", ".", "Allows", "to", "call", "private", "and", "protected", "methods", "."], "sha": "afaffced982bd51d1a86342f27128b596149ac3a", "url": "https://github.com/pascalw/jFactory/blob/afaffced982bd51d1a86342f27128b596149ac3a/core/src/main/java/nl/pwiddershoven/jfactory/ReflectionUtils.java#L90-L98", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/ServerTemplate.java", "func_name": "ServerTemplate.main", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Server entry point.\n\n@param args\nof type String[]", "docstring_tokens": ["Server", "entry", "point", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/ServerTemplate.java#L57-L68", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/CheckstyleReportGenerator.java", "func_name": "CheckstyleReportGenerator.getConfigAttribute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the value of the specified attribute from the Checkstyle configuration.\nIf parentConfigurations is non-null and non-empty, the parent\nconfigurations are searched if the attribute cannot be found in the\ncurrent configuration. If the attribute is still not found, the\nspecified default value will be returned.\n\n@param config The current Checkstyle configuration\n@param parentConfiguration The configuration of the parent of the current configuration\n@param attributeName The name of the attribute\n@param defaultValue The default value to use if the attribute cannot be found in any configuration\n@return The value of the specified attribute", "docstring_tokens": ["Get", "the", "value", "of", "the", "specified", "attribute", "from", "the", "Checkstyle", "configuration", ".", "If", "parentConfigurations", "is", "non", "-", "null", "and", "non", "-", "empty", "the", "parent", "configurations", "are", "searched", "if", "the", "attribute", "cannot", "be", "found", "in", "the", "current", "configuration", ".", "If", "the", "attribute", "is", "still", "not", "found", "the", "specified", "default", "value", "will", "be", "returned", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/CheckstyleReportGenerator.java#L223-L239", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/CheckstyleReportGenerator.java", "func_name": "CheckstyleReportGenerator.doRulesSummary", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create the rules summary section of the report.\n\n@param results The results to summarize", "docstring_tokens": ["Create", "the", "rules", "summary", "section", "of", "the", "report", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/CheckstyleReportGenerator.java#L246-L296", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/CheckstyleReportGenerator.java", "func_name": "CheckstyleReportGenerator.matchRule", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if a violation matches a rule.\n\n@param event the violation to check\n@param ruleName The name of the rule\n@param expectedMessage A message that, if it's not null, will be matched to the message from the violation\n@param expectedSeverity A severity that, if it's not null, will be matched to the severity from the violation\n@return The number of rule violations", "docstring_tokens": ["Check", "if", "a", "violation", "matches", "a", "rule", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/CheckstyleReportGenerator.java#L408-L432", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java", "func_name": "GuestNode.createReceivedAtKey", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the receivedAt key\n\n@param fromClusterName\n- the name of cluster from which the entry received\n@param toClusterName\n- the name of cluster on which the entry received\n@return - the receivedAt key", "docstring_tokens": ["Creates", "the", "receivedAt", "key"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java#L168-L173", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java", "func_name": "GuestNode.init", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Initializes the technical region", "docstring_tokens": ["Initializes", "the", "technical", "region"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java#L178-L238", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java", "func_name": "GuestNode.waitForStarted", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wait until the other clients started", "docstring_tokens": ["Wait", "until", "the", "other", "clients", "started"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java#L243-L279", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java", "func_name": "GuestNode.waitForSent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wait until received all the entries from other clients. Put the\nreceivedAt entries to cache.", "docstring_tokens": ["Wait", "until", "received", "all", "the", "entries", "from", "other", "clients", ".", "Put", "the", "receivedAt", "entries", "to", "cache", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java#L285-L342", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java", "func_name": "GuestNode.waitForConnected", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wait until all the clients received all the receivedAt entries.", "docstring_tokens": ["Wait", "until", "all", "the", "clients", "received", "all", "the", "receivedAt", "entries", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java#L347-L384", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java", "func_name": "GuestNode.waitFor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Waits for processing finished.\n\n@param timeout\n- the timeout in milliseconds\n@return - true if the connection process finished successfully, false\notherwise", "docstring_tokens": ["Waits", "for", "processing", "finished", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java#L440-L453", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java", "func_name": "GuestNode.close", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finalizes work with the guest node", "docstring_tokens": ["Finalizes", "work", "with", "the", "guest", "node"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java#L458-L470", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java", "func_name": "GuestNode.printState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prints the current state of connections\n\n@param connected", "docstring_tokens": ["Prints", "the", "current", "state", "of", "connections"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java#L477-L514", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java", "func_name": "GuestNode.main", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Configures and starts the guest node\n\n@param args\n- the configuration arguments", "docstring_tokens": ["Configures", "and", "starts", "the", "guest", "node"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/GuestNode.java#L522-L554", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/serialization/codegen/XClass.java", "func_name": "XClass.getOrderedProperties", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns properties in \"natural\" order, i.e. "ORDER BY VERSION, DECLARING CLASS, NAME"\n\n@return", "docstring_tokens": ["Returns", "properties", "in", "natural", "order", "i", ".", "e", ".", """, ";", "ORDER", "BY", "VERSION", "DECLARING", "CLASS", "NAME"", ";"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/serialization/codegen/XClass.java#L72-L76", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/serialization/codegen/XClass.java", "func_name": "XClass.getVersionModelHashCode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a hash code of class model for specified bean version based on fields that this model contains.\n\n@param version bean version to get metadata hashcode.\n@return the hashcode (16bits)", "docstring_tokens": ["Returns", "a", "hash", "code", "of", "class", "model", "for", "specified", "bean", "version", "based", "on", "fields", "that", "this", "model", "contains", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/serialization/codegen/XClass.java#L109-L120", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/query/pagination/PaginatedQuery.java", "func_name": "PaginatedQuery.getTotalNumberOfPages", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a total number of query pages.\n\n@return total number of pages\n@throws com.gemstone.gemfire.cache.query.QueryException\nduring query execution", "docstring_tokens": ["Returns", "a", "total", "number", "of", "query", "pages", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/query/pagination/PaginatedQuery.java#L358-L368", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/query/pagination/PaginatedQuery.java", "func_name": "PaginatedQuery.getValues", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns values for given keys.\n\n@param entriesKeysForPage\nof type List\n@return List", "docstring_tokens": ["Returns", "values", "for", "given", "keys", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/query/pagination/PaginatedQuery.java#L471-L483", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/query/pagination/PaginatedQuery.java", "func_name": "PaginatedQuery.prepareResultData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stores paginated query info if it has not been stored yet.\n\n@param force\n\n@throws com.gemstone.gemfire.cache.query.QueryException\nduring query execution", "docstring_tokens": ["Stores", "paginated", "query", "info", "if", "it", "has", "not", "been", "stored", "yet", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/query/pagination/PaginatedQuery.java#L522-L573", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/query/pagination/PaginatedQuery.java", "func_name": "PaginatedQuery.storeResults", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stores paginated query pages and general info.\n\n@param resultKeys\nof type List", "docstring_tokens": ["Stores", "paginated", "query", "pages", "and", "general", "info", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/query/pagination/PaginatedQuery.java#L581-L602", "partition": "valid"} +{"repo": "pascalw/jFactory", "path": "core/src/main/java/nl/pwiddershoven/jfactory/PersistableObjectFactory.java", "func_name": "PersistableObjectFactory.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create an object with the given attributes.\nFirst builds the object, than persists it.\n@param attributes\n@return", "docstring_tokens": ["Create", "an", "object", "with", "the", "given", "attributes", ".", "First", "builds", "the", "object", "than", "persists", "it", "."], "sha": "afaffced982bd51d1a86342f27128b596149ac3a", "url": "https://github.com/pascalw/jFactory/blob/afaffced982bd51d1a86342f27128b596149ac3a/core/src/main/java/nl/pwiddershoven/jfactory/PersistableObjectFactory.java#L25-L40", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/model/sort/TagToCategorySortingComparator.java", "func_name": "TagToCategorySortingComparator.compare", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sorting order is preferentially used to sort TagToCategory's, or the name of the Tag that\nthe TagToCategory's point to are used if both TagToCategory's sorting orders are null.", "docstring_tokens": ["Sorting", "order", "is", "preferentially", "used", "to", "sort", "TagToCategory", "s", "or", "the", "name", "of", "the", "Tag", "that", "the", "TagToCategory", "s", "point", "to", "are", "used", "if", "both", "TagToCategory", "s", "sorting", "orders", "are", "null", "."], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/model/sort/TagToCategorySortingComparator.java#L47-L63", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/liquibase/base/AbstractMigrateLocales.java", "func_name": "AbstractMigrateLocales.migrateBrokenLocales", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Migrates locales from a very early version of PressGang that was using the wrong locale value.\n\n@param preparedStmt\n@param localeMap\n@throws SQLException", "docstring_tokens": ["Migrates", "locales", "from", "a", "very", "early", "version", "of", "PressGang", "that", "was", "using", "the", "wrong", "locale", "value", "."], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/liquibase/base/AbstractMigrateLocales.java#L77-L85", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/model/utils/TopicUtilities.java", "func_name": "TopicUtilities.recalculateMinHash", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recalculate the min hash signature for a topic.\n@param topic The topic to generate a signature for\n@param minHashXORs The list of XOR values to apply to the hash code\n@return true if the minhashes were updated, false otherwise", "docstring_tokens": ["Recalculate", "the", "min", "hash", "signature", "for", "a", "topic", "."], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/model/utils/TopicUtilities.java#L66-L97", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/model/utils/TopicUtilities.java", "func_name": "TopicUtilities.getMinHashes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate the min hashes\n@param xml The content to apply the signature to\n@param minHashXORs The list of XOR values to apply to the hash code\n@return", "docstring_tokens": ["Generate", "the", "min", "hashes"], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/model/utils/TopicUtilities.java#L105-L135", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/model/utils/TopicUtilities.java", "func_name": "TopicUtilities.cleanXMLForMinHash", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Cleans the provided XML by removing element names and other useless data.\n\n@param xml The xml to be cleaned.\n@return The cleaned xml.", "docstring_tokens": ["Cleans", "the", "provided", "XML", "by", "removing", "element", "names", "and", "other", "useless", "data", "."], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/model/utils/TopicUtilities.java#L153-L173", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/model/utils/TopicUtilities.java", "func_name": "TopicUtilities.validateAndFixRelationships", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validate and Fix a topics relationships to ensure that the topics related topics are still matched by the Related Topics\nthemselves.\n\n@param topic The topic to validate and fix the relationships for.", "docstring_tokens": ["Validate", "and", "Fix", "a", "topics", "relationships", "to", "ensure", "that", "the", "topics", "related", "topics", "are", "still", "matched", "by", "the", "Related", "Topics", "themselves", "."], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/model/utils/TopicUtilities.java#L390-L406", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/model/utils/TopicUtilities.java", "func_name": "TopicUtilities.updateContentHash", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the content hash on the topic.\n@param topic The topic to update", "docstring_tokens": ["Set", "the", "content", "hash", "on", "the", "topic", "."], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/model/utils/TopicUtilities.java#L412-L416", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/model/utils/TopicUtilities.java", "func_name": "TopicUtilities.validateAndFixTags", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validate and Fix a topics tags so that mutually exclusive tags are enforced and also remove any tags that may have been\nduplicated.\n\n@param topic The topic to fix the tags for.", "docstring_tokens": ["Validate", "and", "Fix", "a", "topics", "tags", "so", "that", "mutually", "exclusive", "tags", "are", "enforced", "and", "also", "remove", "any", "tags", "that", "may", "have", "been", "duplicated", "."], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/model/utils/TopicUtilities.java#L424-L501", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "visualization/visualization-spi-doclet/src/main/java/se/jguru/nazgul/tools/visualization/spi/doclet/converter/Comparators.java", "func_name": "Comparators.sortClassesPerPackage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sorts all given ClassDocs into a SortedMap keyed by their respective PackageDocs.\n\n@param classDocs an array of ClassDoc objects.\n@return A SortedMap relating all ClassDocs to their respective PackageDoc.", "docstring_tokens": ["Sorts", "all", "given", "ClassDocs", "into", "a", "SortedMap", "keyed", "by", "their", "respective", "PackageDocs", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/visualization/visualization-spi-doclet/src/main/java/se/jguru/nazgul/tools/visualization/spi/doclet/converter/Comparators.java#L161-L181", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/AbstractEnforcerRule.java", "func_name": "AbstractEnforcerRule.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This is the interface into the rule. This method should throw an exception\ncontaining a reason message if the rule fails the check. The plugin will\nthen decide based on the fail flag if it should stop or just log the\nmessage as a warning.\n\n@param helper The helper provides access to the log, MavenSession and has\nhelpers to get common components. It is also able to lookup components\nby class name.\n@throws org.apache.maven.enforcer.rule.api.EnforcerRuleException the enforcer rule exception", "docstring_tokens": ["This", "is", "the", "interface", "into", "the", "rule", ".", "This", "method", "should", "throw", "an", "exception", "containing", "a", "reason", "message", "if", "the", "rule", "fails", "the", "check", ".", "The", "plugin", "will", "then", "decide", "based", "on", "the", "fail", "flag", "if", "it", "should", "stop", "or", "just", "log", "the", "message", "as", "a", "warning", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/AbstractEnforcerRule.java#L63-L106", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/AbstractEnforcerRule.java", "func_name": "AbstractEnforcerRule.splice", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method which splices the provided string into a List, separating on commas.\n\n@param toSplice The string to splice\n@return A list holding the elements of the spliced string.", "docstring_tokens": ["Helper", "method", "which", "splices", "the", "provided", "string", "into", "a", "List", "separating", "on", "commas", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/AbstractEnforcerRule.java#L144-L154", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/AbstractEnforcerRule.java", "func_name": "AbstractEnforcerRule.splice2Pattern", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method which splices the provided String into a List of Pattern instances.\n\n@param toSplice The string to splice\n@return A List holding the elements of the spliced string, converted to Patterns\n@throws PatternSyntaxException if the {@code Pattern.compile} method could not compile the provided string.", "docstring_tokens": ["Helper", "method", "which", "splices", "the", "provided", "String", "into", "a", "List", "of", "Pattern", "instances", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/AbstractEnforcerRule.java#L163-L172", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/AbstractEnforcerRule.java", "func_name": "AbstractEnforcerRule.containsPrefix", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if any element within source startsWith the provided toCheck string.\n\n@param source The list of strings which could possibly contain toCheck.\n@param toCheck The string to validate.\n@return true if any element within source returns true to\ntoCheck.startsWith(element).", "docstring_tokens": ["Checks", "if", "any", "element", "within", "source", "startsWith", "the", "provided", "toCheck", "string", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/AbstractEnforcerRule.java#L201-L214", "partition": "valid"} +{"repo": "pascalw/jFactory", "path": "core/src/main/java/nl/pwiddershoven/jfactory/Factory.java", "func_name": "Factory.getFactoryClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the class of the Factory for the given factoryClass.\n@param factoryClass\n@return", "docstring_tokens": ["Get", "the", "class", "of", "the", "Factory", "for", "the", "given", "factoryClass", "."], "sha": "afaffced982bd51d1a86342f27128b596149ac3a", "url": "https://github.com/pascalw/jFactory/blob/afaffced982bd51d1a86342f27128b596149ac3a/core/src/main/java/nl/pwiddershoven/jfactory/Factory.java#L44-L65", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/utils/EmailService.java", "func_name": "EmailService.send", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sends email with subject and content to receivers specified in property file after key \"mail.to\"\n\n@param subject - the subject\n@param content - the content\n@throws MessagingException", "docstring_tokens": ["Sends", "email", "with", "subject", "and", "content", "to", "receivers", "specified", "in", "property", "file", "after", "key", "mail", ".", "to"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/utils/EmailService.java#L77-L81", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/utils/EmailService.java", "func_name": "EmailService.send", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sends email with subject and content to receivers specified by argument \"to\"\n\n@param subject - the subject\n@param content - the content\n@param to - the CSV list of receivers\n@throws MessagingException", "docstring_tokens": ["Sends", "email", "with", "subject", "and", "content", "to", "receivers", "specified", "by", "argument", "to"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/utils/EmailService.java#L91-L95", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/FunctionExecutionThread.java", "func_name": "FunctionExecutionThread.executeZeroFunction", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes the \"zero\" function using pool for the concrete server.\n\n@param pool\n- the pool for the concrete server\n@return 0 in case of function executed without problems, -1 otherwise\n@throws FunctionException\n@throws InterruptedException", "docstring_tokens": ["Executes", "the", "zero", "function", "using", "pool", "for", "the", "concrete", "server", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/FunctionExecutionThread.java#L65-L79", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/query/bucketoriented/BucketOrientedQueryFunction.java", "func_name": "BucketOrientedQueryFunction.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes query using arguments query string and query parameters.\n\n@param functionContext Function context.", "docstring_tokens": ["Executes", "query", "using", "arguments", "query", "string", "and", "query", "parameters", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/query/bucketoriented/BucketOrientedQueryFunction.java#L66-L106", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/query/bucketoriented/BucketOrientedQueryFunction.java", "func_name": "BucketOrientedQueryFunction.handleException", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handles exceptions during query execution.\n\n@param e Exception to handle.\n@param resultSender of type ResultSender", "docstring_tokens": ["Handles", "exceptions", "during", "query", "execution", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/query/bucketoriented/BucketOrientedQueryFunction.java#L142-L147", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/query/bucketoriented/BucketOrientedQueryFunction.java", "func_name": "BucketOrientedQueryFunction.formatResults", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Formats results of query execution.\n\n@param selectResults of type SelectResults\n@return List", "docstring_tokens": ["Formats", "results", "of", "query", "execution", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/query/bucketoriented/BucketOrientedQueryFunction.java#L155-L162", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "validation/validation-api/src/main/java/se/jguru/nazgul/tools/validation/api/exception/AbstractErrorMessageContainer.java", "func_name": "AbstractErrorMessageContainer.addErrorMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the provided error message to this ErrorMessageContainer.\n\n@param message The message to add, provided that the message is neither null nor empty.", "docstring_tokens": ["Adds", "the", "provided", "error", "message", "to", "this", "ErrorMessageContainer", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/validation/validation-api/src/main/java/se/jguru/nazgul/tools/validation/api/exception/AbstractErrorMessageContainer.java#L44-L52", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "validation/validation-api/src/main/java/se/jguru/nazgul/tools/validation/api/exception/AbstractErrorMessageContainer.java", "func_name": "AbstractErrorMessageContainer.getMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the detail message string of this throwable.\n\n@return the detail message string of this Throwable instance (which may be null).", "docstring_tokens": ["Returns", "the", "detail", "message", "string", "of", "this", "throwable", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/validation/validation-api/src/main/java/se/jguru/nazgul/tools/validation/api/exception/AbstractErrorMessageContainer.java#L73-L83", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/common/Utils.java", "func_name": "Utils.isSocketAlive", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if the socket of specified host and port is alive.\n\n@param host\n- the host.\n@param port\n- the port.\n@return - true if alive, false otherwise.", "docstring_tokens": ["Checks", "if", "the", "socket", "of", "specified", "host", "and", "port", "is", "alive", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/common/Utils.java#L90-L111", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/common/Utils.java", "func_name": "Utils.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes the thread with specified timeout.\n\n@param thread\n- the thread to execute.\n@param timeout\n- the timeout.", "docstring_tokens": ["Executes", "the", "thread", "with", "specified", "timeout", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/common/Utils.java#L121-L133", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/CheckstyleReport.java", "func_name": "CheckstyleReport.hasResources", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Check if any of the resources exist.\n\n@param resources The resources to check\n@return true if the resource directory exist", "docstring_tokens": ["Check", "if", "any", "of", "the", "resources", "exist", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/CheckstyleReport.java#L242-L249", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/CheckstyleReport.java", "func_name": "CheckstyleReport.mergeDeprecatedInfo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Merge in the deprecated parameters to the new ones, unless the new\nparameters have values.\n\n@throws MavenReportException\n@deprecated Remove when deprecated params are removed.", "docstring_tokens": ["Merge", "in", "the", "deprecated", "parameters", "to", "the", "new", "ones", "unless", "the", "new", "parameters", "have", "values", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/CheckstyleReport.java#L258-L305", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/CacheUtils.java", "func_name": "CacheUtils.addQueryLimit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Limits query results.\n\n@param queryString\nQuery string.\n@return Query string with injected \"LIMIT\" clause.", "docstring_tokens": ["Limits", "query", "results", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/CacheUtils.java#L64-L81", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/CacheUtils.java", "func_name": "CacheUtils.getFirstLocatorFromLocatorsString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns first locator host and port from locators string.\n\n@param locatorsString\nof type String\n@return String[0] - locator host String[1] - locator port", "docstring_tokens": ["Returns", "first", "locator", "host", "and", "port", "from", "locators", "string", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/CacheUtils.java#L126-L144", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/CacheUtils.java", "func_name": "CacheUtils.getRegionSize", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns approximate number of entries in the region. As the function\ncounts number of entries on different nodes in parallel, per node values\nmay be captured on different moments. So the value may never be valid.\n\n@param region\nthe region.\n@returns approximate number of objects in the given region.", "docstring_tokens": ["Returns", "approximate", "number", "of", "entries", "in", "the", "region", ".", "As", "the", "function", "counts", "number", "of", "entries", "on", "different", "nodes", "in", "parallel", "per", "node", "values", "may", "be", "captured", "on", "different", "moments", ".", "So", "the", "value", "may", "never", "be", "valid", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/CacheUtils.java#L155-L165", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/CacheUtils.java", "func_name": "CacheUtils.isGemFireClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if the current GemFire is a client instance.\n\n@return true if the cache instance is client.", "docstring_tokens": ["Checks", "if", "the", "current", "GemFire", "is", "a", "client", "instance", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/CacheUtils.java#L172-L176", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/CacheUtils.java", "func_name": "CacheUtils.removeAll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes several entries from region in a single hop. On partitioned\nregion execution is done simultaneously on all partitions.\n\n@param \nkey type.\n@param region\nthe region to remove entries.\n@param keys\nthe keys of entries to remove.", "docstring_tokens": ["Removes", "several", "entries", "from", "region", "in", "a", "single", "hop", ".", "On", "partitioned", "region", "execution", "is", "done", "simultaneously", "on", "all", "partitions", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/CacheUtils.java#L189-L207", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/CacheUtils.java", "func_name": "CacheUtils.retryWithExponentialBackoff", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retries passed operation with random exponential back off delay.\n\n@param \nType of returned value.\n@param runnable\nthe operation.\n@param maxRetries\nthe maximum number of retries.\n@return the value returned by operation\n@throws OperationRetryFailedException\n@throws InterruptedException", "docstring_tokens": ["Retries", "passed", "operation", "with", "random", "exponential", "back", "off", "delay", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/CacheUtils.java#L222-L250", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/model/utils/SVGIcon.java", "func_name": "SVGIcon.generateBufferedImage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate the BufferedImage.", "docstring_tokens": ["Generate", "the", "BufferedImage", "."], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/model/utils/SVGIcon.java#L116-L125", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/model/utils/SVGIcon.java", "func_name": "SVGIcon.paintIcon", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Draw the icon at the specified location.", "docstring_tokens": ["Draw", "the", "icon", "at", "the", "specified", "location", "."], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/model/utils/SVGIcon.java#L197-L201", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/ConsoleUtils.java", "func_name": "ConsoleUtils.getReader", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method getReader returns the reader of this ConsoleUtils object.\n\n@return the reader (type BufferedReader) of this ConsoleUtils object.", "docstring_tokens": ["Method", "getReader", "returns", "the", "reader", "of", "this", "ConsoleUtils", "object", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/ConsoleUtils.java#L49-L55", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/ConsoleUtils.java", "func_name": "ConsoleUtils.waitForEnter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Waits for enter with specified message.\n\n@param message of type String", "docstring_tokens": ["Waits", "for", "enter", "with", "specified", "message", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/ConsoleUtils.java#L69-L77", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/CheckReplicationTool.java", "func_name": "CheckReplicationTool.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs the tool. All the tools run in this way.", "docstring_tokens": ["Runs", "the", "tool", ".", "All", "the", "tools", "run", "in", "this", "way", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/CheckReplicationTool.java#L132-L173", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/CheckReplicationTool.java", "func_name": "CheckReplicationTool.parseCommandLineArguments", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses command-line arguments and sets the local variables\n\n@param commandLineArguments\n- the list of command-line arguments", "docstring_tokens": ["Parses", "command", "-", "line", "arguments", "and", "sets", "the", "local", "variables"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/CheckReplicationTool.java#L181-L222", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/CheckReplicationTool.java", "func_name": "CheckReplicationTool.printHelp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prints help if requested, or in case of any misconfiguration\n\n@param options\n- the GNU options", "docstring_tokens": ["Prints", "help", "if", "requested", "or", "in", "case", "of", "any", "misconfiguration"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/CheckReplicationTool.java#L230-L235", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/CheckReplicationTool.java", "func_name": "CheckReplicationTool.constructGnuOptions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs the set of GNU options\n\n@return - the constructed options", "docstring_tokens": ["Constructs", "the", "set", "of", "GNU", "options"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/CheckReplicationTool.java#L242-L269", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/regioncomparator/HashCodeCollector.java", "func_name": "HashCodeCollector.aggregateSingleClusterMemberData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "only for partitioned region!", "docstring_tokens": ["only", "for", "partitioned", "region!"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/regioncomparator/HashCodeCollector.java#L300-L308", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "validation/validation-api/src/main/java/se/jguru/nazgul/tools/validation/api/expression/ExpressionBuilder.java", "func_name": "ExpressionBuilder.notNull", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a description for a null property.\n\n@param property The property to check.\n@param name The property name.\n@return This object.", "docstring_tokens": ["Adds", "a", "description", "for", "a", "null", "property", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/validation/validation-api/src/main/java/se/jguru/nazgul/tools/validation/api/expression/ExpressionBuilder.java#L92-L99", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java", "func_name": "Launcher.parseCommandLineArguments", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parses command line arguments.\n\n@param commandLineArguments\n- The arguments.", "docstring_tokens": ["Parses", "command", "line", "arguments", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java#L156-L178", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java", "func_name": "Launcher.printHelp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prints help if requested.\n\n@param options\n- The GNU options.", "docstring_tokens": ["Prints", "help", "if", "requested", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java#L186-L208", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java", "func_name": "Launcher.constructGnuOptions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Constructs the set of GNU options.\n\n@return - The constructed options.", "docstring_tokens": ["Constructs", "the", "set", "of", "GNU", "options", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java#L215-L223", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java", "func_name": "Launcher.findCommandIndex", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Looks for the index of command in the specified array.\n\n@param args\n- Arguments.\n@return - Index of command, or -1 if command is not found in the array.", "docstring_tokens": ["Looks", "for", "the", "index", "of", "command", "in", "the", "specified", "array", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java#L232-L246", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java", "func_name": "Launcher.extractLauncherArgs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extracts the launcher arguments from the all arguments array.\n\n@param args\n- All arguments.\n@param commandIndex\n- Index of the command.\n@return - Launcher arguments.", "docstring_tokens": ["Extracts", "the", "launcher", "arguments", "from", "the", "all", "arguments", "array", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java#L257-L263", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java", "func_name": "Launcher.extractCommandArgs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extracts the command-specific arguments from the all arguments array.\n\n@param args\n- All arguments.\n@param commandIndex\n- Index of the command.\n@return - Command-specific arguments.", "docstring_tokens": ["Extracts", "the", "command", "-", "specific", "arguments", "from", "the", "all", "arguments", "array", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java#L274-L280", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java", "func_name": "Launcher.main", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The entry point of the application.\n\n@param args\n- All arguments.\n@throws Exception", "docstring_tokens": ["The", "entry", "point", "of", "the", "application", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java#L289-L322", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java", "func_name": "Launcher.debug", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Prints debug information if debug is enabled.\n\n@param message\n- Debug message.\n@param t\n- Instance of Throwable.", "docstring_tokens": ["Prints", "debug", "information", "if", "debug", "is", "enabled", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/Launcher.java#L342-L350", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/MonitorTool.java", "func_name": "MonitorTool.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Starts the checking task", "docstring_tokens": ["Starts", "the", "checking", "task"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/MonitorTool.java#L153-L159", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/common/PeerCacheService.java", "func_name": "PeerCacheService.createRegions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates regions structure similar to server region structure.\n\n@param regionNames names of the regions to reconstruct.\n@return set of created regions.", "docstring_tokens": ["Creates", "regions", "structure", "similar", "to", "server", "region", "structure", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/common/PeerCacheService.java#L108-L120", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/expiration/ExpirationController.java", "func_name": "ExpirationController.process", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Applies the specified policy on the specified region and returns number\nof destroyed entries.\n\n@param region\n- the region\n@param policy\n- the expiration policy\n@return - the number of destroyed region entries", "docstring_tokens": ["Applies", "the", "specified", "policy", "on", "the", "specified", "region", "and", "returns", "number", "of", "destroyed", "entries", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/expiration/ExpirationController.java#L153-L200", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "visualization/visualization-api/src/main/java/se/jguru/nazgul/tools/visualization/api/RenderConfiguration.java", "func_name": "RenderConfiguration.setIndentationToken", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Assigns the indentationToken of this RenderConfiguration.\n\n@param indentationToken the indentationToken of this RenderConfiguration. Cannot be null or empty.", "docstring_tokens": ["Assigns", "the", "indentationToken", "of", "this", "RenderConfiguration", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/visualization/visualization-api/src/main/java/se/jguru/nazgul/tools/visualization/api/RenderConfiguration.java#L126-L135", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/source/JavaPackageExtractor.java", "func_name": "JavaPackageExtractor.getPackage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves the package definition from the supplied sourceFile.\n\n@param sourceFile The sourceFile from which the package definition should be extracted.\n@return The package of the sourceFile.", "docstring_tokens": ["Retrieves", "the", "package", "definition", "from", "the", "supplied", "sourceFile", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/source/JavaPackageExtractor.java#L69-L78", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "visualization/visualization-spi-doclet/src/main/java/se/jguru/nazgul/tools/visualization/spi/doclet/javadoc/LifecycleInvestigationDoclet.java", "func_name": "LifecycleInvestigationDoclet.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Generate documentation here.\nThis method is required for all doclets.\n\n@return true on success.", "docstring_tokens": ["Generate", "documentation", "here", ".", "This", "method", "is", "required", "for", "all", "doclets", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/visualization/visualization-spi-doclet/src/main/java/se/jguru/nazgul/tools/visualization/spi/doclet/javadoc/LifecycleInvestigationDoclet.java#L52-L66", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/NodesController.java", "func_name": "NodesController.extractPortsSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extracts port from the SystemMember object.\n\n@param member\n- the specified SystemMember\n@return - port if its found, -1 otherwise\n@throws AdminException", "docstring_tokens": ["Extracts", "port", "from", "the", "SystemMember", "object", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/NodesController.java#L85-L99", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/NodesController.java", "func_name": "NodesController.findOrCreatePool", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Looks for the existing pool with name poolFactory. If there is no such\npool, creates new one.\n\n@param host\n- the concrete server's host\n@param port\n- the concrete server's port\n@return found or new pool for the specified parameters", "docstring_tokens": ["Looks", "for", "the", "existing", "pool", "with", "name", "poolFactory", ".", "If", "there", "is", "no", "such", "pool", "creates", "new", "one", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/monitor/controller/NodesController.java#L111-L121", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/RuleUtil.java", "func_name": "RuleUtil.getName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the rule name from an audit event source name.\n\n@param eventSrcName the audit event source name\n@return the rule name, which is the class name without package and removed eventual \"Check\" suffix", "docstring_tokens": ["Get", "the", "rule", "name", "from", "an", "audit", "event", "source", "name", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/RuleUtil.java#L76-L86", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/RuleUtil.java", "func_name": "RuleUtil.getCategory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the rule category from an audit event source name.\n\n@param eventSrcName the audit event source name\n@return the rule category, which is the last package name or \"misc\" or \"extension\"", "docstring_tokens": ["Get", "the", "rule", "category", "from", "an", "audit", "event", "source", "name", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/RuleUtil.java#L104-L119", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/serialization/codegen/MethodFrameCounter.java", "func_name": "MethodFrameCounter.enterFrame", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Increment the counter.\n@param className name of class to enter.", "docstring_tokens": ["Increment", "the", "counter", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/serialization/codegen/MethodFrameCounter.java#L71-L77", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/serialization/codegen/MethodFrameCounter.java", "func_name": "MethodFrameCounter.exitFrame", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Decrement the counter and remove class name from the list.\n@param className name of class to exit from.", "docstring_tokens": ["Decrement", "the", "counter", "and", "remove", "class", "name", "from", "the", "list", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/serialization/codegen/MethodFrameCounter.java#L83-L96", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/serialization/codegen/MethodFrameCounter.java", "func_name": "MethodFrameCounter.getClassNames", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates string with all classes that have been entered by method frame counter.\n@return String", "docstring_tokens": ["Creates", "string", "with", "all", "classes", "that", "have", "been", "entered", "by", "method", "frame", "counter", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/serialization/codegen/MethodFrameCounter.java#L111-L117", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/CorrectPackagingRule.java", "func_name": "CorrectPackagingRule.setPackageExtractors", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Splices the supplied packageExtractorImplementations argument, which is assumed to be a comma-separated\nstring holding fully qualified class names of the PackageExtractor implementations which should be used\nby this CorrectPackagingRule.\n\n@param packageExtractorImplementations a comma-separated string holding fully qualified class names of the\nPackageExtractor implementations. Each such class must have a default\n(i.e. no-argument) constructor.\n@throws IllegalArgumentException if the supplied packageExtractorImplementations argument could not yield an\ninstantiated PackageExtractor instance.", "docstring_tokens": ["Splices", "the", "supplied", "packageExtractorImplementations", "argument", "which", "is", "assumed", "to", "be", "a", "comma", "-", "separated", "string", "holding", "fully", "qualified", "class", "names", "of", "the", "PackageExtractor", "implementations", "which", "should", "be", "used", "by", "this", "CorrectPackagingRule", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/CorrectPackagingRule.java#L152-L182", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/CorrectPackagingRule.java", "func_name": "CorrectPackagingRule.addPackages", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds all source file found by recursive search under sourceRoot to the\ntoPopulate List, using a width-first approach.\n\n@param fileOrDirectory The file or directory to search for packages and [if a directory] recursively\nsearch for further source files.\n@param package2FileNamesMap A Map relating package names extracted by the PackageExtractors.", "docstring_tokens": ["Adds", "all", "source", "file", "found", "by", "recursive", "search", "under", "sourceRoot", "to", "the", "toPopulate", "List", "using", "a", "width", "-", "first", "approach", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/CorrectPackagingRule.java#L196-L230", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/model/LanguageImage.java", "func_name": "LanguageImage.updateImageData", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create the thumbnails, and make sure the parent imagefile is valid.\n\n@throws CustomConstraintViolationException", "docstring_tokens": ["Create", "the", "thumbnails", "and", "make", "sure", "the", "parent", "imagefile", "is", "valid", "."], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/model/LanguageImage.java#L208-L216", "partition": "valid"} +{"repo": "pressgang-ccms/PressGangCCMSModel", "path": "src/main/java/org/jboss/pressgang/ccms/model/LanguageImage.java", "func_name": "LanguageImage.setUiOriginalFileName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The UI will attempt to assign an empty value if the file upload box does not have a file selected. This method is used to\nignore any empty values, while passing through any legitimate file uploads. This means that the absence of a file in the\nupload box does not indicate that no file should be assigned to the entity.\n\n@param uiOriginalFileName The image file name uploaded through the UI", "docstring_tokens": ["The", "UI", "will", "attempt", "to", "assign", "an", "empty", "value", "if", "the", "file", "upload", "box", "does", "not", "have", "a", "file", "selected", ".", "This", "method", "is", "used", "to", "ignore", "any", "empty", "values", "while", "passing", "through", "any", "legitimate", "file", "uploads", ".", "This", "means", "that", "the", "absence", "of", "a", "file", "in", "the", "upload", "box", "does", "not", "indicate", "that", "no", "file", "should", "be", "assigned", "to", "the", "entity", "."], "sha": "d70d6aab347a02a978f3c55c7314ab5eeea806c5", "url": "https://github.com/pressgang-ccms/PressGangCCMSModel/blob/d70d6aab347a02a978f3c55c7314ab5eeea806c5/src/main/java/org/jboss/pressgang/ccms/model/LanguageImage.java#L296-L299", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/query/bucketoriented/BucketOrientedQueryService.java", "func_name": "BucketOrientedQueryService.extractLimit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extracts limit value from query string.\n\n@param queryString OQL query string.\n@return Value of 'limit' clause.", "docstring_tokens": ["Extracts", "limit", "value", "from", "query", "string", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/query/bucketoriented/BucketOrientedQueryService.java#L127-L141", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/query/bucketoriented/BucketOrientedQueryService.java", "func_name": "BucketOrientedQueryService.formatSelectResults", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Collects and formats query results into SelectResults. Limits query results based on limit value.\n\n@param queryResults Query results from several nodes.\n@param limit Query results limit.\n@return Aggregated query results represented by instance of {@link SelectResults}.", "docstring_tokens": ["Collects", "and", "formats", "query", "results", "into", "SelectResults", ".", "Limits", "query", "results", "based", "on", "limit", "value", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/query/bucketoriented/BucketOrientedQueryService.java#L150-L174", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/serialization/codegen/RTSupport.java", "func_name": "RTSupport.checkAllowedInRealTime0", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "With stack counter\n\n@param obj\n@param depth of\n@throws InvalidClassException", "docstring_tokens": ["With", "stack", "counter"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/serialization/codegen/RTSupport.java#L122-L155", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java", "func_name": "JavaProcessLauncher.runWithConfirmation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs process based on a specified class in a separate VM using array of\narguments. To confirm that process completes startup it should write a\nstartup completed string into it's standard output.\n\n@param id\nthe process identifier.\n@param klass\nof type Class.\n@param javaArguments\narguments for java.\n@param processArguments\narguments for process.\n\n@return Process the started process.\n@throws IOException\nwhen\n@throws InterruptedException\nwhen", "docstring_tokens": ["Runs", "process", "based", "on", "a", "specified", "class", "in", "a", "separate", "VM", "using", "array", "of", "arguments", ".", "To", "confirm", "that", "process", "completes", "startup", "it", "should", "write", "a", "startup", "completed", "string", "into", "it", "s", "standard", "output", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java#L212-L225", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java", "func_name": "JavaProcessLauncher.runWithStartupDelay", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs process with arguments based on a specified class in a separate VM.\nWaits DEFAULT_PROCESS_STARTUP_TIME before returns the created process to\na caller.\n\n@param klass\nof type Class\n@param javaArguments\narguments for java\n@param processArguments\narguments for process\n@return Process\n@throws IOException\nwhen\n@throws InterruptedException\nwhen\n@throws TimeoutException\nwhen", "docstring_tokens": ["Runs", "process", "with", "arguments", "based", "on", "a", "specified", "class", "in", "a", "separate", "VM", ".", "Waits", "DEFAULT_PROCESS_STARTUP_TIME", "before", "returns", "the", "created", "process", "to", "a", "caller", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java#L246-L251", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java", "func_name": "JavaProcessLauncher.runWithStartupDelay", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs process with arguments based on a specified class in a separate VM.\nWaits processStartupTime before returns the created process to a caller.\n\n@param klass\nof type Class\n@param processStartupTime\ntime in milliseconds that launcher spend on waiting process\nafter it's start.\n@param javaArguments\narguments for java\n@param processArguments\narguments for process\n@return Process\n@throws IOException\nwhen\n@throws InterruptedException\nwhen\n@throws TimeoutException\nif process startup is not completed in time.", "docstring_tokens": ["Runs", "process", "with", "arguments", "based", "on", "a", "specified", "class", "in", "a", "separate", "VM", ".", "Waits", "processStartupTime", "before", "returns", "the", "created", "process", "to", "a", "caller", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java#L274-L285", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java", "func_name": "JavaProcessLauncher.stopBySendingNewLineIntoProcess", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stops process by sending new line to it's output stream.\n\nThe process can be stopped by calling destroy() method.\n\n@param process\nof type Process\n@throws IOException\nwhen\n@throws InterruptedException", "docstring_tokens": ["Stops", "process", "by", "sending", "new", "line", "to", "it", "s", "output", "stream", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java#L298-L310", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java", "func_name": "JavaProcessLauncher.startProcess", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Starts process based on specified class using command line arguments.\nThis process inherits a classpath from parent VM that starts it.\n\n@param klass\nof type Class\n@param javaArguments\nof type String[]\n@param processArguments\nof type String[]\n@param withConfirmation\nof type boolean\n@return Process\n@throws IOException\nwhen\n@throws InterruptedException\nwhen", "docstring_tokens": ["Starts", "process", "based", "on", "specified", "class", "using", "command", "line", "arguments", ".", "This", "process", "inherits", "a", "classpath", "from", "parent", "VM", "that", "starts", "it", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java#L342-L353", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java", "func_name": "JavaProcessLauncher.redirectProcessStreams", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Redirects process standard output and error streams into parent process\nstandard output.\n\n@param klass\nof type Class\n@param process\nof type Process\n@param redirectProcessStdOut\nof type boolean", "docstring_tokens": ["Redirects", "process", "standard", "output", "and", "error", "streams", "into", "parent", "process", "standard", "output", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java#L366-L384", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java", "func_name": "JavaProcessLauncher.waitConfirmation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Waits startup complete confirmation from process.\n\n@param className\nof type String\n@param process\nof type Process\n@throws IOException\nwhen\n@throws InterruptedException\nwhen", "docstring_tokens": ["Waits", "startup", "complete", "confirmation", "from", "process", "."], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java#L448-L476", "partition": "valid"} +{"repo": "lennartj/nazgul_tools", "path": "plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/rss/VelocityTemplate.java", "func_name": "VelocityTemplate.generate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Using a specified Velocity Template and provided context, create the outputFilename.\n\n@param outputFilename the file to be generated.\n@param template the velocity template to use.\n@param context the velocity context map.\n@throws VelocityException if the template was not found or any other Velocity exception.\n@throws MojoExecutionException\n@throws IOException", "docstring_tokens": ["Using", "a", "specified", "Velocity", "Template", "and", "provided", "context", "create", "the", "outputFilename", "."], "sha": "27425742629a49f7e0834127002083ff1e180564", "url": "https://github.com/lennartj/nazgul_tools/blob/27425742629a49f7e0834127002083ff1e180564/plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/rss/VelocityTemplate.java#L111-L151", "partition": "valid"} +{"repo": "icegem/icegem", "path": "icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/ReplicationProcessor.java", "func_name": "ReplicationProcessor.process", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates, configures and runs the guest nodes and collects information\nform them\n\n@return - 0 in case of success, 1 otherwise\n\n@throws IOException\n@throws InterruptedException", "docstring_tokens": ["Creates", "configures", "and", "runs", "the", "guest", "nodes", "and", "collects", "information", "form", "them"], "sha": "d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc", "url": "https://github.com/icegem/icegem/blob/d5dbb82c4913f191738ad6aad9edd9c0a3bf0dfc/icegem-cache-utils/src/main/java/com/googlecode/icegem/cacheutils/replication/ReplicationProcessor.java#L102-L162", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Types.java", "func_name": "Types.isA", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Is the genericType of a certain class?", "docstring_tokens": ["Is", "the", "genericType", "of", "a", "certain", "class?"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Types.java#L17-L19", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Types.java", "func_name": "Types.isCompatible", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "See if the two methods are compatible, that is they have the same\nrelative signature\n\n@param method\n@param intfMethod\n@return", "docstring_tokens": ["See", "if", "the", "two", "methods", "are", "compatible", "that", "is", "they", "have", "the", "same", "relative", "signature"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Types.java#L94-L110", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Types.java", "func_name": "Types.getImplementingMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Given a method and a root class, find the actual method declared in the\nroot that implements the method.\n\n@param clazz\n@param intfMethod\n@return", "docstring_tokens": ["Given", "a", "method", "and", "a", "root", "class", "find", "the", "actual", "method", "declared", "in", "the", "root", "that", "implements", "the", "method", "."], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Types.java#L120-L169", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Types.java", "func_name": "Types.getTypeArgument", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the type argument from a parameterized type\n\n@param genericType\n@return null if there is no type parameter", "docstring_tokens": ["Returns", "the", "type", "argument", "from", "a", "parameterized", "type"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Types.java#L216-L222", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Types.java", "func_name": "Types.resolveTypeVariable", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Finds an actual value of a type variable. The method looks in a class\nhierarchy for a class defining the variable and returns the value if\npresent.\n\n@param root\n@param typeVariable\n@return actual type of the type variable", "docstring_tokens": ["Finds", "an", "actual", "value", "of", "a", "type", "variable", ".", "The", "method", "looks", "in", "a", "class", "hierarchy", "for", "a", "class", "defining", "the", "variable", "and", "returns", "the", "value", "if", "present", "."], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Types.java#L309-L323", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Types.java", "func_name": "Types.getActualTypeArgumentsOfAnInterface", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Given a class and an interfaces, go through the class hierarchy to find\nthe interface and return its type arguments.\n\n@param classToSearch\n@param interfaceToFind\n@return type arguments of the interface", "docstring_tokens": ["Given", "a", "class", "and", "an", "interfaces", "go", "through", "the", "class", "hierarchy", "to", "find", "the", "interface", "and", "return", "its", "type", "arguments", "."], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Types.java#L333-L338", "partition": "valid"} +{"repo": "feedzai/fos-weka", "path": "src/main/java/com/feedzai/fos/impl/weka/utils/pool/AutoPopulateGenericObjectPool.java", "func_name": "AutoPopulateGenericObjectPool.populate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Populate the pool up to minIdle instances. Is limited to maxIdle and maxActive.\n\n@throws Exception when could not borrow or return objects to the pool", "docstring_tokens": ["Populate", "the", "pool", "up", "to", "minIdle", "instances", ".", "Is", "limited", "to", "maxIdle", "and", "maxActive", "."], "sha": "130213aa58dfef770382a59727afb9e5f7bc4a3c", "url": "https://github.com/feedzai/fos-weka/blob/130213aa58dfef770382a59727afb9e5f7bc4a3c/src/main/java/com/feedzai/fos/impl/weka/utils/pool/AutoPopulateGenericObjectPool.java#L57-L66", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-soap-plugin/src/main/java/org/projectodd/jrapidoc/introspector/SEIProcessor.java", "func_name": "SEIProcessor.addReturnOptionDescription", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Used for non exception return option\n\n@param method\n@param returnBuilder", "docstring_tokens": ["Used", "for", "non", "exception", "return", "option"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-soap-plugin/src/main/java/org/projectodd/jrapidoc/introspector/SEIProcessor.java#L158-L162", "partition": "valid"} +{"repo": "feedzai/fos-weka", "path": "src/main/java/com/feedzai/fos/impl/weka/utils/WekaThreadSafeScorerPool.java", "func_name": "WekaThreadSafeScorerPool.returnObject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the given object to the pool.\n\n@param pool The pool to where return the object to.\n@param object The object to be returned to the pool.", "docstring_tokens": ["Returns", "the", "given", "object", "to", "the", "pool", "."], "sha": "130213aa58dfef770382a59727afb9e5f7bc4a3c", "url": "https://github.com/feedzai/fos-weka/blob/130213aa58dfef770382a59727afb9e5f7bc4a3c/src/main/java/com/feedzai/fos/impl/weka/utils/WekaThreadSafeScorerPool.java#L135-L141", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java", "func_name": "JmsService.getDestination", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the destination.\n\n@param destinationName destinationName\n@return JMS destination which is a queue or topic.", "docstring_tokens": ["Get", "the", "destination", "."], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java#L124-L130", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java", "func_name": "JmsService.getConsumer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the `MessageConsumer`.\n\n@param destinationName destinationName\n@return JMS `MessageConsumer`.", "docstring_tokens": ["Get", "the", "MessageConsumer", "."], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java#L139-L153", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java", "func_name": "JmsService.getProducer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the `MessageProducer` or create one from the JMS session.\n\n@param destinationName destinationName\n@return JMS `MessageProducer`.", "docstring_tokens": ["Get", "the", "MessageProducer", "or", "create", "one", "from", "the", "JMS", "session", "."], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java#L162-L180", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java", "func_name": "JmsService.getSession", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the current session or create one from the JMS connection.\n\n@return JMS Session", "docstring_tokens": ["Get", "the", "current", "session", "or", "create", "one", "from", "the", "JMS", "connection", "."], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java#L188-L198", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java", "func_name": "JmsService.getConnection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the current connection or create one using the connectionSupplier.\n\n@return JMS Connection", "docstring_tokens": ["Get", "the", "current", "connection", "or", "create", "one", "using", "the", "connectionSupplier", "."], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java#L206-L247", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java", "func_name": "JmsService.sendTextMessageWithDestination", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Send a text message given a queue or topic name and a text message.\n\n@param destinationName destinationName\n@param messageContent messageContent", "docstring_tokens": ["Send", "a", "text", "message", "given", "a", "queue", "or", "topic", "name", "and", "a", "text", "message", "."], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java#L256-L270", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java", "func_name": "JmsService.listenTextMessagesWithDestination", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Listen to a message from JMS from a given destination by name.\n\n@param destinationName destinationName\n@param messageListener messageListener", "docstring_tokens": ["Listen", "to", "a", "message", "from", "JMS", "from", "a", "given", "destination", "by", "name", "."], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java#L288-L314", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java", "func_name": "JmsService.receiveTextMessageFromDestinationWithTimeout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Receive a message from destination with timeout.\n\n@param destinationName destinationName\n@param timeout timeout\n@return message", "docstring_tokens": ["Receive", "a", "message", "from", "destination", "with", "timeout", "."], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java#L332-L358", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java", "func_name": "JmsService.stop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stop the service", "docstring_tokens": ["Stop", "the", "service"], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsService.java#L393-L409", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "examples/tutorial/qbit-worker-callbacks/src/main/java/io/advantageous/qbit/example/RecommendationService.java", "func_name": "RecommendationService.handleLoadFromUserDataService", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handle defered recommendations based on user loads.", "docstring_tokens": ["Handle", "defered", "recommendations", "based", "on", "user", "loads", "."], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/examples/tutorial/qbit-worker-callbacks/src/main/java/io/advantageous/qbit/example/RecommendationService.java#L84-L100", "partition": "valid"} +{"repo": "feedzai/fos-weka", "path": "src/main/java/com/feedzai/fos/impl/weka/config/WekaModelConfig.java", "func_name": "WekaModelConfig.getPoolConfiguration", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the pool configuration of the scorer.\n\n@return a map from configuration key to configuration value", "docstring_tokens": ["Returns", "the", "pool", "configuration", "of", "the", "scorer", "."], "sha": "130213aa58dfef770382a59727afb9e5f7bc4a3c", "url": "https://github.com/feedzai/fos-weka/blob/130213aa58dfef770382a59727afb9e5f7bc4a3c/src/main/java/com/feedzai/fos/impl/weka/config/WekaModelConfig.java#L152-L155", "partition": "valid"} +{"repo": "feedzai/fos-weka", "path": "src/main/java/com/feedzai/fos/impl/weka/config/WekaModelConfig.java", "func_name": "WekaModelConfig.setId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the ID of the model.\n\n@param id the ID", "docstring_tokens": ["Sets", "the", "ID", "of", "the", "model", "."], "sha": "130213aa58dfef770382a59727afb9e5f7bc4a3c", "url": "https://github.com/feedzai/fos-weka/blob/130213aa58dfef770382a59727afb9e5f7bc4a3c/src/main/java/com/feedzai/fos/impl/weka/config/WekaModelConfig.java#L219-L224", "partition": "valid"} +{"repo": "feedzai/fos-weka", "path": "src/main/java/com/feedzai/fos/impl/weka/config/WekaModelConfig.java", "func_name": "WekaModelConfig.setModel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the model file of the serialized classifier.\n\n@param model the model file", "docstring_tokens": ["Sets", "the", "model", "file", "of", "the", "serialized", "classifier", "."], "sha": "130213aa58dfef770382a59727afb9e5f7bc4a3c", "url": "https://github.com/feedzai/fos-weka/blob/130213aa58dfef770382a59727afb9e5f7bc4a3c/src/main/java/com/feedzai/fos/impl/weka/config/WekaModelConfig.java#L249-L254", "partition": "valid"} +{"repo": "feedzai/fos-weka", "path": "src/main/java/com/feedzai/fos/impl/weka/WekaScorer.java", "func_name": "WekaScorer.addOrUpdate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the given model to the managed models.\n\n

If the provided model id already exists, then the older model is removed and the new one is instantiated.\n\n@param wekaModelConfig the configuration of the new model\n@throws FOSException when the new model could not be instantiated", "docstring_tokens": ["Adds", "the", "given", "model", "to", "the", "managed", "models", "."], "sha": "130213aa58dfef770382a59727afb9e5f7bc4a3c", "url": "https://github.com/feedzai/fos-weka/blob/130213aa58dfef770382a59727afb9e5f7bc4a3c/src/main/java/com/feedzai/fos/impl/weka/WekaScorer.java#L246-L253", "partition": "valid"} +{"repo": "feedzai/fos-weka", "path": "src/main/java/com/feedzai/fos/impl/weka/WekaScorer.java", "func_name": "WekaScorer.removeModel", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the given model from the managed models.\n\n

If the model does not exist no exception will be thrown.\n\n@param modelId the id of the model to remove.", "docstring_tokens": ["Removes", "the", "given", "model", "from", "the", "managed", "models", "."], "sha": "130213aa58dfef770382a59727afb9e5f7bc4a3c", "url": "https://github.com/feedzai/fos-weka/blob/130213aa58dfef770382a59727afb9e5f7bc4a3c/src/main/java/com/feedzai/fos/impl/weka/WekaScorer.java#L262-L267", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/spring/src/main/java/io/advantageous/qbit/spring/config/ClusterConfiguration.java", "func_name": "ClusterConfiguration.clusteredEventManagerServiceQueue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The actual service queue for the clustered event bus.\nAll events are sent to this queue first.\n\n@param eventBusCluster actual event manager impl no proxy\n@return the service queue", "docstring_tokens": ["The", "actual", "service", "queue", "for", "the", "clustered", "event", "bus", ".", "All", "events", "are", "sent", "to", "this", "queue", "first", "."], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/spring/src/main/java/io/advantageous/qbit/spring/config/ClusterConfiguration.java#L130-L138", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/spring/src/main/java/io/advantageous/qbit/spring/config/ClusterConfiguration.java", "func_name": "ClusterConfiguration.clusteredEventManagerImpl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Wraps factory method call so we can provide another implementation of interface if needed.\n\n@param eventConnectorHub the cluster of event connectors\n@return the event manager", "docstring_tokens": ["Wraps", "factory", "method", "call", "so", "we", "can", "provide", "another", "implementation", "of", "interface", "if", "needed", "."], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/spring/src/main/java/io/advantageous/qbit/spring/config/ClusterConfiguration.java#L155-L160", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Encode.java", "func_name": "Encode.encodeNonCodes", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Encode '%' if it is not an encoding sequence\n\n@param string\n@return", "docstring_tokens": ["Encode", "%", "if", "it", "is", "not", "an", "encoding", "sequence"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Encode.java#L239-L257", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Encode.java", "func_name": "Encode.decode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "decode an encoded map\n\n@param map\n@return", "docstring_tokens": ["decode", "an", "encoded", "map"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/Encode.java#L436-L449", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-rest-plugin/src/main/java/org/projectodd/jrapidoc/introspector/ResourceClassProcessor.java", "func_name": "ResourceClassProcessor.createServiceGroup", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Main method, creates API model from metadata\n\n@param resourceClasses\n@return", "docstring_tokens": ["Main", "method", "creates", "API", "model", "from", "metadata"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-rest-plugin/src/main/java/org/projectodd/jrapidoc/introspector/ResourceClassProcessor.java#L50-L58", "partition": "valid"} +{"repo": "feedzai/fos-weka", "path": "src/main/java/com/feedzai/fos/impl/weka/WekaManager.java", "func_name": "WekaManager.close", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Will save the configuration to file.\n\n@throws FOSException when there are IO problems writing the configuration to file", "docstring_tokens": ["Will", "save", "the", "configuration", "to", "file", "."], "sha": "130213aa58dfef770382a59727afb9e5f7bc4a3c", "url": "https://github.com/feedzai/fos-weka/blob/130213aa58dfef770382a59727afb9e5f7bc4a3c/src/main/java/com/feedzai/fos/impl/weka/WekaManager.java#L391-L400", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/eventbus-replicator/src/main/java/io/advantageous/qbit/eventbus/EventRemoteReplicatorService.java", "func_name": "EventRemoteReplicatorService.forwardEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This message receives an event from a remote call.", "docstring_tokens": ["This", "message", "receives", "an", "event", "from", "a", "remote", "call", "."], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/eventbus-replicator/src/main/java/io/advantageous/qbit/eventbus/EventRemoteReplicatorService.java#L41-L94", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/FindAnnotation.java", "func_name": "FindAnnotation.getResourcesAnnotations", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an array of annotations the specified method of a resource class.\n\n@param method\n@return", "docstring_tokens": ["Returns", "an", "array", "of", "annotations", "the", "specified", "method", "of", "a", "resource", "class", "."], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/FindAnnotation.java#L68-L77", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/FindAnnotation.java", "func_name": "FindAnnotation.findAnnotation", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Look for an annotation in a list of annotations. If not there, see if it\nis on the type provided\n\n@param type\n@param annotations\n@param annnotation\n@return", "docstring_tokens": ["Look", "for", "an", "annotation", "in", "a", "list", "of", "annotations", ".", "If", "not", "there", "see", "if", "it", "is", "on", "the", "type", "provided"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/util/FindAnnotation.java#L88-L94", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/spi/metadata/ResourceBuilder.java", "func_name": "ResourceBuilder.constructor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Picks a constructor from an annotated resource class based on spec rules\n\n@param annotatedResourceClass\n@return", "docstring_tokens": ["Picks", "a", "constructor", "from", "an", "annotated", "resource", "class", "based", "on", "spec", "rules"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/spi/metadata/ResourceBuilder.java#L629-L640", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/spi/metadata/ResourceBuilder.java", "func_name": "ResourceBuilder.rootResourceFromAnnotations", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Build metadata from annotations on classes and methods\n\n@return", "docstring_tokens": ["Build", "metadata", "from", "annotations", "on", "classes", "and", "methods"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-rest-plugin/src/main/java/org/jboss/resteasy/spi/metadata/ResourceBuilder.java#L647-L650", "partition": "valid"} +{"repo": "feedzai/fos-weka", "path": "src/main/java/weka/classifiers/RandomForestUtils.java", "func_name": "RandomForestUtils.setupBaggingClassifiers", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the classifiers in a bagging.\n\n@param bagging The bag for which to set the classifiers.\n@throws Exception If it fails to set the classifiers.", "docstring_tokens": ["Sets", "the", "classifiers", "in", "a", "bagging", "."], "sha": "130213aa58dfef770382a59727afb9e5f7bc4a3c", "url": "https://github.com/feedzai/fos-weka/blob/130213aa58dfef770382a59727afb9e5f7bc4a3c/src/main/java/weka/classifiers/RandomForestUtils.java#L48-L50", "partition": "valid"} +{"repo": "feedzai/fos-weka", "path": "src/main/java/com/feedzai/fos/impl/weka/utils/Cloner.java", "func_name": "Cloner.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a fresh clone of the object.\n\n@return a fresh clone\n@throws IOException when there were problems serializing the object\n@throws ClassNotFoundException when the serialized objects's class was not found", "docstring_tokens": ["Gets", "a", "fresh", "clone", "of", "the", "object", "."], "sha": "130213aa58dfef770382a59727afb9e5f7bc4a3c", "url": "https://github.com/feedzai/fos-weka/blob/130213aa58dfef770382a59727afb9e5f7bc4a3c/src/main/java/com/feedzai/fos/impl/weka/utils/Cloner.java#L116-L130", "partition": "valid"} +{"repo": "feedzai/fos-weka", "path": "src/main/java/com/feedzai/fos/impl/weka/utils/Cloner.java", "func_name": "Cloner.getSerialized", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a copy of the serialized object.\n\n@return a copy (this object is immutable)", "docstring_tokens": ["Returns", "a", "copy", "of", "the", "serialized", "object", "."], "sha": "130213aa58dfef770382a59727afb9e5f7bc4a3c", "url": "https://github.com/feedzai/fos-weka/blob/130213aa58dfef770382a59727afb9e5f7bc4a3c/src/main/java/com/feedzai/fos/impl/weka/utils/Cloner.java#L137-L143", "partition": "valid"} +{"repo": "feedzai/fos-weka", "path": "src/main/java/com/feedzai/fos/impl/weka/utils/Cloner.java", "func_name": "Cloner.write", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Writes the serialized object to file.\n\n@param file the file to write to (will be overwritten)\n@throws IOException when the file could not be written", "docstring_tokens": ["Writes", "the", "serialized", "object", "to", "file", "."], "sha": "130213aa58dfef770382a59727afb9e5f7bc4a3c", "url": "https://github.com/feedzai/fos-weka/blob/130213aa58dfef770382a59727afb9e5f7bc4a3c/src/main/java/com/feedzai/fos/impl/weka/utils/Cloner.java#L151-L155", "partition": "valid"} +{"repo": "feedzai/fos-weka", "path": "src/main/java/com/feedzai/fos/impl/weka/utils/pmml/PMMLConversionCommons.java", "func_name": "PMMLConversionCommons.leafScoreFromDistribution", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieves a String representing the score of the given class distribution.\n\n@param classDistribution The class distribution to calculate a score for.\n@param instances The header {@link weka.core.Instances}.\n@return A String representing the score of the given class distribution.", "docstring_tokens": ["Retrieves", "a", "String", "representing", "the", "score", "of", "the", "given", "class", "distribution", "."], "sha": "130213aa58dfef770382a59727afb9e5f7bc4a3c", "url": "https://github.com/feedzai/fos-weka/blob/130213aa58dfef770382a59727afb9e5f7bc4a3c/src/main/java/com/feedzai/fos/impl/weka/utils/pmml/PMMLConversionCommons.java#L200-L209", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsServiceBuilder.java", "func_name": "JmsServiceBuilder.getProviderURL", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If null, will build based on host, port and provider url pattern.\n\n@return providerURL\n@see JmsServiceBuilder#providerURL", "docstring_tokens": ["If", "null", "will", "build", "based", "on", "host", "port", "and", "provider", "url", "pattern", "."], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsServiceBuilder.java#L293-L300", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsServiceBuilder.java", "func_name": "JmsServiceBuilder.getContext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the initial JNDI context, if not set uses the jndi settings and `initialContextFactory` to create\na JNDI initial context.\n\n@return JNDI initial context.\n@see JmsServiceBuilder#context\n@see JmsServiceBuilder#initialContextFactory\n@see JmsServiceBuilder#jndiSettings", "docstring_tokens": ["Gets", "the", "initial", "JNDI", "context", "if", "not", "set", "uses", "the", "jndi", "settings", "and", "initialContextFactory", "to", "create", "a", "JNDI", "initial", "context", "."], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsServiceBuilder.java#L341-L350", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsServiceBuilder.java", "func_name": "JmsServiceBuilder.getConnectionSupplier", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the user name is set, use the user name and password to create the JMS connection.\n\n@return connection supplier\n@see JmsServiceBuilder#connectionSupplier", "docstring_tokens": ["If", "the", "user", "name", "is", "set", "use", "the", "user", "name", "and", "password", "to", "create", "the", "JMS", "connection", "."], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsServiceBuilder.java#L418-L452", "partition": "valid"} +{"repo": "advantageous/qbit-extensions", "path": "qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsServiceBuilder.java", "func_name": "JmsServiceBuilder.build", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Build JMS Service\n\n@return new JMS Service", "docstring_tokens": ["Build", "JMS", "Service"], "sha": "bdd96a7171081480deadd6fc140edb45c3102e28", "url": "https://github.com/advantageous/qbit-extensions/blob/bdd96a7171081480deadd6fc140edb45c3102e28/qbit-ext/jms/src/main/java/io/advantageous/qbit/jms/JmsServiceBuilder.java#L575-L579", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-model/src/main/java/org/projectodd/jrapidoc/model/type/provider/converter/JacksonToJrapidocProcessor.java", "func_name": "JacksonToJrapidocProcessor.getType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "From Jackson type creates a JRAPIDoc type, type is stored in cache\n\n@param jacksonType\n@return", "docstring_tokens": ["From", "Jackson", "type", "creates", "a", "JRAPIDoc", "type", "type", "is", "stored", "in", "cache"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-model/src/main/java/org/projectodd/jrapidoc/model/type/provider/converter/JacksonToJrapidocProcessor.java#L45-L65", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-model/src/main/java/org/projectodd/jrapidoc/model/type/provider/converter/JacksonToJrapidocProcessor.java", "func_name": "JacksonToJrapidocProcessor.getType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Do redirection from general Jackson type to the concrete one\n\n@param type\njackson type\n@return JRAPIDoc type", "docstring_tokens": ["Do", "redirection", "from", "general", "Jackson", "type", "to", "the", "concrete", "one"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-model/src/main/java/org/projectodd/jrapidoc/model/type/provider/converter/JacksonToJrapidocProcessor.java#L140-L151", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-model/src/main/java/org/projectodd/jrapidoc/model/type/provider/converter/JacksonToJrapidocProcessor.java", "func_name": "JacksonToJrapidocProcessor.doIntrospection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Do redirection from general Jackson serializer to the concrete one\n\n@param serializer\n@param type", "docstring_tokens": ["Do", "redirection", "from", "general", "Jackson", "serializer", "to", "the", "concrete", "one"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-model/src/main/java/org/projectodd/jrapidoc/model/type/provider/converter/JacksonToJrapidocProcessor.java#L159-L174", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-model/src/main/java/org/projectodd/jrapidoc/model/type/provider/converter/JacksonToJrapidocProcessor.java", "func_name": "JacksonToJrapidocProcessor.introspectSerializer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Introspect serializer for java beans\n\n@param beanSerializer\n@param type", "docstring_tokens": ["Introspect", "serializer", "for", "java", "beans"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-model/src/main/java/org/projectodd/jrapidoc/model/type/provider/converter/JacksonToJrapidocProcessor.java#L192-L209", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-model/src/main/java/org/projectodd/jrapidoc/model/type/provider/converter/JacksonToJrapidocProcessor.java", "func_name": "JacksonToJrapidocProcessor.introspectSerializer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Introspect serializer for enumerations\n\n@param enumSerializer\n@param type", "docstring_tokens": ["Introspect", "serializer", "for", "enumerations"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-model/src/main/java/org/projectodd/jrapidoc/model/type/provider/converter/JacksonToJrapidocProcessor.java#L217-L221", "partition": "valid"} +{"repo": "projectodd/jrapidoc", "path": "jrapidoc-model/src/main/java/org/projectodd/jrapidoc/model/type/provider/converter/JacksonToJrapidocProcessor.java", "func_name": "JacksonToJrapidocProcessor.introspectSerializer", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Introspect serializer for map\n\n@param mapSerializer\n@param type", "docstring_tokens": ["Introspect", "serializer", "for", "map"], "sha": "2c461f6fed22374e280b13c3c297e724294a1ceb", "url": "https://github.com/projectodd/jrapidoc/blob/2c461f6fed22374e280b13c3c297e724294a1ceb/jrapidoc-model/src/main/java/org/projectodd/jrapidoc/model/type/provider/converter/JacksonToJrapidocProcessor.java#L229-L242", "partition": "valid"} +{"repo": "vanilladb/vanillabench", "path": "src/main/java/org/vanilladb/bench/server/procedure/tpce/TradeOrderProc.java", "func_name": "TradeOrderProc.frame1", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get customer, customer account, and broker information", "docstring_tokens": ["Get", "customer", "customer", "account", "and", "broker", "information"], "sha": "f38e76ea2ea781f00d80032a8457b01154872b54", "url": "https://github.com/vanilladb/vanillabench/blob/f38e76ea2ea781f00d80032a8457b01154872b54/src/main/java/org/vanilladb/bench/server/procedure/tpce/TradeOrderProc.java#L56-L86", "partition": "valid"} +{"repo": "vanilladb/vanillabench", "path": "src/main/java/org/vanilladb/bench/server/procedure/tpce/TradeOrderProc.java", "func_name": "TradeOrderProc.frame3", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Estimate overall effects of the trade", "docstring_tokens": ["Estimate", "overall", "effects", "of", "the", "trade"], "sha": "f38e76ea2ea781f00d80032a8457b01154872b54", "url": "https://github.com/vanilladb/vanillabench/blob/f38e76ea2ea781f00d80032a8457b01154872b54/src/main/java/org/vanilladb/bench/server/procedure/tpce/TradeOrderProc.java#L101-L168", "partition": "valid"} +{"repo": "vanilladb/vanillabench", "path": "src/main/java/org/vanilladb/bench/server/procedure/tpce/TradeOrderProc.java", "func_name": "TradeOrderProc.frame4", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Record the trade request by making all related updates", "docstring_tokens": ["Record", "the", "trade", "request", "by", "making", "all", "related", "updates"], "sha": "f38e76ea2ea781f00d80032a8457b01154872b54", "url": "https://github.com/vanilladb/vanillabench/blob/f38e76ea2ea781f00d80032a8457b01154872b54/src/main/java/org/vanilladb/bench/server/procedure/tpce/TradeOrderProc.java#L173-L202", "partition": "valid"} +{"repo": "vanilladb/vanillabench", "path": "src/main/java/org/vanilladb/bench/util/RandomPermutationGenerator.java", "func_name": "RandomPermutationGenerator.next", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "It produces the next random permutation", "docstring_tokens": ["It", "produces", "the", "next", "random", "permutation"], "sha": "f38e76ea2ea781f00d80032a8457b01154872b54", "url": "https://github.com/vanilladb/vanillabench/blob/f38e76ea2ea781f00d80032a8457b01154872b54/src/main/java/org/vanilladb/bench/util/RandomPermutationGenerator.java#L33-L41", "partition": "valid"} +{"repo": "vanilladb/vanillabench", "path": "src/main/java/org/vanilladb/bench/util/RandomNonRepeatGenerator.java", "func_name": "RandomNonRepeatGenerator.next", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Not repeat, randomly choose a number from 1 to the initinalized size", "docstring_tokens": ["Not", "repeat", "randomly", "choose", "a", "number", "from", "1", "to", "the", "initinalized", "size"], "sha": "f38e76ea2ea781f00d80032a8457b01154872b54", "url": "https://github.com/vanilladb/vanillabench/blob/f38e76ea2ea781f00d80032a8457b01154872b54/src/main/java/org/vanilladb/bench/util/RandomNonRepeatGenerator.java#L41-L56", "partition": "valid"} +{"repo": "vanilladb/vanillabench", "path": "src/main/java/org/vanilladb/bench/benchmarks/micro/rte/MicrobenchmarkParamGen.java", "func_name": "MicrobenchmarkParamGen.main", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "a main application for debugging", "docstring_tokens": ["a", "main", "application", "for", "debugging"], "sha": "f38e76ea2ea781f00d80032a8457b01154872b54", "url": "https://github.com/vanilladb/vanillabench/blob/f38e76ea2ea781f00d80032a8457b01154872b54/src/main/java/org/vanilladb/bench/benchmarks/micro/rte/MicrobenchmarkParamGen.java#L87-L108", "partition": "valid"} +{"repo": "vanilladb/vanillabench", "path": "src/main/java/org/vanilladb/bench/benchmarks/tpcc/TpccValueGenerator.java", "func_name": "TpccValueGenerator.makeLastName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return a last name as defined by TPC-C 4.3.2.3.", "docstring_tokens": ["Return", "a", "last", "name", "as", "defined", "by", "TPC", "-", "C", "4", ".", "3", ".", "2", ".", "3", "."], "sha": "f38e76ea2ea781f00d80032a8457b01154872b54", "url": "https://github.com/vanilladb/vanillabench/blob/f38e76ea2ea781f00d80032a8457b01154872b54/src/main/java/org/vanilladb/bench/benchmarks/tpcc/TpccValueGenerator.java#L141-L150", "partition": "valid"} +{"repo": "vanilladb/vanillabench", "path": "src/main/java/org/vanilladb/bench/util/RandomValueGenerator.java", "func_name": "RandomValueGenerator.randomChooseFromDistribution", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the result of a random choose from a given distribution.\n\n@param probs\n@return", "docstring_tokens": ["Return", "the", "result", "of", "a", "random", "choose", "from", "a", "given", "distribution", "."], "sha": "f38e76ea2ea781f00d80032a8457b01154872b54", "url": "https://github.com/vanilladb/vanillabench/blob/f38e76ea2ea781f00d80032a8457b01154872b54/src/main/java/org/vanilladb/bench/util/RandomValueGenerator.java#L51-L71", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/GitFileSystemObject.java", "func_name": "GitFileSystemObject.getRelativePath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a file, with path relative to git working tree\n\n@param in\ninput File object\nrepositoryPath\npath to git repository\n@return\nFile object with relative path\n@throws JavaGitException\ninput file does not belong to git working tree/ repo", "docstring_tokens": ["Returns", "a", "file", "with", "path", "relative", "to", "git", "working", "tree"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/GitFileSystemObject.java#L96-L116", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/GitFileSystemObject.java", "func_name": "GitFileSystemObject.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds the object to the git index\n\n@return response from git add", "docstring_tokens": ["Adds", "the", "object", "to", "the", "git", "index"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/GitFileSystemObject.java#L173-L193", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/GitFileSystemObject.java", "func_name": "GitFileSystemObject.commit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Commits the file system object\n\n@param comment\nDeveloper's comment\n\n@return response from git commit", "docstring_tokens": ["Commits", "the", "file", "system", "object"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/GitFileSystemObject.java#L203-L213", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/GitFileSystemObject.java", "func_name": "GitFileSystemObject.mv", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Moves or renames the object\n\n@param dest\ndestination path (relative to the Git Repository)\n\n@return response from git mv", "docstring_tokens": ["Moves", "or", "renames", "the", "object"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/GitFileSystemObject.java#L223-L238", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/GitFileSystemObject.java", "func_name": "GitFileSystemObject.rm", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Removes the file system object from the working tree and the index\n\n@return response from git rm", "docstring_tokens": ["Removes", "the", "file", "system", "object", "from", "the", "working", "tree", "and", "the", "index"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/GitFileSystemObject.java#L245-L250", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/utilities/CheckUtilities.java", "func_name": "CheckUtilities.checkFileValidity", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks that the specified file exists.\n\n@param file\nFile or directory path", "docstring_tokens": ["Checks", "that", "the", "specified", "file", "exists", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/utilities/CheckUtilities.java#L51-L56", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/utilities/CheckUtilities.java", "func_name": "CheckUtilities.checkUnorderedListsEqual", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if two unordered lists are equal.\n\n@param l1\nThe first list to test.\n@param l2\nThe second list to test.\n@return True if:\n

    \n
  • both lists are null or
  • \n
  • both lists are the same length, there exists an equivalent object in l2 for all\nobjects in l1, and there exists an equivalent object in l1 for all objects in l2
  • \n
\nFalse otherwise.", "docstring_tokens": ["Checks", "if", "two", "unordered", "lists", "are", "equal", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/utilities/CheckUtilities.java#L249-L275", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/utilities/CheckUtilities.java", "func_name": "CheckUtilities.checkIntInRange", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "A general range check utility for checking whether a given <integer> value is between a\ngiven start and end indexes. This is a helper method for other methods such as\ncheckIntIndexInListRange or can also be used independently by external objects.\n\n@param index\nGiven index that is being checked for validity between start and end.\n@param start\nindex should be greater than or equal to start.\n@param end\nindex should be less than end.", "docstring_tokens": ["A", "general", "range", "check", "utility", "for", "checking", "whether", "a", "given", "<", ";", "integer>", ";", "value", "is", "between", "a", "given", "start", "and", "end", "indexes", ".", "This", "is", "a", "helper", "method", "for", "other", "methods", "such", "as", "checkIntIndexInListRange", "or", "can", "also", "be", "used", "independently", "by", "external", "objects", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/utilities/CheckUtilities.java#L303-L312", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/ClientManager.java", "func_name": "ClientManager.getClientInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets an instance of the specified client type.\n\n@param clientType\nThe type of client to get.\n@return An instance of the specified client type.", "docstring_tokens": ["Gets", "an", "instance", "of", "the", "specified", "client", "type", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/ClientManager.java#L70-L81", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/ClientManager.java", "func_name": "ClientManager.setPreferredClientType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the preferred client type.\n\n@param preferredClientType\nThe type to set as the preferred client type. If the value is null, then the preferred\nclient type is set to ClientType.CLI.", "docstring_tokens": ["Sets", "the", "preferred", "client", "type", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/ClientManager.java#L100-L106", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java", "func_name": "CliGitAdd.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Implementations of <git-add> with options and list of files provided.", "docstring_tokens": ["Implementations", "of", "<", ";", "git", "-", "add>", ";", "with", "options", "and", "list", "of", "files", "provided", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java#L44-L56", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java", "func_name": "CliGitAdd.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a list of files with no GitAddOptions.", "docstring_tokens": ["Adds", "a", "list", "of", "files", "with", "no", "GitAddOptions", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java#L61-L65", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java", "func_name": "CliGitAdd.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds one file to the index with no GitAddOptions.", "docstring_tokens": ["Adds", "one", "file", "to", "the", "index", "with", "no", "GitAddOptions", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java#L70-L75", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java", "func_name": "CliGitAdd.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Implementations of <git-add> with options and one file to be added to index.", "docstring_tokens": ["Implementations", "of", "<", ";", "git", "-", "add>", ";", "with", "options", "and", "one", "file", "to", "be", "added", "to", "index", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java#L80-L85", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java", "func_name": "CliGitAdd.addDryRun", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Implementation of <git-add> dry run.", "docstring_tokens": ["Implementation", "of", "<", ";", "git", "-", "add>", ";", "dry", "run", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java#L90-L95", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java", "func_name": "CliGitAdd.addVerbose", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Implementations of <git-add> in verbose mode.", "docstring_tokens": ["Implementations", "of", "<", ";", "git", "-", "add>", ";", "in", "verbose", "mode", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java#L100-L105", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java", "func_name": "CliGitAdd.addWithForce", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Implementations of <git-add> with force option set.", "docstring_tokens": ["Implementations", "of", "<", ";", "git", "-", "add>", ";", "with", "force", "option", "set", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java#L110-L115", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java", "func_name": "CliGitAdd.addDryRun", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "if the dry run option was selected then set the flag in response.\n\n@param options GitAddOptions\n@param response gitAddResponse", "docstring_tokens": ["if", "the", "dry", "run", "option", "was", "selected", "then", "set", "the", "flag", "in", "response", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitAdd.java#L123-L127", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/GitVersion.java", "func_name": "GitVersion.compareToReleaseMinor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Compares minor releases values given that git version contains no tag\nfor none of GitVersion objects\n\n@param that\n@return SAME if both are equal, LATER if that is previous to this or PREVIOUS otherwise", "docstring_tokens": ["Compares", "minor", "releases", "values", "given", "that", "git", "version", "contains", "no", "tag", "for", "none", "of", "GitVersion", "objects"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/GitVersion.java#L185-L194", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitAdd.java", "func_name": "GitAdd.add", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This command adds the current content of new or modified files to the index, thus staging that\ncontent for inclusion in the next commit.\n\n@param repositoryPath\nThe path to the repository to commit against. A non-zero length argument is required\nfor this parameter, otherwise a NullPointerException or\nIllegalArgumentException will be thrown.\n@param options\nGitAddOptions that are passed to the <git-add> command.\n@param paths\nList of file paths that will be added to the index.\n@return GitAddResponse Response generated by the add command.\n@exception IOException\nThere are many reasons for which an IOException may be thrown if -\n
    \n
  • repositoryPath is not valid
  • \n
  • filenames assigned do not exist
  • \n
  • files or repository path does not have access rights
  • \n
\n@exception JavaGitException\nException thrown\n
    \n
  • if the repositoryPath is null.
  • \n
  • if the <git-add> command generates error.
  • \n
", "docstring_tokens": ["This", "command", "adds", "the", "current", "content", "of", "new", "or", "modified", "files", "to", "the", "index", "thus", "staging", "that", "content", "for", "inclusion", "in", "the", "next", "commit", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitAdd.java#L62-L68", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitAdd.java", "func_name": "GitAdd.addVerbose", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This command adds the current content of new or modified files to the index, with verbose\noption set.\n\n@param repositoryPath\nThe path to the repository to commit against. A non-zero length argument is required\nfor this parameter, otherwise a NullPointerException or\nIllegalArgumentException will be thrown.\n@param paths\nList of file paths that will be added to the index.\n@return GitAddResponse Response generated by the add command.\n@exception IOException\nThere are many reasons for which an IOException may be thrown if -\n
    \n
  • repositoryPath is not valid
  • \n
  • filenames assigned do not exist
  • \n
  • files or repository path does not have access rights
  • \n
\n@exception JavaGitException\nException thrown\n
    \n
  • if the repositoryPath is null.
  • \n
  • if the <git-add> command generates error.
  • \n
", "docstring_tokens": ["This", "command", "adds", "the", "current", "content", "of", "new", "or", "modified", "files", "to", "the", "index", "with", "verbose", "option", "set", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitAdd.java#L95-L100", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCommit.java", "func_name": "CliGitCommit.commitProcessor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Processes the commit.\n\n@param repository A File instance for the path to the repository root (the parent\ndirectory of the .git directory) or a sub-directory in the working tree of the\nrepository to commit against. This argument must represent the absolute path to the\ndesired directory as returned by the File.getPath() method. If null is\npassed, a NullPointerException will be thrown.\n@param options The options to commit with.\n@param message The message to attach to the commit. A non-zero length argument is required for this\nparameter, otherwise a NullPointerException or\nIllegalArgumentException will be thrown.\n@param paths A list of folders and/or files to commit. The paths specified in this list must all be\nrelative to the path specified in the repository parameter as returned\nby File.getPath().\n@return The results from the commit.\n@throws IOException There are many reasons for which an IOException may be thrown.\nExamples include:\n
    \n
  • a directory doesn't exist
  • \n
  • access to a file is denied
  • \n
  • a command is not found on the PATH
  • \n
\n@throws JavaGitException Thrown when there is an error making the commit.", "docstring_tokens": ["Processes", "the", "commit", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCommit.java#L94-L103", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/JavaGitConfiguration.java", "func_name": "JavaGitConfiguration.setGitPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Called when client code wants to explicitly tell us where to find git on their filesystem. If\nnever called, we assume that git is in a directory in the PATH environment variable for this\nprocess. Passing null as the path argument will unset an explicitly-set path and revert to\nlooking for git in the PATH.\n\n@param path\nFile object representing the directory containing the git binaries. It\nmust contain either an absolute path, or a valid path relative to the current working\ndirectory.\n@throws IOException\nThrown if the provided path does not exist.\n@throws JavaGitException\nThrown if git does not exist at the provided path, or the provided path is not a\ndirectory.", "docstring_tokens": ["Called", "when", "client", "code", "wants", "to", "explicitly", "tell", "us", "where", "to", "find", "git", "on", "their", "filesystem", ".", "If", "never", "called", "we", "assume", "that", "git", "is", "in", "a", "directory", "in", "the", "PATH", "environment", "variable", "for", "this", "process", ".", "Passing", "null", "as", "the", "path", "argument", "will", "unset", "an", "explicitly", "-", "set", "path", "and", "revert", "to", "looking", "for", "git", "in", "the", "PATH", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/JavaGitConfiguration.java#L206-L226", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/parameter/ParameterMarshaller.java", "func_name": "ParameterMarshaller.createList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the list of BinderVariables given a method obtained through\nreflection.\n\n@param method\nThe method\n@return The list of BinderVariables", "docstring_tokens": ["Creates", "the", "list", "of", "BinderVariables", "given", "a", "method", "obtained", "through", "reflection", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/parameter/ParameterMarshaller.java#L58-L90", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/parameter/ParameterMarshaller.java", "func_name": "ParameterMarshaller.getFunctionDefinitionArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return the m_functionDefinition compatible array.\n\n@param maxParams\n@return", "docstring_tokens": ["Return", "the", "m_functionDefinition", "compatible", "array", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/parameter/ParameterMarshaller.java#L136-L170", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/parameter/ParameterMarshaller.java", "func_name": "ParameterMarshaller.getValueArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns an array of values given a filter execution context\n\n@param ws\nThe system workspace\n@param binder\nThe current binder\n@param ctx\nThe current execution context\n@return", "docstring_tokens": ["Returns", "an", "array", "of", "values", "given", "a", "filter", "execution", "context"], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/parameter/ParameterMarshaller.java#L218-L248", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/DotGit.java", "func_name": "DotGit.existsInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if there is a DotGit instance for a given path\n\n@param path\nFile object representing the path to the repository.\n@return\ntrue if exits, false otherwise;", "docstring_tokens": ["Checks", "if", "there", "is", "a", "DotGit", "instance", "for", "a", "given", "path"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/DotGit.java#L71-L82", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/DotGit.java", "func_name": "DotGit.createBranch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a new branch\n\n@param name\nThe name of the branch to create\n\n@return The new branch", "docstring_tokens": ["Creates", "a", "new", "branch"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/DotGit.java#L164-L169", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/DotGit.java", "func_name": "DotGit.deleteBranch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes a branch\n\n@param branch\nThe branch to delete\n@param forceDelete\nTrue if force delete option -D should be used,\nfalse if -d should be used.\n@throws IOException\nThrown in case of I/O operation failure\n@throws JavaGitException\nThrown when there is an error executing git-branch.", "docstring_tokens": ["Deletes", "a", "branch"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/DotGit.java#L184-L189", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/DotGit.java", "func_name": "DotGit.renameBranch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Renames a branch\n\n@param branchFrom\nThe branch to rename\n@param nameTo\nNew branch name\n@param forceRename\nTrue if force rename option -M should be used.\nFalse if -m should be used.\n@return new Ref instance\n@throws IOException\nThrown in case of I/O operation failure\n@throws JavaGitException\nThrown when there is an error executing git-branch.", "docstring_tokens": ["Renames", "a", "branch"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/DotGit.java#L207-L213", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/DotGit.java", "func_name": "DotGit.getBranches", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets a list of the branches in the repository.\n\n@return The branches in the repository.", "docstring_tokens": ["Gets", "a", "list", "of", "the", "branches", "in", "the", "repository", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/DotGit.java#L220-L225", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCommit.java", "func_name": "GitCommit.commitAll", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Automatically stage all tracked files that have been changed and then commit all files staged\nin the git repository's index.\n\n@param repository\nA File instance for the path to the repository root (the parent\ndirectory of the .git directory) or a sub-directory in the working tree of the\nrepository to commit against. This argument must represent the absolute path to the\ndesired directory as returned by the File.getPath() method. If null is\npassed, a NullPointerException will be thrown.\n@param message\nThe message to attach to the commit. A non-zero length argument is required for this\nparameter, otherwise a NullPointerException or\nIllegalArgumentException will be thrown.\n@return The results from the commit.\n@exception IOException\nThere are many reasons for which an IOException may be thrown.\nExamples include:\n
    \n
  • a directory doesn't exist
  • \n
  • access to a file is denied
  • \n
  • a command is not found on the PATH
  • \n
\n@exception JavaGitException\nThrown when there is an error making the commit.", "docstring_tokens": ["Automatically", "stage", "all", "tracked", "files", "that", "have", "been", "changed", "and", "then", "commit", "all", "files", "staged", "in", "the", "git", "repository", "s", "index", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCommit.java#L61-L69", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/net/balusc/util/ObjectConverter.java", "func_name": "ObjectConverter.convert", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert the given object value to the given class.\n\n@param from\nThe object value to be converted.\n@param to\nThe type class which the given object should be converted to.\n@return The converted object value.\n@throws NullPointerException\nIf 'to' is null.\n@throws UnsupportedOperationException\nIf no suitable converter can be found.\n@throws RuntimeException\nIf conversion failed somehow. This can be caused by at least an\nExceptionInInitializerError, IllegalAccessException or\nInvocationTargetException.", "docstring_tokens": ["Convert", "the", "given", "object", "value", "to", "the", "given", "class", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/net/balusc/util/ObjectConverter.java#L104-L137", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/net/balusc/util/ObjectConverter.java", "func_name": "ObjectConverter.integerToBoolean", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts Integer to Boolean. If integer value is 0, then return FALSE, else\nreturn TRUE.\n\n@param value\nThe Integer to be converted.\n@return The converted Boolean value.", "docstring_tokens": ["Converts", "Integer", "to", "Boolean", ".", "If", "integer", "value", "is", "0", "then", "return", "FALSE", "else", "return", "TRUE", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/net/balusc/util/ObjectConverter.java#L150-L152", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/net/balusc/util/ObjectConverter.java", "func_name": "ObjectConverter.booleanToInteger", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts Boolean to Integer. If boolean value is TRUE, then return 1, else\nreturn 0.\n\n@param value\nThe Boolean to be converted.\n@return The converted Integer value.", "docstring_tokens": ["Converts", "Boolean", "to", "Integer", ".", "If", "boolean", "value", "is", "TRUE", "then", "return", "1", "else", "return", "0", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/net/balusc/util/ObjectConverter.java#L162-L164", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/net/balusc/util/ObjectConverter.java", "func_name": "ObjectConverter.longToString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Converts Date to String.\n\n@param value\nThe value to be converted.\n@return Converted value.", "docstring_tokens": ["Converts", "Date", "to", "String", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/net/balusc/util/ObjectConverter.java#L350-L357", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/utilities/ExceptionMessageMap.java", "func_name": "ExceptionMessageMap.getMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the error message for the specified code.\n\n@param code\nThe error code for which to get the associated error message.\n@return The error message for the specified code.", "docstring_tokens": ["Gets", "the", "error", "message", "for", "the", "specified", "code", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/utilities/ExceptionMessageMap.java#L163-L169", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitResetResponse.java", "func_name": "GitResetResponse.getFileNeedingUpdate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the file at the specified index from the list of files needing update.\n\n@param index\nThe index of the file to get. It must fall in the range:\n0 <= index < getRemovedFilesSize().\n@return The file at the specified index.", "docstring_tokens": ["Gets", "the", "file", "at", "the", "specified", "index", "from", "the", "list", "of", "files", "needing", "update", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitResetResponse.java#L94-L97", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java", "func_name": "GitStatusResponseImpl.addToDeletedFilesToCommit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a file to list of files that are deleted and will be committed next time\n<git-commit> is run.\n\n@param file\nFile to be added to the list.", "docstring_tokens": ["Adds", "a", "file", "to", "list", "of", "files", "that", "are", "deleted", "and", "will", "be", "committed", "next", "time", "<", ";", "git", "-", "commit>", ";", "is", "run", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java#L79-L82", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java", "func_name": "GitStatusResponseImpl.addToDeletedFilesNotUpdated", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a file to the list of files that are deleted locally but not yet deleted from index using\n<git-rm> command.\n\n@param file\nFile to be added to the list.", "docstring_tokens": ["Adds", "a", "file", "to", "the", "list", "of", "files", "that", "are", "deleted", "locally", "but", "not", "yet", "deleted", "from", "index", "using", "<", ";", "git", "-", "rm>", ";", "command", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java#L91-L94", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java", "func_name": "GitStatusResponseImpl.addToModifiedFilesToCommit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a file to list of files that are modified and will be committed next time\n<git-commit> is run.\n\n@param file\nFile to be added to the list.", "docstring_tokens": ["Adds", "a", "file", "to", "list", "of", "files", "that", "are", "modified", "and", "will", "be", "committed", "next", "time", "<", ";", "git", "-", "commit>", ";", "is", "run", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java#L103-L106", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java", "func_name": "GitStatusResponseImpl.addToModifiedFilesNotUpdated", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a file to the list of files that are modified files but not yet updated.\n\n@param file\nFile to be added to the list.", "docstring_tokens": ["Adds", "a", "file", "to", "the", "list", "of", "files", "that", "are", "modified", "files", "but", "not", "yet", "updated", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java#L114-L117", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java", "func_name": "GitStatusResponseImpl.addToNewFilesToCommit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a file to the list of new files that are ready to be committed next time <git-commit>\ncommand is run.\n\n@param file\nFile to be added to the list.", "docstring_tokens": ["Adds", "a", "file", "to", "the", "list", "of", "new", "files", "that", "are", "ready", "to", "be", "committed", "next", "time", "<", ";", "git", "-", "commit>", ";", "command", "is", "run", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java#L126-L129", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java", "func_name": "GitStatusResponseImpl.addToRenamedFilesToCommit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a file to the list of renamed files that are ready to be committed next time <git-commit>\ncommand is run.\n\n@param file\nFile to be added to the list.", "docstring_tokens": ["Adds", "a", "file", "to", "the", "list", "of", "renamed", "files", "that", "are", "ready", "to", "be", "committed", "next", "time", "<", ";", "git", "-", "commit>", ";", "command", "is", "run", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java#L138-L141", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java", "func_name": "GitStatusResponseImpl.addToUntrackedFiles", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a file to list of files that have been added locally but not yet added to the index.\n\n@param file\nFile to be added to the list.", "docstring_tokens": ["Adds", "a", "file", "to", "list", "of", "files", "that", "have", "been", "added", "locally", "but", "not", "yet", "added", "to", "the", "index", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/GitStatusResponseImpl.java#L149-L152", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/parameter/Parameter.java", "func_name": "Parameter.create", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Factory method to create the concrete variable type.\n\n@param name\nThe name in the binder of the variable.\n@return", "docstring_tokens": ["Factory", "method", "to", "create", "the", "concrete", "variable", "type", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/parameter/Parameter.java#L88-L134", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/parameter/Parameter.java", "func_name": "Parameter.getStringValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the string value from binder.", "docstring_tokens": ["Get", "the", "string", "value", "from", "binder", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/parameter/Parameter.java#L165-L178", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranchOptions.java", "func_name": "GitBranchOptions.setOptVerbose", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether the verbose option should be set and sets it.\n\n@param optVerbose\nTrue if the verbose option should be used, false otherwise.", "docstring_tokens": ["Checks", "whether", "the", "verbose", "option", "should", "be", "set", "and", "sets", "it", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranchOptions.java#L110-L117", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranchOptions.java", "func_name": "GitBranchOptions.setOptDLower", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether the -d option should be set and sets it.\n\n@param optDLower True if the -d option should be used, false otherwise.", "docstring_tokens": ["Checks", "whether", "the", "-", "d", "option", "should", "be", "set", "and", "sets", "it", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranchOptions.java#L440-L447", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranchOptions.java", "func_name": "GitBranchOptions.setOptDUpper", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether the -D option should be set and sets it.\n\n@param optDUpper True if the -D option should be used, false otherwise.", "docstring_tokens": ["Checks", "whether", "the", "-", "D", "option", "should", "be", "set", "and", "sets", "it", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranchOptions.java#L463-L470", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranchOptions.java", "func_name": "GitBranchOptions.setOptMLower", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether the -m option should be set and sets it.\n\n@param optMLower True if the -m option should be used, false otherwise.", "docstring_tokens": ["Checks", "whether", "the", "-", "m", "option", "should", "be", "set", "and", "sets", "it", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranchOptions.java#L486-L493", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranchOptions.java", "func_name": "GitBranchOptions.setOptMUpper", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks whether the -M option should be set and sets it.\n\n@param optMUpper True if the -M option should be used, false otherwise.", "docstring_tokens": ["Checks", "whether", "the", "-", "M", "option", "should", "be", "set", "and", "sets", "it", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranchOptions.java#L509-L516", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/proxy/ScriptProxy.java", "func_name": "ScriptProxy.getFunctionReturnType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get idoc function return type.\n\n@param m\n@return", "docstring_tokens": ["Get", "idoc", "function", "return", "type", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/proxy/ScriptProxy.java#L178-L198", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/proxy/ScriptProxy.java", "func_name": "ScriptProxy.evaluateFunction", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This is where the custom IdocScript function is evaluated.", "docstring_tokens": ["This", "is", "where", "the", "custom", "IdocScript", "function", "is", "evaluated", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/proxy/ScriptProxy.java#L216-L261", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/proxy/ScriptProxy.java", "func_name": "ScriptProxy.getInjectedValueArray", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Enumerates the correct parameters for the delegated method. Injects any\nautowired types if present in the method signature.\n\n@param method\n@param args\n@param ctx\n@return\n@throws IllegalArgumentException\n@throws ServiceException", "docstring_tokens": ["Enumerates", "the", "correct", "parameters", "for", "the", "delegated", "method", ".", "Injects", "any", "autowired", "types", "if", "present", "in", "the", "method", "signature", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/proxy/ScriptProxy.java#L274-L284", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/proxy/ScriptProxy.java", "func_name": "ScriptProxy.runFunctionMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes the annotated method.\n\n@param functionIndex\n@param args\n@param ctx\n@return\n@throws IllegalArgumentException\n@throws ServiceException\n@throws SecurityException\n@throws NoSuchMethodException\n@throws IllegalAccessException\n@throws InvocationTargetException", "docstring_tokens": ["Executes", "the", "annotated", "method", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/proxy/ScriptProxy.java#L300-L321", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/proxy/ScriptProxy.java", "func_name": "ScriptProxy.convertReturnValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert the method return value into a PageMerger internal type of String,\nLong or Double\n\n@param result\n@return", "docstring_tokens": ["Convert", "the", "method", "return", "value", "into", "a", "PageMerger", "internal", "type", "of", "String", "Long", "or", "Double"], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/proxy/ScriptProxy.java#L330-L347", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/proxy/ScriptProxy.java", "func_name": "ScriptProxy.evaluateValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This is where the custom IdocScript variable is evaluated.", "docstring_tokens": ["This", "is", "where", "the", "custom", "IdocScript", "variable", "is", "evaluated", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/proxy/ScriptProxy.java#L352-L407", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranch.java", "func_name": "GitBranch.branch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Does a basic git-branch without any options.\n\n@param repositoryPath\nA File instance for the path to the repository. If null is passed,\na NullPointerException will be thrown.\n@return The result of the git branch.\n@throws IOException\nThere are many reasons for which an IOException may be thrown.\nExamples include:\n
    \n
  • a directory doesn't exist
  • \n
  • a command is not found on the PATH
  • \n
\n@throws JavaGitException\nThrown when there is an error executing git-branch.", "docstring_tokens": ["Does", "a", "basic", "git", "-", "branch", "without", "any", "options", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranch.java#L51-L57", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranch.java", "func_name": "GitBranch.deleteBranch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method deletes the specified branch using the -d command line option.\n\n@param repositoryPath\nA File instance for the path to the repository. If null is passed,\na NullPointerException will be thrown.\n@param forceDelete\nTrue if force delete option -D should be used, false if -d should be used.\n@param remote\nTrue if delete branch should be acted upon a remote branch.\n@param branchName\nA branch to be deleted.\n@return The result of the git-branch with delete option.\n@throws IOException\nThere are many reasons for which an IOException may be thrown.\nExamples include:\n
    \n
  • a directory doesn't exist
  • \n
  • access to a file is denied
  • \n
  • a command is not found on the PATH
  • \n
\n@throws JavaGitException\nThrown when there is an error executing git-branch.", "docstring_tokens": ["This", "method", "deletes", "the", "specified", "branch", "using", "the", "-", "d", "command", "line", "option", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranch.java#L113-L122", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranch.java", "func_name": "GitBranch.deleteBranch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes the specified branches using the -d command line option.\n\n@param repositoryPath\nA File instance for the path to the repository. If null is passed,\na NullPointerException will be thrown.\n@param forceDelete\nTrue if force delete option -D should be used, false if -d should be used.\n@param remote\nTrue if delete branch should be acted upon a remote branch list.\n@param branchList\nThe list of branches to be deleted.\n@return The result of the git-branch with -d option.\n@throws IOException\nThere are many reasons for which an IOException may be thrown.\nExamples include:\n
    \n
  • a directory doesn't exist
  • \n
  • access to a file is denied
  • \n
  • a command is not found on the PATH
  • \n
\n@throws JavaGitException\nThrown when there is an error executing git-branch.", "docstring_tokens": ["Deletes", "the", "specified", "branches", "using", "the", "-", "d", "command", "line", "option", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranch.java#L148-L157", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranch.java", "func_name": "GitBranch.renameBranch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Renames the current branch to new branch.\n\n@param repositoryPath\nA File instance for the path to the repository. If null is passed,\na NullPointerException will be thrown.\n@param forceRename\nTrue if force rename option -M should be used. False if -m should be used.\n@param newName\nWhen renaming the current branch to a new branch name, this is the new branch name.\n@return The result of the git branch with -m option.\n@throws IOException\nThere are many reasons for which an IOException may be thrown.\nExamples include:\n
    \n
  • a directory doesn't exist
  • \n
  • access to a file is denied
  • \n
  • a command is not found on the PATH
  • \n
\n@throws JavaGitException\nThrown when there is an error executing git-branch.", "docstring_tokens": ["Renames", "the", "current", "branch", "to", "new", "branch", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranch.java#L181-L190", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/WorkingTree.java", "func_name": "WorkingTree.commit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Commits the objects specified in the index to the repository.\n\n@param comment\nDeveloper's comment about the change\n\n@return response from git commit", "docstring_tokens": ["Commits", "the", "objects", "specified", "in", "the", "index", "to", "the", "repository", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/WorkingTree.java#L168-L171", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/WorkingTree.java", "func_name": "WorkingTree.getCurrentBranch", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the currently checked-out branch of the working directory.\n\n@return The currently checked-out branch of the working directory.", "docstring_tokens": ["Gets", "the", "currently", "checked", "-", "out", "branch", "of", "the", "working", "directory", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/WorkingTree.java#L218-L223", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/WorkingTree.java", "func_name": "WorkingTree.checkout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Switches to a new branch\n\n@param ref\nGit branch/sha1 to switch to", "docstring_tokens": ["Switches", "to", "a", "new", "branch"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/WorkingTree.java#L312-L321", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/WorkingTree.java", "func_name": "WorkingTree.getStatus", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the status of all files in the working directory\n\n@return GitStatusResponse object\n@throws IOException\nException is thrown if any of the IO operations fail.\n@throws JavaGitException\nException thrown if the repositoryPath is null", "docstring_tokens": ["Gets", "the", "status", "of", "all", "files", "in", "the", "working", "directory"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/WorkingTree.java#L333-L336", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitRm.java", "func_name": "GitRm.rm", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove files relative to the path within the repository.\n\n@param repository\nA File instance for the path to the repository root (the parent\ndirectory of the .git directory) or a sub-directory in the working tree of the\nrepository to run rm against. This argument must represent the absolute path to the\ndesired directory as returned by the File.getPath() method. If null is\npassed, a NullPointerException will be thrown.\n@param path\nA single file to remove. The specified path must be relative to the path specified in\nthe repository parameter as returned by File.getPath().\nIf null is passed, a NullPointerException will be thrown.\n@exception IOException\nThere are many reasons for which an IOException may be thrown.\nExamples include:\n
    \n
  • a directory doesn't exist
  • \n
  • access to a file is denied
  • \n
  • a command is not found on the PATH
  • \n
\n@exception JavaGitException\nThrown when there is an error making the commit.", "docstring_tokens": ["Remove", "files", "relative", "to", "the", "path", "within", "the", "repository", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitRm.java#L61-L68", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java", "func_name": "GitStatusResponse.getFileFromNewFilesToCommit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the name of the file from newFilesToCommit list at a given index.\n\n@param index\nIndex in the list must be positive and less than the number of new files to commit.\n@return the name of the file.", "docstring_tokens": ["Get", "the", "name", "of", "the", "file", "from", "newFilesToCommit", "list", "at", "a", "given", "index", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java#L126-L129", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java", "func_name": "GitStatusResponse.getFileFromDeletedFilesToCommit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the name of the deleted file that will be committed next time git-commit is executed\ncurrently located at the given index in the list.\n\n@param index\nIndex in the list must be positive and less than the number of new files to commit\n@return the name of the file.", "docstring_tokens": ["Get", "the", "name", "of", "the", "deleted", "file", "that", "will", "be", "committed", "next", "time", "git", "-", "commit", "is", "executed", "currently", "located", "at", "the", "given", "index", "in", "the", "list", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java#L139-L142", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java", "func_name": "GitStatusResponse.getFileFromModifiedFilesToCommit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the name of the file that is modified and added to the repository by <git-add>\ncommand and will be committed to repository next time <git-commit> is executed. This file\nis at the given index in the list of the files.\n\n@param index\nIndex in the list of files must be positive and less than the number of new files to\ncommit\n@return the name of the file.", "docstring_tokens": ["Get", "the", "name", "of", "the", "file", "that", "is", "modified", "and", "added", "to", "the", "repository", "by", "<", ";", "git", "-", "add>", ";", "command", "and", "will", "be", "committed", "to", "repository", "next", "time", "<", ";", "git", "-", "commit>", ";", "is", "executed", ".", "This", "file", "is", "at", "the", "given", "index", "in", "the", "list", "of", "the", "files", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java#L154-L157", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java", "func_name": "GitStatusResponse.getFileFromDeletedFilesNotUpdated", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the name of the deleted file that is removed locally but not yet removed from\nrepository.\n\n@param index\nIndex in the list must be positive and less than the number of new files to commit\n@return the name of the file.", "docstring_tokens": ["Returns", "the", "name", "of", "the", "deleted", "file", "that", "is", "removed", "locally", "but", "not", "yet", "removed", "from", "repository", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java#L167-L170", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java", "func_name": "GitStatusResponse.getFileFromModifiedFilesNotUpdated", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the name of the file that is existing in the repository and has been locally modified.\nThis file is one of the files that has been locally modified and is located at given index in\nthe list.\n\n@param index\nIndex in the list must be positive and less than the number of new files to commit\n@return the name of the file", "docstring_tokens": ["Returns", "the", "name", "of", "the", "file", "that", "is", "existing", "in", "the", "repository", "and", "has", "been", "locally", "modified", ".", "This", "file", "is", "one", "of", "the", "files", "that", "has", "been", "locally", "modified", "and", "is", "located", "at", "given", "index", "in", "the", "list", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java#L181-L184", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java", "func_name": "GitStatusResponse.getFileFromUntrackedFiles", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the name of the file at the specified index that has been created locally but has not\nyet been added to the repository by <git-add>.\n\n@param index\nIndex in the list must be positive and less than the number of new files to commit\n@return the name of the file", "docstring_tokens": ["Returns", "the", "name", "of", "the", "file", "at", "the", "specified", "index", "that", "has", "been", "created", "locally", "but", "has", "not", "yet", "been", "added", "to", "the", "repository", "by", "<", ";", "git", "-", "add>", ";", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java#L194-L197", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java", "func_name": "GitStatusResponse.getFileFromRenamedFiles", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the file at the specified index in the list of renamed files.\n\n@param index\nIndex in the list must be positive and less than the number of new files to commit\n@return the name of the file", "docstring_tokens": ["Returns", "the", "file", "at", "the", "specified", "index", "in", "the", "list", "of", "renamed", "files", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java#L206-L209", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java", "func_name": "GitStatusResponse.getError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the error message otherwise returns null;\n\n@return error message", "docstring_tokens": ["Returns", "the", "error", "message", "otherwise", "returns", "null", ";"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java#L394-L400", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java", "func_name": "GitStatusResponse.getError", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets all the errors generated by <git-status> command and returns them in String format.\n\n@return String errors concatenated together.", "docstring_tokens": ["Gets", "all", "the", "errors", "generated", "by", "<", ";", "git", "-", "status>", ";", "command", "and", "returns", "them", "in", "String", "format", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitStatusResponse.java#L407-L413", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitReset.java", "func_name": "GitReset.gitReset", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Perform a reset on the repository. The results of this method are what one would get by running\n"e;git-reset"e; against the repository.\n\n@param repository\nA File instance for the path to the repository root (the parent\ndirectory of the .git directory) or a sub-directory in the working tree of the\nrepository to perform reset against. This argument must represent the absolute path to\nthe desired directory as returned by the File.getPath() method. If null\nis passed, a NullPointerException will be thrown.\n@return The results of the reset.\n@exception IOException\nThere are many reasons for which an IOException may be thrown.\nExamples include:\n
    \n
  • a directory doesn't exist
  • \n
  • access to a file is denied
  • \n
  • a command is not found on the PATH
  • \n
\n@exception JavaGitException\nThrown when there is an error making the commit.", "docstring_tokens": ["Perform", "a", "reset", "on", "the", "repository", ".", "The", "results", "of", "this", "method", "are", "what", "one", "would", "get", "by", "running", ""e", ";", "git", "-", "reset"e", ";", "against", "the", "repository", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitReset.java#L65-L71", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/GitCommitResponseImpl.java", "func_name": "GitCommitResponseImpl.addAddedFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the information about a newly added file in the repository for a given commit.\n\n@param pathToFile\nThe path to the file from the root of the repository.\n@param mode\nThe mode of the file.\n@return False if the pathToFile is null or length zero. True otherwise.", "docstring_tokens": ["Add", "the", "information", "about", "a", "newly", "added", "file", "in", "the", "repository", "for", "a", "given", "commit", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/GitCommitResponseImpl.java#L50-L56", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/GitCommitResponseImpl.java", "func_name": "GitCommitResponseImpl.addCopiedFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the information about a newly copied file in the repository for a given commit.\n\n@param sourceFilePath\nThe path to the source file.\n@param destinationFilePath\nThe path to the destination file.\n@param percentage\nThe percentage.\n@return False if sourceFilePath or destinationFilePath is null or\nlength zero. True otherwise.", "docstring_tokens": ["Add", "the", "information", "about", "a", "newly", "copied", "file", "in", "the", "repository", "for", "a", "given", "commit", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/GitCommitResponseImpl.java#L70-L75", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/GitCommitResponseImpl.java", "func_name": "GitCommitResponseImpl.addDeletedFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the information about a file deleted from the repository for a given commit.\n\n@param pathToFile\nThe path to the file from the root of the repository.\n@param mode\nThe mode of the file.\n@return False if the pathToFile is null or length zero. True otherwise.", "docstring_tokens": ["Add", "the", "information", "about", "a", "file", "deleted", "from", "the", "repository", "for", "a", "given", "commit", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/GitCommitResponseImpl.java#L86-L92", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/GitCommitResponseImpl.java", "func_name": "GitCommitResponseImpl.setFilesChanged", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the number of files changed during a commit.\n\n@param filesChangedStr\nThe number of files changed in String format.\n@return True if the filesChangedStr parameter is a String\nrepresenting a number. False if the String does not contain a parsable\ninteger.", "docstring_tokens": ["Sets", "the", "number", "of", "files", "changed", "during", "a", "commit", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/GitCommitResponseImpl.java#L132-L139", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/GitCommitResponseImpl.java", "func_name": "GitCommitResponseImpl.setLinesDeleted", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the number of lines deleted in a commit.\n\n@param linesDeletedStr\nThe number of lines deleted in String format.\n@return True if the linesDeletedStr parameter is a String\nrepresenting a number. False if the String does not contain a parsable\ninteger.", "docstring_tokens": ["Sets", "the", "number", "of", "lines", "deleted", "in", "a", "commit", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/GitCommitResponseImpl.java#L160-L167", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/GitCommitResponseImpl.java", "func_name": "GitCommitResponseImpl.setLinesInserted", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the number of lines inserted in a commit.\n\n@param linesInsertedStr\nThe number of lines inserted in String format.\n@return True if the linesInsertedStr parameter is a String\nrepresenting a number. False if the String does not contain a parsable\ninteger.", "docstring_tokens": ["Sets", "the", "number", "of", "lines", "inserted", "in", "a", "commit", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/GitCommitResponseImpl.java#L188-L195", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitMv.java", "func_name": "CliGitMv.mvProcess", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Exec of git-mv command\n\n@param repoPath\nA File instance for the path to the repository root (the parent\ndirectory of the .git directory) or a sub-directory in the working tree of the\nrepository to move/rename against. This argument must represent the absolute path to\nthe desired directory as returned by the File.getPath() method. If null\nis passed, a NullPointerException will be thrown.\n@param options\nThe options to git-mv command.\n@param source\nThe List of source file/folder/symlink which are to be moved to a\ndifferent location. The paths specified in this list must all be relative to the\npath specified in the repository parameter as returned by\nFile.getPath(). A non-zero length argument is required for this\nparameter, otherwise a NullPointerException or\nIllegalArgumentException will be thrown.\n@param destination\nThe destination file/folder/symlink which the source is renamed or moved to. It\nshould be relative to the path specified in the repository\nparameter as returned by File.getPath(). A non-zero length argument is\nrequired for this parameter, otherwise a NullPointerException or\nIllegalArgumentException will be thrown.\n@return The results from the git-mv.\nIt is expected that GitMv does not notify when a move was successful. This follows\nthe response that git-mv itself gives. If the move/rename fails for any reason,\nproper exception messages are generated and thrown.\n@exception IOException\nThere are many reasons for which an IOException may be thrown.\nExamples include:\n
    \n
  • access to a file is denied
  • \n
  • a command is not found on the PATH
  • \n
\n@exception JavaGitException\nThrown when there is an error executing git-mv.", "docstring_tokens": ["Exec", "of", "git", "-", "mv", "command"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitMv.java#L102-L109", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/utilities/StringUtilities.java", "func_name": "StringUtilities.indexOfLeft", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the position for char 'c' in string 'str' starting from position 'pos'\nand searching towards the string beginning\n@param str\n@param from\n@param c\n@return char 'c' position or -1 if char is not found", "docstring_tokens": ["Returns", "the", "position", "for", "char", "c", "in", "string", "str", "starting", "from", "position", "pos", "and", "searching", "towards", "the", "string", "beginning"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/utilities/StringUtilities.java#L17-L26", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/parameter/types/ResultSetParameter.java", "func_name": "ResultSetParameter.getResultSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find a result set in the service binder.\n\n@param name\n@param service\n@return", "docstring_tokens": ["Find", "a", "result", "set", "in", "the", "service", "binder", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/parameter/types/ResultSetParameter.java#L62-L73", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitLog.java", "func_name": "CliGitLog.log", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Implementations of <git log> with options and one file to be added to index.", "docstring_tokens": ["Implementations", "of", "<", ";", "git", "log>", ";", "with", "options", "and", "one", "file", "to", "be", "added", "to", "index", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitLog.java#L43-L56", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitLogResponse.java", "func_name": "GitLogResponse.addCommit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This add a newly created commit object to the list of commits for a log.", "docstring_tokens": ["This", "add", "a", "newly", "created", "commit", "object", "to", "the", "list", "of", "commits", "for", "a", "log", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitLogResponse.java#L105-L119", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitLogResponse.java", "func_name": "GitLogResponse.addFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This adds a file to the list of files affected by a particular commit.\n@param filename The filename affected by the commit.\n@param linesAdded\tNumber of lines added in the above file in that particular commit.\n@param linesDeleted\tNumber of lines deleted in the above file in that particular commit.", "docstring_tokens": ["This", "adds", "a", "file", "to", "the", "list", "of", "files", "affected", "by", "a", "particular", "commit", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitLogResponse.java#L126-L132", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCheckout.java", "func_name": "CliGitCheckout.checkout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Git checkout with options and base branch information provided to <git-checkout> command.", "docstring_tokens": ["Git", "checkout", "with", "options", "and", "base", "branch", "information", "provided", "to", "<", ";", "git", "-", "checkout>", ";", "command", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCheckout.java#L61-L70", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCheckout.java", "func_name": "CliGitCheckout.checkout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Git checkout without any options and branch information provided. Just a basic checkout\ncommand.", "docstring_tokens": ["Git", "checkout", "without", "any", "options", "and", "branch", "information", "provided", ".", "Just", "a", "basic", "checkout", "command", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCheckout.java#L76-L79", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCheckout.java", "func_name": "CliGitCheckout.checkout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks out a branch from the git repository with a given branch name.", "docstring_tokens": ["Checks", "out", "a", "branch", "from", "the", "git", "repository", "with", "a", "given", "branch", "name", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCheckout.java#L84-L87", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCheckout.java", "func_name": "CliGitCheckout.checkout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks out a list of files from repository, no checkout options provided.", "docstring_tokens": ["Checks", "out", "a", "list", "of", "files", "from", "repository", "no", "checkout", "options", "provided", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCheckout.java#L92-L101", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCheckout.java", "func_name": "CliGitCheckout.checkout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks out a list of file from repository, with <tree-ish> options provided.", "docstring_tokens": ["Checks", "out", "a", "list", "of", "file", "from", "repository", "with", "<", ";", "tree", "-", "ish>", ";", "options", "provided", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCheckout.java#L106-L115", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCheckout.java", "func_name": "CliGitCheckout.checkout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks out a file from repository from a particular branch", "docstring_tokens": ["Checks", "out", "a", "file", "from", "repository", "from", "a", "particular", "branch"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCheckout.java#L120-L130", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCheckout.java", "func_name": "CliGitCheckout.checkRefAgainstRefType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This is just a test method for verifying that a given ref is not of refType provided as one of the parameters.\n\n@param ref This could be branch, sha1 etc.\n@param refType This is the RefType which the ref should not match.", "docstring_tokens": ["This", "is", "just", "a", "test", "method", "for", "verifying", "that", "a", "given", "ref", "is", "not", "of", "refType", "provided", "as", "one", "of", "the", "parameters", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitCheckout.java#L151-L155", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/GitDirectory.java", "func_name": "GitDirectory.getChildren", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the children of this directory.\n\n@return The children of this directory.", "docstring_tokens": ["Gets", "the", "children", "of", "this", "directory", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/GitDirectory.java#L61-L82", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitRmResponse.java", "func_name": "GitRmResponse.getRemovedFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the file at the specified index from the removed file list.\n\n@param index\nThe index of the file to get. It must fall in the range:\n0 <= index < getRemovedFilesSize().\n@return The file at the specified index.", "docstring_tokens": ["Gets", "the", "file", "at", "the", "specified", "index", "from", "the", "removed", "file", "list", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitRmResponse.java#L43-L46", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCheckout.java", "func_name": "GitCheckout.checkout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "For checking a file or list of files from a branch.\n\n@param repositoryPath\npath to the Git repository.\n@param paths\nList of file paths that are to be checked out.\n@return GitCheckoutResponse object\n@throws JavaGitException thrown if -\n
  • if the output for <git-checkout> command generated an error.
  • \n
  • if processBuilder not able to run the command.
  • \n\n@throws IOException\nthrown if -\n
      \n
    • paths given do not have proper permissions.
    • \n
    • paths given do not exist at all.
    • \n
    ", "docstring_tokens": ["For", "checking", "a", "file", "or", "list", "of", "files", "from", "a", "branch", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCheckout.java#L91-L98", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCheckout.java", "func_name": "GitCheckout.checkout", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks out files from the repository when a tree-ish object is given as the reference.\n\n@param repositoryPath\nPath to the Git repository.\n@param ref\nA branch, or sha1 object.\n@param paths\nList of file paths that are to be checked out.\n@return GitCheckoutResponse object\n@throws JavaGitException\nThrown if -\n
  • the output for <git-checkout> command generated an error.
  • \n
  • processBuilder not able to run the command.
  • \n\n@throws IOException\nThrown if -\n
      \n
    • paths given do not have proper permissions.
    • \n
    • paths given do not exist at all.
    • \n
    ", "docstring_tokens": ["Checks", "out", "files", "from", "the", "repository", "when", "a", "tree", "-", "ish", "object", "is", "given", "as", "the", "reference", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCheckout.java#L192-L203", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/GitAddResponseImpl.java", "func_name": "GitAddResponseImpl.setComment", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the non-error message generated in the output of the <git-add> command.\n\n@param lineNumber\nline number at which the message appeared in output.\n@param commentString\nmessage itself.", "docstring_tokens": ["Sets", "the", "non", "-", "error", "message", "generated", "in", "the", "output", "of", "the", "<", ";", "git", "-", "add>", ";", "command", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/GitAddResponseImpl.java#L58-L61", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitBranch.java", "func_name": "CliGitBranch.setDeleteOptions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the options for delete.\n\n@param options\nThe GitBranchOptions object.\n@param forceDelete\nThe forceDelete boolean flag. True if branch to be force deleted, false otherwise.\n@param remote\nThe remote boolean flag. True if a remote branch is being deleted, false otherwise.", "docstring_tokens": ["Sets", "the", "options", "for", "delete", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitBranch.java#L254-L263", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/proxy/injector/ServiceInjector.java", "func_name": "ServiceInjector.inject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inject a service into the service manager registry.\n\n@param klass\nClass to inject\n@throws DataException\n@throws IllegalAccessException\n@throws InstantiationException", "docstring_tokens": ["Inject", "a", "service", "into", "the", "service", "manager", "registry", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/proxy/injector/ServiceInjector.java#L33-L45", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/proxy/injector/ServiceInjector.java", "func_name": "ServiceInjector.injectServiceMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Injects a single UCMService annotation into the ServiceManager registry.\n\n@param className\nFully qualified class name\n@param annotation\nA reference to a UCMService annotation\n@throws DataException", "docstring_tokens": ["Injects", "a", "single", "UCMService", "annotation", "into", "the", "ServiceManager", "registry", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/proxy/injector/ServiceInjector.java#L56-L91", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCheckoutOptions.java", "func_name": "GitCheckoutOptions.setOptB", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the name of the new branch that need to be created from the base branch.\n\n@param newBranch\nNew branch of type Ref that will be created by <git-checkout>.", "docstring_tokens": ["Sets", "the", "name", "of", "the", "new", "branch", "that", "need", "to", "be", "created", "from", "the", "base", "branch", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCheckoutOptions.java#L70-L73", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitClone.java", "func_name": "CliGitClone.cloneProcess", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Process the git-clone command, to make a clone of the git repository.\n\n@param workingDirectoryPath\nA File instance for the path to the working directory. This argument\nmust represent the absolute path to the desired directory as returned by the\nFile.getPath() method. If null is passed, a\nNullPointerException will be thrown.\n@param options\nThe options for the git-clone command. If the value is null, a\nNullPointerException will be thrown.\n@param repository\nA URL instance for the repository to be cloned. If null is passed, a\nNullPointerException will be thrown.\n@param directory\nA File instance for the directory where the repository is to be cloned.\nIf null is passed, a NullPointerException will be thrown.\n@return The result of the git clone.\n@throws IOException\nThere are many reasons for which an IOException may be thrown.\nExamples include:\n
      \n
    • a directory doesn't exist
    • \n
    • a command is not found on the PATH
    • \n
    \n@throws JavaGitException\nThrown when there is an error executing git-clone.", "docstring_tokens": ["Process", "the", "git", "-", "clone", "command", "to", "make", "a", "clone", "of", "the", "git", "repository", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitClone.java#L85-L91", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/Bootstrapper.java", "func_name": "Bootstrapper.doFilter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Begins injection of filters, including the Service and IdocScript injectors\nrequired to load other ucm entities.", "docstring_tokens": ["Begins", "injection", "of", "filters", "including", "the", "Service", "and", "IdocScript", "injectors", "required", "to", "load", "other", "ucm", "entities", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/Bootstrapper.java#L34-L69", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/Bootstrapper.java", "func_name": "Bootstrapper.getResources11g", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Replacement for getResources which works on 11g.\n\n

    \nThe UCM 11G {@link ClassLoader} does not load component jars in the\nstandard manner, which means you cannot use\n{@link ClassLoader#getResources(String)} to find all instances of a\nspecific file in the jar path, instead we inspect the m_zipfiles map, where\nwe can query each zip file for the properties file.\n

    \n\n

    \nInstead, we use reflection to find all the loaded component jar files and\nsearch manually\n

    \n\n@param classLoader\n@param configFileName\n@throws MalformedURLException", "docstring_tokens": ["Replacement", "for", "getResources", "which", "works", "on", "11g", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/Bootstrapper.java#L91-L125", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitResetOptions.java", "func_name": "GitResetOptions.setup", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Central instance construction setup method.\n\n@param resetType\nThe type of reset to perform.\n@param commitName\nThe name of the commit to reset to.", "docstring_tokens": ["Central", "instance", "construction", "setup", "method", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitResetOptions.java#L117-L123", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/proxy/injector/MethodRegistry.java", "func_name": "MethodRegistry.addMethod", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds a method to the registry and returns the UUID.\n\n@return", "docstring_tokens": ["Adds", "a", "method", "to", "the", "registry", "and", "returns", "the", "UUID", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/proxy/injector/MethodRegistry.java#L15-L27", "partition": "valid"} +{"repo": "tstirrat/ucm-twine", "path": "src/main/java/org/ucmtwine/proxy/FilterProxy.java", "func_name": "FilterProxy.doFilter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Main entry point which will delegate to the filter method with dependency\ninjection.", "docstring_tokens": ["Main", "entry", "point", "which", "will", "delegate", "to", "the", "filter", "method", "with", "dependency", "injection", "."], "sha": "df53650f26c404c8de74ae06efa70c963933d4e9", "url": "https://github.com/tstirrat/ucm-twine/blob/df53650f26c404c8de74ae06efa70c963933d4e9/src/main/java/org/ucmtwine/proxy/FilterProxy.java#L21-L53", "partition": "valid"} +{"repo": "arconsis/droitatedDB", "path": "droitatedDB/src/main/java/org/droitateddb/DbCreator.java", "func_name": "DbCreator.reduceDatabaseConnection", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Reduce the connection opened. This should always be called after calling getDatabaseConnection and only after that.", "docstring_tokens": ["Reduce", "the", "connection", "opened", ".", "This", "should", "always", "be", "called", "after", "calling", "getDatabaseConnection", "and", "only", "after", "that", "."], "sha": "bf6775eb6ac2fa57df52e0d63472729b3370284f", "url": "https://github.com/arconsis/droitatedDB/blob/bf6775eb6ac2fa57df52e0d63472729b3370284f/droitatedDB/src/main/java/org/droitateddb/DbCreator.java#L82-L90", "partition": "valid"} +{"repo": "arconsis/droitatedDB", "path": "droitatedDB/src/main/java/org/droitateddb/DbCreator.java", "func_name": "DbCreator.consumeDatabase", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute an action on the database. The opening and closing of the database connection is handled for you.\n\n@param dbConsumer Action you want to execute on the database", "docstring_tokens": ["Execute", "an", "action", "on", "the", "database", ".", "The", "opening", "and", "closing", "of", "the", "database", "connection", "is", "handled", "for", "you", "."], "sha": "bf6775eb6ac2fa57df52e0d63472729b3370284f", "url": "https://github.com/arconsis/droitatedDB/blob/bf6775eb6ac2fa57df52e0d63472729b3370284f/droitatedDB/src/main/java/org/droitateddb/DbCreator.java#L115-L122", "partition": "valid"} +{"repo": "arconsis/droitatedDB", "path": "droitatedDB/src/main/java/org/droitateddb/DbCreator.java", "func_name": "DbCreator.query", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes a query on the database. Note that when calling close on the returned cursor the database connection count is reduces as well.\n\n@param table Name of the table\n@param columns Used columns of the queried table\n@param selection Selection statement\n@param selectionArgs Selection arguments\n@param groupBy SQL group by\n@param having SQL having\n@param orderBy SQL order by\n@return A Cursor containing the result, which reduces the database connection count when closed", "docstring_tokens": ["Executes", "a", "query", "on", "the", "database", ".", "Note", "that", "when", "calling", "close", "on", "the", "returned", "cursor", "the", "database", "connection", "count", "is", "reduces", "as", "well", "."], "sha": "bf6775eb6ac2fa57df52e0d63472729b3370284f", "url": "https://github.com/arconsis/droitatedDB/blob/bf6775eb6ac2fa57df52e0d63472729b3370284f/droitatedDB/src/main/java/org/droitateddb/DbCreator.java#L136-L139", "partition": "valid"} +{"repo": "arconsis/droitatedDB", "path": "droitatedDB/src/main/java/org/droitateddb/DbCreator.java", "func_name": "DbCreator.rawQuery", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes a raw query on the database. Note that when calling close on the returned cursor the database connection count is reduces as well.\n\n@param sql Raw SQL statement\n@return A Cursor containing the result, which reduces the database connection count when closed", "docstring_tokens": ["Executes", "a", "raw", "query", "on", "the", "database", ".", "Note", "that", "when", "calling", "close", "on", "the", "returned", "cursor", "the", "database", "connection", "count", "is", "reduces", "as", "well", "."], "sha": "bf6775eb6ac2fa57df52e0d63472729b3370284f", "url": "https://github.com/arconsis/droitatedDB/blob/bf6775eb6ac2fa57df52e0d63472729b3370284f/droitatedDB/src/main/java/org/droitateddb/DbCreator.java#L147-L150", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitRm.java", "func_name": "CliGitRm.buildCommandLine", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds the command line.\n\n@param options\nThe options to build with.\n@param path\nIf just a single path, this is it.\n@param paths\nIf there are multiple paths, these are they. path must be null for\nthese paths to be used.\n@return The list of arguments for the command line.", "docstring_tokens": ["Builds", "the", "command", "line", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/client/cli/CliGitRm.java#L116-L147", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCheckoutResponse.java", "func_name": "GitCheckoutResponse.getAddedFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the file at a given location in the addedFiles list\n\n@param index\nin the list and should be positive and less than no. of files added.\n@return added file at the index in addedFiles list.", "docstring_tokens": ["Returns", "the", "file", "at", "a", "given", "location", "in", "the", "addedFiles", "list"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCheckoutResponse.java#L116-L119", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCheckoutResponse.java", "func_name": "GitCheckoutResponse.getDeletedFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the file at a given location in the deletedFiles list\n\n@param index\nin the list and should be positive and less than no. of files deleted.\n@return deleted file at the index in deleteFiles list.", "docstring_tokens": ["Returns", "the", "file", "at", "a", "given", "location", "in", "the", "deletedFiles", "list"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCheckoutResponse.java#L128-L131", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCheckoutResponse.java", "func_name": "GitCheckoutResponse.getModifiedFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the file at a given location in the modifiedFiles list.\n\n@param index\nin the list and it should be positive and less than total no. of files modified.\n@return modified file at the index in modifiedFiles list.", "docstring_tokens": ["Returns", "the", "file", "at", "a", "given", "location", "in", "the", "modifiedFiles", "list", "."], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitCheckoutResponse.java#L140-L143", "partition": "valid"} +{"repo": "bit-man/SwissArmyJavaGit", "path": "javagit/src/main/java/edu/nyu/cs/javagit/api/GitFile.java", "func_name": "GitFile.getStatus", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Show object's status in the working directory\n\n@return Object's status in the working directory (untracked, changed but not updated, etc).", "docstring_tokens": ["Show", "object", "s", "status", "in", "the", "working", "directory"], "sha": "ba045a76d1a3ae6d07272520501daebf5159a8bd", "url": "https://github.com/bit-man/SwissArmyJavaGit/blob/ba045a76d1a3ae6d07272520501daebf5159a8bd/javagit/src/main/java/edu/nyu/cs/javagit/api/GitFile.java#L60-L64", "partition": "valid"} +{"repo": "andrezimmermann/dropzone-gwt", "path": "src/main/java/com/github/andrezimmermann/dropzone/client/injector/AbstractInjector.java", "func_name": "AbstractInjector.getHead", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gets the document header.\n\n@return the document header", "docstring_tokens": ["Gets", "the", "document", "header", "."], "sha": "ac9472f217799a7a8cdd18ae9d714a8ce3d0c65d", "url": "https://github.com/andrezimmermann/dropzone-gwt/blob/ac9472f217799a7a8cdd18ae9d714a8ce3d0c65d/src/main/java/com/github/andrezimmermann/dropzone/client/injector/AbstractInjector.java#L21-L29", "partition": "valid"} +{"repo": "andrezimmermann/dropzone-gwt", "path": "src/main/java/com/github/andrezimmermann/dropzone/client/Dropzone.java", "func_name": "Dropzone.getFiles", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return array if all files added to dropzone.\n\n@return all files added to dropzone.", "docstring_tokens": ["Return", "array", "if", "all", "files", "added", "to", "dropzone", "."], "sha": "ac9472f217799a7a8cdd18ae9d714a8ce3d0c65d", "url": "https://github.com/andrezimmermann/dropzone-gwt/blob/ac9472f217799a7a8cdd18ae9d714a8ce3d0c65d/src/main/java/com/github/andrezimmermann/dropzone/client/Dropzone.java#L125-L138", "partition": "valid"} +{"repo": "andrezimmermann/dropzone-gwt", "path": "src/main/java/com/github/andrezimmermann/dropzone/client/Dropzone.java", "func_name": "Dropzone.getFilesCount", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Return number of added files.\n\n@return number of files", "docstring_tokens": ["Return", "number", "of", "added", "files", "."], "sha": "ac9472f217799a7a8cdd18ae9d714a8ce3d0c65d", "url": "https://github.com/andrezimmermann/dropzone-gwt/blob/ac9472f217799a7a8cdd18ae9d714a8ce3d0c65d/src/main/java/com/github/andrezimmermann/dropzone/client/Dropzone.java#L145-L148", "partition": "valid"} +{"repo": "echocat/jomon", "path": "runtime/src/main/java/org/echocat/jomon/runtime/util/Glob.java", "func_name": "Glob.matches", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Match the given string.", "docstring_tokens": ["Match", "the", "given", "string", "."], "sha": "b3b81dc3f8ca2b17f87492090b86f3b8dea5fe32", "url": "https://github.com/echocat/jomon/blob/b3b81dc3f8ca2b17f87492090b86f3b8dea5fe32/runtime/src/main/java/org/echocat/jomon/runtime/util/Glob.java#L74-L111", "partition": "valid"} +{"repo": "echocat/jomon", "path": "cache/src/main/java/org/echocat/jomon/cache/LruCache.java", "func_name": "LruCache.updateListAfterHit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Move the entry to the beginning of the LinkedList.", "docstring_tokens": ["Move", "the", "entry", "to", "the", "beginning", "of", "the", "LinkedList", "."], "sha": "b3b81dc3f8ca2b17f87492090b86f3b8dea5fe32", "url": "https://github.com/echocat/jomon/blob/b3b81dc3f8ca2b17f87492090b86f3b8dea5fe32/cache/src/main/java/org/echocat/jomon/cache/LruCache.java#L51-L67", "partition": "valid"} +{"repo": "echocat/jomon", "path": "cache/src/main/java/org/echocat/jomon/cache/InMemoryBasedCacheSupport.java", "func_name": "InMemoryBasedCacheSupport.removeLast", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove the last element from the cache.", "docstring_tokens": ["Remove", "the", "last", "element", "from", "the", "cache", "."], "sha": "b3b81dc3f8ca2b17f87492090b86f3b8dea5fe32", "url": "https://github.com/echocat/jomon/blob/b3b81dc3f8ca2b17f87492090b86f3b8dea5fe32/cache/src/main/java/org/echocat/jomon/cache/InMemoryBasedCacheSupport.java#L117-L134", "partition": "valid"} +{"repo": "echocat/jomon", "path": "cache/src/main/java/org/echocat/jomon/cache/InMemoryBasedCacheSupport.java", "func_name": "InMemoryBasedCacheSupport.cleanUpLifetimeExpired", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove entries that are out of their maxLifetime.", "docstring_tokens": ["Remove", "entries", "that", "are", "out", "of", "their", "maxLifetime", "."], "sha": "b3b81dc3f8ca2b17f87492090b86f3b8dea5fe32", "url": "https://github.com/echocat/jomon/blob/b3b81dc3f8ca2b17f87492090b86f3b8dea5fe32/cache/src/main/java/org/echocat/jomon/cache/InMemoryBasedCacheSupport.java#L139-L164", "partition": "valid"} +{"repo": "echocat/jomon", "path": "cache/src/main/java/org/echocat/jomon/cache/LfuCache.java", "func_name": "LfuCache.updateListAfterHit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Resort the linked list. If this CacheEntry has more hits than the previous one move it up.", "docstring_tokens": ["Resort", "the", "linked", "list", ".", "If", "this", "CacheEntry", "has", "more", "hits", "than", "the", "previous", "one", "move", "it", "up", "."], "sha": "b3b81dc3f8ca2b17f87492090b86f3b8dea5fe32", "url": "https://github.com/echocat/jomon/blob/b3b81dc3f8ca2b17f87492090b86f3b8dea5fe32/cache/src/main/java/org/echocat/jomon/cache/LfuCache.java#L46-L75", "partition": "valid"} +{"repo": "echocat/jomon", "path": "runtime/src/main/java/org/echocat/jomon/runtime/StringUtils.java", "func_name": "StringUtils.startsWith", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Test whether 'find' can be found at position 'startPos' in the string 'src'.", "docstring_tokens": ["Test", "whether", "find", "can", "be", "found", "at", "position", "startPos", "in", "the", "string", "src", "."], "sha": "b3b81dc3f8ca2b17f87492090b86f3b8dea5fe32", "url": "https://github.com/echocat/jomon/blob/b3b81dc3f8ca2b17f87492090b86f3b8dea5fe32/runtime/src/main/java/org/echocat/jomon/runtime/StringUtils.java#L105-L122", "partition": "valid"} +{"repo": "eurekaclinical/scribe-up-ext", "path": "src/main/java/org/eurekaclinical/scribeupext/service/GlobusOAuth20ServiceImpl.java", "func_name": "GlobusOAuth20ServiceImpl.getAccessToken", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Makes the call to request an access token for an authorized user.\n\n@param requestToken not used.\n@param verifier the code query parameter that Globus included in the\nredirect after the authorization call.\n\n@return the access token.", "docstring_tokens": ["Makes", "the", "call", "to", "request", "an", "access", "token", "for", "an", "authorized", "user", "."], "sha": "26120b87626cbed1720e2572a0d64b7199920bbb", "url": "https://github.com/eurekaclinical/scribe-up-ext/blob/26120b87626cbed1720e2572a0d64b7199920bbb/src/main/java/org/eurekaclinical/scribeupext/service/GlobusOAuth20ServiceImpl.java#L77-L97", "partition": "valid"} +{"repo": "eurekaclinical/scribe-up-ext", "path": "src/main/java/org/eurekaclinical/scribeupext/service/GlobusOAuth20ServiceImpl.java", "func_name": "GlobusOAuth20ServiceImpl.signRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds an authorization header containing the bearer token to a request.\nIt is intended for use in API calls after getting the access token, such\nas requesting the user's profile.\n\n@param accessToken the user's access token.\n@param request the requests.", "docstring_tokens": ["Adds", "an", "authorization", "header", "containing", "the", "bearer", "token", "to", "a", "request", ".", "It", "is", "intended", "for", "use", "in", "API", "calls", "after", "getting", "the", "access", "token", "such", "as", "requesting", "the", "user", "s", "profile", "."], "sha": "26120b87626cbed1720e2572a0d64b7199920bbb", "url": "https://github.com/eurekaclinical/scribe-up-ext/blob/26120b87626cbed1720e2572a0d64b7199920bbb/src/main/java/org/eurekaclinical/scribeupext/service/GlobusOAuth20ServiceImpl.java#L107-L110", "partition": "valid"} +{"repo": "eurekaclinical/scribe-up-ext", "path": "src/main/java/org/eurekaclinical/scribeupext/GlobusApi.java", "func_name": "GlobusApi.getAuthorizationUrl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the URL for authorizing the user.\n\n@param config query parameters to add to the base URL.\n\n@return the URL for authorizing the user.", "docstring_tokens": ["Returns", "the", "URL", "for", "authorizing", "the", "user", "."], "sha": "26120b87626cbed1720e2572a0d64b7199920bbb", "url": "https://github.com/eurekaclinical/scribe-up-ext/blob/26120b87626cbed1720e2572a0d64b7199920bbb/src/main/java/org/eurekaclinical/scribeupext/GlobusApi.java#L83-L89", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/ProjectWizard.java", "func_name": "ProjectWizard.performFinish", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method is called when 'Finish' button is pressed in the wizard. We\nwill create an operation and run it using wizard as execution context.", "docstring_tokens": ["This", "method", "is", "called", "when", "Finish", "button", "is", "pressed", "in", "the", "wizard", ".", "We", "will", "create", "an", "operation", "and", "run", "it", "using", "wizard", "as", "execution", "context", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/ProjectWizard.java#L96-L121", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/ProjectWizard.java", "func_name": "ProjectWizard.doFinish", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The worker method. It will find the container, create the file if missing\nor just replace its contents, and open the editor on the newly created\nfile.", "docstring_tokens": ["The", "worker", "method", ".", "It", "will", "find", "the", "container", "create", "the", "file", "if", "missing", "or", "just", "replace", "its", "contents", "and", "open", "the", "editor", "on", "the", "newly", "created", "file", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/ProjectWizard.java#L133-L156", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/ProjectWizardParametersPage.java", "func_name": "ProjectWizardParametersPage.createControl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates page controls.", "docstring_tokens": ["Creates", "page", "controls", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/ProjectWizardParametersPage.java#L126-L137", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/ProjectWizardParametersPage.java", "func_name": "ProjectWizardParametersPage.getDefaultJavaPackage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the default package name.", "docstring_tokens": ["Returns", "the", "default", "package", "name", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/ProjectWizardParametersPage.java#L390-L392", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/ProjectWizardParametersPage.java", "func_name": "ProjectWizardParametersPage.setVisible", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Loads the group value when the page is displayed.", "docstring_tokens": ["Loads", "the", "group", "value", "when", "the", "page", "is", "displayed", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/ProjectWizardParametersPage.java#L404-L423", "partition": "valid"} +{"repo": "chkal/criteria4jpa", "path": "src/main/java/org/criteria4jpa/impl/CriteriaQueryBuilder.java", "func_name": "CriteriaQueryBuilder.createQueryDebugString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a human-readable representation of the query that will be created\nfrom this builder", "docstring_tokens": ["Creates", "a", "human", "-", "readable", "representation", "of", "the", "query", "that", "will", "be", "created", "from", "this", "builder"], "sha": "3d8d9952808be9aa7f57130d5e4fd3606dba3100", "url": "https://github.com/chkal/criteria4jpa/blob/3d8d9952808be9aa7f57130d5e4fd3606dba3100/src/main/java/org/criteria4jpa/impl/CriteriaQueryBuilder.java#L104-L115", "partition": "valid"} +{"repo": "chkal/criteria4jpa", "path": "src/main/java/org/criteria4jpa/impl/CriteriaQueryBuilder.java", "func_name": "CriteriaQueryBuilder.getQueryParametersAsList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates an ordered list of all parameter values registered at\nthe root criteria.\n\n@return list of parameter values", "docstring_tokens": ["Creates", "an", "ordered", "list", "of", "all", "parameter", "values", "registered", "at", "the", "root", "criteria", "."], "sha": "3d8d9952808be9aa7f57130d5e4fd3606dba3100", "url": "https://github.com/chkal/criteria4jpa/blob/3d8d9952808be9aa7f57130d5e4fd3606dba3100/src/main/java/org/criteria4jpa/impl/CriteriaQueryBuilder.java#L314-L344", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/views/PaletteView.java", "func_name": "PaletteView.createPartControl", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "create controls and apply configurations.", "docstring_tokens": ["create", "controls", "and", "apply", "configurations", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/views/PaletteView.java#L82-L125", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/views/PaletteView.java", "func_name": "PaletteView.addPaletteItem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds PaletteItem to the specified category.\n\n@param category the category\n@param item the item", "docstring_tokens": ["Adds", "PaletteItem", "to", "the", "specified", "category", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/views/PaletteView.java#L149-L156", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/views/PaletteView.java", "func_name": "PaletteView.getPaletteItems", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns PaletteItems which are contained by the specified category.\n\n@param category the category\n@return the array of items which are contained by the category", "docstring_tokens": ["Returns", "PaletteItems", "which", "are", "contained", "by", "the", "specified", "category", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/views/PaletteView.java#L165-L171", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardTemplatesWizardPage.java", "func_name": "NewCardTemplatesWizardPage.configureTableResizing", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Correctly resizes the table so no phantom columns appear\n\n@param parent\nthe parent control\n@param buttons\nthe buttons\n@param table\nthe table\n@param column1\nthe first column\n@param column2\nthe second column\n@param column3\nthe third column", "docstring_tokens": ["Correctly", "resizes", "the", "table", "so", "no", "phantom", "columns", "appear"], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardTemplatesWizardPage.java#L191-L224", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardTemplatesWizardPage.java", "func_name": "NewCardTemplatesWizardPage.getSelectedTemplate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the currently selected template.\n\n@return", "docstring_tokens": ["Get", "the", "currently", "selected", "template", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardTemplatesWizardPage.java#L426-L434", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardTemplatesWizardPage.java", "func_name": "NewCardTemplatesWizardPage.getTemplateString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns template string to insert.\n\n@return String to insert or null if none is to be inserted", "docstring_tokens": ["Returns", "template", "string", "to", "insert", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardTemplatesWizardPage.java#L441-L459", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardTemplatesWizardPage.java", "func_name": "NewCardTemplatesWizardPage.loadLastSavedPreferences", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load the last template name used in New HTML File wizard.", "docstring_tokens": ["Load", "the", "last", "template", "name", "used", "in", "New", "HTML", "File", "wizard", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardTemplatesWizardPage.java#L471-L491", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardTemplatesWizardPage.java", "func_name": "NewCardTemplatesWizardPage.saveLastSavedPreferences", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Save template name used for next call to New HTML File wizard.", "docstring_tokens": ["Save", "template", "name", "used", "for", "next", "call", "to", "New", "HTML", "File", "wizard", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardTemplatesWizardPage.java#L496-L506", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardTemplatesWizardPage.java", "func_name": "NewCardTemplatesWizardPage.setSelectedTemplate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Select a template in the table viewer given the template name. If\ntemplate name cannot be found or templateName is null, just select\nfirst item in table. If no items in table select nothing.\n\n@param templateName", "docstring_tokens": ["Select", "a", "template", "in", "the", "table", "viewer", "given", "the", "template", "name", ".", "If", "template", "name", "cannot", "be", "found", "or", "templateName", "is", "null", "just", "select", "first", "item", "in", "table", ".", "If", "no", "items", "in", "table", "select", "nothing", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardTemplatesWizardPage.java#L515-L533", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardTemplatesWizardPage.java", "func_name": "NewCardTemplatesWizardPage.updateViewerInput", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Updates the pattern viewer.", "docstring_tokens": ["Updates", "the", "pattern", "viewer", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardTemplatesWizardPage.java#L538-L554", "partition": "valid"} +{"repo": "chkal/criteria4jpa", "path": "src/main/java/org/criteria4jpa/criterion/Restrictions.java", "func_name": "Restrictions.in", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds an \"in\" restriction to a persistent field.\n\n@param relativePath relative path of the persistent field\n@param values expected values of the field\n@return {@link Criterion} instance", "docstring_tokens": ["Adds", "an", "in", "restriction", "to", "a", "persistent", "field", "."], "sha": "3d8d9952808be9aa7f57130d5e4fd3606dba3100", "url": "https://github.com/chkal/criteria4jpa/blob/3d8d9952808be9aa7f57130d5e4fd3606dba3100/src/main/java/org/criteria4jpa/criterion/Restrictions.java#L320-L322", "partition": "valid"} +{"repo": "chkal/criteria4jpa", "path": "src/main/java/org/criteria4jpa/criterion/Restrictions.java", "func_name": "Restrictions.memberOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a \"member of\" restriction.\n\n@param relativePath relative path of a collection\n@param value The value to check membership for\n@return new {@link Criterion} instance", "docstring_tokens": ["Creates", "a", "member", "of", "restriction", "."], "sha": "3d8d9952808be9aa7f57130d5e4fd3606dba3100", "url": "https://github.com/chkal/criteria4jpa/blob/3d8d9952808be9aa7f57130d5e4fd3606dba3100/src/main/java/org/criteria4jpa/criterion/Restrictions.java#L393-L395", "partition": "valid"} +{"repo": "chkal/criteria4jpa", "path": "src/main/java/org/criteria4jpa/criterion/Restrictions.java", "func_name": "Restrictions.notMemberOf", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a \"not member of\" restriction.\n\n@param relativePath relative path of a collection\n@param value The value to check membership for\n@return new {@link Criterion} instance", "docstring_tokens": ["Creates", "a", "not", "member", "of", "restriction", "."], "sha": "3d8d9952808be9aa7f57130d5e4fd3606dba3100", "url": "https://github.com/chkal/criteria4jpa/blob/3d8d9952808be9aa7f57130d5e4fd3606dba3100/src/main/java/org/criteria4jpa/criterion/Restrictions.java#L404-L406", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/preferences/LoginPreferencePage.java", "func_name": "LoginPreferencePage.createFieldEditors", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the field editors. Field editors are abstractions of\nthe common GUI blocks needed to manipulate various types\nof preferences. Each field editor knows how to save and\nrestore itself.", "docstring_tokens": ["Creates", "the", "field", "editors", ".", "Field", "editors", "are", "abstractions", "of", "the", "common", "GUI", "blocks", "needed", "to", "manipulate", "various", "types", "of", "preferences", ".", "Each", "field", "editor", "knows", "how", "to", "save", "and", "restore", "itself", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/preferences/LoginPreferencePage.java#L53-L56", "partition": "valid"} +{"repo": "chkal/criteria4jpa", "path": "src/main/java/org/criteria4jpa/util/StringUtils.java", "func_name": "StringUtils.getLastPathComponent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the last component of a dot-separated path.\n\n@param path relative or absolute path expression\n@return last component of path expression", "docstring_tokens": ["Returns", "the", "last", "component", "of", "a", "dot", "-", "separated", "path", "."], "sha": "3d8d9952808be9aa7f57130d5e4fd3606dba3100", "url": "https://github.com/chkal/criteria4jpa/blob/3d8d9952808be9aa7f57130d5e4fd3606dba3100/src/main/java/org/criteria4jpa/util/StringUtils.java#L62-L70", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardFileWizardPage.java", "func_name": "NewCardFileWizardPage.initialPopulateContainerNameField", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method is overridden to set the selected folder to web contents\nfolder if the current selection is outside the web contents folder.", "docstring_tokens": ["This", "method", "is", "overridden", "to", "set", "the", "selected", "folder", "to", "web", "contents", "folder", "if", "the", "current", "selection", "is", "outside", "the", "web", "contents", "folder", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardFileWizardPage.java#L82-L96", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardFileWizardPage.java", "func_name": "NewCardFileWizardPage.validatePage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method is overridden to set additional validation specific to html\nfiles.", "docstring_tokens": ["This", "method", "is", "overridden", "to", "set", "additional", "validation", "specific", "to", "html", "files", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardFileWizardPage.java#L102-L155", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardFileWizardPage.java", "func_name": "NewCardFileWizardPage.extensionValidForContentType", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Verifies if fileName is valid name for content type. Takes base content\ntype into consideration.\n\n@param fileName\n@return true if extension is valid for this content type", "docstring_tokens": ["Verifies", "if", "fileName", "is", "valid", "name", "for", "content", "type", ".", "Takes", "base", "content", "type", "into", "consideration", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardFileWizardPage.java#L175-L191", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardFileWizardPage.java", "func_name": "NewCardFileWizardPage.addDefaultExtension", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Adds default extension to the filename\n\n@param filename\n@return", "docstring_tokens": ["Adds", "default", "extension", "to", "the", "filename"], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardFileWizardPage.java#L199-L208", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardFileWizardPage.java", "func_name": "NewCardFileWizardPage.getProjectFromPath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the project that contains the specified path\n\n@param path\nthe path which project is needed\n@return IProject object. If path is null the return value is\nalso null.", "docstring_tokens": ["Returns", "the", "project", "that", "contains", "the", "specified", "path"], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/wizards/NewCardFileWizardPage.java#L218-L231", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.forge/org.glassmaker.spring.oauth2/src/main/java/org/glassmaker/spring/oauth/OAuth2Util.java", "func_name": "OAuth2Util.getUserId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the current user's ID from the session\n\n@return string user id or null if no one is logged in", "docstring_tokens": ["Get", "the", "current", "user", "s", "ID", "from", "the", "session"], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.forge/org.glassmaker.spring.oauth2/src/main/java/org/glassmaker/spring/oauth/OAuth2Util.java#L86-L89", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/CardEditor.java", "func_name": "CardEditor.createPage0", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates Structured Twext Editot of the multi-page editor, which contains an HTML editor.", "docstring_tokens": ["Creates", "Structured", "Twext", "Editot", "of", "the", "multi", "-", "page", "editor", "which", "contains", "an", "HTML", "editor", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/CardEditor.java#L108-L117", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/CardEditor.java", "func_name": "CardEditor.doSaveAs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Saves the multi-page editor's document as another file. Also updates the\ntext for page 0's tab, and updates this multi-page editor's input to\ncorrespond to the nested editor's.", "docstring_tokens": ["Saves", "the", "multi", "-", "page", "editor", "s", "document", "as", "another", "file", ".", "Also", "updates", "the", "text", "for", "page", "0", "s", "tab", "and", "updates", "this", "multi", "-", "page", "editor", "s", "input", "to", "correspond", "to", "the", "nested", "editor", "s", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/CardEditor.java#L192-L197", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/CardEditor.java", "func_name": "CardEditor.resourceChanged", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Closes all project files on project close.", "docstring_tokens": ["Closes", "all", "project", "files", "on", "project", "close", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/CardEditor.java#L237-L251", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/CardEditor.java", "func_name": "CardEditor.showPage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sorts the words in page 0, and shows them in page 2.", "docstring_tokens": ["Sorts", "the", "words", "in", "page", "0", "and", "shows", "them", "in", "page", "2", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/CardEditor.java#L268-L284", "partition": "valid"} +{"repo": "chkal/criteria4jpa", "path": "src/main/java/org/criteria4jpa/util/QueryLogHelper.java", "func_name": "QueryLogHelper.createQueryLogMessage", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Method to create a human readable log message regarding a generated query.\n\n@param query the JPQL query string\n@param parameterValues the parameter values of the query\n@return log string", "docstring_tokens": ["Method", "to", "create", "a", "human", "readable", "log", "message", "regarding", "a", "generated", "query", "."], "sha": "3d8d9952808be9aa7f57130d5e4fd3606dba3100", "url": "https://github.com/chkal/criteria4jpa/blob/3d8d9952808be9aa7f57130d5e4fd3606dba3100/src/main/java/org/criteria4jpa/util/QueryLogHelper.java#L22-L60", "partition": "valid"} +{"repo": "chkal/criteria4jpa", "path": "src/main/java/org/criteria4jpa/util/QueryLogHelper.java", "func_name": "QueryLogHelper.objectToString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Helper method to create a string representation of an object.\n\n@param obj the object to print\n@return a string representation of the object", "docstring_tokens": ["Helper", "method", "to", "create", "a", "string", "representation", "of", "an", "object", "."], "sha": "3d8d9952808be9aa7f57130d5e4fd3606dba3100", "url": "https://github.com/chkal/criteria4jpa/blob/3d8d9952808be9aa7f57130d5e4fd3606dba3100/src/main/java/org/criteria4jpa/util/QueryLogHelper.java#L68-L82", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.forge/org.glassmaker.spring.web/src/main/java/org/glassmaker/spring/web/MirrorTemplate.java", "func_name": "MirrorTemplate.insertTimelineItem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inserts a simple timeline item.\n\n@param getCredential\n(credential) the user's credential\n@param item\nthe item to insert", "docstring_tokens": ["Inserts", "a", "simple", "timeline", "item", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.forge/org.glassmaker.spring.web/src/main/java/org/glassmaker/spring/web/MirrorTemplate.java#L139-L141", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.forge/org.glassmaker.spring.web/src/main/java/org/glassmaker/spring/web/MirrorTemplate.java", "func_name": "MirrorTemplate.insertTimelineItem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inserts an item with an attachment provided as a byte array.\n\n@param item\nthe item to insert\n@param attachmentContentType\nthe MIME type of the attachment (or null if none)\n@param attachmentData\ndata for the attachment (or null if none)", "docstring_tokens": ["Inserts", "an", "item", "with", "an", "attachment", "provided", "as", "a", "byte", "array", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.forge/org.glassmaker.spring.web/src/main/java/org/glassmaker/spring/web/MirrorTemplate.java#L153-L157", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.forge/org.glassmaker.spring.web/src/main/java/org/glassmaker/spring/web/MirrorTemplate.java", "func_name": "MirrorTemplate.insertTimelineItem", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Inserts an item with an attachment provided as an input stream.\n\n@param item\nthe item to insert\n@param attachmentContentType\nthe MIME type of the attachment (or null if none)\n@param attachmentInputStream\ninput stream for the attachment (or null if none)", "docstring_tokens": ["Inserts", "an", "item", "with", "an", "attachment", "provided", "as", "an", "input", "stream", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.forge/org.glassmaker.spring.web/src/main/java/org/glassmaker/spring/web/MirrorTemplate.java#L169-L171", "partition": "valid"} +{"repo": "mrcritical/ironcache", "path": "src/main/java/com/github/mrcritical/ironcache/DefaultIronCacheProvider.java", "func_name": "DefaultIronCacheProvider.validate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validates that the keyword expected was returned. Otherwise throws an\nexception with the message returned included.\n\n@param response\nis the response to check\n@param keyword\nis the keyword to expected", "docstring_tokens": ["Validates", "that", "the", "keyword", "expected", "was", "returned", ".", "Otherwise", "throws", "an", "exception", "with", "the", "message", "returned", "included", "."], "sha": "aa456822588e6dd7c6d2200f8b41c26a70d29f42", "url": "https://github.com/mrcritical/ironcache/blob/aa456822588e6dd7c6d2200f8b41c26a70d29f42/src/main/java/com/github/mrcritical/ironcache/DefaultIronCacheProvider.java#L388-L392", "partition": "valid"} +{"repo": "chkal/criteria4jpa", "path": "src/main/java/org/criteria4jpa/order/Order.java", "func_name": "Order.toQueryString", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Renders the order to a ORDER BY substring of JPQL query\n\n@param criteria The {@link Criteria} the order is associated with\n@param queryBuilder The builder of the JPQL query\n@return the generated query string", "docstring_tokens": ["Renders", "the", "order", "to", "a", "ORDER", "BY", "substring", "of", "JPQL", "query"], "sha": "3d8d9952808be9aa7f57130d5e4fd3606dba3100", "url": "https://github.com/chkal/criteria4jpa/blob/3d8d9952808be9aa7f57130d5e4fd3606dba3100/src/main/java/org/criteria4jpa/order/Order.java#L54-L57", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/GlassmakerUIPlugin.java", "func_name": "GlassmakerUIPlugin.getTemplateStore", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the template store for the html editor templates.\n\n@return the template store for the html editor templates", "docstring_tokens": ["Returns", "the", "template", "store", "for", "the", "html", "editor", "templates", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/GlassmakerUIPlugin.java#L186-L197", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/GlassmakerUIPlugin.java", "func_name": "GlassmakerUIPlugin.getTemplateContextRegistry", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the template context type registry for the html plugin.\n\n@return the template context type registry for the html plugin", "docstring_tokens": ["Returns", "the", "template", "context", "type", "registry", "for", "the", "html", "plugin", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/GlassmakerUIPlugin.java#L204-L213", "partition": "valid"} +{"repo": "eteration/glassmaker", "path": "org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/CardEditorContributor.java", "func_name": "CardEditorContributor.getAction", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the action registed with the given text editor.\n@return IAction or null if editor is null.", "docstring_tokens": ["Returns", "the", "action", "registed", "with", "the", "given", "text", "editor", "."], "sha": "d7f3d0d5e08376d6262a9e9ba198b14f6eac840c", "url": "https://github.com/eteration/glassmaker/blob/d7f3d0d5e08376d6262a9e9ba198b14f6eac840c/org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/CardEditorContributor.java#L64-L66", "partition": "valid"} +{"repo": "NessComputing/migratory", "path": "migratory-maven-plugin/src/main/java/com/nesscomputing/migratory/maven/AbstractMigratoryMojo.java", "func_name": "AbstractMigratoryMojo.createDBI", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the datasource config based on the provided parameters.", "docstring_tokens": ["Creates", "the", "datasource", "config", "based", "on", "the", "provided", "parameters", "."], "sha": "73ca862e79ee2588f1cc4101cd70b0a8b1c88398", "url": "https://github.com/NessComputing/migratory/blob/73ca862e79ee2588f1cc4101cd70b0a8b1c88398/migratory-maven-plugin/src/main/java/com/nesscomputing/migratory/maven/AbstractMigratoryMojo.java#L125-L131", "partition": "valid"} +{"repo": "azaptree/azaptree-services", "path": "azaptree-domain-entity/src/main/java/com/azaptree/services/domain/entity/dao/JDBCEntityDAOSupport.java", "func_name": "JDBCEntityDAOSupport.appendLimitAndOffSet", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Appends LIMIT and OFFSET for POSTGRESQL SQL queries\n\n\nSELECT select_list\nFROM table_expression\n[ ORDER BY ... ]\n[ LIMIT { number | ALL } ] [ OFFSET number ]\n\n\n@param sql\n@param page", "docstring_tokens": ["Appends", "LIMIT", "and", "OFFSET", "for", "POSTGRESQL", "SQL", "queries"], "sha": "f38bc23acf536bf4d63c007406158fdc4b0cc160", "url": "https://github.com/azaptree/azaptree-services/blob/f38bc23acf536bf4d63c007406158fdc4b0cc160/azaptree-domain-entity/src/main/java/com/azaptree/services/domain/entity/dao/JDBCEntityDAOSupport.java#L73-L75", "partition": "valid"} +{"repo": "SynBioDex/sbol-data", "path": "sbol-data-core/src/main/java/org/sbolstandard/core/datatree/Datatree.java", "func_name": "Datatree.NamedProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a value property from a literal value.\n\n@param name the property name\n@param value the property value\n@param the property name type\n@return a new NamedProperty with the supplied name and value", "docstring_tokens": ["Create", "a", "value", "property", "from", "a", "literal", "value", "."], "sha": "5b7ebfb6a4dcd9838f451547c25fc0a0c72ae41d", "url": "https://github.com/SynBioDex/sbol-data/blob/5b7ebfb6a4dcd9838f451547c25fc0a0c72ae41d/sbol-data-core/src/main/java/org/sbolstandard/core/datatree/Datatree.java#L482-L484", "partition": "valid"} +{"repo": "SynBioDex/sbol-data", "path": "sbol-data-core/src/main/java/org/sbolstandard/core/datatree/Datatree.java", "func_name": "Datatree.NamedProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a value property from a string value.\n\n@param name the property name\n@param value the property value\n@param the property name type\n@return a new NamedProperty with the supplied name and value", "docstring_tokens": ["Create", "a", "value", "property", "from", "a", "string", "value", "."], "sha": "5b7ebfb6a4dcd9838f451547c25fc0a0c72ae41d", "url": "https://github.com/SynBioDex/sbol-data/blob/5b7ebfb6a4dcd9838f451547c25fc0a0c72ae41d/sbol-data-core/src/main/java/org/sbolstandard/core/datatree/Datatree.java#L494-L496", "partition": "valid"} +{"repo": "SynBioDex/sbol-data", "path": "sbol-data-core/src/main/java/org/sbolstandard/core/datatree/Datatree.java", "func_name": "Datatree.NamedProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a value property from a nested document value.\n\n@param name the property name\n@param value the property value\n@param the property name type\n@return a new NamedProperty with the supplied name and value", "docstring_tokens": ["Create", "a", "value", "property", "from", "a", "nested", "document", "value", "."], "sha": "5b7ebfb6a4dcd9838f451547c25fc0a0c72ae41d", "url": "https://github.com/SynBioDex/sbol-data/blob/5b7ebfb6a4dcd9838f451547c25fc0a0c72ae41d/sbol-data-core/src/main/java/org/sbolstandard/core/datatree/Datatree.java#L554-L556", "partition": "valid"} +{"repo": "SynBioDex/sbol-data", "path": "sbol-data-core/src/main/java/org/sbolstandard/core/datatree/Datatree.java", "func_name": "Datatree.Literal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a string literal.\n\n@param value the property value\n@return a new NamedProperty with the supplied name and value", "docstring_tokens": ["Create", "a", "string", "literal", "."], "sha": "5b7ebfb6a4dcd9838f451547c25fc0a0c72ae41d", "url": "https://github.com/SynBioDex/sbol-data/blob/5b7ebfb6a4dcd9838f451547c25fc0a0c72ae41d/sbol-data-core/src/main/java/org/sbolstandard/core/datatree/Datatree.java#L564-L566", "partition": "valid"} +{"repo": "SynBioDex/sbol-data", "path": "sbol-data-core/src/main/java/org/sbolstandard/core/datatree/Datatree.java", "func_name": "Datatree.Literal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a URI literal.\n\n@param value the property value\n@return a new NamedProperty with the supplied name and value", "docstring_tokens": ["Create", "a", "URI", "literal", "."], "sha": "5b7ebfb6a4dcd9838f451547c25fc0a0c72ae41d", "url": "https://github.com/SynBioDex/sbol-data/blob/5b7ebfb6a4dcd9838f451547c25fc0a0c72ae41d/sbol-data-core/src/main/java/org/sbolstandard/core/datatree/Datatree.java#L594-L596", "partition": "valid"} +{"repo": "SynBioDex/sbol-data", "path": "sbol-data-core/src/main/java/org/sbolstandard/core/datatree/Datatree.java", "func_name": "Datatree.Literal", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a typed literal.\n\n@param value the property value\n@return a new NamedProperty with the supplied name and value", "docstring_tokens": ["Create", "a", "typed", "literal", "."], "sha": "5b7ebfb6a4dcd9838f451547c25fc0a0c72ae41d", "url": "https://github.com/SynBioDex/sbol-data/blob/5b7ebfb6a4dcd9838f451547c25fc0a0c72ae41d/sbol-data-core/src/main/java/org/sbolstandard/core/datatree/Datatree.java#L604-L606", "partition": "valid"} +{"repo": "SynBioDex/sbol-data", "path": "sbol-data-core/src/main/java/org/sbolstandard/core/datatree/Datatree.java", "func_name": "Datatree.QName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a QName from a namespace URI, local part and prefix.\n\n@param namespaceURI the namespace URI\n@param localPart the local part\n@param prefix the prefix\n@return a QName with the supplied namespace URI, localPart and prefix", "docstring_tokens": ["Create", "a", "QName", "from", "a", "namespace", "URI", "local", "part", "and", "prefix", "."], "sha": "5b7ebfb6a4dcd9838f451547c25fc0a0c72ae41d", "url": "https://github.com/SynBioDex/sbol-data/blob/5b7ebfb6a4dcd9838f451547c25fc0a0c72ae41d/sbol-data-core/src/main/java/org/sbolstandard/core/datatree/Datatree.java#L659-L661", "partition": "valid"} +{"repo": "esamson/cors-filter", "path": "src/com/thetransactioncompany/cors/CORSFilter.java", "func_name": "CORSFilter.init", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method is invoked by the web container to initialise the\nfilter at startup.\n\n@param filterConfig The filter configuration.\n\n@throws ServletException On a filter initialisation exception.", "docstring_tokens": ["This", "method", "is", "invoked", "by", "the", "web", "container", "to", "initialise", "the", "filter", "at", "startup", "."], "sha": "6bea89883779624bc43211f3e7c062e349e7a55e", "url": "https://github.com/esamson/cors-filter/blob/6bea89883779624bc43211f3e7c062e349e7a55e/src/com/thetransactioncompany/cors/CORSFilter.java#L93-L109", "partition": "valid"} +{"repo": "azaptree/azaptree-services", "path": "azaptree-domain-entity/src/main/java/com/azaptree/services/domain/entity/impl/DomainVersionedEntity.java", "func_name": "DomainVersionedEntity.created", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call this method when the entity is updated to increment its version and update its lastupdatedByEntityId\n\n@param lastupdatedByEntityId", "docstring_tokens": ["Call", "this", "method", "when", "the", "entity", "is", "updated", "to", "increment", "its", "version", "and", "update", "its", "lastupdatedByEntityId"], "sha": "f38bc23acf536bf4d63c007406158fdc4b0cc160", "url": "https://github.com/azaptree/azaptree-services/blob/f38bc23acf536bf4d63c007406158fdc4b0cc160/azaptree-domain-entity/src/main/java/com/azaptree/services/domain/entity/impl/DomainVersionedEntity.java#L78-L88", "partition": "valid"} +{"repo": "azaptree/azaptree-services", "path": "azaptree-domain-entity/src/main/java/com/azaptree/services/domain/entity/impl/DomainVersionedEntity.java", "func_name": "DomainVersionedEntity.init", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sub-classes should override this to parse sub-class specific fields.\n\nThis is invoked by init(InputStream), when an unknown field is encountered\n\n@param parser", "docstring_tokens": ["Sub", "-", "classes", "should", "override", "this", "to", "parse", "sub", "-", "class", "specific", "fields", "."], "sha": "f38bc23acf536bf4d63c007406158fdc4b0cc160", "url": "https://github.com/azaptree/azaptree-services/blob/f38bc23acf536bf4d63c007406158fdc4b0cc160/azaptree-domain-entity/src/main/java/com/azaptree/services/domain/entity/impl/DomainVersionedEntity.java#L217-L219", "partition": "valid"} +{"repo": "azaptree/azaptree-services", "path": "azaptree-domain-entity/src/main/java/com/azaptree/services/domain/entity/impl/DomainVersionedEntity.java", "func_name": "DomainVersionedEntity.updated", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Call this method when the entity is updated before it is persisted to increment its version and update its lastupdatedByEntityId\n\n@param lastupdatedByEntityId\nREQUIRED", "docstring_tokens": ["Call", "this", "method", "when", "the", "entity", "is", "updated", "before", "it", "is", "persisted", "to", "increment", "its", "version", "and", "update", "its", "lastupdatedByEntityId"], "sha": "f38bc23acf536bf4d63c007406158fdc4b0cc160", "url": "https://github.com/azaptree/azaptree-services/blob/f38bc23acf536bf4d63c007406158fdc4b0cc160/azaptree-domain-entity/src/main/java/com/azaptree/services/domain/entity/impl/DomainVersionedEntity.java#L243-L251", "partition": "valid"} +{"repo": "GII/vineyard", "path": "gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Server.java", "func_name": "Server.close", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Closes a port. All connections on this port will be closed.\n\n@param port The port to close. A value of less than -1 closes all ports", "docstring_tokens": ["Closes", "a", "port", ".", "All", "connections", "on", "this", "port", "will", "be", "closed", "."], "sha": "9bcb66a25dc263525c907ad0c6ea6275b8ea608b", "url": "https://github.com/GII/vineyard/blob/9bcb66a25dc263525c907ad0c6ea6275b8ea608b/gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Server.java#L244-L258", "partition": "valid"} +{"repo": "GII/vineyard", "path": "gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Server.java", "func_name": "Server.main", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Gozirra is probably not the best choice for a stand-alone server. If\nyou are tempted to use it as such, you might want to look at ActiveMQ,\nwhich is a feature-rich MOM solution. Gozirra is intended primarily\nto be an ultra-light embedded messaging library.\n\nIf you still want to run Gozirra as a stand-alone server, then you'll\nneed to know about how to call it. The main() method takes a single\nargument: a port to run on. It will run until you ^C it.", "docstring_tokens": ["Gozirra", "is", "probably", "not", "the", "best", "choice", "for", "a", "stand", "-", "alone", "server", ".", "If", "you", "are", "tempted", "to", "use", "it", "as", "such", "you", "might", "want", "to", "look", "at", "ActiveMQ", "which", "is", "a", "feature", "-", "rich", "MOM", "solution", ".", "Gozirra", "is", "intended", "primarily", "to", "be", "an", "ultra", "-", "light", "embedded", "messaging", "library", "."], "sha": "9bcb66a25dc263525c907ad0c6ea6275b8ea608b", "url": "https://github.com/GII/vineyard/blob/9bcb66a25dc263525c907ad0c6ea6275b8ea608b/gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Server.java#L571-L584", "partition": "valid"} +{"repo": "deephacks/tools4j-cli", "path": "src/main/java/org/deephacks/tools4j/cli/Validator.java", "func_name": "Validator.validateOpts", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method will only be called if we know that JSR 303 1.0 Bean Validation API\nand compliant implementation are available on classpath.", "docstring_tokens": ["This", "method", "will", "only", "be", "called", "if", "we", "know", "that", "JSR", "303", "1", ".", "0", "Bean", "Validation", "API", "and", "compliant", "implementation", "are", "available", "on", "classpath", "."], "sha": "fe63be98f7e08e69dea2c2500c9f7e603d93f9ea", "url": "https://github.com/deephacks/tools4j-cli/blob/fe63be98f7e08e69dea2c2500c9f7e603d93f9ea/src/main/java/org/deephacks/tools4j/cli/Validator.java#L40-L53", "partition": "valid"} +{"repo": "deephacks/tools4j-cli", "path": "src/main/java/org/deephacks/tools4j/cli/Validator.java", "func_name": "Validator.validateArgs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method will only be called if we know that JSR 303 1.1 Bean Validation API\nand compliant implementation are available on classpath.\n\nMethod validation was first introduced in version 1.1", "docstring_tokens": ["This", "method", "will", "only", "be", "called", "if", "we", "know", "that", "JSR", "303", "1", ".", "1", "Bean", "Validation", "API", "and", "compliant", "implementation", "are", "available", "on", "classpath", "."], "sha": "fe63be98f7e08e69dea2c2500c9f7e603d93f9ea", "url": "https://github.com/deephacks/tools4j-cli/blob/fe63be98f7e08e69dea2c2500c9f7e603d93f9ea/src/main/java/org/deephacks/tools4j/cli/Validator.java#L61-L82", "partition": "valid"} +{"repo": "GII/vineyard", "path": "gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java", "func_name": "Stomp.subscribe", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Subscribe to a channel.\n\n@param name The name of the channel to listen on\n@param headers Additional headers to send to the server.\n@param listener A listener to receive messages sent to the channel", "docstring_tokens": ["Subscribe", "to", "a", "channel", "."], "sha": "9bcb66a25dc263525c907ad0c6ea6275b8ea608b", "url": "https://github.com/GII/vineyard/blob/9bcb66a25dc263525c907ad0c6ea6275b8ea608b/gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java#L226-L240", "partition": "valid"} +{"repo": "GII/vineyard", "path": "gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java", "func_name": "Stomp.unsubscribe", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unsubscribe a single listener from a channel. This does not\nsend a message to the server unless the listener is the only\nlistener of this channel.\n\n@param name The name of the channel to unsubscribe from.\n@param l The listener to unsubscribe", "docstring_tokens": ["Unsubscribe", "a", "single", "listener", "from", "a", "channel", ".", "This", "does", "not", "send", "a", "message", "to", "the", "server", "unless", "the", "listener", "is", "the", "only", "listener", "of", "this", "channel", "."], "sha": "9bcb66a25dc263525c907ad0c6ea6275b8ea608b", "url": "https://github.com/GII/vineyard/blob/9bcb66a25dc263525c907ad0c6ea6275b8ea608b/gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java#L300-L310", "partition": "valid"} +{"repo": "GII/vineyard", "path": "gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java", "func_name": "Stomp.unsubscribe", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unsubscribe from a channel. Automatically unregisters all\nlisteners of the channel. To re-subscribe with listeners,\nsubscribe must be passed the listeners again.\n\n@param name The name of the channel to unsubscribe from.\n@param header Additional headers to send to the server.", "docstring_tokens": ["Unsubscribe", "from", "a", "channel", ".", "Automatically", "unregisters", "all", "listeners", "of", "the", "channel", ".", "To", "re", "-", "subscribe", "with", "listeners", "subscribe", "must", "be", "passed", "the", "listeners", "again", "."], "sha": "9bcb66a25dc263525c907ad0c6ea6275b8ea608b", "url": "https://github.com/GII/vineyard/blob/9bcb66a25dc263525c907ad0c6ea6275b8ea608b/gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java#L319-L324", "partition": "valid"} +{"repo": "GII/vineyard", "path": "gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java", "func_name": "Stomp.unsubscribeW", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unsubscribe from a channel. Automatically unregisters all\nlisteners of the channel. To re-subscribe with listeners,\nsubscribe must be passed the listeners again. This method\nblocks until a receipt is received from the server.\n\n@param name The name of the channel to unsubscribe from.", "docstring_tokens": ["Unsubscribe", "from", "a", "channel", ".", "Automatically", "unregisters", "all", "listeners", "of", "the", "channel", ".", "To", "re", "-", "subscribe", "with", "listeners", "subscribe", "must", "be", "passed", "the", "listeners", "again", ".", "This", "method", "blocks", "until", "a", "receipt", "is", "received", "from", "the", "server", "."], "sha": "9bcb66a25dc263525c907ad0c6ea6275b8ea608b", "url": "https://github.com/GII/vineyard/blob/9bcb66a25dc263525c907ad0c6ea6275b8ea608b/gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java#L348-L352", "partition": "valid"} +{"repo": "GII/vineyard", "path": "gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java", "func_name": "Stomp.send", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Send a message to a channel.\n\n@param dest The name of the channel to send the message to\n@param mesg The message to send.\n@param header Additional headers to send to the server.", "docstring_tokens": ["Send", "a", "message", "to", "a", "channel", "."], "sha": "9bcb66a25dc263525c907ad0c6ea6275b8ea608b", "url": "https://github.com/GII/vineyard/blob/9bcb66a25dc263525c907ad0c6ea6275b8ea608b/gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java#L403-L407", "partition": "valid"} +{"repo": "GII/vineyard", "path": "gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java", "func_name": "Stomp.getNext", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the next unconsumed message for a particular channel. This is\nnon-blocking.\n\n@param name the name of the channel to search for\n\n@return the next message for the channel, or null if the queue\ncontains no messages for the channel.", "docstring_tokens": ["Get", "the", "next", "unconsumed", "message", "for", "a", "particular", "channel", ".", "This", "is", "non", "-", "blocking", "."], "sha": "9bcb66a25dc263525c907ad0c6ea6275b8ea608b", "url": "https://github.com/GII/vineyard/blob/9bcb66a25dc263525c907ad0c6ea6275b8ea608b/gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java#L430-L441", "partition": "valid"} +{"repo": "GII/vineyard", "path": "gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java", "func_name": "Stomp.hasReceipt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks to see if a receipt has come in.\n\n@param receipt_id the id of the receipts to find", "docstring_tokens": ["Checks", "to", "see", "if", "a", "receipt", "has", "come", "in", "."], "sha": "9bcb66a25dc263525c907ad0c6ea6275b8ea608b", "url": "https://github.com/GII/vineyard/blob/9bcb66a25dc263525c907ad0c6ea6275b8ea608b/gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java#L458-L466", "partition": "valid"} +{"repo": "GII/vineyard", "path": "gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java", "func_name": "Stomp.clearReceipt", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Deletes all receipts with a given ID\n\n@param receipt_id the id of the receipts to delete", "docstring_tokens": ["Deletes", "all", "receipts", "with", "a", "given", "ID"], "sha": "9bcb66a25dc263525c907ad0c6ea6275b8ea608b", "url": "https://github.com/GII/vineyard/blob/9bcb66a25dc263525c907ad0c6ea6275b8ea608b/gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Stomp.java#L474-L481", "partition": "valid"} +{"repo": "azaptree/azaptree-services", "path": "azaptree-eventbus-service/src/main/java/com/azaptree/services/eventbus/impl/EventBusServiceImpl.java", "func_name": "EventBusServiceImpl.logDeadEvent", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Logs dead event as warnings. Dead events are events that posted, but there are no registered subscribers for that\nevent type.\n\n@param deadEvent", "docstring_tokens": ["Logs", "dead", "event", "as", "warnings", ".", "Dead", "events", "are", "events", "that", "posted", "but", "there", "are", "no", "registered", "subscribers", "for", "that", "event", "type", "."], "sha": "f38bc23acf536bf4d63c007406158fdc4b0cc160", "url": "https://github.com/azaptree/azaptree-services/blob/f38bc23acf536bf4d63c007406158fdc4b0cc160/azaptree-eventbus-service/src/main/java/com/azaptree/services/eventbus/impl/EventBusServiceImpl.java#L149-L153", "partition": "valid"} +{"repo": "deephacks/tools4j-cli", "path": "src/main/java/org/deephacks/tools4j/cli/Conversion.java", "func_name": "Conversion.convert", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert a value to a specific class.\n\nThe algorithm for finding a suitable converter is as follows:\n\nFind converters that is able to convert both source and target; a exact or\nsuperclass match. Pick the converter that have the best target match, if both\nare equal, pick the one with best source match.\n\nThat is, the converter that is most specialized in converting a value to\na specific target class will be prioritized, as long as it recognizes the source\nvalue.\n\n@param source value to convert.\n@param targetclass class to convert to.\n@return converted value", "docstring_tokens": ["Convert", "a", "value", "to", "a", "specific", "class", "."], "sha": "fe63be98f7e08e69dea2c2500c9f7e603d93f9ea", "url": "https://github.com/deephacks/tools4j-cli/blob/fe63be98f7e08e69dea2c2500c9f7e603d93f9ea/src/main/java/org/deephacks/tools4j/cli/Conversion.java#L89-L119", "partition": "valid"} +{"repo": "hudson3-plugins/dry-plugin", "path": "src/main/java/hudson/plugins/dry/parser/AbstractDryParser.java", "func_name": "AbstractDryParser.getPriority", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the priority of the warning.\n\n@param lines\nnumber of duplicate lines\n@return the priority of the warning", "docstring_tokens": ["Returns", "the", "priority", "of", "the", "warning", "."], "sha": "798d6e27cf414572777c3226147c4e6b3f28f485", "url": "https://github.com/hudson3-plugins/dry-plugin/blob/798d6e27cf414572777c3226147c4e6b3f28f485/src/main/java/hudson/plugins/dry/parser/AbstractDryParser.java#L104-L114", "partition": "valid"} +{"repo": "deephacks/tools4j-cli", "path": "src/main/java/org/deephacks/tools4j/cli/Command.java", "func_name": "Command.execute", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Execute this command according to the user input arguments\nparsed by the parser.", "docstring_tokens": ["Execute", "this", "command", "according", "to", "the", "user", "input", "arguments", "parsed", "by", "the", "parser", "."], "sha": "fe63be98f7e08e69dea2c2500c9f7e603d93f9ea", "url": "https://github.com/deephacks/tools4j-cli/blob/fe63be98f7e08e69dea2c2500c9f7e603d93f9ea/src/main/java/org/deephacks/tools4j/cli/Command.java#L169-L201", "partition": "valid"} +{"repo": "deephacks/tools4j-cli", "path": "src/main/java/org/deephacks/tools4j/cli/Command.java", "func_name": "Command.injectOpts", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Convert options to appropriate type and inject them into\nthe command instance.", "docstring_tokens": ["Convert", "options", "to", "appropriate", "type", "and", "inject", "them", "into", "the", "command", "instance", "."], "sha": "fe63be98f7e08e69dea2c2500c9f7e603d93f9ea", "url": "https://github.com/deephacks/tools4j-cli/blob/fe63be98f7e08e69dea2c2500c9f7e603d93f9ea/src/main/java/org/deephacks/tools4j/cli/Command.java#L207-L230", "partition": "valid"} +{"repo": "deephacks/tools4j-cli", "path": "src/main/java/org/deephacks/tools4j/cli/Command.java", "func_name": "Command.adjustArgs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add or remove parameters to fit the method declaration and also convert them\nto appropriate data type.", "docstring_tokens": ["Add", "or", "remove", "parameters", "to", "fit", "the", "method", "declaration", "and", "also", "convert", "them", "to", "appropriate", "data", "type", "."], "sha": "fe63be98f7e08e69dea2c2500c9f7e603d93f9ea", "url": "https://github.com/deephacks/tools4j-cli/blob/fe63be98f7e08e69dea2c2500c9f7e603d93f9ea/src/main/java/org/deephacks/tools4j/cli/Command.java#L236-L264", "partition": "valid"} +{"repo": "NessComputing/migratory", "path": "migratory-core/src/main/java/com/nesscomputing/migratory/InternalMigrator.java", "func_name": "InternalMigrator.migratePersonality", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Performs the migration of a personality. This must be run under the table lock so that only one thread can use it at a time.", "docstring_tokens": ["Performs", "the", "migration", "of", "a", "personality", ".", "This", "must", "be", "run", "under", "the", "table", "lock", "so", "that", "only", "one", "thread", "can", "use", "it", "at", "a", "time", "."], "sha": "73ca862e79ee2588f1cc4101cd70b0a8b1c88398", "url": "https://github.com/NessComputing/migratory/blob/73ca862e79ee2588f1cc4101cd70b0a8b1c88398/migratory-core/src/main/java/com/nesscomputing/migratory/InternalMigrator.java#L116-L175", "partition": "valid"} +{"repo": "esamson/cors-filter", "path": "src/com/thetransactioncompany/cors/CORSRequestHandler.java", "func_name": "CORSRequestHandler.tagRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Tags an HTTP servlet request to provide CORS information to\ndownstream handlers.\n\n

    Tagging is provided via {@code HttpServletRequest.setAttribute()}.\n\n

      \n
    • {@code cors.isCorsRequest} set to {@code true} or {@code false}.\n
    • {@code cors.origin} set to the value of the \"Origin\" header,\n{@code null} if undefined.\n
    • {@code cors.requestType} set to \"actual\" or \"preflight\" (for\nCORS requests).\n
    • {@code cors.requestHeaders} set to the value of the\n\"Access-Control-Request-Headers\" or {@code null} if\nundefined (added for preflight CORS requests only).\n
    \n\n@param request The servlet request to inspect and tag. Must not be\n{@code null}.", "docstring_tokens": ["Tags", "an", "HTTP", "servlet", "request", "to", "provide", "CORS", "information", "to", "downstream", "handlers", "."], "sha": "6bea89883779624bc43211f3e7c062e349e7a55e", "url": "https://github.com/esamson/cors-filter/blob/6bea89883779624bc43211f3e7c062e349e7a55e/src/com/thetransactioncompany/cors/CORSRequestHandler.java#L138-L160", "partition": "valid"} +{"repo": "esamson/cors-filter", "path": "src/com/thetransactioncompany/cors/CORSRequestHandler.java", "func_name": "CORSRequestHandler.handleActualRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handles a simple or actual CORS request.\n\n

    CORS specification: Simple Cross-Origin Request, Actual Request, and Redirects\n\n@param request The HTTP request.\n@param response The HTTP response.\n\n@throws InvalidCORSRequestException If not a valid CORS simple/\nactual request.\n@throws CORSOriginDeniedException If the origin is not allowed.\n@throws UnsupportedHTTPMethodException If the requested HTTP method\nis not supported by the CORS\npolicy.", "docstring_tokens": ["Handles", "a", "simple", "or", "actual", "CORS", "request", "."], "sha": "6bea89883779624bc43211f3e7c062e349e7a55e", "url": "https://github.com/esamson/cors-filter/blob/6bea89883779624bc43211f3e7c062e349e7a55e/src/com/thetransactioncompany/cors/CORSRequestHandler.java#L178-L224", "partition": "valid"} +{"repo": "esamson/cors-filter", "path": "src/com/thetransactioncompany/cors/CORSRequestHandler.java", "func_name": "CORSRequestHandler.handlePreflightRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handles a preflight CORS request.\n\n

    CORS specification: Preflight Request\n\n@param request The HTTP request.\n@param response The HTTP response.\n\n@throws InvalidCORSRequestException If not a valid CORS preflight\nrequest.\n@throws CORSOriginDeniedException If the origin is not allowed.\n@throws UnsupportedHTTPMethodException If the requested HTTP method\nis not supported by the CORS\npolicy.\n@throws UnsupportedHTTPHeaderException If the requested HTTP header\nis not supported by the CORS\npolicy.", "docstring_tokens": ["Handles", "a", "preflight", "CORS", "request", "."], "sha": "6bea89883779624bc43211f3e7c062e349e7a55e", "url": "https://github.com/esamson/cors-filter/blob/6bea89883779624bc43211f3e7c062e349e7a55e/src/com/thetransactioncompany/cors/CORSRequestHandler.java#L245-L332", "partition": "valid"} +{"repo": "fracpete/deps4j", "path": "src/main/java/com/github/fracpete/deps4j/MinDeps.java", "func_name": "MinDeps.setOptions", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Sets the commandline options.\n\n@param options\tthe options to use\n@return\t\ttrue if successful\n@throws Exception\tin case of an invalid option", "docstring_tokens": ["Sets", "the", "commandline", "options", "."], "sha": "54679bbbccbc20a3641143baa7138736c9e4a74b", "url": "https://github.com/fracpete/deps4j/blob/54679bbbccbc20a3641143baa7138736c9e4a74b/src/main/java/com/github/fracpete/deps4j/MinDeps.java#L213-L266", "partition": "valid"} +{"repo": "fracpete/deps4j", "path": "src/main/java/com/github/fracpete/deps4j/MinDeps.java", "func_name": "MinDeps.check", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Performs some checks.\n\n@return\t\tnull if successful, otherwise error message", "docstring_tokens": ["Performs", "some", "checks", "."], "sha": "54679bbbccbc20a3641143baa7138736c9e4a74b", "url": "https://github.com/fracpete/deps4j/blob/54679bbbccbc20a3641143baa7138736c9e4a74b/src/main/java/com/github/fracpete/deps4j/MinDeps.java#L316-L348", "partition": "valid"} +{"repo": "fracpete/deps4j", "path": "src/main/java/com/github/fracpete/deps4j/MinDeps.java", "func_name": "MinDeps.filter", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Filters the list of strings with a regular expression.\n\n@param lines\tthe list to filter\n@param regexp\tthe regular expression to use\n@param invert\twhether to invert the matching sense\n@return\t\tthe filtered list", "docstring_tokens": ["Filters", "the", "list", "of", "strings", "with", "a", "regular", "expression", "."], "sha": "54679bbbccbc20a3641143baa7138736c9e4a74b", "url": "https://github.com/fracpete/deps4j/blob/54679bbbccbc20a3641143baa7138736c9e4a74b/src/main/java/com/github/fracpete/deps4j/MinDeps.java#L358-L377", "partition": "valid"} +{"repo": "fracpete/deps4j", "path": "src/main/java/com/github/fracpete/deps4j/MinDeps.java", "func_name": "MinDeps.packagesRegExp", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Builds the regular expression for the packages to keep.\n\n@return\t\tthe regexp", "docstring_tokens": ["Builds", "the", "regular", "expression", "for", "the", "packages", "to", "keep", "."], "sha": "54679bbbccbc20a3641143baa7138736c9e4a74b", "url": "https://github.com/fracpete/deps4j/blob/54679bbbccbc20a3641143baa7138736c9e4a74b/src/main/java/com/github/fracpete/deps4j/MinDeps.java#L384-L403", "partition": "valid"} +{"repo": "fracpete/deps4j", "path": "src/main/java/com/github/fracpete/deps4j/MinDeps.java", "func_name": "MinDeps.output", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Outputs the dependencies on stdout.", "docstring_tokens": ["Outputs", "the", "dependencies", "on", "stdout", "."], "sha": "54679bbbccbc20a3641143baa7138736c9e4a74b", "url": "https://github.com/fracpete/deps4j/blob/54679bbbccbc20a3641143baa7138736c9e4a74b/src/main/java/com/github/fracpete/deps4j/MinDeps.java#L498-L512", "partition": "valid"} +{"repo": "e-biz/designmyapp-common-api", "path": "src/main/java/mobi/designmyapp/common/instance/provider/InstanceProvider.java", "func_name": "InstanceProvider.compareTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Default implementation of compareTo for the InstanceManager.", "docstring_tokens": ["Default", "implementation", "of", "compareTo", "for", "the", "InstanceManager", "."], "sha": "d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb", "url": "https://github.com/e-biz/designmyapp-common-api/blob/d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb/src/main/java/mobi/designmyapp/common/instance/provider/InstanceProvider.java#L124-L131", "partition": "valid"} +{"repo": "e-biz/designmyapp-common-api", "path": "src/main/java/mobi/designmyapp/common/util/UtilsFactory.java", "func_name": "UtilsFactory.getIOUtils", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve IOUtils implementation\n@return IOUtils instance", "docstring_tokens": ["Retrieve", "IOUtils", "implementation"], "sha": "d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb", "url": "https://github.com/e-biz/designmyapp-common-api/blob/d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb/src/main/java/mobi/designmyapp/common/util/UtilsFactory.java#L61-L72", "partition": "valid"} +{"repo": "e-biz/designmyapp-common-api", "path": "src/main/java/mobi/designmyapp/common/util/UtilsFactory.java", "func_name": "UtilsFactory.getImageUtils", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve ImageUtils implementation\n@return ImageUtils instance", "docstring_tokens": ["Retrieve", "ImageUtils", "implementation"], "sha": "d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb", "url": "https://github.com/e-biz/designmyapp-common-api/blob/d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb/src/main/java/mobi/designmyapp/common/util/UtilsFactory.java#L78-L89", "partition": "valid"} +{"repo": "e-biz/designmyapp-common-api", "path": "src/main/java/mobi/designmyapp/common/util/UtilsFactory.java", "func_name": "UtilsFactory.getPriceUtils", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve PriceUtils implementation\n@return PriceUtils instance", "docstring_tokens": ["Retrieve", "PriceUtils", "implementation"], "sha": "d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb", "url": "https://github.com/e-biz/designmyapp-common-api/blob/d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb/src/main/java/mobi/designmyapp/common/util/UtilsFactory.java#L95-L106", "partition": "valid"} +{"repo": "e-biz/designmyapp-common-api", "path": "src/main/java/mobi/designmyapp/common/util/UtilsFactory.java", "func_name": "UtilsFactory.getResourceUtils", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve ResourceUtils implementation\n@return ResourceUtils instance", "docstring_tokens": ["Retrieve", "ResourceUtils", "implementation"], "sha": "d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb", "url": "https://github.com/e-biz/designmyapp-common-api/blob/d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb/src/main/java/mobi/designmyapp/common/util/UtilsFactory.java#L112-L123", "partition": "valid"} +{"repo": "e-biz/designmyapp-common-api", "path": "src/main/java/mobi/designmyapp/common/util/UtilsFactory.java", "func_name": "UtilsFactory.getZipUtils", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve ZipUtils implementation\n@return ZipUtils instance", "docstring_tokens": ["Retrieve", "ZipUtils", "implementation"], "sha": "d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb", "url": "https://github.com/e-biz/designmyapp-common-api/blob/d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb/src/main/java/mobi/designmyapp/common/util/UtilsFactory.java#L129-L140", "partition": "valid"} +{"repo": "e-biz/designmyapp-common-api", "path": "src/main/java/mobi/designmyapp/common/util/UtilsFactory.java", "func_name": "UtilsFactory.getDigestUtils", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve DigestUtils implementation\n@return DigestUtils instance", "docstring_tokens": ["Retrieve", "DigestUtils", "implementation"], "sha": "d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb", "url": "https://github.com/e-biz/designmyapp-common-api/blob/d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb/src/main/java/mobi/designmyapp/common/util/UtilsFactory.java#L146-L157", "partition": "valid"} +{"repo": "e-biz/designmyapp-common-api", "path": "src/main/java/mobi/designmyapp/common/util/UtilsFactory.java", "func_name": "UtilsFactory.getStringUtils", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve StringUtils implementation\n@return StringUtils instance", "docstring_tokens": ["Retrieve", "StringUtils", "implementation"], "sha": "d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb", "url": "https://github.com/e-biz/designmyapp-common-api/blob/d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb/src/main/java/mobi/designmyapp/common/util/UtilsFactory.java#L163-L174", "partition": "valid"} +{"repo": "e-biz/designmyapp-common-api", "path": "src/main/java/mobi/designmyapp/common/util/UtilsFactory.java", "func_name": "UtilsFactory.getResourceService", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve ResourceService implementation\n@return ResourceService instance", "docstring_tokens": ["Retrieve", "ResourceService", "implementation"], "sha": "d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb", "url": "https://github.com/e-biz/designmyapp-common-api/blob/d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb/src/main/java/mobi/designmyapp/common/util/UtilsFactory.java#L180-L191", "partition": "valid"} +{"repo": "e-biz/designmyapp-common-api", "path": "src/main/java/mobi/designmyapp/common/util/UtilsFactory.java", "func_name": "UtilsFactory.getPricingService", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve PricingService implementation\n@return PricingService instance", "docstring_tokens": ["Retrieve", "PricingService", "implementation"], "sha": "d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb", "url": "https://github.com/e-biz/designmyapp-common-api/blob/d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb/src/main/java/mobi/designmyapp/common/util/UtilsFactory.java#L197-L208", "partition": "valid"} +{"repo": "e-biz/designmyapp-common-api", "path": "src/main/java/mobi/designmyapp/common/util/UtilsFactory.java", "func_name": "UtilsFactory.getInstanceService", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Retrieve InstanceService implementation\n@return InstanceService instance", "docstring_tokens": ["Retrieve", "InstanceService", "implementation"], "sha": "d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb", "url": "https://github.com/e-biz/designmyapp-common-api/blob/d0d0b3e08e38c0b56bceda032e2a8d88ada2c5fb/src/main/java/mobi/designmyapp/common/util/UtilsFactory.java#L214-L225", "partition": "valid"} +{"repo": "the-fascinator/plugin-harvester-workflow", "path": "src/main/java/com/googlecode/fascinator/harvester/workflow/WorkflowHarvester.java", "func_name": "WorkflowHarvester.getObjectId", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get an individual uploaded file as a digital object. For consistency this\nshould be in a list.\n\n@return a list of one object ID\n@throws HarvesterException if there was an error retrieving the objects", "docstring_tokens": ["Get", "an", "individual", "uploaded", "file", "as", "a", "digital", "object", ".", "For", "consistency", "this", "should", "be", "in", "a", "list", "."], "sha": "c5b6d68867937017f792ca2b3ce836638da0a4a1", "url": "https://github.com/the-fascinator/plugin-harvester-workflow/blob/c5b6d68867937017f792ca2b3ce836638da0a4a1/src/main/java/com/googlecode/fascinator/harvester/workflow/WorkflowHarvester.java#L195-L204", "partition": "valid"} +{"repo": "the-fascinator/plugin-harvester-workflow", "path": "src/main/java/com/googlecode/fascinator/harvester/workflow/WorkflowHarvester.java", "func_name": "WorkflowHarvester.createDigitalObject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Store the provided file in storage. Ensure proper queue routing is set\nin object properties.\n\n@param file : The file to store\n@return String : The OID of the stored object\n@throws HarvesterException : if there was an error accessing storage\n@throws StorageException : if there was an error writing to storage", "docstring_tokens": ["Store", "the", "provided", "file", "in", "storage", ".", "Ensure", "proper", "queue", "routing", "is", "set", "in", "object", "properties", "."], "sha": "c5b6d68867937017f792ca2b3ce836638da0a4a1", "url": "https://github.com/the-fascinator/plugin-harvester-workflow/blob/c5b6d68867937017f792ca2b3ce836638da0a4a1/src/main/java/com/googlecode/fascinator/harvester/workflow/WorkflowHarvester.java#L226-L268", "partition": "valid"} +{"repo": "the-fascinator/plugin-harvester-workflow", "path": "src/main/java/com/googlecode/fascinator/harvester/workflow/WorkflowHarvester.java", "func_name": "WorkflowHarvester.storeList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Take a list of strings from a Java Map, concatenate the values together\nand store them in a Properties object using the Map's original key.\n\n@param props : Properties object to store into\n@param details : The full Java Map\n@param field : The key to use in both objects", "docstring_tokens": ["Take", "a", "list", "of", "strings", "from", "a", "Java", "Map", "concatenate", "the", "values", "together", "and", "store", "them", "in", "a", "Properties", "object", "using", "the", "Map", "s", "original", "key", "."], "sha": "c5b6d68867937017f792ca2b3ce836638da0a4a1", "url": "https://github.com/the-fascinator/plugin-harvester-workflow/blob/c5b6d68867937017f792ca2b3ce836638da0a4a1/src/main/java/com/googlecode/fascinator/harvester/workflow/WorkflowHarvester.java#L278-L290", "partition": "valid"} +{"repo": "NessComputing/migratory", "path": "migratory-core/src/main/java/com/nesscomputing/migratory/metadata/MetadataManager.java", "func_name": "MetadataManager.ensureMetadata", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Make sure that the metadata exists. If it does not exist, create\nthe metadata table from scratch and register its creation.\n@return A migration result if the table was created or null if it already existed.", "docstring_tokens": ["Make", "sure", "that", "the", "metadata", "exists", ".", "If", "it", "does", "not", "exist", "create", "the", "metadata", "table", "from", "scratch", "and", "register", "its", "creation", "."], "sha": "73ca862e79ee2588f1cc4101cd70b0a8b1c88398", "url": "https://github.com/NessComputing/migratory/blob/73ca862e79ee2588f1cc4101cd70b0a8b1c88398/migratory-core/src/main/java/com/nesscomputing/migratory/metadata/MetadataManager.java#L72-L105", "partition": "valid"} +{"repo": "hudson3-plugins/dry-plugin", "path": "src/main/java/hudson/plugins/dry/DryDetailBuilder.java", "func_name": "DryDetailBuilder.createDrySourceDetail", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates the dry source detail view.\n\n@param owner\nthe owner\n@param container\nthe container\n@param defaultEncoding\nthe default encoding\n@param fromString\nfrom ID\n@param toString\nto ID\n@return the detail view or null", "docstring_tokens": ["Creates", "the", "dry", "source", "detail", "view", "."], "sha": "798d6e27cf414572777c3226147c4e6b3f28f485", "url": "https://github.com/hudson3-plugins/dry-plugin/blob/798d6e27cf414572777c3226147c4e6b3f28f485/src/main/java/hudson/plugins/dry/DryDetailBuilder.java#L50-L61", "partition": "valid"} +{"repo": "hudson3-plugins/dry-plugin", "path": "src/main/java/hudson/plugins/dry/ThresholdValidation.java", "func_name": "ThresholdValidation.validate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Performs on-the-fly validation on thresholds for high and normal warnings.\n\n@param highThreshold\nthe threshold for high warnings\n@param normalThreshold\nthe threshold for normal warnings\n@param message\nthe validation message\n@return the validation result", "docstring_tokens": ["Performs", "on", "-", "the", "-", "fly", "validation", "on", "thresholds", "for", "high", "and", "normal", "warnings", "."], "sha": "798d6e27cf414572777c3226147c4e6b3f28f485", "url": "https://github.com/hudson3-plugins/dry-plugin/blob/798d6e27cf414572777c3226147c4e6b3f28f485/src/main/java/hudson/plugins/dry/ThresholdValidation.java#L53-L65", "partition": "valid"} +{"repo": "deephacks/tools4j-cli", "path": "src/main/java/org/deephacks/tools4j/cli/Utils.java", "func_name": "Utils.validateArgs", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validate that the method parameters if Bean Validation 1.1 is available\non classpath.", "docstring_tokens": ["Validate", "that", "the", "method", "parameters", "if", "Bean", "Validation", "1", ".", "1", "is", "available", "on", "classpath", "."], "sha": "fe63be98f7e08e69dea2c2500c9f7e603d93f9ea", "url": "https://github.com/deephacks/tools4j-cli/blob/fe63be98f7e08e69dea2c2500c9f7e603d93f9ea/src/main/java/org/deephacks/tools4j/cli/Utils.java#L84-L101", "partition": "valid"} +{"repo": "deephacks/tools4j-cli", "path": "src/main/java/org/deephacks/tools4j/cli/Utils.java", "func_name": "Utils.validateOpts", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validate that the options if Bean Validation is available on classpath.", "docstring_tokens": ["Validate", "that", "the", "options", "if", "Bean", "Validation", "is", "available", "on", "classpath", "."], "sha": "fe63be98f7e08e69dea2c2500c9f7e603d93f9ea", "url": "https://github.com/deephacks/tools4j-cli/blob/fe63be98f7e08e69dea2c2500c9f7e603d93f9ea/src/main/java/org/deephacks/tools4j/cli/Utils.java#L106-L124", "partition": "valid"} +{"repo": "deephacks/tools4j-cli", "path": "src/main/java/org/deephacks/tools4j/cli/Utils.java", "func_name": "Utils.onClasspath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks to see if JSR303 implementation is\navailable on classpath.", "docstring_tokens": ["Checks", "to", "see", "if", "JSR303", "implementation", "is", "available", "on", "classpath", "."], "sha": "fe63be98f7e08e69dea2c2500c9f7e603d93f9ea", "url": "https://github.com/deephacks/tools4j-cli/blob/fe63be98f7e08e69dea2c2500c9f7e603d93f9ea/src/main/java/org/deephacks/tools4j/cli/Utils.java#L140-L148", "partition": "valid"} +{"repo": "NessComputing/migratory", "path": "migratory-core/src/main/java/com/nesscomputing/migratory/loader/LoaderManager.java", "func_name": "LoaderManager.accept", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns true if this loader accepts the URI.", "docstring_tokens": ["Returns", "true", "if", "this", "loader", "accepts", "the", "URI", "."], "sha": "73ca862e79ee2588f1cc4101cd70b0a8b1c88398", "url": "https://github.com/NessComputing/migratory/blob/73ca862e79ee2588f1cc4101cd70b0a8b1c88398/migratory-core/src/main/java/com/nesscomputing/migratory/loader/LoaderManager.java#L49-L58", "partition": "valid"} +{"repo": "NessComputing/migratory", "path": "migratory-core/src/main/java/com/nesscomputing/migratory/loader/LoaderManager.java", "func_name": "LoaderManager.loadFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Load a file from an URI.", "docstring_tokens": ["Load", "a", "file", "from", "an", "URI", "."], "sha": "73ca862e79ee2588f1cc4101cd70b0a8b1c88398", "url": "https://github.com/NessComputing/migratory/blob/73ca862e79ee2588f1cc4101cd70b0a8b1c88398/migratory-core/src/main/java/com/nesscomputing/migratory/loader/LoaderManager.java#L83-L96", "partition": "valid"} +{"repo": "deephacks/tools4j-cli", "path": "src/main/java/org/deephacks/tools4j/cli/CliMain.java", "func_name": "CliMain.run", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Start evaluating the user input and eventually execute the command\nrequested by the user.\n\n@throws RuntimeException Any runtime exceptions thrown by either this\nlibrary or user commands will fall through and thrown from this method.", "docstring_tokens": ["Start", "evaluating", "the", "user", "input", "and", "eventually", "execute", "the", "command", "requested", "by", "the", "user", "."], "sha": "fe63be98f7e08e69dea2c2500c9f7e603d93f9ea", "url": "https://github.com/deephacks/tools4j-cli/blob/fe63be98f7e08e69dea2c2500c9f7e603d93f9ea/src/main/java/org/deephacks/tools4j/cli/CliMain.java#L73-L102", "partition": "valid"} +{"repo": "deephacks/tools4j-cli", "path": "src/main/java/org/deephacks/tools4j/cli/CliMain.java", "func_name": "CliMain.readCommands", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Find all commands available on classpath.", "docstring_tokens": ["Find", "all", "commands", "available", "on", "classpath", "."], "sha": "fe63be98f7e08e69dea2c2500c9f7e603d93f9ea", "url": "https://github.com/deephacks/tools4j-cli/blob/fe63be98f7e08e69dea2c2500c9f7e603d93f9ea/src/main/java/org/deephacks/tools4j/cli/CliMain.java#L107-L121", "partition": "valid"} +{"repo": "azaptree/azaptree-services", "path": "azaptree-http-service/src/main/java/com/azaptree/services/http/handler/AsyncHttpHandlerSupport.java", "func_name": "AsyncHttpHandlerSupport.postProcess", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The purpose of this methods is to allow the Handler to return an HTTP response. For example, return an appropriate response that the request was accepted\nper the requirements of a REST API.\n\n*** NOTE: to indicate that this method handled the request, set Request.handled to true: baseRequest.setHandled(true);\n\n@param target\n@param baseRequest\n@param request\n@param response\n@throws IOException\n@throws ServletException", "docstring_tokens": ["The", "purpose", "of", "this", "methods", "is", "to", "allow", "the", "Handler", "to", "return", "an", "HTTP", "response", ".", "For", "example", "return", "an", "appropriate", "response", "that", "the", "request", "was", "accepted", "per", "the", "requirements", "of", "a", "REST", "API", "."], "sha": "f38bc23acf536bf4d63c007406158fdc4b0cc160", "url": "https://github.com/azaptree/azaptree-services/blob/f38bc23acf536bf4d63c007406158fdc4b0cc160/azaptree-http-service/src/main/java/com/azaptree/services/http/handler/AsyncHttpHandlerSupport.java#L89-L92", "partition": "valid"} +{"repo": "azaptree/azaptree-services", "path": "azaptree-http-service/src/main/java/com/azaptree/services/http/handler/AsyncHttpHandlerSupport.java", "func_name": "AsyncHttpHandlerSupport.preProcess", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validate the request and extract any data from the HTTP request that will be required to process the request asynchronously.\n\nIf the request is invalid, then handle the request appropriately.\n\n*** NOTE: to indicate that this method handled the request, set Request.handled to true: baseRequest.setHandled(true);\n\n@param target\n@param baseRequest\n@param request\n@param response\n@return", "docstring_tokens": ["Validate", "the", "request", "and", "extract", "any", "data", "from", "the", "HTTP", "request", "that", "will", "be", "required", "to", "process", "the", "request", "asynchronously", "."], "sha": "f38bc23acf536bf4d63c007406158fdc4b0cc160", "url": "https://github.com/azaptree/azaptree-services/blob/f38bc23acf536bf4d63c007406158fdc4b0cc160/azaptree-http-service/src/main/java/com/azaptree/services/http/handler/AsyncHttpHandlerSupport.java#L107-L110", "partition": "valid"} +{"repo": "NessComputing/migratory", "path": "migratory-core/src/main/java/com/nesscomputing/migratory/Migratory.java", "func_name": "Migratory.dbMigrate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Bring the current database to the requested levels.", "docstring_tokens": ["Bring", "the", "current", "database", "to", "the", "requested", "levels", "."], "sha": "73ca862e79ee2588f1cc4101cd70b0a8b1c88398", "url": "https://github.com/NessComputing/migratory/blob/73ca862e79ee2588f1cc4101cd70b0a8b1c88398/migratory-core/src/main/java/com/nesscomputing/migratory/Migratory.java#L160-L165", "partition": "valid"} +{"repo": "NessComputing/migratory", "path": "migratory-core/src/main/java/com/nesscomputing/migratory/Migratory.java", "func_name": "Migratory.dbValidate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Run validation on the database. Make sure that all the changes recorded in the database are the same as the ones that should be applied.", "docstring_tokens": ["Run", "validation", "on", "the", "database", ".", "Make", "sure", "that", "all", "the", "changes", "recorded", "in", "the", "database", "are", "the", "same", "as", "the", "ones", "that", "should", "be", "applied", "."], "sha": "73ca862e79ee2588f1cc4101cd70b0a8b1c88398", "url": "https://github.com/NessComputing/migratory/blob/73ca862e79ee2588f1cc4101cd70b0a8b1c88398/migratory-core/src/main/java/com/nesscomputing/migratory/Migratory.java#L170-L175", "partition": "valid"} +{"repo": "NessComputing/migratory", "path": "migratory-core/src/main/java/com/nesscomputing/migratory/Migratory.java", "func_name": "Migratory.dbHistory", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the full history of all applied migrations.", "docstring_tokens": ["Returns", "the", "full", "history", "of", "all", "applied", "migrations", "."], "sha": "73ca862e79ee2588f1cc4101cd70b0a8b1c88398", "url": "https://github.com/NessComputing/migratory/blob/73ca862e79ee2588f1cc4101cd70b0a8b1c88398/migratory-core/src/main/java/com/nesscomputing/migratory/Migratory.java#L201-L207", "partition": "valid"} +{"repo": "NessComputing/migratory", "path": "migratory-core/src/main/java/com/nesscomputing/migratory/Migratory.java", "func_name": "Migratory.dbInit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates and initializes the Migratory metadata table.\n\nReturns null if the table already exists, returns a list of migration results\nfor the migrations executed otherwise.", "docstring_tokens": ["Creates", "and", "initializes", "the", "Migratory", "metadata", "table", "."], "sha": "73ca862e79ee2588f1cc4101cd70b0a8b1c88398", "url": "https://github.com/NessComputing/migratory/blob/73ca862e79ee2588f1cc4101cd70b0a8b1c88398/migratory-core/src/main/java/com/nesscomputing/migratory/Migratory.java#L215-L220", "partition": "valid"} +{"repo": "NessComputing/migratory", "path": "migratory-core/src/main/java/com/nesscomputing/migratory/migration/sql/SqlScript.java", "func_name": "SqlScript.linesToStatements", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Turns these lines in a series of statements.", "docstring_tokens": ["Turns", "these", "lines", "in", "a", "series", "of", "statements", "."], "sha": "73ca862e79ee2588f1cc4101cd70b0a8b1c88398", "url": "https://github.com/NessComputing/migratory/blob/73ca862e79ee2588f1cc4101cd70b0a8b1c88398/migratory-core/src/main/java/com/nesscomputing/migratory/migration/sql/SqlScript.java#L129-L174", "partition": "valid"} +{"repo": "incodehq-legacy/incode-module-note", "path": "dom/src/main/java/org/incode/module/note/dom/impl/notablelink/NotableLinkRepository.java", "func_name": "NotableLinkRepository.findByNotableAndCalendarName", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Each notable can only have one note per calendar, thus this method returns a single object rather than a list.", "docstring_tokens": ["Each", "notable", "can", "only", "have", "one", "note", "per", "calendar", "thus", "this", "method", "returns", "a", "single", "object", "rather", "than", "a", "list", "."], "sha": "cf9893035438684be118636488ed35e1ffee462d", "url": "https://github.com/incodehq-legacy/incode-module-note/blob/cf9893035438684be118636488ed35e1ffee462d/dom/src/main/java/org/incode/module/note/dom/impl/notablelink/NotableLinkRepository.java#L78-L98", "partition": "valid"} +{"repo": "incodehq-legacy/incode-module-note", "path": "dom/src/main/java/org/incode/module/note/dom/impl/notablelink/NotableLinkRepository.java", "func_name": "NotableLinkRepository.updateLink", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "region > updateLink", "docstring_tokens": ["region", ">", "updateLink"], "sha": "cf9893035438684be118636488ed35e1ffee462d", "url": "https://github.com/incodehq-legacy/incode-module-note/blob/cf9893035438684be118636488ed35e1ffee462d/dom/src/main/java/org/incode/module/note/dom/impl/notablelink/NotableLinkRepository.java#L170-L174", "partition": "valid"} +{"repo": "deephacks/tools4j-cli", "path": "src/main/java/org/deephacks/tools4j/cli/GNUishParser.java", "func_name": "GNUishParser.parseOpts", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Parse the options for the command.\n\n@param args includes the options and arguments, command word have been stripped.\n@return the remaining terminal args, if any", "docstring_tokens": ["Parse", "the", "options", "for", "the", "command", "."], "sha": "fe63be98f7e08e69dea2c2500c9f7e603d93f9ea", "url": "https://github.com/deephacks/tools4j-cli/blob/fe63be98f7e08e69dea2c2500c9f7e603d93f9ea/src/main/java/org/deephacks/tools4j/cli/GNUishParser.java#L65-L111", "partition": "valid"} +{"repo": "GII/vineyard", "path": "gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/IntraVMClient.java", "func_name": "IntraVMClient.transmit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Transmit a message to clients and listeners.", "docstring_tokens": ["Transmit", "a", "message", "to", "clients", "and", "listeners", "."], "sha": "9bcb66a25dc263525c907ad0c6ea6275b8ea608b", "url": "https://github.com/GII/vineyard/blob/9bcb66a25dc263525c907ad0c6ea6275b8ea608b/gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/IntraVMClient.java#L54-L56", "partition": "valid"} +{"repo": "hudson3-plugins/dry-plugin", "path": "src/main/java/hudson/plugins/dry/parser/DuplicateCode.java", "func_name": "DuplicateCode.getFormattedSourceCode", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the duplicate source code fragment as formatted HTML string.\n\n@return the duplicate source code fragment", "docstring_tokens": ["Returns", "the", "duplicate", "source", "code", "fragment", "as", "formatted", "HTML", "string", "."], "sha": "798d6e27cf414572777c3226147c4e6b3f28f485", "url": "https://github.com/hudson3-plugins/dry-plugin/blob/798d6e27cf414572777c3226147c4e6b3f28f485/src/main/java/hudson/plugins/dry/parser/DuplicateCode.java#L193-L211", "partition": "valid"} +{"repo": "hudson3-plugins/dry-plugin", "path": "src/main/java/hudson/plugins/dry/parser/DuplicateCode.java", "func_name": "DuplicateCode.getLink", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the link with the specified hash code.\n\n@param linkHashCode\nthe hash code of the linked annotation\n@return the link with the specified hash code", "docstring_tokens": ["Returns", "the", "link", "with", "the", "specified", "hash", "code", "."], "sha": "798d6e27cf414572777c3226147c4e6b3f28f485", "url": "https://github.com/hudson3-plugins/dry-plugin/blob/798d6e27cf414572777c3226147c4e6b3f28f485/src/main/java/hudson/plugins/dry/parser/DuplicateCode.java#L260-L267", "partition": "valid"} +{"repo": "GII/vineyard", "path": "gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Client.java", "func_name": "Client.transmit", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Transmit a message to the server", "docstring_tokens": ["Transmit", "a", "message", "to", "the", "server"], "sha": "9bcb66a25dc263525c907ad0c6ea6275b8ea608b", "url": "https://github.com/GII/vineyard/blob/9bcb66a25dc263525c907ad0c6ea6275b8ea608b/gozirra-ws/src/main/java/com/hi3project/vineyard/comm/stomp/gozirraws/Client.java#L108-L114", "partition": "valid"} +{"repo": "azaptree/azaptree-services", "path": "azaptree-services-commons/src/main/java/com/azaptree/services/commons/xml/jaxb/JAXBContextCache.java", "func_name": "JAXBContextCache.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "If the JAXBContext is not cached, then it will create a new instance and cache it.\n\n@param contextPath\nREQUIRED\n@return", "docstring_tokens": ["If", "the", "JAXBContext", "is", "not", "cached", "then", "it", "will", "create", "a", "new", "instance", "and", "cache", "it", "."], "sha": "f38bc23acf536bf4d63c007406158fdc4b0cc160", "url": "https://github.com/azaptree/azaptree-services/blob/f38bc23acf536bf4d63c007406158fdc4b0cc160/azaptree-services-commons/src/main/java/com/azaptree/services/commons/xml/jaxb/JAXBContextCache.java#L49-L62", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/CSSBoxTreeBuilder.java", "func_name": "CSSBoxTreeBuilder.createBoxList", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recursively creates a list of all the visible boxes in a box subtree. The nodes are\nadded to the end of a specified list. The previous content of the list\nremains unchanged. The 'viewport' box is ignored.\n@param root the source root box\n@param list the list that will be filled with the nodes", "docstring_tokens": ["Recursively", "creates", "a", "list", "of", "all", "the", "visible", "boxes", "in", "a", "box", "subtree", ".", "The", "nodes", "are", "added", "to", "the", "end", "of", "a", "specified", "list", ".", "The", "previous", "content", "of", "the", "list", "remains", "unchanged", ".", "The", "viewport", "box", "is", "ignored", "."], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/CSSBoxTreeBuilder.java#L336-L353", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/CSSBoxTreeBuilder.java", "func_name": "CSSBoxTreeBuilder.createBoxTree", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Creates a tree of box nesting based on the content bounds of the boxes.\nThis tree is only used for determining the backgrounds.\n\n@param boxlist the list of boxes to build the tree from\n@param useBounds when set to {@code true}, the full or visual bounds are used for constructing the tree\ndepending on the {@code useVisualBounds} parameter. Otherwise, the original box hierarchy is used.\n@param useVisualBounds when set to {@code true} the visual bounds are used for constructing the tree. Otherwise,\nthe content bounds are used.\n@param preserveAux when set to {@code true}, all boxes are preserved. Otherwise, only the visually\ndistinguished ones are preserved.", "docstring_tokens": ["Creates", "a", "tree", "of", "box", "nesting", "based", "on", "the", "content", "bounds", "of", "the", "boxes", ".", "This", "tree", "is", "only", "used", "for", "determining", "the", "backgrounds", "."], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/CSSBoxTreeBuilder.java#L367-L422", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/CSSBoxTreeBuilder.java", "func_name": "CSSBoxTreeBuilder.computeBackgrounds", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Computes efficient background color for all the nodes in the tree", "docstring_tokens": ["Computes", "efficient", "background", "color", "for", "all", "the", "nodes", "in", "the", "tree"], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/CSSBoxTreeBuilder.java#L427-L437", "partition": "valid"} +{"repo": "Kadvin/spring-component-framework", "path": "sustain/src/main/java/net/happyonroad/component/core/support/ComponentURLStreamHandlerFactory.java", "func_name": "ComponentURLStreamHandlerFactory.setMappingFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the real file of component url\n@param url the component url\n@param realFile the real file", "docstring_tokens": ["Set", "the", "real", "file", "of", "component", "url"], "sha": "07432d0aef6781d9943c80a0c15957b08433b5bd", "url": "https://github.com/Kadvin/spring-component-framework/blob/07432d0aef6781d9943c80a0c15957b08433b5bd/sustain/src/main/java/net/happyonroad/component/core/support/ComponentURLStreamHandlerFactory.java#L47-L51", "partition": "valid"} +{"repo": "Kadvin/spring-component-framework", "path": "sustain/src/main/java/net/happyonroad/component/core/support/ComponentURLStreamHandlerFactory.java", "func_name": "ComponentURLStreamHandlerFactory.getMappingFile", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the real file of component url\n@param url the component url\n@return the real file\n@throws IOException", "docstring_tokens": ["Get", "the", "real", "file", "of", "component", "url"], "sha": "07432d0aef6781d9943c80a0c15957b08433b5bd", "url": "https://github.com/Kadvin/spring-component-framework/blob/07432d0aef6781d9943c80a0c15957b08433b5bd/sustain/src/main/java/net/happyonroad/component/core/support/ComponentURLStreamHandlerFactory.java#L59-L80", "partition": "valid"} +{"repo": "Kadvin/spring-component-framework", "path": "sustain/src/main/java/net/happyonroad/component/core/support/VersionRange.java", "func_name": "VersionRange.createFromVersionSpec", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create a version range from a string representation\n\nSome spec examples are\n

      \n
    • 1.0 Version 1.0
    • \n
    • [1.0,2.0) Versions 1.0 (included) to 2.0 (not included)
    • \n
    • [1.0,2.0] Versions 1.0 to 2.0 (both included)
    • \n
    • [1.5,) Versions 1.5 and higher
    • \n
    • (,1.0],[1.2,) Versions up to 1.0 (included) and 1.2 or higher
    • \n
    \n\n@param spec string representation of a version or version range\n@return a new {@link VersionRange} object that represents the spec\n@throws net.happyonroad.component.core.exception.InvalidVersionSpecificationException", "docstring_tokens": ["Create", "a", "version", "range", "from", "a", "string", "representation"], "sha": "07432d0aef6781d9943c80a0c15957b08433b5bd", "url": "https://github.com/Kadvin/spring-component-framework/blob/07432d0aef6781d9943c80a0c15957b08433b5bd/sustain/src/main/java/net/happyonroad/component/core/support/VersionRange.java#L74-L145", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/BoxTransform.java", "func_name": "BoxTransform.concatenate", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Concatenates another transformation to this transformation.\n@param src\n@return A new concatenated transformation.", "docstring_tokens": ["Concatenates", "another", "transformation", "to", "this", "transformation", "."], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/BoxTransform.java#L88-L101", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/BoxTransform.java", "func_name": "BoxTransform.transformRect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Transforms a rectangle to other rectangle using the given transformation.\n@param rect the source rectangle\n@return the bounding box of the transformed rectangle.", "docstring_tokens": ["Transforms", "a", "rectangle", "to", "other", "rectangle", "using", "the", "given", "transformation", "."], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/BoxTransform.java#L108-L123", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/BoxNode.java", "func_name": "BoxNode.getMinimalVisualBounds", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns the minimal bounds of the box for enclosing all the contained boxes.\n@return the minimal visual bounds", "docstring_tokens": ["Returns", "the", "minimal", "bounds", "of", "the", "box", "for", "enclosing", "all", "the", "contained", "boxes", "."], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/BoxNode.java#L273-L305", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/BoxNode.java", "func_name": "BoxNode.recomputeVisualBounds", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Re-computes the visual bounds of the whole subtree.", "docstring_tokens": ["Re", "-", "computes", "the", "visual", "bounds", "of", "the", "whole", "subtree", "."], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/BoxNode.java#L378-L383", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/BoxNode.java", "func_name": "BoxNode.recomputeBounds", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Recomputes the total bounds of the whole subtree. The bounds of each box will\ncorrespond to its visual bounds. If the child boxes exceed the parent box,\nthe parent box bounds will be expanded accordingly.", "docstring_tokens": ["Recomputes", "the", "total", "bounds", "of", "the", "whole", "subtree", ".", "The", "bounds", "of", "each", "box", "will", "correspond", "to", "its", "visual", "bounds", ".", "If", "the", "child", "boxes", "exceed", "the", "parent", "box", "the", "parent", "box", "bounds", "will", "be", "expanded", "accordingly", "."], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/BoxNode.java#L390-L399", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/BoxNode.java", "func_name": "BoxNode.computeContentBounds", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Computes node the content bounds. They correspond to the background bounds\nhowever, when a border is present, it is included in the contents. Moreover,\nthe box is clipped by its clipping box.", "docstring_tokens": ["Computes", "node", "the", "content", "bounds", ".", "They", "correspond", "to", "the", "background", "bounds", "however", "when", "a", "border", "is", "present", "it", "is", "included", "in", "the", "contents", ".", "Moreover", "the", "box", "is", "clipped", "by", "its", "clipping", "box", "."], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/BoxNode.java#L406-L442", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/BoxNode.java", "func_name": "BoxNode.getTopBorder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the top border of the box\n@return the width of the border or 0 when there is no border", "docstring_tokens": ["Obtains", "the", "top", "border", "of", "the", "box"], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/BoxNode.java#L474-L482", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/BoxNode.java", "func_name": "BoxNode.getBottomBorder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the bottom border of the box\n@return the width of the border or 0 when there is no border", "docstring_tokens": ["Obtains", "the", "bottom", "border", "of", "the", "box"], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/BoxNode.java#L501-L509", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/BoxNode.java", "func_name": "BoxNode.getLeftBorder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the left border of the box\n@return the width of the border or 0 when there is no border", "docstring_tokens": ["Obtains", "the", "left", "border", "of", "the", "box"], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/BoxNode.java#L528-L536", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/BoxNode.java", "func_name": "BoxNode.getRightBorder", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Obtains the right border of the box\n@return the width of the border or 0 when there is no border", "docstring_tokens": ["Obtains", "the", "right", "border", "of", "the", "box"], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/BoxNode.java#L555-L563", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/BoxNode.java", "func_name": "BoxNode.getEfficientColor", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the effective text color. If the text color is set, it is returned.\nWhen the color is not set, the parent boxes are considered.\n@return the background color string", "docstring_tokens": ["Get", "the", "effective", "text", "color", ".", "If", "the", "text", "color", "is", "set", "it", "is", "returned", ".", "When", "the", "color", "is", "not", "set", "the", "parent", "boxes", "are", "considered", "."], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/BoxNode.java#L636-L650", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/BoxNode.java", "func_name": "BoxNode.visuallyEncloses1", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Checks if another node is fully located inside the content bounds of this box.\n@param childNode the node to check\n@return true if the child node is completely inside this node, false otherwise", "docstring_tokens": ["Checks", "if", "another", "node", "is", "fully", "located", "inside", "the", "content", "bounds", "of", "this", "box", "."], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/BoxNode.java#L861-L890", "partition": "valid"} +{"repo": "FitLayout/layout-cssbox", "path": "src/main/java/org/fit/layout/cssbox/BoxNode.java", "func_name": "BoxNode.takeChildren", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Goes through the parent's children, takes all the nodes that are inside of this node\nand makes them the children of this node. Then, recursively calls the children to take\ntheir nodes.", "docstring_tokens": ["Goes", "through", "the", "parent", "s", "children", "takes", "all", "the", "nodes", "that", "are", "inside", "of", "this", "node", "and", "makes", "them", "the", "children", "of", "this", "node", ".", "Then", "recursively", "calls", "the", "children", "to", "take", "their", "nodes", "."], "sha": "d18dcdc618af74d5b020b5039fc6dc4aa1192488", "url": "https://github.com/FitLayout/layout-cssbox/blob/d18dcdc618af74d5b020b5039fc6dc4aa1192488/src/main/java/org/fit/layout/cssbox/BoxNode.java#L988-L1003", "partition": "valid"} +{"repo": "Kadvin/spring-component-framework", "path": "sustain/src/main/java/net/happyonroad/component/container/AppLauncher.java", "func_name": "AppLauncher.process", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Process user specified command\n\n@param command the command", "docstring_tokens": ["Process", "user", "specified", "command"], "sha": "07432d0aef6781d9943c80a0c15957b08433b5bd", "url": "https://github.com/Kadvin/spring-component-framework/blob/07432d0aef6781d9943c80a0c15957b08433b5bd/sustain/src/main/java/net/happyonroad/component/container/AppLauncher.java#L204-L215", "partition": "valid"} +{"repo": "huherto/springyRecords", "path": "example-generator/src/main/java/com/example/generator/Application.java", "func_name": "Application.dataSource", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Use this data source to create an embedded database.", "docstring_tokens": ["Use", "this", "data", "source", "to", "create", "an", "embedded", "database", "."], "sha": "1e9434be2163fcb94eaf08c2e748506464b3095c", "url": "https://github.com/huherto/springyRecords/blob/1e9434be2163fcb94eaf08c2e748506464b3095c/example-generator/src/main/java/com/example/generator/Application.java#L58-L67", "partition": "valid"} +{"repo": "huherto/springyRecords", "path": "example-generator/src/main/java/com/example/generator/Application.java", "func_name": "Application.dataSource_plain", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Use this data source to connect to an existing database.", "docstring_tokens": ["Use", "this", "data", "source", "to", "connect", "to", "an", "existing", "database", "."], "sha": "1e9434be2163fcb94eaf08c2e748506464b3095c", "url": "https://github.com/huherto/springyRecords/blob/1e9434be2163fcb94eaf08c2e748506464b3095c/example-generator/src/main/java/com/example/generator/Application.java#L70-L82", "partition": "valid"} +{"repo": "graceland/graceland-core", "path": "graceland-platform/src/main/java/io/graceland/dropwizard/DropwizardModule.java", "func_name": "DropwizardModule.setup", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Called when the configuration and environment come into scope.\n\n@param config Provided by Dropwizard.\n@param env Provided by Dropwizard.", "docstring_tokens": ["Called", "when", "the", "configuration", "and", "environment", "come", "into", "scope", "."], "sha": "8b36f40341a5f1157421c788a2297e77e668d52d", "url": "https://github.com/graceland/graceland-core/blob/8b36f40341a5f1157421c788a2297e77e668d52d/graceland-platform/src/main/java/io/graceland/dropwizard/DropwizardModule.java#L38-L41", "partition": "valid"} +{"repo": "karlnicholas/openstates-client", "path": "src/main/java/org/openstates/api/OpenStates.java", "func_name": "OpenStates.query", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Handles the actual API calls and caching.\n\nThis is part of a static class and therefore is not thread-safe. This method\nis not for public consumption.", "docstring_tokens": ["Handles", "the", "actual", "API", "calls", "and", "caching", "."], "sha": "423dd188a093bb7d80325f087a32ae34b323c267", "url": "https://github.com/karlnicholas/openstates-client/blob/423dd188a093bb7d80325f087a32ae34b323c267/src/main/java/org/openstates/api/OpenStates.java#L161-L208", "partition": "valid"} +{"repo": "eiichiro/ash", "path": "ash-java/src/main/java/org/eiichiro/ash/Shell.java", "func_name": "Shell.register", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Registers the specified command instance into the shell.\n\n@param command Command to be registered.", "docstring_tokens": ["Registers", "the", "specified", "command", "instance", "into", "the", "shell", "."], "sha": "6c4d98761ced829e625f81f884cbc5c613bb6cde", "url": "https://github.com/eiichiro/ash/blob/6c4d98761ced829e625f81f884cbc5c613bb6cde/ash-java/src/main/java/org/eiichiro/ash/Shell.java#L55-L58", "partition": "valid"} +{"repo": "eiichiro/ash", "path": "ash-java/src/main/java/org/eiichiro/ash/Shell.java", "func_name": "Shell.register", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Registers the specified command instance into the shell with the specified name.\n\n@param name Name of command.\n@param command Command to be registered.", "docstring_tokens": ["Registers", "the", "specified", "command", "instance", "into", "the", "shell", "with", "the", "specified", "name", "."], "sha": "6c4d98761ced829e625f81f884cbc5c613bb6cde", "url": "https://github.com/eiichiro/ash/blob/6c4d98761ced829e625f81f884cbc5c613bb6cde/ash-java/src/main/java/org/eiichiro/ash/Shell.java#L66-L70", "partition": "valid"} +{"repo": "eiichiro/ash", "path": "ash-java/src/main/java/org/eiichiro/ash/Shell.java", "func_name": "Shell.unregister", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unregisters the command corresponding to the specified name from the shell.\n\n@param name Name of command.", "docstring_tokens": ["Unregisters", "the", "command", "corresponding", "to", "the", "specified", "name", "from", "the", "shell", "."], "sha": "6c4d98761ced829e625f81f884cbc5c613bb6cde", "url": "https://github.com/eiichiro/ash/blob/6c4d98761ced829e625f81f884cbc5c613bb6cde/ash-java/src/main/java/org/eiichiro/ash/Shell.java#L77-L80", "partition": "valid"} +{"repo": "eiichiro/ash", "path": "ash-java/src/main/java/org/eiichiro/ash/Shell.java", "func_name": "Shell.exec", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Executes the specified command line input.\n\n@param line Command line input.", "docstring_tokens": ["Executes", "the", "specified", "command", "line", "input", "."], "sha": "6c4d98761ced829e625f81f884cbc5c613bb6cde", "url": "https://github.com/eiichiro/ash/blob/6c4d98761ced829e625f81f884cbc5c613bb6cde/ash-java/src/main/java/org/eiichiro/ash/Shell.java#L96-L180", "partition": "valid"} +{"repo": "eiichiro/ash", "path": "ash-java/src/main/java/org/eiichiro/ash/Shell.java", "func_name": "Shell.start", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Runs into the REPL mode.", "docstring_tokens": ["Runs", "into", "the", "REPL", "mode", "."], "sha": "6c4d98761ced829e625f81f884cbc5c613bb6cde", "url": "https://github.com/eiichiro/ash/blob/6c4d98761ced829e625f81f884cbc5c613bb6cde/ash-java/src/main/java/org/eiichiro/ash/Shell.java#L187-L194", "partition": "valid"} +{"repo": "karlnicholas/openstates-client", "path": "src/main/java/org/openstates/classes/CommitteeClass.java", "func_name": "CommitteeClass.searchByStateChamber", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Committee Search\nThis method allows searching by state and chamber.\nCommittee objects returned by this method do not include the list of members by default.\n\n@param state\n@param chamber\n@return {@link Committees}", "docstring_tokens": ["Committee", "Search", "This", "method", "allows", "searching", "by", "state", "and", "chamber", ".", "Committee", "objects", "returned", "by", "this", "method", "do", "not", "include", "the", "list", "of", "members", "by", "default", "."], "sha": "423dd188a093bb7d80325f087a32ae34b323c267", "url": "https://github.com/karlnicholas/openstates-client/blob/423dd188a093bb7d80325f087a32ae34b323c267/src/main/java/org/openstates/classes/CommitteeClass.java#L62-L68", "partition": "valid"} +{"repo": "karlnicholas/openstates-client", "path": "src/main/java/org/openstates/classes/CommitteeClass.java", "func_name": "CommitteeClass.detail", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Committee Detail\nThis method returns the full committee object given a committee id.\n\n@param id\n@return {@link Committee} object given a committee id.", "docstring_tokens": ["Committee", "Detail", "This", "method", "returns", "the", "full", "committee", "object", "given", "a", "committee", "id", "."], "sha": "423dd188a093bb7d80325f087a32ae34b323c267", "url": "https://github.com/karlnicholas/openstates-client/blob/423dd188a093bb7d80325f087a32ae34b323c267/src/main/java/org/openstates/classes/CommitteeClass.java#L103-L105", "partition": "valid"} +{"repo": "lazydog-org/mbean-utility", "path": "src/main/java/org/lazydog/mbean/utility/RemoteMBeanInvocationHandler.java", "func_name": "RemoteMBeanInvocationHandler.connect", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Connect to the JMX service.\n\n@param host the host.\n@param port the port.\n@param login the login.\n@param password the password.\n\n@return the JMX connector.\n\n@throws IOException if unable to connect to the JMX service.", "docstring_tokens": ["Connect", "to", "the", "JMX", "service", "."], "sha": "900c7ab1818300950b9875585b7ae471a97725a5", "url": "https://github.com/lazydog-org/mbean-utility/blob/900c7ab1818300950b9875585b7ae471a97725a5/src/main/java/org/lazydog/mbean/utility/RemoteMBeanInvocationHandler.java#L101-L123", "partition": "valid"} +{"repo": "lazydog-org/mbean-utility", "path": "src/main/java/org/lazydog/mbean/utility/RemoteMBeanInvocationHandler.java", "func_name": "RemoteMBeanInvocationHandler.getProperty", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get the property.\n\n@param properties the properties.\n@param key the property key.\n\n@return the property.\n\n@throws IllegalArgumentException if the property does not exist.", "docstring_tokens": ["Get", "the", "property", "."], "sha": "900c7ab1818300950b9875585b7ae471a97725a5", "url": "https://github.com/lazydog-org/mbean-utility/blob/900c7ab1818300950b9875585b7ae471a97725a5/src/main/java/org/lazydog/mbean/utility/RemoteMBeanInvocationHandler.java#L183-L191", "partition": "valid"} +{"repo": "lazydog-org/mbean-utility", "path": "src/main/java/org/lazydog/mbean/utility/RemoteMBeanInvocationHandler.java", "func_name": "RemoteMBeanInvocationHandler.invoke", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Invoke the method and return the result.\n\n@param proxy the proxy.\n@param method the method.\n@param args the method arguments.\n\n@return the result of invoking the method.\n\n@throws Throwable if unable to invoke the method.", "docstring_tokens": ["Invoke", "the", "method", "and", "return", "the", "result", "."], "sha": "900c7ab1818300950b9875585b7ae471a97725a5", "url": "https://github.com/lazydog-org/mbean-utility/blob/900c7ab1818300950b9875585b7ae471a97725a5/src/main/java/org/lazydog/mbean/utility/RemoteMBeanInvocationHandler.java#L204-L228", "partition": "valid"} +{"repo": "karlnicholas/openstates-client", "path": "src/main/java/org/openstates/classes/DistrictClass.java", "func_name": "DistrictClass.searchByState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "List districts for state.\n\n@param state\n@return {@link Districts}", "docstring_tokens": ["List", "districts", "for", "state", "."], "sha": "423dd188a093bb7d80325f087a32ae34b323c267", "url": "https://github.com/karlnicholas/openstates-client/blob/423dd188a093bb7d80325f087a32ae34b323c267/src/main/java/org/openstates/classes/DistrictClass.java#L45-L47", "partition": "valid"} +{"repo": "karlnicholas/openstates-client", "path": "src/main/java/org/openstates/classes/DistrictClass.java", "func_name": "DistrictClass.search", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "List districts for state and chamber.\n\n@param state\n@param chamber\n@return {@link Districts}", "docstring_tokens": ["List", "districts", "for", "state", "and", "chamber", "."], "sha": "423dd188a093bb7d80325f087a32ae34b323c267", "url": "https://github.com/karlnicholas/openstates-client/blob/423dd188a093bb7d80325f087a32ae34b323c267/src/main/java/org/openstates/classes/DistrictClass.java#L56-L58", "partition": "valid"} +{"repo": "karlnicholas/openstates-client", "path": "src/main/java/org/openstates/classes/DistrictClass.java", "func_name": "DistrictClass.boundaryLookup", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get geographic boundary for a district.\n\n@param boundary_id\n@return {@link District}", "docstring_tokens": ["Get", "geographic", "boundary", "for", "a", "district", "."], "sha": "423dd188a093bb7d80325f087a32ae34b323c267", "url": "https://github.com/karlnicholas/openstates-client/blob/423dd188a093bb7d80325f087a32ae34b323c267/src/main/java/org/openstates/classes/DistrictClass.java#L66-L68", "partition": "valid"} +{"repo": "karlnicholas/openstates-client", "path": "src/main/java/org/openstates/classes/MetadataClass.java", "func_name": "MetadataClass.state", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get detailed metadata for a particular state.\n\n@param state\n@return {@link Metadata}", "docstring_tokens": ["Get", "detailed", "metadata", "for", "a", "particular", "state", "."], "sha": "423dd188a093bb7d80325f087a32ae34b323c267", "url": "https://github.com/karlnicholas/openstates-client/blob/423dd188a093bb7d80325f087a32ae34b323c267/src/main/java/org/openstates/classes/MetadataClass.java#L52-L54", "partition": "valid"} +{"repo": "lazydog-org/mbean-utility", "path": "src/main/java/org/lazydog/mbean/utility/MBeanUtility.java", "func_name": "MBeanUtility.createObject", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Create the MBean object.\n\n@param interfaceClass the MBean interface class.\n\n@return the MBean object.", "docstring_tokens": ["Create", "the", "MBean", "object", "."], "sha": "900c7ab1818300950b9875585b7ae471a97725a5", "url": "https://github.com/lazydog-org/mbean-utility/blob/900c7ab1818300950b9875585b7ae471a97725a5/src/main/java/org/lazydog/mbean/utility/MBeanUtility.java#L54-L79", "partition": "valid"} +{"repo": "lazydog-org/mbean-utility", "path": "src/main/java/org/lazydog/mbean/utility/MBeanUtility.java", "func_name": "MBeanUtility.register", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Register the MBean represented by the interface class.\n\n@param interfaceClass the MBean interface class.\n@param objectName the MBean object name.\n\n@return the MBean object name.\n\n@throws IllegalArgumentException if the interface class is invalid.\n@throws MBeanException if unable to register the MBean.", "docstring_tokens": ["Register", "the", "MBean", "represented", "by", "the", "interface", "class", "."], "sha": "900c7ab1818300950b9875585b7ae471a97725a5", "url": "https://github.com/lazydog-org/mbean-utility/blob/900c7ab1818300950b9875585b7ae471a97725a5/src/main/java/org/lazydog/mbean/utility/MBeanUtility.java#L292-L318", "partition": "valid"} +{"repo": "lazydog-org/mbean-utility", "path": "src/main/java/org/lazydog/mbean/utility/MBeanUtility.java", "func_name": "MBeanUtility.unregister", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Unregister the MBean represented by the object name.\n\n@param objectName the MBean object name.\n\n@throws MBeanException if unable to unregister the MBean.", "docstring_tokens": ["Unregister", "the", "MBean", "represented", "by", "the", "object", "name", "."], "sha": "900c7ab1818300950b9875585b7ae471a97725a5", "url": "https://github.com/lazydog-org/mbean-utility/blob/900c7ab1818300950b9875585b7ae471a97725a5/src/main/java/org/lazydog/mbean/utility/MBeanUtility.java#L327-L345", "partition": "valid"} +{"repo": "lazydog-org/mbean-utility", "path": "src/main/java/org/lazydog/mbean/utility/MBeanUtility.java", "func_name": "MBeanUtility.validateMBean", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Validate the MBean represented by the interface class and object name.\n\n@param interfaceClass the MBean interface class.\n@param objectName the MBean object name.\n@param mBeanServerConnection the MBean server connection.\n\n@throws IllegalArgumentException if the MBean is invalid.\n@throws IOException if unable to validate the MBean.", "docstring_tokens": ["Validate", "the", "MBean", "represented", "by", "the", "interface", "class", "and", "object", "name", "."], "sha": "900c7ab1818300950b9875585b7ae471a97725a5", "url": "https://github.com/lazydog-org/mbean-utility/blob/900c7ab1818300950b9875585b7ae471a97725a5/src/main/java/org/lazydog/mbean/utility/MBeanUtility.java#L357-L398", "partition": "valid"} +{"repo": "fcrepo4-exts/fcrepo-mint", "path": "src/main/java/org/fcrepo/mint/UUIDPathMinter.java", "func_name": "UUIDPathMinter.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Mint a unique identifier as a UUID\n\n@return uuid", "docstring_tokens": ["Mint", "a", "unique", "identifier", "as", "a", "UUID"], "sha": "be76a71631609dd6430c5d762dec6ab6e8a38306", "url": "https://github.com/fcrepo4-exts/fcrepo-mint/blob/be76a71631609dd6430c5d762dec6ab6e8a38306/src/main/java/org/fcrepo/mint/UUIDPathMinter.java#L71-L87", "partition": "valid"} +{"repo": "pressgang-ccms/jcommander-pressgang", "path": "src/main/java/com/beust/jcommander/ParameterDescription.java", "func_name": "ParameterDescription.addValue", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Add the specified value to the field. First, validate the value if a\nvalidator was specified. Then look up any field converter, then any type\nconverter, and if we can't find any, throw an exception.", "docstring_tokens": ["Add", "the", "specified", "value", "to", "the", "field", ".", "First", "validate", "the", "value", "if", "a", "validator", "was", "specified", ".", "Then", "look", "up", "any", "field", "converter", "then", "any", "type", "converter", "and", "if", "we", "can", "t", "find", "any", "throw", "an", "exception", "."], "sha": "9d212bfd8460283c809974b1c79e2c8fe2d1bfa6", "url": "https://github.com/pressgang-ccms/jcommander-pressgang/blob/9d212bfd8460283c809974b1c79e2c8fe2d1bfa6/src/main/java/com/beust/jcommander/ParameterDescription.java#L237-L272", "partition": "valid"} +{"repo": "karlnicholas/openstates-client", "path": "src/main/java/org/openstates/classes/LegislatorClass.java", "func_name": "LegislatorClass.searchByState", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get Legislators by State.\n\n@param state Filter by state.\n@return {@link Legislators}", "docstring_tokens": ["Get", "Legislators", "by", "State", "."], "sha": "423dd188a093bb7d80325f087a32ae34b323c267", "url": "https://github.com/karlnicholas/openstates-client/blob/423dd188a093bb7d80325f087a32ae34b323c267/src/main/java/org/openstates/classes/LegislatorClass.java#L46-L54", "partition": "valid"} +{"repo": "karlnicholas/openstates-client", "path": "src/main/java/org/openstates/classes/LegislatorClass.java", "func_name": "LegislatorClass.searchByStateActive", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Get Legislators by State and Active filters.\n\n@param state Filter by state.\n@param active 'true' (default) to only include current legislators, 'false' will include all legislators\n@return {@link Legislators}", "docstring_tokens": ["Get", "Legislators", "by", "State", "and", "Active", "filters", "."], "sha": "423dd188a093bb7d80325f087a32ae34b323c267", "url": "https://github.com/karlnicholas/openstates-client/blob/423dd188a093bb7d80325f087a32ae34b323c267/src/main/java/org/openstates/classes/LegislatorClass.java#L63-L75", "partition": "valid"} +{"repo": "karlnicholas/openstates-client", "path": "src/main/java/org/openstates/classes/LegislatorClass.java", "func_name": "LegislatorClass.searchByStateTerm", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Search for Legislators by State and Term.\n\n@param state Filter by state.\n@param term Only legislators that have a role in a certain term.\n@return {@link Legislators}", "docstring_tokens": ["Search", "for", "Legislators", "by", "State", "and", "Term", "."], "sha": "423dd188a093bb7d80325f087a32ae34b323c267", "url": "https://github.com/karlnicholas/openstates-client/blob/423dd188a093bb7d80325f087a32ae34b323c267/src/main/java/org/openstates/classes/LegislatorClass.java#L85-L97", "partition": "valid"} +{"repo": "karlnicholas/openstates-client", "path": "src/main/java/org/openstates/classes/LegislatorClass.java", "func_name": "LegislatorClass.search", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method allows looking up a legislator by a number of parameters, the results do not include the roles or old_roles items by default.\n\nPass null for parameters that are not being filtered.\n\n@param state Filter by state.\n@param active 'true' (default) to only include current legislators, 'false' will include all legislators\n@param term Only legislators that have a role in a certain term.\n@param chamber Only legislators with a role in the specified chamber.\n@param district Only legislators that have represented the specified district.\n@param party Only legislators that have been associated with a specified party\n@param first_name Filter by first name.\n@param last_name Filter by last name.", "docstring_tokens": ["This", "method", "allows", "looking", "up", "a", "legislator", "by", "a", "number", "of", "parameters", "the", "results", "do", "not", "include", "the", "roles", "or", "old_roles", "items", "by", "default", "."], "sha": "423dd188a093bb7d80325f087a32ae34b323c267", "url": "https://github.com/karlnicholas/openstates-client/blob/423dd188a093bb7d80325f087a32ae34b323c267/src/main/java/org/openstates/classes/LegislatorClass.java#L114-L138", "partition": "valid"} +{"repo": "karlnicholas/openstates-client", "path": "src/main/java/org/openstates/classes/LegislatorClass.java", "func_name": "LegislatorClass.detail", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method returns the full detail for a legislator.\n\n@param id\n@return {@link Legislator}", "docstring_tokens": ["This", "method", "returns", "the", "full", "detail", "for", "a", "legislator", "."], "sha": "423dd188a093bb7d80325f087a32ae34b323c267", "url": "https://github.com/karlnicholas/openstates-client/blob/423dd188a093bb7d80325f087a32ae34b323c267/src/main/java/org/openstates/classes/LegislatorClass.java#L150-L152", "partition": "valid"} +{"repo": "eiichiro/reverb", "path": "src/main/java/org/eiichiro/reverb/lang/TypesafeEnum.java", "func_name": "TypesafeEnum.compareTo", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Compares with the specified object by ordinal.\n\n@param o The object to be compared.\n@return 0 If this object is the same ordinal to the\nspecified object.", "docstring_tokens": ["Compares", "with", "the", "specified", "object", "by", "ordinal", "."], "sha": "f48b2c7442f276e34ced12e010769ff244e0f1aa", "url": "https://github.com/eiichiro/reverb/blob/f48b2c7442f276e34ced12e010769ff244e0f1aa/src/main/java/org/eiichiro/reverb/lang/TypesafeEnum.java#L109-L115", "partition": "valid"} +{"repo": "huherto/springyRecords", "path": "util/src/main/java/io/github/huherto/springyRecords/DtoRowMapper.java", "func_name": "DtoRowMapper.setMappedClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Set the class that each row should be mapped to.", "docstring_tokens": ["Set", "the", "class", "that", "each", "row", "should", "be", "mapped", "to", "."], "sha": "1e9434be2163fcb94eaf08c2e748506464b3095c", "url": "https://github.com/huherto/springyRecords/blob/1e9434be2163fcb94eaf08c2e748506464b3095c/util/src/main/java/io/github/huherto/springyRecords/DtoRowMapper.java#L80-L90", "partition": "valid"} +{"repo": "eiichiro/reverb", "path": "src/main/java/org/eiichiro/reverb/reflection/MethodInvocation.java", "func_name": "MethodInvocation.proceed", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Proceeds this method invocation.\n\n@return The result of this invocation proceeding.\n@throws Throwable If any exceptions occur while this method invocation is\nproceeding.", "docstring_tokens": ["Proceeds", "this", "method", "invocation", "."], "sha": "f48b2c7442f276e34ced12e010769ff244e0f1aa", "url": "https://github.com/eiichiro/reverb/blob/f48b2c7442f276e34ced12e010769ff244e0f1aa/src/main/java/org/eiichiro/reverb/reflection/MethodInvocation.java#L180-L187", "partition": "valid"} +{"repo": "eiichiro/reverb", "path": "src/main/java/org/eiichiro/reverb/time/Stopwatch.java", "func_name": "Stopwatch.stop", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Stops to measure.\n\n@return Elapsed time.", "docstring_tokens": ["Stops", "to", "measure", "."], "sha": "f48b2c7442f276e34ced12e010769ff244e0f1aa", "url": "https://github.com/eiichiro/reverb/blob/f48b2c7442f276e34ced12e010769ff244e0f1aa/src/main/java/org/eiichiro/reverb/time/Stopwatch.java#L126-L134", "partition": "valid"} +{"repo": "fcrepo4-exts/fcrepo-mint", "path": "src/main/java/org/fcrepo/mint/HttpPidMinter.java", "func_name": "HttpPidMinter.buildClient", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Setup authentication in httpclient.\n@return the setup of authentication", "docstring_tokens": ["Setup", "authentication", "in", "httpclient", "."], "sha": "be76a71631609dd6430c5d762dec6ab6e8a38306", "url": "https://github.com/fcrepo4-exts/fcrepo-mint/blob/be76a71631609dd6430c5d762dec6ab6e8a38306/src/main/java/org/fcrepo/mint/HttpPidMinter.java#L118-L128", "partition": "valid"} +{"repo": "fcrepo4-exts/fcrepo-mint", "path": "src/main/java/org/fcrepo/mint/HttpPidMinter.java", "func_name": "HttpPidMinter.minterRequest", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Instantiate a request object based on the method variable.", "docstring_tokens": ["Instantiate", "a", "request", "object", "based", "on", "the", "method", "variable", "."], "sha": "be76a71631609dd6430c5d762dec6ab6e8a38306", "url": "https://github.com/fcrepo4-exts/fcrepo-mint/blob/be76a71631609dd6430c5d762dec6ab6e8a38306/src/main/java/org/fcrepo/mint/HttpPidMinter.java#L133-L142", "partition": "valid"} +{"repo": "fcrepo4-exts/fcrepo-mint", "path": "src/main/java/org/fcrepo/mint/HttpPidMinter.java", "func_name": "HttpPidMinter.responseToPid", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Remove unwanted text from the minter service response to produce the desired identifier.\nOverride this method for processing more complex than a simple regex replacement.\n@param responseText the response text\n@throws IOException if exception occurred\n@return the response", "docstring_tokens": ["Remove", "unwanted", "text", "from", "the", "minter", "service", "response", "to", "produce", "the", "desired", "identifier", ".", "Override", "this", "method", "for", "processing", "more", "complex", "than", "a", "simple", "regex", "replacement", "."], "sha": "be76a71631609dd6430c5d762dec6ab6e8a38306", "url": "https://github.com/fcrepo4-exts/fcrepo-mint/blob/be76a71631609dd6430c5d762dec6ab6e8a38306/src/main/java/org/fcrepo/mint/HttpPidMinter.java#L151-L164", "partition": "valid"} +{"repo": "fcrepo4-exts/fcrepo-mint", "path": "src/main/java/org/fcrepo/mint/HttpPidMinter.java", "func_name": "HttpPidMinter.xpath", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Extract the desired identifier value from an XML response using XPath", "docstring_tokens": ["Extract", "the", "desired", "identifier", "value", "from", "an", "XML", "response", "using", "XPath"], "sha": "be76a71631609dd6430c5d762dec6ab6e8a38306", "url": "https://github.com/fcrepo4-exts/fcrepo-mint/blob/be76a71631609dd6430c5d762dec6ab6e8a38306/src/main/java/org/fcrepo/mint/HttpPidMinter.java#L169-L174", "partition": "valid"} +{"repo": "fcrepo4-exts/fcrepo-mint", "path": "src/main/java/org/fcrepo/mint/HttpPidMinter.java", "func_name": "HttpPidMinter.get", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Mint a unique identifier using an external HTTP API.\n@return The generated identifier.", "docstring_tokens": ["Mint", "a", "unique", "identifier", "using", "an", "external", "HTTP", "API", "."], "sha": "be76a71631609dd6430c5d762dec6ab6e8a38306", "url": "https://github.com/fcrepo4-exts/fcrepo-mint/blob/be76a71631609dd6430c5d762dec6ab6e8a38306/src/main/java/org/fcrepo/mint/HttpPidMinter.java#L180-L194", "partition": "valid"} +{"repo": "graceland/graceland-core", "path": "graceland-platform/src/main/java/io/graceland/configuration/ConfigurationBinder.java", "func_name": "ConfigurationBinder.forClass", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "The starting point for using a ConfigurationBinder. A class needs to be passed through, along with a binder to\neventually bind the configuration with.\n\n@param klass The Configuration Class to load & bind.\n@param binder The {@link com.google.inject.Binder} from the {@link io.graceland.plugin.AbstractPlugin}.\n@param The Configuration Type.\n@return Returns a working ConfigurationBinder using the provided type and class information.", "docstring_tokens": ["The", "starting", "point", "for", "using", "a", "ConfigurationBinder", ".", "A", "class", "needs", "to", "be", "passed", "through", "along", "with", "a", "binder", "to", "eventually", "bind", "the", "configuration", "with", "."], "sha": "8b36f40341a5f1157421c788a2297e77e668d52d", "url": "https://github.com/graceland/graceland-core/blob/8b36f40341a5f1157421c788a2297e77e668d52d/graceland-platform/src/main/java/io/graceland/configuration/ConfigurationBinder.java#L39-L41", "partition": "valid"} +{"repo": "graceland/graceland-core", "path": "graceland-platform/src/main/java/io/graceland/configuration/ConfigurationBinder.java", "func_name": "ConfigurationBinder.toInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "This method will bind the class to a particular instance.\n\n@param configuration", "docstring_tokens": ["This", "method", "will", "bind", "the", "class", "to", "a", "particular", "instance", "."], "sha": "8b36f40341a5f1157421c788a2297e77e668d52d", "url": "https://github.com/graceland/graceland-core/blob/8b36f40341a5f1157421c788a2297e77e668d52d/graceland-platform/src/main/java/io/graceland/configuration/ConfigurationBinder.java#L53-L62", "partition": "valid"} +{"repo": "graceland/graceland-core", "path": "graceland-platform/src/main/java/io/graceland/filter/FilterPattern.java", "func_name": "FilterPattern.newInstance", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Returns a new instance of FilterPattern, using the passed in arguments.", "docstring_tokens": ["Returns", "a", "new", "instance", "of", "FilterPattern", "using", "the", "passed", "in", "arguments", "."], "sha": "8b36f40341a5f1157421c788a2297e77e668d52d", "url": "https://github.com/graceland/graceland-core/blob/8b36f40341a5f1157421c788a2297e77e668d52d/graceland-platform/src/main/java/io/graceland/filter/FilterPattern.java#L37-L43", "partition": "valid"} +{"repo": "eiichiro/reverb", "path": "src/main/java/org/eiichiro/reverb/reflection/ConstructorInvocation.java", "func_name": "ConstructorInvocation.proceed", "original_string": "", "language": "java", "code": "", "code_tokens": [], "docstring": "Proceeds this constructor invocation.\n\n@return The instance of the specified class.\n@throws Throwable If any exceptions occur while this invocation is\nproceeding.", "docstring_tokens": ["Proceeds", "this", "constructor", "invocation", "."], "sha": "f48b2c7442f276e34ced12e010769ff244e0f1aa", "url": "https://github.com/eiichiro/reverb/blob/f48b2c7442f276e34ced12e010769ff244e0f1aa/src/main/java/org/eiichiro/reverb/reflection/ConstructorInvocation.java#L88-L94", "partition": "valid"}