id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
117,100 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/color/BasicColorPicker.java | BasicColorPicker.setColor | @Override
public void setColor (Color newColor) {
if (allowAlphaEdit == false) newColor.a = 1;
//this method overrides setColor in Actor, not big deal we definitely don't need it
setColor(newColor, true);
} | java | @Override
public void setColor (Color newColor) {
if (allowAlphaEdit == false) newColor.a = 1;
//this method overrides setColor in Actor, not big deal we definitely don't need it
setColor(newColor, true);
} | [
"@",
"Override",
"public",
"void",
"setColor",
"(",
"Color",
"newColor",
")",
"{",
"if",
"(",
"allowAlphaEdit",
"==",
"false",
")",
"newColor",
".",
"a",
"=",
"1",
";",
"//this method overrides setColor in Actor, not big deal we definitely don't need it",
"setColor",
... | Sets current selected color in picker. | [
"Sets",
"current",
"selected",
"color",
"in",
"picker",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/color/BasicColorPicker.java#L242-L247 |
117,101 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/Tooltip.java | Tooltip.removeTooltip | public static void removeTooltip (Actor target) {
Array<EventListener> listeners = target.getListeners();
for (EventListener listener : listeners) {
if (listener instanceof TooltipInputListener) target.removeListener(listener);
}
} | java | public static void removeTooltip (Actor target) {
Array<EventListener> listeners = target.getListeners();
for (EventListener listener : listeners) {
if (listener instanceof TooltipInputListener) target.removeListener(listener);
}
} | [
"public",
"static",
"void",
"removeTooltip",
"(",
"Actor",
"target",
")",
"{",
"Array",
"<",
"EventListener",
">",
"listeners",
"=",
"target",
".",
"getListeners",
"(",
")",
";",
"for",
"(",
"EventListener",
"listener",
":",
"listeners",
")",
"{",
"if",
"(... | Remove any attached tooltip from target actor
@param target that tooltips will be removed | [
"Remove",
"any",
"attached",
"tooltip",
"from",
"target",
"actor"
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/Tooltip.java#L95-L100 |
117,102 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/Tooltip.java | Tooltip.setText | public void setText (String text) {
if (content instanceof VisLabel) {
((VisLabel) content).setText(text);
} else {
setContent(new VisLabel(text));
}
pack();
} | java | public void setText (String text) {
if (content instanceof VisLabel) {
((VisLabel) content).setText(text);
} else {
setContent(new VisLabel(text));
}
pack();
} | [
"public",
"void",
"setText",
"(",
"String",
"text",
")",
"{",
"if",
"(",
"content",
"instanceof",
"VisLabel",
")",
"{",
"(",
"(",
"VisLabel",
")",
"content",
")",
".",
"setText",
"(",
"text",
")",
";",
"}",
"else",
"{",
"setContent",
"(",
"new",
"Vis... | Changes text tooltip to specified text. If tooltip content is not instance of VisLabel then previous tooltip content
will be replaced by VisLabel instance.
@param text next tooltip text | [
"Changes",
"text",
"tooltip",
"to",
"specified",
"text",
".",
"If",
"tooltip",
"content",
"is",
"not",
"instance",
"of",
"VisLabel",
"then",
"previous",
"tooltip",
"content",
"will",
"be",
"replaced",
"by",
"VisLabel",
"instance",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/Tooltip.java#L206-L213 |
117,103 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/MultiSplitPane.java | MultiSplitPane.setWidgets | public void setWidgets (Iterable<Actor> actors) {
clearChildren();
widgetBounds.clear();
scissors.clear();
handleBounds.clear();
splits.clear();
for (Actor actor : actors) {
super.addActor(actor);
widgetBounds.add(new Rectangle());
scissors.add(new Rectangle());
}
float currentSplit = 0;
flo... | java | public void setWidgets (Iterable<Actor> actors) {
clearChildren();
widgetBounds.clear();
scissors.clear();
handleBounds.clear();
splits.clear();
for (Actor actor : actors) {
super.addActor(actor);
widgetBounds.add(new Rectangle());
scissors.add(new Rectangle());
}
float currentSplit = 0;
flo... | [
"public",
"void",
"setWidgets",
"(",
"Iterable",
"<",
"Actor",
">",
"actors",
")",
"{",
"clearChildren",
"(",
")",
";",
"widgetBounds",
".",
"clear",
"(",
")",
";",
"scissors",
".",
"clear",
"(",
")",
";",
"handleBounds",
".",
"clear",
"(",
")",
";",
... | Changes widgets of this split pane. You can pass any number of actors even 1 or 0. Actors can't be null. | [
"Changes",
"widgets",
"of",
"this",
"split",
"pane",
".",
"You",
"can",
"pass",
"any",
"number",
"of",
"actors",
"even",
"1",
"or",
"0",
".",
"Actors",
"can",
"t",
"be",
"null",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/MultiSplitPane.java#L328-L348 |
117,104 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/util/ToastManager.java | ToastManager.show | public void show (String text, float timeSec) {
VisTable table = new VisTable();
table.add(text).grow();
show(table, timeSec);
} | java | public void show (String text, float timeSec) {
VisTable table = new VisTable();
table.add(text).grow();
show(table, timeSec);
} | [
"public",
"void",
"show",
"(",
"String",
"text",
",",
"float",
"timeSec",
")",
"{",
"VisTable",
"table",
"=",
"new",
"VisTable",
"(",
")",
";",
"table",
".",
"add",
"(",
"text",
")",
".",
"grow",
"(",
")",
";",
"show",
"(",
"table",
",",
"timeSec",... | Displays basic toast with provided text as message. Toast will be displayed for given amount of seconds. | [
"Displays",
"basic",
"toast",
"with",
"provided",
"text",
"as",
"message",
".",
"Toast",
"will",
"be",
"displayed",
"for",
"given",
"amount",
"of",
"seconds",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/util/ToastManager.java#L81-L85 |
117,105 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/util/ToastManager.java | ToastManager.show | public void show (final Toast toast, float timeSec) {
Table toastMainTable = toast.getMainTable();
if (toastMainTable.getStage() != null) {
remove(toast);
}
toasts.add(toast);
toast.setToastManager(this);
toast.fadeIn();
toastMainTable.pack();
root.addActor(toastMainTable);
updateToastsPositions(... | java | public void show (final Toast toast, float timeSec) {
Table toastMainTable = toast.getMainTable();
if (toastMainTable.getStage() != null) {
remove(toast);
}
toasts.add(toast);
toast.setToastManager(this);
toast.fadeIn();
toastMainTable.pack();
root.addActor(toastMainTable);
updateToastsPositions(... | [
"public",
"void",
"show",
"(",
"final",
"Toast",
"toast",
",",
"float",
"timeSec",
")",
"{",
"Table",
"toastMainTable",
"=",
"toast",
".",
"getMainTable",
"(",
")",
";",
"if",
"(",
"toastMainTable",
".",
"getStage",
"(",
")",
"!=",
"null",
")",
"{",
"r... | Displays toast. Toast will be displayed for given amount of seconds. | [
"Displays",
"toast",
".",
"Toast",
"will",
"be",
"displayed",
"for",
"given",
"amount",
"of",
"seconds",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/util/ToastManager.java#L126-L151 |
117,106 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/util/ToastManager.java | ToastManager.remove | public boolean remove (Toast toast) {
boolean removed = toasts.removeValue(toast, true);
if (removed) {
toast.getMainTable().remove();
Timer.Task timerTask = timersTasks.remove(toast);
if (timerTask != null) timerTask.cancel();
updateToastsPositions();
}
return removed;
} | java | public boolean remove (Toast toast) {
boolean removed = toasts.removeValue(toast, true);
if (removed) {
toast.getMainTable().remove();
Timer.Task timerTask = timersTasks.remove(toast);
if (timerTask != null) timerTask.cancel();
updateToastsPositions();
}
return removed;
} | [
"public",
"boolean",
"remove",
"(",
"Toast",
"toast",
")",
"{",
"boolean",
"removed",
"=",
"toasts",
".",
"removeValue",
"(",
"toast",
",",
"true",
")",
";",
"if",
"(",
"removed",
")",
"{",
"toast",
".",
"getMainTable",
"(",
")",
".",
"remove",
"(",
... | Removes toast from screen.
@return true when toast was removed, false otherwise | [
"Removes",
"toast",
"from",
"screen",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/util/ToastManager.java#L162-L171 |
117,107 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/util/CursorManager.java | CursorManager.restoreDefaultCursor | public static void restoreDefaultCursor () {
if (systemCursorAsDefault) {
Gdx.graphics.setSystemCursor(defaultSystemCursor);
} else {
Gdx.graphics.setCursor(defaultCursor);
}
} | java | public static void restoreDefaultCursor () {
if (systemCursorAsDefault) {
Gdx.graphics.setSystemCursor(defaultSystemCursor);
} else {
Gdx.graphics.setCursor(defaultCursor);
}
} | [
"public",
"static",
"void",
"restoreDefaultCursor",
"(",
")",
"{",
"if",
"(",
"systemCursorAsDefault",
")",
"{",
"Gdx",
".",
"graphics",
".",
"setSystemCursor",
"(",
"defaultSystemCursor",
")",
";",
"}",
"else",
"{",
"Gdx",
".",
"graphics",
".",
"setCursor",
... | Restores currently used cursor to default one. | [
"Restores",
"currently",
"used",
"cursor",
"to",
"default",
"one",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/util/CursorManager.java#L54-L60 |
117,108 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/VisDialog.java | VisDialog.text | public VisDialog text (String text) {
if (skin == null)
throw new IllegalStateException("This method may only be used if the dialog was constructed with a Skin.");
return text(text, skin.get(LabelStyle.class));
} | java | public VisDialog text (String text) {
if (skin == null)
throw new IllegalStateException("This method may only be used if the dialog was constructed with a Skin.");
return text(text, skin.get(LabelStyle.class));
} | [
"public",
"VisDialog",
"text",
"(",
"String",
"text",
")",
"{",
"if",
"(",
"skin",
"==",
"null",
")",
"throw",
"new",
"IllegalStateException",
"(",
"\"This method may only be used if the dialog was constructed with a Skin.\"",
")",
";",
"return",
"text",
"(",
"text",
... | Adds a label to the content table. The dialog must have been constructed with a skin to use this method. | [
"Adds",
"a",
"label",
"to",
"the",
"content",
"table",
".",
"The",
"dialog",
"must",
"have",
"been",
"constructed",
"with",
"a",
"skin",
"to",
"use",
"this",
"method",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/VisDialog.java#L144-L148 |
117,109 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/VisDialog.java | VisDialog.text | public VisDialog text (String text, LabelStyle labelStyle) {
return text(new Label(text, labelStyle));
} | java | public VisDialog text (String text, LabelStyle labelStyle) {
return text(new Label(text, labelStyle));
} | [
"public",
"VisDialog",
"text",
"(",
"String",
"text",
",",
"LabelStyle",
"labelStyle",
")",
"{",
"return",
"text",
"(",
"new",
"Label",
"(",
"text",
",",
"labelStyle",
")",
")",
";",
"}"
] | Adds a label to the content table. | [
"Adds",
"a",
"label",
"to",
"the",
"content",
"table",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/VisDialog.java#L151-L153 |
117,110 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/VisDialog.java | VisDialog.button | public VisDialog button (String text, Object object) {
if (skin == null)
throw new IllegalStateException("This method may only be used if the dialog was constructed with a Skin.");
return button(text, object, skin.get(VisTextButtonStyle.class));
} | java | public VisDialog button (String text, Object object) {
if (skin == null)
throw new IllegalStateException("This method may only be used if the dialog was constructed with a Skin.");
return button(text, object, skin.get(VisTextButtonStyle.class));
} | [
"public",
"VisDialog",
"button",
"(",
"String",
"text",
",",
"Object",
"object",
")",
"{",
"if",
"(",
"skin",
"==",
"null",
")",
"throw",
"new",
"IllegalStateException",
"(",
"\"This method may only be used if the dialog was constructed with a Skin.\"",
")",
";",
"ret... | Adds a text button to the button table. The dialog must have been constructed with a skin to use this method.
@param object The object that will be passed to {@link #result(Object)} if this button is clicked. May be null. | [
"Adds",
"a",
"text",
"button",
"to",
"the",
"button",
"table",
".",
"The",
"dialog",
"must",
"have",
"been",
"constructed",
"with",
"a",
"skin",
"to",
"use",
"this",
"method",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/VisDialog.java#L173-L177 |
117,111 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/VisDialog.java | VisDialog.button | public VisDialog button (String text, Object object, VisTextButtonStyle buttonStyle) {
return button(new VisTextButton(text, buttonStyle), object);
} | java | public VisDialog button (String text, Object object, VisTextButtonStyle buttonStyle) {
return button(new VisTextButton(text, buttonStyle), object);
} | [
"public",
"VisDialog",
"button",
"(",
"String",
"text",
",",
"Object",
"object",
",",
"VisTextButtonStyle",
"buttonStyle",
")",
"{",
"return",
"button",
"(",
"new",
"VisTextButton",
"(",
"text",
",",
"buttonStyle",
")",
",",
"object",
")",
";",
"}"
] | Adds a text button to the button table.
@param object The object that will be passed to {@link #result(Object)} if this button is clicked. May be null. | [
"Adds",
"a",
"text",
"button",
"to",
"the",
"button",
"table",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/VisDialog.java#L183-L185 |
117,112 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/VisDialog.java | VisDialog.button | public VisDialog button (Button button, Object object) {
buttonTable.add(button);
setObject(button, object);
return this;
} | java | public VisDialog button (Button button, Object object) {
buttonTable.add(button);
setObject(button, object);
return this;
} | [
"public",
"VisDialog",
"button",
"(",
"Button",
"button",
",",
"Object",
"object",
")",
"{",
"buttonTable",
".",
"add",
"(",
"button",
")",
";",
"setObject",
"(",
"button",
",",
"object",
")",
";",
"return",
"this",
";",
"}"
] | Adds the given button to the button table.
@param object The object that will be passed to {@link #result(Object)} if this button is clicked. May be null. | [
"Adds",
"the",
"given",
"button",
"to",
"the",
"button",
"table",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/VisDialog.java#L196-L200 |
117,113 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/VisDialog.java | VisDialog.hide | public void hide (Action action) {
Stage stage = getStage();
if (stage != null) {
removeListener(focusListener);
if (previousKeyboardFocus != null && previousKeyboardFocus.getStage() == null) previousKeyboardFocus = null;
Actor actor = stage.getKeyboardFocus();
if (actor == null || actor.isDescendantOf(... | java | public void hide (Action action) {
Stage stage = getStage();
if (stage != null) {
removeListener(focusListener);
if (previousKeyboardFocus != null && previousKeyboardFocus.getStage() == null) previousKeyboardFocus = null;
Actor actor = stage.getKeyboardFocus();
if (actor == null || actor.isDescendantOf(... | [
"public",
"void",
"hide",
"(",
"Action",
"action",
")",
"{",
"Stage",
"stage",
"=",
"getStage",
"(",
")",
";",
"if",
"(",
"stage",
"!=",
"null",
")",
"{",
"removeListener",
"(",
"focusListener",
")",
";",
"if",
"(",
"previousKeyboardFocus",
"!=",
"null",... | Hides the dialog with the given action and then removes it from the stage. | [
"Hides",
"the",
"dialog",
"with",
"the",
"given",
"action",
"and",
"then",
"removes",
"it",
"from",
"the",
"stage",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/VisDialog.java#L232-L249 |
117,114 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/VisDialog.java | VisDialog.hide | public void hide () {
hide(sequence(Actions.fadeOut(FADE_TIME, Interpolation.fade), Actions.removeListener(ignoreTouchDown, true),
Actions.removeActor()));
} | java | public void hide () {
hide(sequence(Actions.fadeOut(FADE_TIME, Interpolation.fade), Actions.removeListener(ignoreTouchDown, true),
Actions.removeActor()));
} | [
"public",
"void",
"hide",
"(",
")",
"{",
"hide",
"(",
"sequence",
"(",
"Actions",
".",
"fadeOut",
"(",
"FADE_TIME",
",",
"Interpolation",
".",
"fade",
")",
",",
"Actions",
".",
"removeListener",
"(",
"ignoreTouchDown",
",",
"true",
")",
",",
"Actions",
"... | Hides the dialog. Called automatically when a button is clicked. The default implementation fades out the dialog over 400
milliseconds and then removes it from the stage. | [
"Hides",
"the",
"dialog",
".",
"Called",
"automatically",
"when",
"a",
"button",
"is",
"clicked",
".",
"The",
"default",
"implementation",
"fades",
"out",
"the",
"dialog",
"over",
"400",
"milliseconds",
"and",
"then",
"removes",
"it",
"from",
"the",
"stage",
... | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/VisDialog.java#L255-L258 |
117,115 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/util/async/AsyncTask.java | AsyncTask.executeOnGdx | protected void executeOnGdx (final Runnable runnable) {
final CountDownLatch latch = new CountDownLatch(1);
final AtomicReference<Exception> exceptionAt = new AtomicReference<Exception>();
Gdx.app.postRunnable(new Runnable() {
@Override
public void run () {
try {
runnable.run();
} catch (Exce... | java | protected void executeOnGdx (final Runnable runnable) {
final CountDownLatch latch = new CountDownLatch(1);
final AtomicReference<Exception> exceptionAt = new AtomicReference<Exception>();
Gdx.app.postRunnable(new Runnable() {
@Override
public void run () {
try {
runnable.run();
} catch (Exce... | [
"protected",
"void",
"executeOnGdx",
"(",
"final",
"Runnable",
"runnable",
")",
"{",
"final",
"CountDownLatch",
"latch",
"=",
"new",
"CountDownLatch",
"(",
"1",
")",
";",
"final",
"AtomicReference",
"<",
"Exception",
">",
"exceptionAt",
"=",
"new",
"AtomicRefere... | Executes runnable on main GDX thread. This methods blocks until runnable has finished executing. Note that this
runnable will also block main render thread. | [
"Executes",
"runnable",
"on",
"main",
"GDX",
"thread",
".",
"This",
"methods",
"blocks",
"until",
"runnable",
"has",
"finished",
"executing",
".",
"Note",
"that",
"this",
"runnable",
"will",
"also",
"block",
"main",
"render",
"thread",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/util/async/AsyncTask.java#L125-L153 |
117,116 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/spinner/SimpleFloatSpinnerModel.java | SimpleFloatSpinnerModel.setMin | public void setMin (float min) {
if (min > max) throw new IllegalArgumentException("min can't be > max");
this.min = min;
if (min >= 0) {
textFieldFilter.setAcceptNegativeValues(false);
} else {
textFieldFilter.setAcceptNegativeValues(true);
}
if (current < min) {
current = min;
spinner.notif... | java | public void setMin (float min) {
if (min > max) throw new IllegalArgumentException("min can't be > max");
this.min = min;
if (min >= 0) {
textFieldFilter.setAcceptNegativeValues(false);
} else {
textFieldFilter.setAcceptNegativeValues(true);
}
if (current < min) {
current = min;
spinner.notif... | [
"public",
"void",
"setMin",
"(",
"float",
"min",
")",
"{",
"if",
"(",
"min",
">",
"max",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"min can't be > max\"",
")",
";",
"this",
".",
"min",
"=",
"min",
";",
"if",
"(",
"min",
">=",
"0",
")",
... | Sets min value, if current is lesser than min, the current value is set to min value | [
"Sets",
"min",
"value",
"if",
"current",
"is",
"lesser",
"than",
"min",
"the",
"current",
"value",
"is",
"set",
"to",
"min",
"value"
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/spinner/SimpleFloatSpinnerModel.java#L202-L217 |
117,117 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/spinner/ArraySpinnerModel.java | ArraySpinnerModel.invalidateDataSet | public void invalidateDataSet () {
updateCurrentItem(MathUtils.clamp(currentIndex, 0, items.size - 1));
spinner.notifyValueChanged(true);
} | java | public void invalidateDataSet () {
updateCurrentItem(MathUtils.clamp(currentIndex, 0, items.size - 1));
spinner.notifyValueChanged(true);
} | [
"public",
"void",
"invalidateDataSet",
"(",
")",
"{",
"updateCurrentItem",
"(",
"MathUtils",
".",
"clamp",
"(",
"currentIndex",
",",
"0",
",",
"items",
".",
"size",
"-",
"1",
")",
")",
";",
"spinner",
".",
"notifyValueChanged",
"(",
"true",
")",
";",
"}"... | Notifies model that items has changed and view must be refreshed. This will trigger a change event. | [
"Notifies",
"model",
"that",
"items",
"has",
"changed",
"and",
"view",
"must",
"be",
"refreshed",
".",
"This",
"will",
"trigger",
"a",
"change",
"event",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/spinner/ArraySpinnerModel.java#L132-L135 |
117,118 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/spinner/ArraySpinnerModel.java | ArraySpinnerModel.setItems | public void setItems (Array<T> newItems) {
items.clear();
items.addAll(newItems);
currentIndex = 0;
invalidateDataSet();
} | java | public void setItems (Array<T> newItems) {
items.clear();
items.addAll(newItems);
currentIndex = 0;
invalidateDataSet();
} | [
"public",
"void",
"setItems",
"(",
"Array",
"<",
"T",
">",
"newItems",
")",
"{",
"items",
".",
"clear",
"(",
")",
";",
"items",
".",
"addAll",
"(",
"newItems",
")",
";",
"currentIndex",
"=",
"0",
";",
"invalidateDataSet",
"(",
")",
";",
"}"
] | Changes items of this model. Current index is not preserved. This will trigger a change event. | [
"Changes",
"items",
"of",
"this",
"model",
".",
"Current",
"index",
"is",
"not",
"preserved",
".",
"This",
"will",
"trigger",
"a",
"change",
"event",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/spinner/ArraySpinnerModel.java#L143-L148 |
117,119 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/file/FileUtils.java | FileUtils.isValidFileName | public static boolean isValidFileName (String name) {
try {
if (OsUtils.isWindows()) {
if (name.contains(">") || name.contains("<")) return false;
name = name.toLowerCase(); //Windows is case insensitive
}
return new File(name).getCanonicalFile().getName().equals(name);
} catch (Exception e) {
r... | java | public static boolean isValidFileName (String name) {
try {
if (OsUtils.isWindows()) {
if (name.contains(">") || name.contains("<")) return false;
name = name.toLowerCase(); //Windows is case insensitive
}
return new File(name).getCanonicalFile().getName().equals(name);
} catch (Exception e) {
r... | [
"public",
"static",
"boolean",
"isValidFileName",
"(",
"String",
"name",
")",
"{",
"try",
"{",
"if",
"(",
"OsUtils",
".",
"isWindows",
"(",
")",
")",
"{",
"if",
"(",
"name",
".",
"contains",
"(",
"\">\"",
")",
"||",
"name",
".",
"contains",
"(",
"\"<... | Checks whether given name is valid for current user OS.
@param name that will be checked
@return true if name is valid, false otherwise | [
"Checks",
"whether",
"given",
"name",
"is",
"valid",
"for",
"current",
"user",
"OS",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/file/FileUtils.java#L140-L150 |
117,120 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/file/FileUtils.java | FileUtils.showDirInExplorer | @SuppressWarnings("unchecked")
public static void showDirInExplorer (FileHandle dir) throws IOException {
File dirToShow;
if (dir.isDirectory()) {
dirToShow = dir.file();
} else {
dirToShow = dir.parent().file();
}
if (OsUtils.isMac()) {
FileManager.revealInFinder(dirToShow);
} else {
try {
... | java | @SuppressWarnings("unchecked")
public static void showDirInExplorer (FileHandle dir) throws IOException {
File dirToShow;
if (dir.isDirectory()) {
dirToShow = dir.file();
} else {
dirToShow = dir.parent().file();
}
if (OsUtils.isMac()) {
FileManager.revealInFinder(dirToShow);
} else {
try {
... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"void",
"showDirInExplorer",
"(",
"FileHandle",
"dir",
")",
"throws",
"IOException",
"{",
"File",
"dirToShow",
";",
"if",
"(",
"dir",
".",
"isDirectory",
"(",
")",
")",
"{",
"dirToShow",
... | Shows given directory in system explorer window. | [
"Shows",
"given",
"directory",
"in",
"system",
"explorer",
"window",
"."
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/file/FileUtils.java#L158-L181 |
117,121 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/PopupMenu.java | PopupMenu.getDefaultInputListener | public InputListener getDefaultInputListener (final int mouseButton) {
if (defaultInputListener == null) {
defaultInputListener = new InputListener() {
@Override
public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
return true;
}
@Override
public void t... | java | public InputListener getDefaultInputListener (final int mouseButton) {
if (defaultInputListener == null) {
defaultInputListener = new InputListener() {
@Override
public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
return true;
}
@Override
public void t... | [
"public",
"InputListener",
"getDefaultInputListener",
"(",
"final",
"int",
"mouseButton",
")",
"{",
"if",
"(",
"defaultInputListener",
"==",
"null",
")",
"{",
"defaultInputListener",
"=",
"new",
"InputListener",
"(",
")",
"{",
"@",
"Override",
"public",
"boolean",... | Returns input listener that can be added to scene2d actor. When mouse button is pressed on that actor,
menu will be displayed
@param mouseButton from {@link Buttons} | [
"Returns",
"input",
"listener",
"that",
"can",
"be",
"added",
"to",
"scene2d",
"actor",
".",
"When",
"mouse",
"button",
"is",
"pressed",
"on",
"that",
"actor",
"menu",
"will",
"be",
"displayed"
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/PopupMenu.java#L258-L275 |
117,122 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/PopupMenu.java | PopupMenu.showMenu | public void showMenu (Stage stage, float x, float y) {
setPosition(x, y - getHeight());
if (stage.getHeight() - getY() > stage.getHeight()) setY(getY() + getHeight());
ActorUtils.keepWithinStage(stage, this);
stage.addActor(this);
} | java | public void showMenu (Stage stage, float x, float y) {
setPosition(x, y - getHeight());
if (stage.getHeight() - getY() > stage.getHeight()) setY(getY() + getHeight());
ActorUtils.keepWithinStage(stage, this);
stage.addActor(this);
} | [
"public",
"void",
"showMenu",
"(",
"Stage",
"stage",
",",
"float",
"x",
",",
"float",
"y",
")",
"{",
"setPosition",
"(",
"x",
",",
"y",
"-",
"getHeight",
"(",
")",
")",
";",
"if",
"(",
"stage",
".",
"getHeight",
"(",
")",
"-",
"getY",
"(",
")",
... | Shows menu as given stage coordinates
@param stage stage instance that this menu is being added to
@param x stage x position
@param y stage y position | [
"Shows",
"menu",
"as",
"given",
"stage",
"coordinates"
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/PopupMenu.java#L289-L294 |
117,123 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/PopupMenu.java | PopupMenu.setActiveSubMenu | void setActiveSubMenu (PopupMenu newSubMenu) {
if (activeSubMenu == newSubMenu) return;
if (activeSubMenu != null) activeSubMenu.remove();
activeSubMenu = newSubMenu;
if (newSubMenu != null) {
newSubMenu.setParentMenu(this);
}
} | java | void setActiveSubMenu (PopupMenu newSubMenu) {
if (activeSubMenu == newSubMenu) return;
if (activeSubMenu != null) activeSubMenu.remove();
activeSubMenu = newSubMenu;
if (newSubMenu != null) {
newSubMenu.setParentMenu(this);
}
} | [
"void",
"setActiveSubMenu",
"(",
"PopupMenu",
"newSubMenu",
")",
"{",
"if",
"(",
"activeSubMenu",
"==",
"newSubMenu",
")",
"return",
";",
"if",
"(",
"activeSubMenu",
"!=",
"null",
")",
"activeSubMenu",
".",
"remove",
"(",
")",
";",
"activeSubMenu",
"=",
"new... | Called by framework, when PopupMenu is added to MenuItem as submenu | [
"Called",
"by",
"framework",
"when",
"PopupMenu",
"is",
"added",
"to",
"MenuItem",
"as",
"submenu"
] | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/PopupMenu.java#L317-L324 |
117,124 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/ScrollableTextArea.java | ScrollableTextArea.createCompatibleScrollPane | public ScrollPane createCompatibleScrollPane () {
VisScrollPane scrollPane = new VisScrollPane(this);
scrollPane.setOverscroll(false, false);
scrollPane.setFlickScroll(false);
scrollPane.setFadeScrollBars(false);
scrollPane.setScrollbarsOnTop(true);
scrollPane.setScrollingDisabled(true, false);
return scr... | java | public ScrollPane createCompatibleScrollPane () {
VisScrollPane scrollPane = new VisScrollPane(this);
scrollPane.setOverscroll(false, false);
scrollPane.setFlickScroll(false);
scrollPane.setFadeScrollBars(false);
scrollPane.setScrollbarsOnTop(true);
scrollPane.setScrollingDisabled(true, false);
return scr... | [
"public",
"ScrollPane",
"createCompatibleScrollPane",
"(",
")",
"{",
"VisScrollPane",
"scrollPane",
"=",
"new",
"VisScrollPane",
"(",
"this",
")",
";",
"scrollPane",
".",
"setOverscroll",
"(",
"false",
",",
"false",
")",
";",
"scrollPane",
".",
"setFlickScroll",
... | Creates scroll pane for this scrolling text area with best possible default settings. Note that text area
can belong to only one scroll pane, calling this multiple times will break previously created scroll pane.
The scroll pane should be embedded in container with fixed size or optionally grow property.
@return newly ... | [
"Creates",
"scroll",
"pane",
"for",
"this",
"scrolling",
"text",
"area",
"with",
"best",
"possible",
"default",
"settings",
".",
"Note",
"that",
"text",
"area",
"can",
"belong",
"to",
"only",
"one",
"scroll",
"pane",
"calling",
"this",
"multiple",
"times",
"... | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/ScrollableTextArea.java#L89-L97 |
117,125 | kotcrab/vis-ui | ui/src/main/java/com/kotcrab/vis/ui/widget/VisValidatableTextField.java | VisValidatableTextField.setRestoreLastValid | public void setRestoreLastValid (boolean restoreLastValid) {
if (hasSelection)
throw new IllegalStateException("Last valid text restore can't be changed while filed has selection");
this.restoreLastValid = restoreLastValid;
if (restoreLastValid) {
if (restoreFocusListener == null) restoreFocusListener = n... | java | public void setRestoreLastValid (boolean restoreLastValid) {
if (hasSelection)
throw new IllegalStateException("Last valid text restore can't be changed while filed has selection");
this.restoreLastValid = restoreLastValid;
if (restoreLastValid) {
if (restoreFocusListener == null) restoreFocusListener = n... | [
"public",
"void",
"setRestoreLastValid",
"(",
"boolean",
"restoreLastValid",
")",
"{",
"if",
"(",
"hasSelection",
")",
"throw",
"new",
"IllegalStateException",
"(",
"\"Last valid text restore can't be changed while filed has selection\"",
")",
";",
"this",
".",
"restoreLast... | If true this field will automatically restore last valid text if it loses keyboard focus during text edition.
This can't be called while field is selected, doing so will result in IllegalStateException. Default is false. | [
"If",
"true",
"this",
"field",
"will",
"automatically",
"restore",
"last",
"valid",
"text",
"if",
"it",
"loses",
"keyboard",
"focus",
"during",
"text",
"edition",
".",
"This",
"can",
"t",
"be",
"called",
"while",
"field",
"is",
"selected",
"doing",
"so",
"... | 3b68f82d94ae32bffa2a3399c63f432e0f4908e0 | https://github.com/kotcrab/vis-ui/blob/3b68f82d94ae32bffa2a3399c63f432e0f4908e0/ui/src/main/java/com/kotcrab/vis/ui/widget/VisValidatableTextField.java#L150-L162 |
117,126 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/stream/CallerLoggerUtil.java | CallerLoggerUtil.getName | public static String getName(String name, int level) {
level++;
String fullName;
if (name == null)
fullName = getCallerClassName(level);
else if (name.contains("."))
fullName = name;
else
fullName = getCallerClassName(level) + "." + name;
return fullName;
} | java | public static String getName(String name, int level) {
level++;
String fullName;
if (name == null)
fullName = getCallerClassName(level);
else if (name.contains("."))
fullName = name;
else
fullName = getCallerClassName(level) + "." + name;
return fullName;
} | [
"public",
"static",
"String",
"getName",
"(",
"String",
"name",
",",
"int",
"level",
")",
"{",
"level",
"++",
";",
"String",
"fullName",
";",
"if",
"(",
"name",
"==",
"null",
")",
"fullName",
"=",
"getCallerClassName",
"(",
"level",
")",
";",
"else",
"... | Returns full name for the caller class' logger.
@param name name of the logger. In case of full name (it contains dots) same value is just returned.
In case of short names (no dots) the given name is prefixed by caller's class name and a dot.
In case of <code>null</code> the caller's class name is just returned.
@para... | [
"Returns",
"full",
"name",
"for",
"the",
"caller",
"class",
"logger",
"."
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/stream/CallerLoggerUtil.java#L48-L58 |
117,127 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/listener/CompositeProcessListener.java | CompositeProcessListener.removeAll | public void removeAll(Class<? extends ProcessListener> type) {
for (Iterator<ProcessListener> it = children.iterator(); it.hasNext();) {
if (type.isInstance(it.next()))
it.remove();
}
} | java | public void removeAll(Class<? extends ProcessListener> type) {
for (Iterator<ProcessListener> it = children.iterator(); it.hasNext();) {
if (type.isInstance(it.next()))
it.remove();
}
} | [
"public",
"void",
"removeAll",
"(",
"Class",
"<",
"?",
"extends",
"ProcessListener",
">",
"type",
")",
"{",
"for",
"(",
"Iterator",
"<",
"ProcessListener",
">",
"it",
"=",
"children",
".",
"iterator",
"(",
")",
";",
"it",
".",
"hasNext",
"(",
")",
";",... | Remove existing listeners of given type or its sub-types.
@param type listener type. | [
"Remove",
"existing",
"listeners",
"of",
"given",
"type",
"or",
"its",
"sub",
"-",
"types",
"."
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/listener/CompositeProcessListener.java#L68-L73 |
117,128 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/stream/LogOutputStream.java | LogOutputStream.write | public void write(final int cc) throws IOException {
final byte c = (byte) cc;
if ((c == '\n') || (c == '\r')) {
// new line is started in case of
// - CR (regardless of previous character)
// - LF if previous character was not CR and not LF
if (c == '\r' || (c == '\n' && (lastReceivedBy... | java | public void write(final int cc) throws IOException {
final byte c = (byte) cc;
if ((c == '\n') || (c == '\r')) {
// new line is started in case of
// - CR (regardless of previous character)
// - LF if previous character was not CR and not LF
if (c == '\r' || (c == '\n' && (lastReceivedBy... | [
"public",
"void",
"write",
"(",
"final",
"int",
"cc",
")",
"throws",
"IOException",
"{",
"final",
"byte",
"c",
"=",
"(",
"byte",
")",
"cc",
";",
"if",
"(",
"(",
"c",
"==",
"'",
"'",
")",
"||",
"(",
"c",
"==",
"'",
"'",
")",
")",
"{",
"// new ... | Write the data to the buffer and flush the buffer, if a line separator is
detected.
@param cc data to log (byte).
@see java.io.OutputStream#write(int) | [
"Write",
"the",
"data",
"to",
"the",
"buffer",
"and",
"flush",
"the",
"buffer",
"if",
"a",
"line",
"separator",
"is",
"detected",
"."
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/stream/LogOutputStream.java#L54-L67 |
117,129 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/stream/LogOutputStream.java | LogOutputStream.write | public void write(final byte[] b, final int off, final int len)
throws IOException {
// find the line breaks and pass other chars through in blocks
int offset = off;
int blockStartOffset = offset;
int remaining = len;
while (remaining > 0) {
while (remaining > 0 && b[offset] != LF && b[o... | java | public void write(final byte[] b, final int off, final int len)
throws IOException {
// find the line breaks and pass other chars through in blocks
int offset = off;
int blockStartOffset = offset;
int remaining = len;
while (remaining > 0) {
while (remaining > 0 && b[offset] != LF && b[o... | [
"public",
"void",
"write",
"(",
"final",
"byte",
"[",
"]",
"b",
",",
"final",
"int",
"off",
",",
"final",
"int",
"len",
")",
"throws",
"IOException",
"{",
"// find the line breaks and pass other chars through in blocks",
"int",
"offset",
"=",
"off",
";",
"int",
... | Write a block of characters to the output stream
@param b the array containing the data
@param off the offset into the array where data starts
@param len the length of block
@throws java.io.IOException if the data cannot be written into the stream.
@see java.io.OutputStream#write(byte[], int, int) | [
"Write",
"a",
"block",
"of",
"characters",
"to",
"the",
"output",
"stream"
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/stream/LogOutputStream.java#L101-L125 |
117,130 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/close/ExceptionUtil.java | ExceptionUtil.addSuppressed | public static void addSuppressed(Throwable t, Throwable suppressed) {
if (METHOD_ADD_SUPPRESSED != null) {
try {
METHOD_ADD_SUPPRESSED.invoke(t, suppressed);
}
catch (Exception e) {
throw new IllegalStateException("Could not add suppressed exception:", e);
}
}
} | java | public static void addSuppressed(Throwable t, Throwable suppressed) {
if (METHOD_ADD_SUPPRESSED != null) {
try {
METHOD_ADD_SUPPRESSED.invoke(t, suppressed);
}
catch (Exception e) {
throw new IllegalStateException("Could not add suppressed exception:", e);
}
}
} | [
"public",
"static",
"void",
"addSuppressed",
"(",
"Throwable",
"t",
",",
"Throwable",
"suppressed",
")",
"{",
"if",
"(",
"METHOD_ADD_SUPPRESSED",
"!=",
"null",
")",
"{",
"try",
"{",
"METHOD_ADD_SUPPRESSED",
".",
"invoke",
"(",
"t",
",",
"suppressed",
")",
";... | If supported. appends the specified exception to the exceptions that were suppressed in order to deliver this exception. | [
"If",
"supported",
".",
"appends",
"the",
"specified",
"exception",
"to",
"the",
"exceptions",
"that",
"were",
"suppressed",
"in",
"order",
"to",
"deliver",
"this",
"exception",
"."
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/close/ExceptionUtil.java#L25-L34 |
117,131 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/close/StandardProcessCloser.java | StandardProcessCloser.closeStreams | private void closeStreams(final Process process) throws IOException {
IOException caught = null;
try {
process.getOutputStream().close();
}
catch (IOException e) {
if (e.getMessage().equals("Stream closed")) {
/**
* OutputStream's contract for the close() method: If the str... | java | private void closeStreams(final Process process) throws IOException {
IOException caught = null;
try {
process.getOutputStream().close();
}
catch (IOException e) {
if (e.getMessage().equals("Stream closed")) {
/**
* OutputStream's contract for the close() method: If the str... | [
"private",
"void",
"closeStreams",
"(",
"final",
"Process",
"process",
")",
"throws",
"IOException",
"{",
"IOException",
"caught",
"=",
"null",
";",
"try",
"{",
"process",
".",
"getOutputStream",
"(",
")",
".",
"close",
"(",
")",
";",
"}",
"catch",
"(",
... | Close the streams belonging to the given Process. | [
"Close",
"the",
"streams",
"belonging",
"to",
"the",
"given",
"Process",
"."
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/close/StandardProcessCloser.java#L49-L95 |
117,132 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/ProcessExecutor.java | ProcessExecutor.environment | public ProcessExecutor environment(String name, String value) {
environment.put(name, value);
return this;
} | java | public ProcessExecutor environment(String name, String value) {
environment.put(name, value);
return this;
} | [
"public",
"ProcessExecutor",
"environment",
"(",
"String",
"name",
",",
"String",
"value",
")",
"{",
"environment",
".",
"put",
"(",
"name",
",",
"value",
")",
";",
"return",
"this",
";",
"}"
] | Adds a single additional environment variable for the process being executed.
@param name name of the environment variable added to the process being executed.
@param value value of the environment variable added to the process being executed.
@return This process executor.
@since 1.7 | [
"Adds",
"a",
"single",
"additional",
"environment",
"variable",
"for",
"the",
"process",
"being",
"executed",
"."
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/ProcessExecutor.java#L318-L321 |
117,133 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/ProcessExecutor.java | ProcessExecutor.exitValue | public ProcessExecutor exitValue(Integer exitValue) {
return exitValues(exitValue == null ? null : new Integer[] { exitValue } );
} | java | public ProcessExecutor exitValue(Integer exitValue) {
return exitValues(exitValue == null ? null : new Integer[] { exitValue } );
} | [
"public",
"ProcessExecutor",
"exitValue",
"(",
"Integer",
"exitValue",
")",
"{",
"return",
"exitValues",
"(",
"exitValue",
"==",
"null",
"?",
"null",
":",
"new",
"Integer",
"[",
"]",
"{",
"exitValue",
"}",
")",
";",
"}"
] | Sets the allowed exit value for the process being executed.
@param exitValue single exit value or <code>null</code> if all exit values are allowed.
@return This process executor. | [
"Sets",
"the",
"allowed",
"exit",
"value",
"for",
"the",
"process",
"being",
"executed",
"."
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/ProcessExecutor.java#L362-L364 |
117,134 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/ProcessExecutor.java | ProcessExecutor.redirectInput | public ProcessExecutor redirectInput(InputStream input) {
PumpStreamHandler pumps = pumps();
// Only set the input stream handler, preserve the same output and error stream handler
return streams(new PumpStreamHandler(pumps == null ? null : pumps.getOut(), pumps == null ? null : pumps.getErr(), input));
} | java | public ProcessExecutor redirectInput(InputStream input) {
PumpStreamHandler pumps = pumps();
// Only set the input stream handler, preserve the same output and error stream handler
return streams(new PumpStreamHandler(pumps == null ? null : pumps.getOut(), pumps == null ? null : pumps.getErr(), input));
} | [
"public",
"ProcessExecutor",
"redirectInput",
"(",
"InputStream",
"input",
")",
"{",
"PumpStreamHandler",
"pumps",
"=",
"pumps",
"(",
")",
";",
"// Only set the input stream handler, preserve the same output and error stream handler",
"return",
"streams",
"(",
"new",
"PumpStr... | Sets the input stream to redirect to the process' input stream.
If this method is invoked multiple times each call overwrites the previous.
@param input input stream that will be written to the process input stream (<code>null</code> means nothing will be written to the process input stream).
@return This process exec... | [
"Sets",
"the",
"input",
"stream",
"to",
"redirect",
"to",
"the",
"process",
"input",
"stream",
".",
"If",
"this",
"method",
"is",
"invoked",
"multiple",
"times",
"each",
"call",
"overwrites",
"the",
"previous",
"."
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/ProcessExecutor.java#L471-L475 |
117,135 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/ProcessExecutor.java | ProcessExecutor.redirectOutputAlsoTo | private static PumpStreamHandler redirectOutputAlsoTo(PumpStreamHandler pumps, OutputStream output) {
if (output == null)
throw new IllegalArgumentException("OutputStream must be provided.");
OutputStream current = pumps.getOut();
if (current != null && !(current instanceof NullOutputStream)) {
... | java | private static PumpStreamHandler redirectOutputAlsoTo(PumpStreamHandler pumps, OutputStream output) {
if (output == null)
throw new IllegalArgumentException("OutputStream must be provided.");
OutputStream current = pumps.getOut();
if (current != null && !(current instanceof NullOutputStream)) {
... | [
"private",
"static",
"PumpStreamHandler",
"redirectOutputAlsoTo",
"(",
"PumpStreamHandler",
"pumps",
",",
"OutputStream",
"output",
")",
"{",
"if",
"(",
"output",
"==",
"null",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"OutputStream must be provided.\"",
"... | Redirects the process' output stream also to a given output stream.
@return new stream handler created. | [
"Redirects",
"the",
"process",
"output",
"stream",
"also",
"to",
"a",
"given",
"output",
"stream",
"."
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/ProcessExecutor.java#L560-L568 |
117,136 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/ProcessExecutor.java | ProcessExecutor.startInternal | protected final WaitForProcess startInternal() throws IOException {
// Invoke listeners - they can modify this executor
listeners.beforeStart(this);
if (builder.command().isEmpty()) {
throw new IllegalStateException("Command has not been set.");
}
validateStreams(streams, readOutput);
ap... | java | protected final WaitForProcess startInternal() throws IOException {
// Invoke listeners - they can modify this executor
listeners.beforeStart(this);
if (builder.command().isEmpty()) {
throw new IllegalStateException("Command has not been set.");
}
validateStreams(streams, readOutput);
ap... | [
"protected",
"final",
"WaitForProcess",
"startInternal",
"(",
")",
"throws",
"IOException",
"{",
"// Invoke listeners - they can modify this executor",
"listeners",
".",
"beforeStart",
"(",
"this",
")",
";",
"if",
"(",
"builder",
".",
"command",
"(",
")",
".",
"isEm... | Start the process and its stream handlers.
@return process the started process.
@throws IOException the process or its stream handlers couldn't start (in the latter case we also destroy the process). | [
"Start",
"the",
"process",
"and",
"its",
"stream",
"handlers",
"."
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/ProcessExecutor.java#L978-L1001 |
117,137 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/ProcessExecutor.java | ProcessExecutor.getAttributes | private ProcessAttributes getAttributes() {
return new ProcessAttributes(
getCommand(),
getDirectory(),
new LinkedHashMap<String, String>(environment),
allowedExitValues == null ? null : new HashSet<Integer>(allowedExitValues));
} | java | private ProcessAttributes getAttributes() {
return new ProcessAttributes(
getCommand(),
getDirectory(),
new LinkedHashMap<String, String>(environment),
allowedExitValues == null ? null : new HashSet<Integer>(allowedExitValues));
} | [
"private",
"ProcessAttributes",
"getAttributes",
"(",
")",
"{",
"return",
"new",
"ProcessAttributes",
"(",
"getCommand",
"(",
")",
",",
"getDirectory",
"(",
")",
",",
"new",
"LinkedHashMap",
"<",
"String",
",",
"String",
">",
"(",
"environment",
")",
",",
"a... | Capture a snapshot of this process executor's main state. | [
"Capture",
"a",
"snapshot",
"of",
"this",
"process",
"executor",
"s",
"main",
"state",
"."
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/ProcessExecutor.java#L1006-L1012 |
117,138 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/ProcessExecutor.java | ProcessExecutor.waitFor | private ProcessResult waitFor(WaitForProcess task) throws IOException, InterruptedException, TimeoutException {
ProcessResult result;
if (timeout == null) {
// Use the current thread
result = task.call();
}
else {
// Fork another thread to invoke Process.waitFor()
ExecutorService... | java | private ProcessResult waitFor(WaitForProcess task) throws IOException, InterruptedException, TimeoutException {
ProcessResult result;
if (timeout == null) {
// Use the current thread
result = task.call();
}
else {
// Fork another thread to invoke Process.waitFor()
ExecutorService... | [
"private",
"ProcessResult",
"waitFor",
"(",
"WaitForProcess",
"task",
")",
"throws",
"IOException",
",",
"InterruptedException",
",",
"TimeoutException",
"{",
"ProcessResult",
"result",
";",
"if",
"(",
"timeout",
"==",
"null",
")",
"{",
"// Use the current thread",
... | Wait until the process stops, a timeout occurs and the caller thread gets interrupted.
In the latter cases the process gets destroyed as well. | [
"Wait",
"until",
"the",
"process",
"stops",
"a",
"timeout",
"occurs",
"and",
"the",
"caller",
"thread",
"gets",
"interrupted",
".",
"In",
"the",
"latter",
"cases",
"the",
"process",
"gets",
"destroyed",
"as",
"well",
"."
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/ProcessExecutor.java#L1093-L1140 |
117,139 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/ProcessExecutor.java | ProcessExecutor.invokeSubmit | protected <T> Future<T> invokeSubmit(ExecutorService executor, Callable<T> task) {
return executor.submit(wrapTask(task));
} | java | protected <T> Future<T> invokeSubmit(ExecutorService executor, Callable<T> task) {
return executor.submit(wrapTask(task));
} | [
"protected",
"<",
"T",
">",
"Future",
"<",
"T",
">",
"invokeSubmit",
"(",
"ExecutorService",
"executor",
",",
"Callable",
"<",
"T",
">",
"task",
")",
"{",
"return",
"executor",
".",
"submit",
"(",
"wrapTask",
"(",
"task",
")",
")",
";",
"}"
] | Override this to customize how the waiting task is started in the background.
@param <T> the type of the task
@param executor the executor service to submit the task on
@param task the task to be submitted
@return the future of the task | [
"Override",
"this",
"to",
"customize",
"how",
"the",
"waiting",
"task",
"is",
"started",
"in",
"the",
"background",
"."
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/ProcessExecutor.java#L1168-L1170 |
117,140 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/listener/ShutdownHookProcessDestroyer.java | ShutdownHookProcessDestroyer.run | public void run() {
/* check if running the routine is still necessary */
if(shutDownHookExecuted) {
return;
}
synchronized (processes) {
running = true;
Enumeration e = processes.elements();
while (e.hasMoreElements()) {
destroy((Process) e.nextElement());
}
... | java | public void run() {
/* check if running the routine is still necessary */
if(shutDownHookExecuted) {
return;
}
synchronized (processes) {
running = true;
Enumeration e = processes.elements();
while (e.hasMoreElements()) {
destroy((Process) e.nextElement());
}
... | [
"public",
"void",
"run",
"(",
")",
"{",
"/* check if running the routine is still necessary */",
"if",
"(",
"shutDownHookExecuted",
")",
"{",
"return",
";",
"}",
"synchronized",
"(",
"processes",
")",
"{",
"running",
"=",
"true",
";",
"Enumeration",
"e",
"=",
"p... | Invoked by the VM when it is exiting. | [
"Invoked",
"by",
"the",
"VM",
"when",
"it",
"is",
"exiting",
"."
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/listener/ShutdownHookProcessDestroyer.java#L228-L242 |
117,141 | zeroturnaround/zt-exec | src/main/java/org/zeroturnaround/exec/InvalidExitUtil.java | InvalidExitUtil.checkExit | public static void checkExit(ProcessAttributes attributes, ProcessResult result) {
Set<Integer> allowedExitValues = attributes.getAllowedExitValues();
if (allowedExitValues != null && !allowedExitValues.contains(result.getExitValue())) {
StringBuilder sb = new StringBuilder();
sb.append("Unexpected ... | java | public static void checkExit(ProcessAttributes attributes, ProcessResult result) {
Set<Integer> allowedExitValues = attributes.getAllowedExitValues();
if (allowedExitValues != null && !allowedExitValues.contains(result.getExitValue())) {
StringBuilder sb = new StringBuilder();
sb.append("Unexpected ... | [
"public",
"static",
"void",
"checkExit",
"(",
"ProcessAttributes",
"attributes",
",",
"ProcessResult",
"result",
")",
"{",
"Set",
"<",
"Integer",
">",
"allowedExitValues",
"=",
"attributes",
".",
"getAllowedExitValues",
"(",
")",
";",
"if",
"(",
"allowedExitValues... | Check the process exit value. | [
"Check",
"the",
"process",
"exit",
"value",
"."
] | 6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd | https://github.com/zeroturnaround/zt-exec/blob/6c3b93b99bf3c69c9f41d6350bf7707005b6a4cd/src/main/java/org/zeroturnaround/exec/InvalidExitUtil.java#L20-L29 |
117,142 | Microsoft/azure-maven-plugins | azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/AddMojo.java | AddMojo.loadBindingTemplate | protected BindingTemplate loadBindingTemplate(String type) {
try (final InputStream is = AddMojo.class.getResourceAsStream("/bindings.json")) {
final String bindingsJsonStr = IOUtil.toString(is);
final BindingsTemplate bindingsTemplate = new ObjectMapper()
.readValue(bind... | java | protected BindingTemplate loadBindingTemplate(String type) {
try (final InputStream is = AddMojo.class.getResourceAsStream("/bindings.json")) {
final String bindingsJsonStr = IOUtil.toString(is);
final BindingsTemplate bindingsTemplate = new ObjectMapper()
.readValue(bind... | [
"protected",
"BindingTemplate",
"loadBindingTemplate",
"(",
"String",
"type",
")",
"{",
"try",
"(",
"final",
"InputStream",
"is",
"=",
"AddMojo",
".",
"class",
".",
"getResourceAsStream",
"(",
"\"/bindings.json\"",
")",
")",
"{",
"final",
"String",
"bindingsJsonSt... | region Load templates | [
"region",
"Load",
"templates"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/AddMojo.java#L164-L175 |
117,143 | Microsoft/azure-maven-plugins | azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/AddMojo.java | AddMojo.getFunctionTemplate | protected FunctionTemplate getFunctionTemplate(final List<FunctionTemplate> templates) throws Exception {
info("");
info(FIND_TEMPLATE);
if (settings != null && !settings.isInteractiveMode()) {
assureInputInBatchMode(getFunctionTemplate(),
str -> getTemplateNames(tem... | java | protected FunctionTemplate getFunctionTemplate(final List<FunctionTemplate> templates) throws Exception {
info("");
info(FIND_TEMPLATE);
if (settings != null && !settings.isInteractiveMode()) {
assureInputInBatchMode(getFunctionTemplate(),
str -> getTemplateNames(tem... | [
"protected",
"FunctionTemplate",
"getFunctionTemplate",
"(",
"final",
"List",
"<",
"FunctionTemplate",
">",
"templates",
")",
"throws",
"Exception",
"{",
"info",
"(",
"\"\"",
")",
";",
"info",
"(",
"FIND_TEMPLATE",
")",
";",
"if",
"(",
"settings",
"!=",
"null"... | region Get function template | [
"region",
"Get",
"function",
"template"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/AddMojo.java#L201-L221 |
117,144 | Microsoft/azure-maven-plugins | azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/AddMojo.java | AddMojo.prepareRequiredParameters | protected Map<String, String> prepareRequiredParameters(final FunctionTemplate template,
final BindingTemplate bindingTemplate)
throws MojoFailureException {
info("");
info(PREPARE_PARAMS);
prepareFunctionName();
prepa... | java | protected Map<String, String> prepareRequiredParameters(final FunctionTemplate template,
final BindingTemplate bindingTemplate)
throws MojoFailureException {
info("");
info(PREPARE_PARAMS);
prepareFunctionName();
prepa... | [
"protected",
"Map",
"<",
"String",
",",
"String",
">",
"prepareRequiredParameters",
"(",
"final",
"FunctionTemplate",
"template",
",",
"final",
"BindingTemplate",
"bindingTemplate",
")",
"throws",
"MojoFailureException",
"{",
"info",
"(",
"\"\"",
")",
";",
"info",
... | region Prepare parameters | [
"region",
"Prepare",
"parameters"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/AddMojo.java#L246-L266 |
117,145 | Microsoft/azure-maven-plugins | azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/AddMojo.java | AddMojo.substituteParametersInTemplate | protected String substituteParametersInTemplate(final FunctionTemplate template, final Map<String, String> params) {
String ret = template.getFiles().get("function.java");
for (final Map.Entry<String, String> entry : params.entrySet()) {
ret = ret.replace(String.format("$%s$", entry.getKey()... | java | protected String substituteParametersInTemplate(final FunctionTemplate template, final Map<String, String> params) {
String ret = template.getFiles().get("function.java");
for (final Map.Entry<String, String> entry : params.entrySet()) {
ret = ret.replace(String.format("$%s$", entry.getKey()... | [
"protected",
"String",
"substituteParametersInTemplate",
"(",
"final",
"FunctionTemplate",
"template",
",",
"final",
"Map",
"<",
"String",
",",
"String",
">",
"params",
")",
"{",
"String",
"ret",
"=",
"template",
".",
"getFiles",
"(",
")",
".",
"get",
"(",
"... | region Substitute parameters | [
"region",
"Substitute",
"parameters"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/AddMojo.java#L399-L405 |
117,146 | Microsoft/azure-maven-plugins | azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/AddMojo.java | AddMojo.saveNewFunctionToFile | protected void saveNewFunctionToFile(final String newFunctionClass) throws Exception {
info("");
info(SAVE_FILE);
final File packageDir = getPackageDir();
final File targetFile = getTargetFile(packageDir);
createPackageDirIfNotExist(packageDir);
saveToTargetFile(targe... | java | protected void saveNewFunctionToFile(final String newFunctionClass) throws Exception {
info("");
info(SAVE_FILE);
final File packageDir = getPackageDir();
final File targetFile = getTargetFile(packageDir);
createPackageDirIfNotExist(packageDir);
saveToTargetFile(targe... | [
"protected",
"void",
"saveNewFunctionToFile",
"(",
"final",
"String",
"newFunctionClass",
")",
"throws",
"Exception",
"{",
"info",
"(",
"\"\"",
")",
";",
"info",
"(",
"SAVE_FILE",
")",
";",
"final",
"File",
"packageDir",
"=",
"getPackageDir",
"(",
")",
";",
... | region Save function to file | [
"region",
"Save",
"function",
"to",
"file"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/AddMojo.java#L411-L424 |
117,147 | Microsoft/azure-maven-plugins | azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/DeployMojo.java | DeployMojo.createOrUpdateFunctionApp | protected void createOrUpdateFunctionApp() throws Exception {
final FunctionApp app = getFunctionApp();
if (app == null) {
createFunctionApp();
} else {
updateFunctionApp(app);
}
} | java | protected void createOrUpdateFunctionApp() throws Exception {
final FunctionApp app = getFunctionApp();
if (app == null) {
createFunctionApp();
} else {
updateFunctionApp(app);
}
} | [
"protected",
"void",
"createOrUpdateFunctionApp",
"(",
")",
"throws",
"Exception",
"{",
"final",
"FunctionApp",
"app",
"=",
"getFunctionApp",
"(",
")",
";",
"if",
"(",
"app",
"==",
"null",
")",
"{",
"createFunctionApp",
"(",
")",
";",
"}",
"else",
"{",
"up... | region Create or update Azure Functions | [
"region",
"Create",
"or",
"update",
"Azure",
"Functions"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/DeployMojo.java#L82-L89 |
117,148 | Microsoft/azure-maven-plugins | azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/auth/AzureAuthHelper.java | AzureAuthHelper.getAuthObjFromServerId | protected Authenticated getAuthObjFromServerId(final Settings settings, final String serverId) {
if (StringUtils.isEmpty(serverId)) {
getLog().debug(SERVER_ID_NOT_CONFIG);
return null;
}
final Server server = Utils.getServer(settings, serverId);
try {
... | java | protected Authenticated getAuthObjFromServerId(final Settings settings, final String serverId) {
if (StringUtils.isEmpty(serverId)) {
getLog().debug(SERVER_ID_NOT_CONFIG);
return null;
}
final Server server = Utils.getServer(settings, serverId);
try {
... | [
"protected",
"Authenticated",
"getAuthObjFromServerId",
"(",
"final",
"Settings",
"settings",
",",
"final",
"String",
"serverId",
")",
"{",
"if",
"(",
"StringUtils",
".",
"isEmpty",
"(",
"serverId",
")",
")",
"{",
"getLog",
"(",
")",
".",
"debug",
"(",
"SERV... | Get Authenticated object by referencing server definition in Maven settings.xml
@param settings Settings object
@param serverId Server Id to search in settings.xml
@return Authenticated object if configurations are correct; otherwise return null. | [
"Get",
"Authenticated",
"object",
"by",
"referencing",
"server",
"definition",
"in",
"Maven",
"settings",
".",
"xml"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/auth/AzureAuthHelper.java#L154-L179 |
117,149 | Microsoft/azure-maven-plugins | azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/auth/AzureAuthHelper.java | AzureAuthHelper.getAuthObjFromFile | protected Authenticated getAuthObjFromFile(final File authFile) {
if (authFile == null) {
getLog().debug(AUTH_FILE_NOT_CONFIG);
return null;
}
if (!authFile.exists()) {
getLog().error(AUTH_FILE_NOT_EXIST + authFile.getAbsolutePath());
return null;... | java | protected Authenticated getAuthObjFromFile(final File authFile) {
if (authFile == null) {
getLog().debug(AUTH_FILE_NOT_CONFIG);
return null;
}
if (!authFile.exists()) {
getLog().error(AUTH_FILE_NOT_EXIST + authFile.getAbsolutePath());
return null;... | [
"protected",
"Authenticated",
"getAuthObjFromFile",
"(",
"final",
"File",
"authFile",
")",
"{",
"if",
"(",
"authFile",
"==",
"null",
")",
"{",
"getLog",
"(",
")",
".",
"debug",
"(",
"AUTH_FILE_NOT_CONFIG",
")",
";",
"return",
"null",
";",
"}",
"if",
"(",
... | Get Authenticated object using file.
@param authFile Authentication file object.
@return Authenticated object of file is valid; otherwise return null. | [
"Get",
"Authenticated",
"object",
"using",
"file",
"."
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/auth/AzureAuthHelper.java#L187-L209 |
117,150 | Microsoft/azure-maven-plugins | azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/auth/AzureAuthHelper.java | AzureAuthHelper.getAuthObjFromAzureCli | protected Authenticated getAuthObjFromAzureCli() {
try {
final Azure.Configurable azureConfigurable = azureConfigure();
final Authenticated auth;
if (isInCloudShell()) {
getLog().info(AUTH_WITH_MSI);
auth = azureConfigurable.authenticate(new MS... | java | protected Authenticated getAuthObjFromAzureCli() {
try {
final Azure.Configurable azureConfigurable = azureConfigure();
final Authenticated auth;
if (isInCloudShell()) {
getLog().info(AUTH_WITH_MSI);
auth = azureConfigurable.authenticate(new MS... | [
"protected",
"Authenticated",
"getAuthObjFromAzureCli",
"(",
")",
"{",
"try",
"{",
"final",
"Azure",
".",
"Configurable",
"azureConfigurable",
"=",
"azureConfigure",
"(",
")",
";",
"final",
"Authenticated",
"auth",
";",
"if",
"(",
"isInCloudShell",
"(",
")",
")"... | Get Authenticated object using authentication file from Azure CLI 2.0
Note: The integrated Azure CLI in Azure Cloud Shell does not have the accessToken.json,
so we need to use MSI to authenticate in the Cloud Shell.
@return Authenticated object if Azure CLI 2.0 is logged in correctly; otherwise return null. | [
"Get",
"Authenticated",
"object",
"using",
"authentication",
"file",
"from",
"Azure",
"CLI",
"2",
".",
"0"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/auth/AzureAuthHelper.java#L219-L236 |
117,151 | Microsoft/azure-maven-plugins | azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/auth/AzureAuthHelper.java | AzureAuthHelper.getAppTokenCredentialsFromServer | protected ApplicationTokenCredentials getAppTokenCredentialsFromServer(Server server) {
if (server == null) {
return null;
}
final String clientId = Utils.getValueFromServerConfiguration(server, CLIENT_ID);
if (StringUtils.isEmpty(clientId)) {
getLog().debug(CLIE... | java | protected ApplicationTokenCredentials getAppTokenCredentialsFromServer(Server server) {
if (server == null) {
return null;
}
final String clientId = Utils.getValueFromServerConfiguration(server, CLIENT_ID);
if (StringUtils.isEmpty(clientId)) {
getLog().debug(CLIE... | [
"protected",
"ApplicationTokenCredentials",
"getAppTokenCredentialsFromServer",
"(",
"Server",
"server",
")",
"{",
"if",
"(",
"server",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"final",
"String",
"clientId",
"=",
"Utils",
".",
"getValueFromServerConfigura... | Get ApplicationTokenCredentials from server definition in Maven settings.xml
@param server Server object from settings.xml
@return ApplicationTokenCredentials object if configuration is correct; otherwise return null. | [
"Get",
"ApplicationTokenCredentials",
"from",
"server",
"definition",
"in",
"Maven",
"settings",
".",
"xml"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/auth/AzureAuthHelper.java#L244-L290 |
117,152 | Microsoft/azure-maven-plugins | azure-functions-maven-plugin/src/it/3-eventhub-trigger/src/main/java/com/microsoft/azure/EventHubTriggerJava.java | EventHubTriggerJava.run | @FunctionName("EventHubTriggerJava")
public void run(
@EventHubTrigger(name = "message", eventHubName = "trigger", connection = "CIEventHubConnection", consumerGroup = "$Default") String message,
@EventHubOutput(name = "result", eventHubName = "output", connection = "CIEventHubConnection" ) ... | java | @FunctionName("EventHubTriggerJava")
public void run(
@EventHubTrigger(name = "message", eventHubName = "trigger", connection = "CIEventHubConnection", consumerGroup = "$Default") String message,
@EventHubOutput(name = "result", eventHubName = "output", connection = "CIEventHubConnection" ) ... | [
"@",
"FunctionName",
"(",
"\"EventHubTriggerJava\"",
")",
"public",
"void",
"run",
"(",
"@",
"EventHubTrigger",
"(",
"name",
"=",
"\"message\"",
",",
"eventHubName",
"=",
"\"trigger\"",
",",
"connection",
"=",
"\"CIEventHubConnection\"",
",",
"consumerGroup",
"=",
... | This function will be invoked when an event is received from Event Hub. | [
"This",
"function",
"will",
"be",
"invoked",
"when",
"an",
"event",
"is",
"received",
"from",
"Event",
"Hub",
"."
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-functions-maven-plugin/src/it/3-eventhub-trigger/src/main/java/com/microsoft/azure/EventHubTriggerJava.java#L13-L22 |
117,153 | Microsoft/azure-maven-plugins | azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/Utils.java | Utils.getServer | public static Server getServer(final Settings settings, final String serverId) {
if (settings == null || StringUtils.isEmpty(serverId)) {
return null;
}
return settings.getServer(serverId);
} | java | public static Server getServer(final Settings settings, final String serverId) {
if (settings == null || StringUtils.isEmpty(serverId)) {
return null;
}
return settings.getServer(serverId);
} | [
"public",
"static",
"Server",
"getServer",
"(",
"final",
"Settings",
"settings",
",",
"final",
"String",
"serverId",
")",
"{",
"if",
"(",
"settings",
"==",
"null",
"||",
"StringUtils",
".",
"isEmpty",
"(",
"serverId",
")",
")",
"{",
"return",
"null",
";",
... | Get server credential from Maven settings by server Id.
@param settings Maven settings object.
@param serverId Server Id.
@return Server object if it exists in settings. Otherwise return null. | [
"Get",
"server",
"credential",
"from",
"Maven",
"settings",
"by",
"server",
"Id",
"."
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/Utils.java#L39-L44 |
117,154 | Microsoft/azure-maven-plugins | azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/Utils.java | Utils.assureServerExist | public static void assureServerExist(final Server server, final String serverId) throws MojoExecutionException {
if (server == null) {
throw new MojoExecutionException(String.format("Server not found in settings.xml. ServerId=%s", serverId));
}
} | java | public static void assureServerExist(final Server server, final String serverId) throws MojoExecutionException {
if (server == null) {
throw new MojoExecutionException(String.format("Server not found in settings.xml. ServerId=%s", serverId));
}
} | [
"public",
"static",
"void",
"assureServerExist",
"(",
"final",
"Server",
"server",
",",
"final",
"String",
"serverId",
")",
"throws",
"MojoExecutionException",
"{",
"if",
"(",
"server",
"==",
"null",
")",
"{",
"throw",
"new",
"MojoExecutionException",
"(",
"Stri... | Assure the server with specified id does exist in settings.xml.
It could be the server used for azure authentication.
Or, the server used for docker hub authentication of runtime configuration.
@param server
@param serverId
@throws MojoExecutionException | [
"Assure",
"the",
"server",
"with",
"specified",
"id",
"does",
"exist",
"in",
"settings",
".",
"xml",
".",
"It",
"could",
"be",
"the",
"server",
"used",
"for",
"azure",
"authentication",
".",
"Or",
"the",
"server",
"used",
"for",
"docker",
"hub",
"authentic... | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/Utils.java#L54-L58 |
117,155 | Microsoft/azure-maven-plugins | azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/Utils.java | Utils.getValueFromServerConfiguration | public static String getValueFromServerConfiguration(final Server server, final String key) {
if (server == null) {
return null;
}
final Xpp3Dom configuration = (Xpp3Dom) server.getConfiguration();
if (configuration == null) {
return null;
}
... | java | public static String getValueFromServerConfiguration(final Server server, final String key) {
if (server == null) {
return null;
}
final Xpp3Dom configuration = (Xpp3Dom) server.getConfiguration();
if (configuration == null) {
return null;
}
... | [
"public",
"static",
"String",
"getValueFromServerConfiguration",
"(",
"final",
"Server",
"server",
",",
"final",
"String",
"key",
")",
"{",
"if",
"(",
"server",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"final",
"Xpp3Dom",
"configuration",
"=",
"("... | Get string value from server configuration section in settings.xml.
@param server Server object.
@param key Key string.
@return String value if key exists; otherwise, return null. | [
"Get",
"string",
"value",
"from",
"server",
"configuration",
"section",
"in",
"settings",
".",
"xml",
"."
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/Utils.java#L67-L83 |
117,156 | Microsoft/azure-maven-plugins | azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/Utils.java | Utils.copyResources | public static void copyResources(final MavenProject project, final MavenSession session,
final MavenResourcesFiltering filtering, final List<Resource> resources,
final String targetDirectory) throws IOException {
for (final Resource re... | java | public static void copyResources(final MavenProject project, final MavenSession session,
final MavenResourcesFiltering filtering, final List<Resource> resources,
final String targetDirectory) throws IOException {
for (final Resource re... | [
"public",
"static",
"void",
"copyResources",
"(",
"final",
"MavenProject",
"project",
",",
"final",
"MavenSession",
"session",
",",
"final",
"MavenResourcesFiltering",
"filtering",
",",
"final",
"List",
"<",
"Resource",
">",
"resources",
",",
"final",
"String",
"t... | Copy resources to target directory using Maven resource filtering so that we don't have to handle
recursive directory listing and pattern matching.
In order to disable filtering, the "filtering" property is force set to False.
@param project
@param session
@param filtering
@param resources
@param targetDirectory
@thro... | [
"Copy",
"resources",
"to",
"target",
"directory",
"using",
"Maven",
"resource",
"filtering",
"so",
"that",
"we",
"don",
"t",
"have",
"to",
"handle",
"recursive",
"directory",
"listing",
"and",
"pattern",
"matching",
".",
"In",
"order",
"to",
"disable",
"filter... | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/Utils.java#L97-L129 |
117,157 | Microsoft/azure-maven-plugins | azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/handlers/ArtifactHandlerImplV2.java | ArtifactHandlerImplV2.prepareJavaSERuntime | private void prepareJavaSERuntime(final List<File> artifacts) throws MojoExecutionException {
final File artifact = getProjectJarArtifact(artifacts);
if (artifact == null) {
return;
}
switch (runtimeSetting.getOsEnum()) {
case Windows:
// Windows: ... | java | private void prepareJavaSERuntime(final List<File> artifacts) throws MojoExecutionException {
final File artifact = getProjectJarArtifact(artifacts);
if (artifact == null) {
return;
}
switch (runtimeSetting.getOsEnum()) {
case Windows:
// Windows: ... | [
"private",
"void",
"prepareJavaSERuntime",
"(",
"final",
"List",
"<",
"File",
">",
"artifacts",
")",
"throws",
"MojoExecutionException",
"{",
"final",
"File",
"artifact",
"=",
"getProjectJarArtifact",
"(",
"artifacts",
")",
";",
"if",
"(",
"artifact",
"==",
"nul... | Rename project jar to app.jar for linux app service or generate web.config for windows javase app service | [
"Rename",
"project",
"jar",
"to",
"app",
".",
"jar",
"for",
"linux",
"app",
"service",
"or",
"generate",
"web",
".",
"config",
"for",
"windows",
"javase",
"app",
"service"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/handlers/ArtifactHandlerImplV2.java#L209-L231 |
117,158 | Microsoft/azure-maven-plugins | azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/FTPUploader.java | FTPUploader.uploadDirectoryWithRetries | public void uploadDirectoryWithRetries(final String ftpServer, final String username, final String password,
final String sourceDirectory, final String targetDirectory,
final int maxRetryCount) throws MojoExecutionException {
... | java | public void uploadDirectoryWithRetries(final String ftpServer, final String username, final String password,
final String sourceDirectory, final String targetDirectory,
final int maxRetryCount) throws MojoExecutionException {
... | [
"public",
"void",
"uploadDirectoryWithRetries",
"(",
"final",
"String",
"ftpServer",
",",
"final",
"String",
"username",
",",
"final",
"String",
"password",
",",
"final",
"String",
"sourceDirectory",
",",
"final",
"String",
"targetDirectory",
",",
"final",
"int",
... | Upload directory to specified FTP server with retries.
@param ftpServer
@param username
@param password
@param sourceDirectory
@param targetDirectory
@param maxRetryCount
@throws MojoExecutionException | [
"Upload",
"directory",
"to",
"specified",
"FTP",
"server",
"with",
"retries",
"."
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/FTPUploader.java#L57-L73 |
117,159 | Microsoft/azure-maven-plugins | azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/FTPUploader.java | FTPUploader.uploadDirectory | protected boolean uploadDirectory(final String ftpServer, final String username, final String password,
final String sourceDirectoryPath, final String targetDirectoryPath) {
log.debug("FTP username: " + username);
try {
final FTPClient ftpClient = getFTP... | java | protected boolean uploadDirectory(final String ftpServer, final String username, final String password,
final String sourceDirectoryPath, final String targetDirectoryPath) {
log.debug("FTP username: " + username);
try {
final FTPClient ftpClient = getFTP... | [
"protected",
"boolean",
"uploadDirectory",
"(",
"final",
"String",
"ftpServer",
",",
"final",
"String",
"username",
",",
"final",
"String",
"password",
",",
"final",
"String",
"sourceDirectoryPath",
",",
"final",
"String",
"targetDirectoryPath",
")",
"{",
"log",
"... | Upload directory to specified FTP server without retries.
@param ftpServer
@param username
@param password
@param sourceDirectoryPath
@param targetDirectoryPath
@return Boolean to indicate whether uploading is successful. | [
"Upload",
"directory",
"to",
"specified",
"FTP",
"server",
"without",
"retries",
"."
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/FTPUploader.java#L85-L103 |
117,160 | Microsoft/azure-maven-plugins | azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/FTPUploader.java | FTPUploader.uploadDirectory | protected void uploadDirectory(final FTPClient ftpClient, final String sourceDirectoryPath,
final String targetDirectoryPath, final String logPrefix) throws IOException {
log.info(String.format(UPLOAD_DIR, logPrefix, sourceDirectoryPath, targetDirectoryPath));
final Fi... | java | protected void uploadDirectory(final FTPClient ftpClient, final String sourceDirectoryPath,
final String targetDirectoryPath, final String logPrefix) throws IOException {
log.info(String.format(UPLOAD_DIR, logPrefix, sourceDirectoryPath, targetDirectoryPath));
final Fi... | [
"protected",
"void",
"uploadDirectory",
"(",
"final",
"FTPClient",
"ftpClient",
",",
"final",
"String",
"sourceDirectoryPath",
",",
"final",
"String",
"targetDirectoryPath",
",",
"final",
"String",
"logPrefix",
")",
"throws",
"IOException",
"{",
"log",
".",
"info",
... | Recursively upload a directory to FTP server with the provided FTP client object.
@param sourceDirectoryPath
@param targetDirectoryPath
@param logPrefix
@throws IOException | [
"Recursively",
"upload",
"a",
"directory",
"to",
"FTP",
"server",
"with",
"the",
"provided",
"FTP",
"client",
"object",
"."
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/FTPUploader.java#L113-L138 |
117,161 | Microsoft/azure-maven-plugins | azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/FTPUploader.java | FTPUploader.uploadFile | protected void uploadFile(final FTPClient ftpClient, final String sourceFilePath, final String targetFilePath,
final String logPrefix) throws IOException {
log.info(String.format(UPLOAD_FILE, logPrefix, sourceFilePath, targetFilePath));
final File sourceFile = new File(sour... | java | protected void uploadFile(final FTPClient ftpClient, final String sourceFilePath, final String targetFilePath,
final String logPrefix) throws IOException {
log.info(String.format(UPLOAD_FILE, logPrefix, sourceFilePath, targetFilePath));
final File sourceFile = new File(sour... | [
"protected",
"void",
"uploadFile",
"(",
"final",
"FTPClient",
"ftpClient",
",",
"final",
"String",
"sourceFilePath",
",",
"final",
"String",
"targetFilePath",
",",
"final",
"String",
"logPrefix",
")",
"throws",
"IOException",
"{",
"log",
".",
"info",
"(",
"Strin... | Upload a single file to FTP server with the provided FTP client object.
@param sourceFilePath
@param targetFilePath
@param logPrefix
@throws IOException | [
"Upload",
"a",
"single",
"file",
"to",
"FTP",
"server",
"with",
"the",
"provided",
"FTP",
"client",
"object",
"."
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/FTPUploader.java#L148-L165 |
117,162 | Microsoft/azure-maven-plugins | azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/handlers/WebAppPomHandler.java | WebAppPomHandler.getMavenPluginElement | private Element getMavenPluginElement() {
try {
final Element pluginsRoot = document.getRootElement().element("build").element("plugins");
for (final Element element : pluginsRoot.elements()) {
final String groupId = XMLUtils.getChildValue("groupId", element);
... | java | private Element getMavenPluginElement() {
try {
final Element pluginsRoot = document.getRootElement().element("build").element("plugins");
for (final Element element : pluginsRoot.elements()) {
final String groupId = XMLUtils.getChildValue("groupId", element);
... | [
"private",
"Element",
"getMavenPluginElement",
"(",
")",
"{",
"try",
"{",
"final",
"Element",
"pluginsRoot",
"=",
"document",
".",
"getRootElement",
"(",
")",
".",
"element",
"(",
"\"build\"",
")",
".",
"element",
"(",
"\"plugins\"",
")",
";",
"for",
"(",
... | get webapp maven plugin node from pom | [
"get",
"webapp",
"maven",
"plugin",
"node",
"from",
"pom"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/handlers/WebAppPomHandler.java#L89-L103 |
117,163 | Microsoft/azure-maven-plugins | azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/telemetry/AppInsightsProxy.java | AppInsightsProxy.readConfigurationFromFile | private com.microsoft.applicationinsights.TelemetryConfiguration readConfigurationFromFile() {
final com.microsoft.applicationinsights.TelemetryConfiguration telemetryConfiguration =
new com.microsoft.applicationinsights.TelemetryConfiguration();
final Map<String, String> channelProperties =... | java | private com.microsoft.applicationinsights.TelemetryConfiguration readConfigurationFromFile() {
final com.microsoft.applicationinsights.TelemetryConfiguration telemetryConfiguration =
new com.microsoft.applicationinsights.TelemetryConfiguration();
final Map<String, String> channelProperties =... | [
"private",
"com",
".",
"microsoft",
".",
"applicationinsights",
".",
"TelemetryConfiguration",
"readConfigurationFromFile",
"(",
")",
"{",
"final",
"com",
".",
"microsoft",
".",
"applicationinsights",
".",
"TelemetryConfiguration",
"telemetryConfiguration",
"=",
"new",
... | use ai sdk to read configuration file once the issue is fixed | [
"use",
"ai",
"sdk",
"to",
"read",
"configuration",
"file",
"once",
"the",
"issue",
"is",
"fixed"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/telemetry/AppInsightsProxy.java#L55-L67 |
117,164 | Microsoft/azure-maven-plugins | azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/telemetry/AppInsightsProxy.java | AppInsightsProxy.readInstrumentationKeyFromConfiguration | private String readInstrumentationKeyFromConfiguration() {
try (final InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(
CONFIGURATION_FILE)) {
final String configuration = IOUtils.toString(inputStream);
final Matcher matcher = INSTRUMENTATION_KEY... | java | private String readInstrumentationKeyFromConfiguration() {
try (final InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(
CONFIGURATION_FILE)) {
final String configuration = IOUtils.toString(inputStream);
final Matcher matcher = INSTRUMENTATION_KEY... | [
"private",
"String",
"readInstrumentationKeyFromConfiguration",
"(",
")",
"{",
"try",
"(",
"final",
"InputStream",
"inputStream",
"=",
"this",
".",
"getClass",
"(",
")",
".",
"getClassLoader",
"(",
")",
".",
"getResourceAsStream",
"(",
"CONFIGURATION_FILE",
")",
"... | Get instrumentation key from ApplicationInsights.xml | [
"Get",
"instrumentation",
"key",
"from",
"ApplicationInsights",
".",
"xml"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/telemetry/AppInsightsProxy.java#L70-L83 |
117,165 | Microsoft/azure-maven-plugins | azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/PackageMojo.java | PackageMojo.getFunctionConfigurations | protected Map<String, FunctionConfiguration> getFunctionConfigurations(final AnnotationHandler handler,
final Set<Method> methods) throws Exception {
info("");
info(GENERATE_CONFIG);
final Map<String, FunctionConfiguratio... | java | protected Map<String, FunctionConfiguration> getFunctionConfigurations(final AnnotationHandler handler,
final Set<Method> methods) throws Exception {
info("");
info(GENERATE_CONFIG);
final Map<String, FunctionConfiguratio... | [
"protected",
"Map",
"<",
"String",
",",
"FunctionConfiguration",
">",
"getFunctionConfigurations",
"(",
"final",
"AnnotationHandler",
"handler",
",",
"final",
"Set",
"<",
"Method",
">",
"methods",
")",
"throws",
"Exception",
"{",
"info",
"(",
"\"\"",
")",
";",
... | region Generate function configurations | [
"region",
"Generate",
"function",
"configurations"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/PackageMojo.java#L160-L174 |
117,166 | Microsoft/azure-maven-plugins | azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/PackageMojo.java | PackageMojo.validateFunctionConfigurations | protected void validateFunctionConfigurations(final Map<String, FunctionConfiguration> configMap) {
info("");
info(VALIDATE_CONFIG);
if (configMap.size() == 0) {
info(VALIDATE_SKIP);
} else {
configMap.values().forEach(config -> config.validate());
inf... | java | protected void validateFunctionConfigurations(final Map<String, FunctionConfiguration> configMap) {
info("");
info(VALIDATE_CONFIG);
if (configMap.size() == 0) {
info(VALIDATE_SKIP);
} else {
configMap.values().forEach(config -> config.validate());
inf... | [
"protected",
"void",
"validateFunctionConfigurations",
"(",
"final",
"Map",
"<",
"String",
",",
"FunctionConfiguration",
">",
"configMap",
")",
"{",
"info",
"(",
"\"\"",
")",
";",
"info",
"(",
"VALIDATE_CONFIG",
")",
";",
"if",
"(",
"configMap",
".",
"size",
... | region Validate function configurations | [
"region",
"Validate",
"function",
"configurations"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/PackageMojo.java#L189-L198 |
117,167 | Microsoft/azure-maven-plugins | azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/PackageMojo.java | PackageMojo.copyJarsToStageDirectory | protected void copyJarsToStageDirectory() throws IOException {
final String stagingDirectory = getDeploymentStagingDirectoryPath();
info("");
info(COPY_JARS + stagingDirectory);
Utils.copyResources(
getProject(),
getSession(),
getMavenResou... | java | protected void copyJarsToStageDirectory() throws IOException {
final String stagingDirectory = getDeploymentStagingDirectoryPath();
info("");
info(COPY_JARS + stagingDirectory);
Utils.copyResources(
getProject(),
getSession(),
getMavenResou... | [
"protected",
"void",
"copyJarsToStageDirectory",
"(",
")",
"throws",
"IOException",
"{",
"final",
"String",
"stagingDirectory",
"=",
"getDeploymentStagingDirectoryPath",
"(",
")",
";",
"info",
"(",
"\"\"",
")",
";",
"info",
"(",
"COPY_JARS",
"+",
"stagingDirectory",... | region Copy Jars to stage directory | [
"region",
"Copy",
"Jars",
"to",
"stage",
"directory"
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/PackageMojo.java#L251-L262 |
117,168 | Microsoft/azure-maven-plugins | azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/AbstractAzureMojo.java | AbstractAzureMojo.getAuthType | public String getAuthType() {
final AuthenticationSetting authSetting = getAuthenticationSetting();
if (authSetting == null) {
return "AzureCLI";
}
if (StringUtils.isNotEmpty(authSetting.getServerId())) {
return "ServerId";
}
if (authSettin... | java | public String getAuthType() {
final AuthenticationSetting authSetting = getAuthenticationSetting();
if (authSetting == null) {
return "AzureCLI";
}
if (StringUtils.isNotEmpty(authSetting.getServerId())) {
return "ServerId";
}
if (authSettin... | [
"public",
"String",
"getAuthType",
"(",
")",
"{",
"final",
"AuthenticationSetting",
"authSetting",
"=",
"getAuthenticationSetting",
"(",
")",
";",
"if",
"(",
"authSetting",
"==",
"null",
")",
"{",
"return",
"\"AzureCLI\"",
";",
"}",
"if",
"(",
"StringUtils",
"... | Add AuthType ENUM and move to AzureAuthHelper. | [
"Add",
"AuthType",
"ENUM",
"and",
"move",
"to",
"AzureAuthHelper",
"."
] | a254902e820185df1823b1d692c7c1d119490b1e | https://github.com/Microsoft/azure-maven-plugins/blob/a254902e820185df1823b1d692c7c1d119490b1e/azure-maven-plugin-lib/src/main/java/com/microsoft/azure/maven/AbstractAzureMojo.java#L270-L282 |
117,169 | r0adkll/Slidr | library/src/main/java/com/r0adkll/slidr/Slidr.java | Slidr.replace | @NonNull
public static SlidrInterface replace(@NonNull final View oldScreen, @NonNull final SlidrConfig config) {
ViewGroup parent = (ViewGroup) oldScreen.getParent();
ViewGroup.LayoutParams params = oldScreen.getLayoutParams();
parent.removeView(oldScreen);
// Setup the slider pane... | java | @NonNull
public static SlidrInterface replace(@NonNull final View oldScreen, @NonNull final SlidrConfig config) {
ViewGroup parent = (ViewGroup) oldScreen.getParent();
ViewGroup.LayoutParams params = oldScreen.getLayoutParams();
parent.removeView(oldScreen);
// Setup the slider pane... | [
"@",
"NonNull",
"public",
"static",
"SlidrInterface",
"replace",
"(",
"@",
"NonNull",
"final",
"View",
"oldScreen",
",",
"@",
"NonNull",
"final",
"SlidrConfig",
"config",
")",
"{",
"ViewGroup",
"parent",
"=",
"(",
"ViewGroup",
")",
"oldScreen",
".",
"getParent... | Attach a slider mechanism to a fragment view replacing an internal view
@param oldScreen the view within a fragment to replace
@param config the slider configuration to attach with
@return a {@link com.r0adkll.slidr.model.SlidrInterface} that allows
the user to lock/unlock the sliding mechanism for whatever purpose. | [
"Attach",
"a",
"slider",
"mechanism",
"to",
"a",
"fragment",
"view",
"replacing",
"an",
"internal",
"view"
] | 737db115eb68435764648fbd905b1dea4b52f039 | https://github.com/r0adkll/Slidr/blob/737db115eb68435764648fbd905b1dea4b52f039/library/src/main/java/com/r0adkll/slidr/Slidr.java#L111-L130 |
117,170 | PSDev/LicensesDialog | licensesdialog/src/main/java/de/psdev/licensesdialog/LicenseResolver.java | LicenseResolver.read | public static License read(final String license) {
final String trimmedLicense = license.trim();
if (sLicenses.containsKey(trimmedLicense)) {
return sLicenses.get(trimmedLicense);
} else {
throw new IllegalStateException(String.format("no such license available: %s, did y... | java | public static License read(final String license) {
final String trimmedLicense = license.trim();
if (sLicenses.containsKey(trimmedLicense)) {
return sLicenses.get(trimmedLicense);
} else {
throw new IllegalStateException(String.format("no such license available: %s, did y... | [
"public",
"static",
"License",
"read",
"(",
"final",
"String",
"license",
")",
"{",
"final",
"String",
"trimmedLicense",
"=",
"license",
".",
"trim",
"(",
")",
";",
"if",
"(",
"sLicenses",
".",
"containsKey",
"(",
"trimmedLicense",
")",
")",
"{",
"return",... | Get a license by name
@param license license name
@return License
@throws java.lang.IllegalStateException when unknown license is requested | [
"Get",
"a",
"license",
"by",
"name"
] | c09b669cbf8f70bf5509da4b0b57910a1f5dcba8 | https://github.com/PSDev/LicensesDialog/blob/c09b669cbf8f70bf5509da4b0b57910a1f5dcba8/licensesdialog/src/main/java/de/psdev/licensesdialog/LicenseResolver.java#L83-L90 |
117,171 | jOOQ/jOOL | jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple10.java | Tuple10.limit4 | public final Tuple4<T1, T2, T3, T4> limit4() {
return new Tuple4<>(v1, v2, v3, v4);
} | java | public final Tuple4<T1, T2, T3, T4> limit4() {
return new Tuple4<>(v1, v2, v3, v4);
} | [
"public",
"final",
"Tuple4",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
">",
"limit4",
"(",
")",
"{",
"return",
"new",
"Tuple4",
"<>",
"(",
"v1",
",",
"v2",
",",
"v3",
",",
"v4",
")",
";",
"}"
] | Limit this tuple to degree 4. | [
"Limit",
"this",
"tuple",
"to",
"degree",
"4",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple10.java#L275-L277 |
117,172 | jOOQ/jOOL | jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple10.java | Tuple10.limit5 | public final Tuple5<T1, T2, T3, T4, T5> limit5() {
return new Tuple5<>(v1, v2, v3, v4, v5);
} | java | public final Tuple5<T1, T2, T3, T4, T5> limit5() {
return new Tuple5<>(v1, v2, v3, v4, v5);
} | [
"public",
"final",
"Tuple5",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
">",
"limit5",
"(",
")",
"{",
"return",
"new",
"Tuple5",
"<>",
"(",
"v1",
",",
"v2",
",",
"v3",
",",
"v4",
",",
"v5",
")",
";",
"}"
] | Limit this tuple to degree 5. | [
"Limit",
"this",
"tuple",
"to",
"degree",
"5",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple10.java#L282-L284 |
117,173 | jOOQ/jOOL | jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple10.java | Tuple10.limit6 | public final Tuple6<T1, T2, T3, T4, T5, T6> limit6() {
return new Tuple6<>(v1, v2, v3, v4, v5, v6);
} | java | public final Tuple6<T1, T2, T3, T4, T5, T6> limit6() {
return new Tuple6<>(v1, v2, v3, v4, v5, v6);
} | [
"public",
"final",
"Tuple6",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
">",
"limit6",
"(",
")",
"{",
"return",
"new",
"Tuple6",
"<>",
"(",
"v1",
",",
"v2",
",",
"v3",
",",
"v4",
",",
"v5",
",",
"v6",
")",
";",
"}"
] | Limit this tuple to degree 6. | [
"Limit",
"this",
"tuple",
"to",
"degree",
"6",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple10.java#L289-L291 |
117,174 | jOOQ/jOOL | jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple10.java | Tuple10.limit7 | public final Tuple7<T1, T2, T3, T4, T5, T6, T7> limit7() {
return new Tuple7<>(v1, v2, v3, v4, v5, v6, v7);
} | java | public final Tuple7<T1, T2, T3, T4, T5, T6, T7> limit7() {
return new Tuple7<>(v1, v2, v3, v4, v5, v6, v7);
} | [
"public",
"final",
"Tuple7",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
",",
"T7",
">",
"limit7",
"(",
")",
"{",
"return",
"new",
"Tuple7",
"<>",
"(",
"v1",
",",
"v2",
",",
"v3",
",",
"v4",
",",
"v5",
",",
"v6",
",",
... | Limit this tuple to degree 7. | [
"Limit",
"this",
"tuple",
"to",
"degree",
"7",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple10.java#L296-L298 |
117,175 | jOOQ/jOOL | jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple10.java | Tuple10.limit10 | public final Tuple10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> limit10() {
return this;
} | java | public final Tuple10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> limit10() {
return this;
} | [
"public",
"final",
"Tuple10",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
",",
"T7",
",",
"T8",
",",
"T9",
",",
"T10",
">",
"limit10",
"(",
")",
"{",
"return",
"this",
";",
"}"
] | Limit this tuple to degree 10. | [
"Limit",
"this",
"tuple",
"to",
"degree",
"10",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple10.java#L317-L319 |
117,176 | jOOQ/jOOL | jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple6.java | Tuple6.split0 | public final Tuple2<Tuple0, Tuple6<T1, T2, T3, T4, T5, T6>> split0() {
return new Tuple2<>(limit0(), skip0());
} | java | public final Tuple2<Tuple0, Tuple6<T1, T2, T3, T4, T5, T6>> split0() {
return new Tuple2<>(limit0(), skip0());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple0",
",",
"Tuple6",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
">",
">",
"split0",
"(",
")",
"{",
"return",
"new",
"Tuple2",
"<>",
"(",
"limit0",
"(",
")",
",",
"skip0",
"(",
")",
... | Split this tuple into two tuples of degree 0 and 6. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"0",
"and",
"6",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple6.java#L170-L172 |
117,177 | jOOQ/jOOL | jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple6.java | Tuple6.split1 | public final Tuple2<Tuple1<T1>, Tuple5<T2, T3, T4, T5, T6>> split1() {
return new Tuple2<>(limit1(), skip1());
} | java | public final Tuple2<Tuple1<T1>, Tuple5<T2, T3, T4, T5, T6>> split1() {
return new Tuple2<>(limit1(), skip1());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple1",
"<",
"T1",
">",
",",
"Tuple5",
"<",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
">",
">",
"split1",
"(",
")",
"{",
"return",
"new",
"Tuple2",
"<>",
"(",
"limit1",
"(",
")",
",",
"skip1",
"(",
... | Split this tuple into two tuples of degree 1 and 5. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"1",
"and",
"5",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple6.java#L177-L179 |
117,178 | jOOQ/jOOL | jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple6.java | Tuple6.split2 | public final Tuple2<Tuple2<T1, T2>, Tuple4<T3, T4, T5, T6>> split2() {
return new Tuple2<>(limit2(), skip2());
} | java | public final Tuple2<Tuple2<T1, T2>, Tuple4<T3, T4, T5, T6>> split2() {
return new Tuple2<>(limit2(), skip2());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple2",
"<",
"T1",
",",
"T2",
">",
",",
"Tuple4",
"<",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
">",
">",
"split2",
"(",
")",
"{",
"return",
"new",
"Tuple2",
"<>",
"(",
"limit2",
"(",
")",
",",
"skip2",
"(",
... | Split this tuple into two tuples of degree 2 and 4. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"2",
"and",
"4",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple6.java#L184-L186 |
117,179 | jOOQ/jOOL | jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple6.java | Tuple6.split6 | public final Tuple2<Tuple6<T1, T2, T3, T4, T5, T6>, Tuple0> split6() {
return new Tuple2<>(limit6(), skip6());
} | java | public final Tuple2<Tuple6<T1, T2, T3, T4, T5, T6>, Tuple0> split6() {
return new Tuple2<>(limit6(), skip6());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple6",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
">",
",",
"Tuple0",
">",
"split6",
"(",
")",
"{",
"return",
"new",
"Tuple2",
"<>",
"(",
"limit6",
"(",
")",
",",
"skip6",
"(",
")",
... | Split this tuple into two tuples of degree 6 and 0. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"6",
"and",
"0",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple6.java#L212-L214 |
117,180 | jOOQ/jOOL | jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple11.java | Tuple11.split9 | public final Tuple2<Tuple9<T1, T2, T3, T4, T5, T6, T7, T8, T9>, Tuple2<T10, T11>> split9() {
return new Tuple2<>(limit9(), skip9());
} | java | public final Tuple2<Tuple9<T1, T2, T3, T4, T5, T6, T7, T8, T9>, Tuple2<T10, T11>> split9() {
return new Tuple2<>(limit9(), skip9());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple9",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
",",
"T7",
",",
"T8",
",",
"T9",
">",
",",
"Tuple2",
"<",
"T10",
",",
"T11",
">",
">",
"split9",
"(",
")",
"{",
"return",
"new",
"... | Split this tuple into two tuples of degree 9 and 2. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"9",
"and",
"2",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple11.java#L233-L235 |
117,181 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple13.java | Tuple13.split7 | public final Tuple2<Tuple7<T1, T2, T3, T4, T5, T6, T7>, Tuple6<T8, T9, T10, T11, T12, T13>> split7() {
return new Tuple2<>(limit7(), skip7());
} | java | public final Tuple2<Tuple7<T1, T2, T3, T4, T5, T6, T7>, Tuple6<T8, T9, T10, T11, T12, T13>> split7() {
return new Tuple2<>(limit7(), skip7());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple7",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
",",
"T7",
">",
",",
"Tuple6",
"<",
"T8",
",",
"T9",
",",
"T10",
",",
"T11",
",",
"T12",
",",
"T13",
">",
">",
"split7",
"(",
")",... | Split this tuple into two tuples of degree 7 and 6. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"7",
"and",
"6",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple13.java#L219-L221 |
117,182 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple13.java | Tuple13.split8 | public final Tuple2<Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>, Tuple5<T9, T10, T11, T12, T13>> split8() {
return new Tuple2<>(limit8(), skip8());
} | java | public final Tuple2<Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>, Tuple5<T9, T10, T11, T12, T13>> split8() {
return new Tuple2<>(limit8(), skip8());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple8",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
",",
"T7",
",",
"T8",
">",
",",
"Tuple5",
"<",
"T9",
",",
"T10",
",",
"T11",
",",
"T12",
",",
"T13",
">",
">",
"split8",
"(",
")",... | Split this tuple into two tuples of degree 8 and 5. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"8",
"and",
"5",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple13.java#L226-L228 |
117,183 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple15.java | Tuple15.split10 | public final Tuple2<Tuple10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, Tuple5<T11, T12, T13, T14, T15>> split10() {
return new Tuple2<>(limit10(), skip10());
} | java | public final Tuple2<Tuple10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>, Tuple5<T11, T12, T13, T14, T15>> split10() {
return new Tuple2<>(limit10(), skip10());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple10",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
",",
"T7",
",",
"T8",
",",
"T9",
",",
"T10",
">",
",",
"Tuple5",
"<",
"T11",
",",
"T12",
",",
"T13",
",",
"T14",
",",
"T15",
">",... | Split this tuple into two tuples of degree 10 and 5. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"10",
"and",
"5",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple15.java#L240-L242 |
117,184 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple15.java | Tuple15.split11 | public final Tuple2<Tuple11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>, Tuple4<T12, T13, T14, T15>> split11() {
return new Tuple2<>(limit11(), skip11());
} | java | public final Tuple2<Tuple11<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>, Tuple4<T12, T13, T14, T15>> split11() {
return new Tuple2<>(limit11(), skip11());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple11",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
",",
"T7",
",",
"T8",
",",
"T9",
",",
"T10",
",",
"T11",
">",
",",
"Tuple4",
"<",
"T12",
",",
"T13",
",",
"T14",
",",
"T15",
">",... | Split this tuple into two tuples of degree 11 and 4. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"11",
"and",
"4",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple15.java#L247-L249 |
117,185 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple15.java | Tuple15.split12 | public final Tuple2<Tuple12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>, Tuple3<T13, T14, T15>> split12() {
return new Tuple2<>(limit12(), skip12());
} | java | public final Tuple2<Tuple12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>, Tuple3<T13, T14, T15>> split12() {
return new Tuple2<>(limit12(), skip12());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple12",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
",",
"T7",
",",
"T8",
",",
"T9",
",",
"T10",
",",
"T11",
",",
"T12",
">",
",",
"Tuple3",
"<",
"T13",
",",
"T14",
",",
"T15",
">",... | Split this tuple into two tuples of degree 12 and 3. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"12",
"and",
"3",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple15.java#L254-L256 |
117,186 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple15.java | Tuple15.split13 | public final Tuple2<Tuple13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>, Tuple2<T14, T15>> split13() {
return new Tuple2<>(limit13(), skip13());
} | java | public final Tuple2<Tuple13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>, Tuple2<T14, T15>> split13() {
return new Tuple2<>(limit13(), skip13());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple13",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
",",
"T7",
",",
"T8",
",",
"T9",
",",
"T10",
",",
"T11",
",",
"T12",
",",
"T13",
">",
",",
"Tuple2",
"<",
"T14",
",",
"T15",
">",... | Split this tuple into two tuples of degree 13 and 2. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"13",
"and",
"2",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple15.java#L261-L263 |
117,187 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple5.java | Tuple5.split0 | public final Tuple2<Tuple0, Tuple5<T1, T2, T3, T4, T5>> split0() {
return new Tuple2<>(limit0(), skip0());
} | java | public final Tuple2<Tuple0, Tuple5<T1, T2, T3, T4, T5>> split0() {
return new Tuple2<>(limit0(), skip0());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple0",
",",
"Tuple5",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
">",
">",
"split0",
"(",
")",
"{",
"return",
"new",
"Tuple2",
"<>",
"(",
"limit0",
"(",
")",
",",
"skip0",
"(",
")",
")",
";",
"... | Split this tuple into two tuples of degree 0 and 5. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"0",
"and",
"5",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple5.java#L170-L172 |
117,188 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple5.java | Tuple5.split1 | public final Tuple2<Tuple1<T1>, Tuple4<T2, T3, T4, T5>> split1() {
return new Tuple2<>(limit1(), skip1());
} | java | public final Tuple2<Tuple1<T1>, Tuple4<T2, T3, T4, T5>> split1() {
return new Tuple2<>(limit1(), skip1());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple1",
"<",
"T1",
">",
",",
"Tuple4",
"<",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
">",
">",
"split1",
"(",
")",
"{",
"return",
"new",
"Tuple2",
"<>",
"(",
"limit1",
"(",
")",
",",
"skip1",
"(",
")",
")",
"... | Split this tuple into two tuples of degree 1 and 4. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"1",
"and",
"4",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple5.java#L177-L179 |
117,189 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple5.java | Tuple5.split2 | public final Tuple2<Tuple2<T1, T2>, Tuple3<T3, T4, T5>> split2() {
return new Tuple2<>(limit2(), skip2());
} | java | public final Tuple2<Tuple2<T1, T2>, Tuple3<T3, T4, T5>> split2() {
return new Tuple2<>(limit2(), skip2());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple2",
"<",
"T1",
",",
"T2",
">",
",",
"Tuple3",
"<",
"T3",
",",
"T4",
",",
"T5",
">",
">",
"split2",
"(",
")",
"{",
"return",
"new",
"Tuple2",
"<>",
"(",
"limit2",
"(",
")",
",",
"skip2",
"(",
")",
")",
"... | Split this tuple into two tuples of degree 2 and 3. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"2",
"and",
"3",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple5.java#L184-L186 |
117,190 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple5.java | Tuple5.split5 | public final Tuple2<Tuple5<T1, T2, T3, T4, T5>, Tuple0> split5() {
return new Tuple2<>(limit5(), skip5());
} | java | public final Tuple2<Tuple5<T1, T2, T3, T4, T5>, Tuple0> split5() {
return new Tuple2<>(limit5(), skip5());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple5",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
">",
",",
"Tuple0",
">",
"split5",
"(",
")",
"{",
"return",
"new",
"Tuple2",
"<>",
"(",
"limit5",
"(",
")",
",",
"skip5",
"(",
")",
")",
";",
"... | Split this tuple into two tuples of degree 5 and 0. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"5",
"and",
"0",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple5.java#L205-L207 |
117,191 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple12.java | Tuple12.split2 | public final Tuple2<Tuple2<T1, T2>, Tuple10<T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>> split2() {
return new Tuple2<>(limit2(), skip2());
} | java | public final Tuple2<Tuple2<T1, T2>, Tuple10<T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>> split2() {
return new Tuple2<>(limit2(), skip2());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple2",
"<",
"T1",
",",
"T2",
">",
",",
"Tuple10",
"<",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
",",
"T7",
",",
"T8",
",",
"T9",
",",
"T10",
",",
"T11",
",",
"T12",
">",
">",
"split2",
"(",
")",
"{",
"retu... | Split this tuple into two tuples of degree 2 and 10. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"2",
"and",
"10",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple12.java#L184-L186 |
117,192 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple12.java | Tuple12.split3 | public final Tuple2<Tuple3<T1, T2, T3>, Tuple9<T4, T5, T6, T7, T8, T9, T10, T11, T12>> split3() {
return new Tuple2<>(limit3(), skip3());
} | java | public final Tuple2<Tuple3<T1, T2, T3>, Tuple9<T4, T5, T6, T7, T8, T9, T10, T11, T12>> split3() {
return new Tuple2<>(limit3(), skip3());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple3",
"<",
"T1",
",",
"T2",
",",
"T3",
">",
",",
"Tuple9",
"<",
"T4",
",",
"T5",
",",
"T6",
",",
"T7",
",",
"T8",
",",
"T9",
",",
"T10",
",",
"T11",
",",
"T12",
">",
">",
"split3",
"(",
")",
"{",
"retur... | Split this tuple into two tuples of degree 3 and 9. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"3",
"and",
"9",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple12.java#L191-L193 |
117,193 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple12.java | Tuple12.split4 | public final Tuple2<Tuple4<T1, T2, T3, T4>, Tuple8<T5, T6, T7, T8, T9, T10, T11, T12>> split4() {
return new Tuple2<>(limit4(), skip4());
} | java | public final Tuple2<Tuple4<T1, T2, T3, T4>, Tuple8<T5, T6, T7, T8, T9, T10, T11, T12>> split4() {
return new Tuple2<>(limit4(), skip4());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple4",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
">",
",",
"Tuple8",
"<",
"T5",
",",
"T6",
",",
"T7",
",",
"T8",
",",
"T9",
",",
"T10",
",",
"T11",
",",
"T12",
">",
">",
"split4",
"(",
")",
"{",
"retur... | Split this tuple into two tuples of degree 4 and 8. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"4",
"and",
"8",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple12.java#L198-L200 |
117,194 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple12.java | Tuple12.split5 | public final Tuple2<Tuple5<T1, T2, T3, T4, T5>, Tuple7<T6, T7, T8, T9, T10, T11, T12>> split5() {
return new Tuple2<>(limit5(), skip5());
} | java | public final Tuple2<Tuple5<T1, T2, T3, T4, T5>, Tuple7<T6, T7, T8, T9, T10, T11, T12>> split5() {
return new Tuple2<>(limit5(), skip5());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple5",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
">",
",",
"Tuple7",
"<",
"T6",
",",
"T7",
",",
"T8",
",",
"T9",
",",
"T10",
",",
"T11",
",",
"T12",
">",
">",
"split5",
"(",
")",
"{",
"retur... | Split this tuple into two tuples of degree 5 and 7. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"5",
"and",
"7",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple12.java#L205-L207 |
117,195 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple12.java | Tuple12.split6 | public final Tuple2<Tuple6<T1, T2, T3, T4, T5, T6>, Tuple6<T7, T8, T9, T10, T11, T12>> split6() {
return new Tuple2<>(limit6(), skip6());
} | java | public final Tuple2<Tuple6<T1, T2, T3, T4, T5, T6>, Tuple6<T7, T8, T9, T10, T11, T12>> split6() {
return new Tuple2<>(limit6(), skip6());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple6",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
">",
",",
"Tuple6",
"<",
"T7",
",",
"T8",
",",
"T9",
",",
"T10",
",",
"T11",
",",
"T12",
">",
">",
"split6",
"(",
")",
"{",
"retur... | Split this tuple into two tuples of degree 6 and 6. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"6",
"and",
"6",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple12.java#L212-L214 |
117,196 | jOOQ/jOOL | jOOL/src/main/java/org/jooq/lambda/tuple/Tuple12.java | Tuple12.limit12 | public final Tuple12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> limit12() {
return this;
} | java | public final Tuple12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> limit12() {
return this;
} | [
"public",
"final",
"Tuple12",
"<",
"T1",
",",
"T2",
",",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
",",
"T7",
",",
"T8",
",",
"T9",
",",
"T10",
",",
"T11",
",",
"T12",
">",
"limit12",
"(",
")",
"{",
"return",
"this",
";",
"}"
] | Limit this tuple to degree 12. | [
"Limit",
"this",
"tuple",
"to",
"degree",
"12",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL/src/main/java/org/jooq/lambda/tuple/Tuple12.java#L345-L347 |
117,197 | jOOQ/jOOL | jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple7.java | Tuple7.split2 | public final Tuple2<Tuple2<T1, T2>, Tuple5<T3, T4, T5, T6, T7>> split2() {
return new Tuple2<>(limit2(), skip2());
} | java | public final Tuple2<Tuple2<T1, T2>, Tuple5<T3, T4, T5, T6, T7>> split2() {
return new Tuple2<>(limit2(), skip2());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple2",
"<",
"T1",
",",
"T2",
">",
",",
"Tuple5",
"<",
"T3",
",",
"T4",
",",
"T5",
",",
"T6",
",",
"T7",
">",
">",
"split2",
"(",
")",
"{",
"return",
"new",
"Tuple2",
"<>",
"(",
"limit2",
"(",
")",
",",
"sk... | Split this tuple into two tuples of degree 2 and 5. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"2",
"and",
"5",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple7.java#L184-L186 |
117,198 | jOOQ/jOOL | jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple3.java | Tuple3.split0 | public final Tuple2<Tuple0, Tuple3<T1, T2, T3>> split0() {
return new Tuple2<>(limit0(), skip0());
} | java | public final Tuple2<Tuple0, Tuple3<T1, T2, T3>> split0() {
return new Tuple2<>(limit0(), skip0());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple0",
",",
"Tuple3",
"<",
"T1",
",",
"T2",
",",
"T3",
">",
">",
"split0",
"(",
")",
"{",
"return",
"new",
"Tuple2",
"<>",
"(",
"limit0",
"(",
")",
",",
"skip0",
"(",
")",
")",
";",
"}"
] | Split this tuple into two tuples of degree 0 and 3. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"0",
"and",
"3",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple3.java#L170-L172 |
117,199 | jOOQ/jOOL | jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple3.java | Tuple3.split2 | public final Tuple2<Tuple2<T1, T2>, Tuple1<T3>> split2() {
return new Tuple2<>(limit2(), skip2());
} | java | public final Tuple2<Tuple2<T1, T2>, Tuple1<T3>> split2() {
return new Tuple2<>(limit2(), skip2());
} | [
"public",
"final",
"Tuple2",
"<",
"Tuple2",
"<",
"T1",
",",
"T2",
">",
",",
"Tuple1",
"<",
"T3",
">",
">",
"split2",
"(",
")",
"{",
"return",
"new",
"Tuple2",
"<>",
"(",
"limit2",
"(",
")",
",",
"skip2",
"(",
")",
")",
";",
"}"
] | Split this tuple into two tuples of degree 2 and 1. | [
"Split",
"this",
"tuple",
"into",
"two",
"tuples",
"of",
"degree",
"2",
"and",
"1",
"."
] | 889d87c85ca57bafd4eddd78e0f7ae2804d2ee86 | https://github.com/jOOQ/jOOL/blob/889d87c85ca57bafd4eddd78e0f7ae2804d2ee86/jOOL-java-8/src/main/java/org/jooq/lambda/tuple/Tuple3.java#L184-L186 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.