conversation
listlengths
2
2
[ { "content": "Sets the baseline start text value.\n\n@param baselineNumber baseline number\n@param value baseline start text value", "role": "user" }, { "content": "public void setBaselineStartText(int baselineNumber, String value)\n {\n set(selectField(TaskFieldLists.BASELINE_STARTS, baselin...
[ { "content": "Retrieve the \"complete through\" date.\n\n@return complete through date", "role": "user" }, { "content": "public Date getCompleteThrough()\n {\n Date value = (Date) getCachedValue(TaskField.COMPLETE_THROUGH);\n if (value == null)\n {\n int percentComplete = Nu...
[ { "content": "Retrieves the task mode.\n\n@return task mode", "role": "user" }, { "content": "public TaskMode getTaskMode()\n {\n return BooleanHelper.getBoolean((Boolean) getCachedValue(TaskField.TASK_MODE)) ? TaskMode.MANUALLY_SCHEDULED : TaskMode.AUTO_SCHEDULED;\n }", "role": "assist...
[ { "content": "Retrieve the effective calendar for this task. If the task does not have\na specific calendar associated with it, fall back to using the default calendar\nfor the project.\n\n@return ProjectCalendar instance", "role": "user" }, { "content": "public ProjectCalendar getEffectiveCalendar(...
[ { "content": "This method allows a predecessor relationship to be removed from this\ntask instance. It will only delete relationships that exactly match the\ngiven targetTask, type and lag time.\n\n@param targetTask the predecessor task\n@param type relation type\n@param lag relation lag\n@return returns true ...
[ { "content": "Internal method used to locate an remove an item from a list Relations.\n\n@param relationList list of Relation instances\n@param targetTask target relationship task\n@param type target relationship type\n@param lag target relationship lag\n@return true if a relationship was removed", "role": ...
[ { "content": "Internal method used to test for the existence of a relationship\nwith a task.\n\n@param task target task\n@param list list of relationships\n@return boolean flag", "role": "user" }, { "content": "private boolean isRelated(Task task, List<Relation> list)\n {\n boolean result = f...
[ { "content": "Serializes this RuleSet in an XML document.\n\n@param destination The writer to which the XML document shall be written.", "role": "user" }, { "content": "public void writeTo(Writer destination) {\n Element eltRuleset = new Element(\"ruleset\");\n addAttribute(eltRuleset,...
[ { "content": "Parses the given Reader for PmdRuleSets.\n\n@return The extracted PmdRuleSet - empty in case of problems, never null.", "role": "user" }, { "content": "@Override\n public PmdRuleSet create() {\n final SAXBuilder parser = new SAXBuilder();\n final Document dom;\n ...
[ { "content": "Calculates the beginLine of a violation report.\n\n@param pmdViolation The violation for which the beginLine should be calculated.\n@return The beginLine is assumed to be the line with the smallest number. However, if the smallest number is\nout-of-range (non-positive), it takes the other number."...
[ { "content": "Look for a child view with the given id. If this view has the given\nid, return this view.\n\n@param id The id to search for.\n@return The view that has the given id in the hierarchy or null", "role": "user" }, { "content": "@Nullable public View findViewById(int id) {\n if (se...
[ { "content": "Returns the context the view is running in, through which it can\naccess the current theme, resources, etc.\n\n@return The view's Context.", "role": "user" }, { "content": "@NonNull public Context getContext() {\n if (searchView != null) {\n return searchView.getConte...
[ { "content": "Returns the query string currently in the text field.\n\n@return the query string", "role": "user" }, { "content": "@NonNull public CharSequence getQuery() {\n if (searchView != null) {\n return searchView.getQuery();\n } else if (supportView != null) {\n ...
[ { "content": "Sets a listener for user actions within the SearchView.\n\n@param listener the listener object that receives callbacks when the user performs\nactions in the SearchView such as clicking on buttons or typing a query.", "role": "user" }, { "content": "public void setOnQueryTextListener(@...
[ { "content": "Sets a listener to inform when the user closes the SearchView.\n\n@param listener the listener to call when the user closes the SearchView.", "role": "user" }, { "content": "public void setOnCloseListener(@NonNull final android.support.v7.widget.SearchView.OnCloseListener listener) {\n...
[ { "content": "Gets the Searcher for a given variant.\n\n@param variant an identifier to differentiate this Searcher from eventual others.\n@return the corresponding Searcher instance.\n@throws IllegalStateException if no searcher was {@link #create(Searchable) created} before for this {@code variant}.", "ro...
[ { "content": "Resets the helper's state.\n\n@return this {@link Searcher} for chaining.", "role": "user" }, { "content": "@NonNull\n @SuppressWarnings({\"WeakerAccess\", \"unused\"}) // For library users\n public Searcher reset() {\n lastResponsePage = 0;\n lastRequestPage = 0;\n...
[ { "content": "Cancels all requests still waiting for a response.\n\n@return this {@link Searcher} for chaining.", "role": "user" }, { "content": "@SuppressWarnings({\"WeakerAccess\", \"unused\"}) // For library users\n public Searcher cancelPendingRequests() {\n if (pendingRequests.size() ...
[ { "content": "Adds a boolean refinement for the next queries.\n\n@param attribute the attribute to refine on.\n@param value the value to refine with.\n@return this {@link Searcher} for chaining.", "role": "user" }, { "content": "@SuppressWarnings({\"WeakerAccess\", \"unused\"}) // For library us...
[ { "content": "Adds one or several attributes to facet on for the next queries.\n\n@param attributes one or more attribute names.\n@return this {@link Searcher} for chaining.", "role": "user" }, { "content": "@SuppressWarnings({\"WeakerAccess\", \"unused\"}) // For library users\n public Searcher ...
[ { "content": "Forces removal of one or several faceted attributes for the next queries.\n\n@param attributes one or more attribute names.\n@return this {@link Searcher} for chaining.", "role": "user" }, { "content": "@SuppressWarnings({\"WeakerAccess\", \"unused\"}) // For library users\n public ...
[ { "content": "Checks if the given operator code is a valid one.\n\n@param operatorCode an operator code to evaluate\n@throws IllegalStateException if operatorCode is not a known operator code.", "role": "user" }, { "content": "public static void checkOperatorIsValid(int operatorCode) {\n swit...
[ { "content": "Gets a string attribute from a json object given a path to traverse.\n\n@param record a JSONObject to traverse.\n@param path the json path to follow.\n@return the attribute as a {@link String}, or null if it was not found.", "role": "user" }, { "content": "public static String getStr...
[ { "content": "Gets a Map of attributes from a json object given a path to traverse.\n\n@param record a JSONObject to traverse.\n@param path the json path to follow.\n@return the attributes as a {@link HashMap}, or null if it was not found.", "role": "user" }, { "content": "public static HashMap<St...
[ { "content": "Starts closing the keyboard when the hits are scrolled.", "role": "user" }, { "content": "@SuppressWarnings({\"WeakerAccess\", \"unused\"}) // For library users\n public void enableKeyboardAutoHiding() {\n keyboardListener = new OnScrollListener() {\n @Override\n ...
[ { "content": "Triggers a new search with the given text.\n\n@param query the text to search for.", "role": "user" }, { "content": "public void search(String query) {\n final Query newQuery = searcher.getQuery().setQuery(query);\n searcher.setQuery(newQuery).search();\n }", "role...
[ { "content": "Registers your facet filters, adding them to this InstantSearch's widgets.\n\n@param filters a List of facet filters.", "role": "user" }, { "content": "@SuppressWarnings({\"WeakerAccess\", \"unused\"}) // For library users\n public void registerFilters(List<AlgoliaFilter> filters) {...
[ { "content": "Links the given widget to InstantSearch according to the interfaces it implements.\n\n@param widget a widget implementing ({@link AlgoliaResultsListener} || {@link AlgoliaErrorListener} || {@link AlgoliaSearcherListener}).", "role": "user" }, { "content": "@SuppressWarnings({\"WeakerAc...
[ { "content": "Finds and sets up the Listeners in the given rootView.\n\n@param rootView a View to traverse looking for listeners.\n@return the list of refinement attributes found on listeners.", "role": "user" }, { "content": "private List<String> processAllListeners(View rootView) {\n List<S...
[ { "content": "Added in Gerrit 2.11.", "role": "user" }, { "content": "@Override\n public SuggestAccountsRequest suggestAccounts() throws RestApiException {\n return new SuggestAccountsRequest() {\n @Override\n public List<AccountInfo> get() throws RestApiException {\n...
[ { "content": "Encode a path segment, escaping characters not valid for a URL.\n\n<p>The following characters are not escaped:\n\n<ul>\n<li>{@code a..z, A..Z, 0..9}\n<li>{@code . - * _}\n</ul>\n\n<p>' ' (space) is encoded as '+'.\n\n<p>All other characters (including '/') are converted to the triplet \"%xy\" whe...
[ { "content": "In Gerrit < 2.12 the XSRF token was included in the start page HTML.", "role": "user" }, { "content": "private Optional<String> getXsrfFromHtmlBody(HttpResponse loginResponse) throws IOException {\n Optional<Cookie> gerritAccountCookie = findGerritAccountCookie();\n if (g...
[ { "content": "With this impl, it only returns the same credentials once. Otherwise it's possible that a loop will occur.\nWhen server returns status code 401, the HTTP client provides the same credentials forever.\nSince we create a new HTTP client for every request, we can handle it this way.", "role": "us...
[ { "content": "Return a copy of the result as a String.\n\n<p>The default version of this method copies the result into a temporary byte array and then\ntries to decode it using the configured encoding.\n\n@return string version of the result.\n@throws IOException if the data cannot be produced or could not be d...
[ { "content": "Checks if request is intended for Gerrit host.", "role": "user" }, { "content": "private boolean isForGerritHost(HttpRequest request) {\n if (!(request instanceof HttpRequestWrapper)) return false;\n HttpRequest originalRequest = ((HttpRequestWrapper) request).getOriginal...
[ { "content": "Get the relative path of an application\n\n@param root the root to relativize against\n@param path the path to relativize\n@return the relative path", "role": "user" }, { "content": "public static String getRelativePathName(Path root, Path path) {\n Path relative = root.relativi...
[ { "content": "Disposes resources created to service this connection context", "role": "user" }, { "content": "@PreDestroy\n public final void dispose() {\n getConnectionPool().ifPresent(PoolResources::dispose);\n getThreadPool().dispose();\n\n try {\n ObjectName na...
[ { "content": "Return the entity of a resource\n\n@param resource the resource\n@param <T> the type of the resource's entity\n@param <R> the resource type\n@return the resource's entity", "role": "user" }, { "content": "public static <T, R extends Resource<T>> T getEntity(R resource) {\n ...
[ { "content": "Return a stream of resources from a response\n\n@param response the response\n@param <R> the resource type\n@param <U> the response type\n@return a stream of resources from the response", "role": "user" }, { "content": "public static <R extends Resource<?>, U extends Paginate...
[ { "content": "Waits for a job V3 to complete\n\n@param cloudFoundryClient the client to use to request job status\n@param completionTimeout the amount of time to wait for the job to complete.\n@param jobId the id of the job\n@return {@code onComplete} once job has completed", "role": "user" ...
[ { "content": "Renders a time period in human readable form\n\n@param time the time in milliseconds\n@return the time in human readable form", "role": "user" }, { "content": "public static String asTime(long time) {\n if (time > HOUR) {\n return String.format(\"%.1f h\", (time / HOU...
[ { "content": "Factory method that builds the appropriate matcher for @match tags", "role": "user" }, { "content": "private ClassMatcher buildMatcher(String tagText) {\n\t// check there are at least @match <type> and a parameter\n\tString[] strings = StringUtil.tokenize(tagText);\n\tif (strings.lengt...
[ { "content": "Adds the specified class to the internal class graph along with its\nrelations and dependencies, eventually inferring them, according to the\nOptions specified for this matcher\n@param cd", "role": "user" }, { "content": "private void addToGraph(ClassDoc cd) {\n\t// avoid adding twice ...
[ { "content": "Option check, forwards options to the standard doclet, if that one refuses them,\nthey are sent to UmlGraph", "role": "user" }, { "content": "public static int optionLength(String option) {\n\tint result = Standard.optionLength(option);\n\tif (result != 0)\n\t return result;\n\telse...
[ { "content": "Standard doclet entry point\n@param root\n@return", "role": "user" }, { "content": "public static boolean start(RootDoc root) {\n\troot.printNotice(\"UmlGraphDoc version \" + Version.VERSION + \", running the standard doclet\");\n\tStandard.start(root);\n\troot.printNotice(\"UmlGraphD...
[ { "content": "Generates the context diagram for a single class", "role": "user" }, { "content": "private static void generateContextDiagrams(RootDoc root, Options opt, String outputFolder)\n\t throws IOException {\n Set<ClassDoc> classDocs = new TreeSet<ClassDoc>(new Comparator<ClassDoc>()...
[ { "content": "Takes an HTML file, looks for the first instance of the specified insertion point, and\ninserts the diagram image reference and a client side map in that point.", "role": "user" }, { "content": "private static void alterHtmlDocs(Options opt, String outputFolder, String packageName, Str...
[ { "content": "Returns the output path specified on the javadoc options", "role": "user" }, { "content": "private static String findOutputPath(String[][] options) {\n\tfor (int i = 0; i < options.length; i++) {\n\t if (options[i][0].equals(\"-d\"))\n\t\treturn options[i][1];\n\t}\n\treturn \".\";\...
[ { "content": "Most complete output", "role": "user" }, { "content": "public void setAll() {\n\tshowAttributes = true;\n\tshowEnumerations = true;\n\tshowEnumConstants = true;\n\tshowOperations = true;\n\tshowConstructors = true;\n\tshowVisibility = true;\n\tshowType = true;\n }", "role": "ass...
[ { "content": "Return the number of arguments associated with the specified option.\nThe return value includes the actual option.\nWill return 0 if the option is not supported.", "role": "user" }, { "content": "public static int optionLength(String option) {\n if(matchOption(option, \"qualify\...
[ { "content": "Adds api doc roots from a link. The folder reffered by the link should contain a package-list\nfile that will be parsed in order to add api doc roots to this configuration\n@param packageListUrl", "role": "user" }, { "content": "private void addApiDocRoots(String packageListUrl) {\n\tB...
[ { "content": "Trim and append a file separator to the string", "role": "user" }, { "content": "private String fixApiDocRoot(String str) {\n\tif (str == null)\n\t return null;\n\tString fixed = str.trim();\n\tif (fixed.isEmpty())\n\t return \"\";\n\tif (File.separatorChar != '/')\n\t fixed =...
[ { "content": "Set the options based on the tag elements of the ClassDoc parameter", "role": "user" }, { "content": "public void setOptions(Doc p) {\n\tif (p == null)\n\t return;\n\n\tfor (Tag tag : p.tags(\"opt\"))\n\t setOption(StringUtil.tokenize(tag.text()));\n }\n\n /**\n * Check...
[ { "content": "Adds, eventually merging, a direction for the specified relation type\n@param relationType\n@param direction", "role": "user" }, { "content": "public void addRelation(RelationType relationType, RelationDirection direction) {\n\tint idx = relationType.ordinal();\n\tdirections[idx] = dir...
[ { "content": "Return the class's name, possibly by stripping the leading path", "role": "user" }, { "content": "private static String qualifiedName(Options opt, String r) {\n\tif (opt.hideGenerics)\n\t r = removeTemplate(r);\n\t// Fast path - nothing to do:\n\tif (opt.showQualified && (opt.showQu...
[ { "content": "Print the visibility adornment of element e prefixed by\nany stereotypes", "role": "user" }, { "content": "private String visibility(Options opt, ProgramElementDoc e) {\n\treturn opt.showVisibility ? Visibility.get(e).symbol : \" \";\n }", "role": "assistant" } ]
[ { "content": "Print the method parameter p", "role": "user" }, { "content": "private String parameter(Options opt, Parameter p[]) {\n\tStringBuilder par = new StringBuilder(1000);\n\tfor (int i = 0; i < p.length; i++) {\n\t par.append(p[i].name() + typeAnnotation(opt, p[i].type()));\n\t if (i ...
[ { "content": "Print a a basic type t", "role": "user" }, { "content": "private String type(Options opt, Type t, boolean generics) {\n\treturn ((generics ? opt.showQualifiedGenerics : opt.showQualified) ? //\n\t\tt.qualifiedTypeName() : t.typeName()) //\n\t\t+ (opt.hideGenerics ? \"\" : typeParameter...
[ { "content": "Print the parameters of the parameterized type t", "role": "user" }, { "content": "private String typeParameters(Options opt, ParameterizedType t) {\n\tif (t == null)\n\t return \"\";\n\tStringBuffer tp = new StringBuffer(1000).append(\"&lt;\");\n\tType args[] = t.typeArguments();\n...
[ { "content": "Print the class's attributes fd", "role": "user" }, { "content": "private void attributes(Options opt, FieldDoc fd[]) {\n\tfor (FieldDoc f : fd) {\n\t if (hidden(f))\n\t\tcontinue;\n\t stereotype(opt, f, Align.LEFT);\n\t String att = visibility(opt, f) + f.name();\n\t if (o...
[ { "content": "Print the class's constructors m", "role": "user" }, { "content": "private boolean operations(Options opt, ConstructorDoc m[]) {\n\tboolean printed = false;\n\tfor (ConstructorDoc cd : m) {\n\t if (hidden(cd))\n\t\tcontinue;\n\t stereotype(opt, cd, Align.LEFT);\n\t String cs =...
[ { "content": "Print the class's operations m", "role": "user" }, { "content": "private boolean operations(Options opt, MethodDoc m[]) {\n\tboolean printed = false;\n\tfor (MethodDoc md : m) {\n\t if (hidden(md))\n\t\tcontinue;\n\t // Filter-out static initializer method\n\t if (md.name().eq...
[ { "content": "Print the common class node's properties", "role": "user" }, { "content": "private void nodeProperties(Options opt) {\n\tOptions def = opt.getGlobalOptions();\n\tif (opt.nodeFontName != def.nodeFontName)\n\t w.print(\",fontname=\\\"\" + opt.nodeFontName + \"\\\"\");\n\tif (opt.nodeF...
[ { "content": "Return as a string the tagged values associated with c\n@param opt the Options used to guess font names\n@param c the Doc entry to look for @tagvalue\n@param prevterm the termination string for the previous element\n@param term the termination character for each tagged value", "role": "user" ...
[ { "content": "Return as a string the stereotypes associated with c\nterminated by the escape character term", "role": "user" }, { "content": "private void stereotype(Options opt, Doc c, Align align) {\n\tfor (Tag tag : c.tags(\"stereotype\")) {\n\t String t[] = tokenize(tag.text());\n\t if (t....
[ { "content": "Return true if c has a @hidden tag associated with it", "role": "user" }, { "content": "private boolean hidden(ProgramElementDoc c) {\n\tif (c.tags(\"hidden\").length > 0 || c.tags(\"view\").length > 0)\n\t return true;\n\tOptions opt = optionProvider.getOptionsFor(c instanceof Clas...
[ { "content": "Return true if the class name is associated to an hidden class or matches a hide expression", "role": "user" }, { "content": "private boolean hidden(String className) {\n\tclassName = removeTemplate(className);\n\tClassInfo ci = classnames.get(className);\n\treturn ci != null ? ci.hidd...
[ { "content": "Print all relations for a given's class's tag\n@param tagname the tag containing the given relation\n@param from the source class\n@param edgetype the dot edge specification", "role": "user" }, { "content": "private void allRelation(Options opt, RelationType rt, ClassDoc from) {\n\tStr...
[ { "content": "Print a class's relations", "role": "user" }, { "content": "public void printRelations(ClassDoc c) {\n\tOptions opt = optionProvider.getOptionsFor(c);\n\tif (hidden(c) || c.name().equals(\"\")) // avoid phantom classes, they may pop up when the source uses annotations\n\t return;\n\...
[ { "content": "Print classes that were parts of relationships, but not parsed by javadoc", "role": "user" }, { "content": "public void printExtraClasses(RootDoc root) {\n\tSet<String> names = new HashSet<String>(classnames.keySet()); \n\tfor(String className: names) {\n\t ClassInfo info = getClass...
[ { "content": "Prints associations recovered from the fields of a class. An association is inferred only\nif another relation between the two classes is not already in the graph.\n@param classes", "role": "user" }, { "content": "public void printInferredRelations(ClassDoc c) {\n\t// check if the sour...
[ { "content": "Prints dependencies recovered from the methods of a class. A\ndependency is inferred only if another relation between the two\nclasses is not already in the graph.\n@param classes", "role": "user" }, { "content": "public void printInferredDependencies(ClassDoc c) {\n\tif (hidden(c))\n\...
[ { "content": "Returns all program element docs that have a visibility greater or\nequal than the specified level", "role": "user" }, { "content": "private <T extends ProgramElementDoc> List<T> filterByVisibility(T[] docs, Visibility visibility) {\n\tif (visibility == Visibility.PRIVATE)\n\t retur...
[ { "content": "Start the first inner table of a class.", "role": "user" }, { "content": "private void firstInnerTableStart(Options opt) {\n\tw.print(linePrefix + linePrefix + \"<tr>\" + opt.shape.extraColumn() +\n\t\t\"<td><table border=\\\"0\\\" cellspacing=\\\"0\\\" \" +\n\t\t\"cellpadding=\\\"1\\\...
[ { "content": "Picks out a File from `thriftFiles` corresponding to a given artifact ID\nand file name. Returns null if `artifactId` and `fileName` do not map to a\nthrift file path.\n\n@parameter artifactId The artifact ID of which to look up the path\n@parameter fileName the name of the thrift file for which t...
[ { "content": "Executes the mojo.", "role": "user" }, { "content": "public void execute() throws MojoExecutionException, MojoFailureException {\n try {\n Set<File> thriftFiles = findThriftFiles();\n\n final File outputDirectory = getOutputDirectory();\n ImmutableSet<File> outputFile...
[ { "content": "Get the last modified time for a set of files.", "role": "user" }, { "content": "private long lastModified(Set<File> files) {\n long result = 0;\n for (File file : files) {\n if (file.lastModified() > result)\n result = file.lastModified();\n }\n return result;\...
[ { "content": "build a complete set of local files, files from referenced projects, and dependencies.", "role": "user" }, { "content": "private Set<File> findThriftFiles() throws IOException, MojoExecutionException {\n final File thriftSourceRoot = getThriftSourceRoot();\n Set<File> thriftFiles...
[ { "content": "Iterate through dependencies", "role": "user" }, { "content": "private Set<Artifact> findThriftDependencies() throws IOException, MojoExecutionException {\n Set<Artifact> thriftDependencies = new HashSet<Artifact>();\n\n Set<Artifact> deps = new HashSet<Artifact>();\n deps.add...
[ { "content": "Walk project references recursively, building up a list of thrift files they provide, starting\nwith an empty file list.", "role": "user" }, { "content": "protected List<File> getRecursiveThriftFiles(MavenProject project, String outputDirectory) throws IOException {\n return getRecu...
[ { "content": "Walk project references recursively, adding thrift files to the provided list.", "role": "user" }, { "content": "List<File> getRecursiveThriftFiles(MavenProject project, String outputDirectory, List<File> files) throws IOException {\n HashFunction hashFun = Hashing.md5();\n File ...
[ { "content": "Checks if the artifact is dependency of an dependent idl artifact\n@returns true if the artifact was a dependency of idl artifact", "role": "user" }, { "content": "private boolean isDepOfIdlArtifact(Artifact artifact, Map<String, Artifact> depsMap) {\n List<String> depTrail = artifa...
[ { "content": "Resolves an idl jar for the artifact.\n@return Returns idl artifact\n@throws MojoExecutionException is idl jar is not present for the artifact.", "role": "user" }, { "content": "public static Artifact getIdlArtifact(Artifact artifact, ArtifactFactory artifactFactory,\n ...
[ { "content": "Lift a Java Func0 to a Scala Function0\n\n@param f the function to lift\n\n@returns the Scala function", "role": "user" }, { "content": "public static<Z> Function0<Z> lift(Func0<Z> f) {\n\treturn bridge.lift(f);\n }", "role": "assistant" } ]
[ { "content": "Lift a Java Func1 to a Scala Function1\n\n@param f the function to lift\n\n@returns the Scala function", "role": "user" }, { "content": "public static<A, Z> Function1<A, Z> lift(Func1<A, Z> f) {\n\treturn bridge.lift(f);\n }", "role": "assistant" } ]
[ { "content": "Lift a Java Func2 to a Scala Function2\n\n@param f the function to lift\n\n@returns the Scala function", "role": "user" }, { "content": "public static<A, B, Z> Function2<A, B, Z> lift(Func2<A, B, Z> f) {\n\treturn bridge.lift(f);\n }", "role": "assistant" } ]
[ { "content": "Lift a Java Func3 to a Scala Function3\n\n@param f the function to lift\n\n@returns the Scala function", "role": "user" }, { "content": "public static<A, B, C, Z> Function3<A, B, C, Z> lift(Func3<A, B, C, Z> f) {\n\treturn bridge.lift(f);\n }", "role": "assistant" } ]
[ { "content": "Lift a Java Func4 to a Scala Function4\n\n@param f the function to lift\n\n@returns the Scala function", "role": "user" }, { "content": "public static<A, B, C, D, Z> Function4<A, B, C, D, Z> lift(Func4<A, B, C, D, Z> f) {\n\treturn bridge.lift(f);\n }", "role": "assistant" } ]
[ { "content": "Lift a Java Callable to a Scala Function0\n\n@param f the function to lift\n\n@returns the Scala function", "role": "user" }, { "content": "public static<Z> Function0<Z> lift(Callable<Z> f) {\n\treturn bridge.lift(f);\n }", "role": "assistant" } ]
[ { "content": "Create a Css Selector Transform", "role": "user" }, { "content": "public static CssSel sel(String selector, String value) {\n\treturn j.sel(selector, value);\n }", "role": "assistant" } ]
[ { "content": "Create a Vendor from a Func0", "role": "user" }, { "content": "public static<T> Vendor<T> vendor(Func0<T> f) {\n\treturn j.vendor(f);\n }", "role": "assistant" } ]
[ { "content": "Create a Vendor from a Callable", "role": "user" }, { "content": "public static<T> Vendor<T> vendor(Callable<T> f) {\n\treturn j.vendor(f);\n }", "role": "assistant" } ]
[ { "content": "Vend a SessionVar with the default value", "role": "user" }, { "content": "public static<T> SessionVar<T> vendSessionVar(T defValue) {\n\treturn (new VarsJBridge()).vendSessionVar(defValue, new Exception());\n }", "role": "assistant" } ]
[ { "content": "Vend a SessionVar with the function to create the default value", "role": "user" }, { "content": "public static<T> SessionVar<T> vendSessionVar(Callable<T> defFunc) {\n\treturn (new VarsJBridge()).vendSessionVar(defFunc, new Exception());\n }", "role": "assistant" } ]
[ { "content": "DISPATCHING - COMMANDS", "role": "user" }, { "content": "protected <T1> void dispatchCommand(final BiConsumer<P, T1> action, final T1 routable1) {\n routingFor(routable1)\n .routees()\n .forEach(routee -> routee.receiveCommand(action, routable1));\n }", "role": "assis...
[ { "content": "Helper to return the first item in the iterator or null.\n\n@return T the first item or null.", "role": "user" }, { "content": "@Nullable\n public ResultT first() {\n final CoreRemoteMongoCursor<ResultT> cursor = iterator();\n if (!cursor.hasNext()) {\n return null;\n }\...
[ { "content": "Maps this iterable from the source document type to the target document type.\n\n@param mapper a function that maps from the source to the target document type\n@param <U> the target document type\n@return an iterable which maps T to U", "role": "user" }, { "content": "public <U> CoreR...
[ { "content": "Iterates over all the documents, adding each to the given target.\n\n@param target the collection to insert into\n@param <A> the collection type\n@return the target", "role": "user" }, { "content": "public <A extends Collection<? super ResultT>> A into(final A target) {\n forEach(ne...
[ { "content": "Create a new AwsServiceClient instance with a different codec registry.\n\n@param codecRegistry the new {@link CodecRegistry} for the client.\n@return a new AwsServiceClient instance with the different codec registry", "role": "user" }, { "content": "public AwsServiceClient withCodecRe...
[ { "content": "Calls the specified Stitch function.\n\n@param name the name of the Stitch function to call.\n@param args the arguments to pass to the Stitch function.\n@param requestTimeout the number of milliseconds the client should wait for a response from the\nserver before failing with an error.", "role...