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 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/tunnel/tunnelglobal_tunneltrafficpolicy_binding.java | tunnelglobal_tunneltrafficpolicy_binding.get | public static tunnelglobal_tunneltrafficpolicy_binding[] get(nitro_service service) throws Exception{
tunnelglobal_tunneltrafficpolicy_binding obj = new tunnelglobal_tunneltrafficpolicy_binding();
tunnelglobal_tunneltrafficpolicy_binding response[] = (tunnelglobal_tunneltrafficpolicy_binding[]) obj.get_resources(se... | java | public static tunnelglobal_tunneltrafficpolicy_binding[] get(nitro_service service) throws Exception{
tunnelglobal_tunneltrafficpolicy_binding obj = new tunnelglobal_tunneltrafficpolicy_binding();
tunnelglobal_tunneltrafficpolicy_binding response[] = (tunnelglobal_tunneltrafficpolicy_binding[]) obj.get_resources(se... | [
"public",
"static",
"tunnelglobal_tunneltrafficpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"tunnelglobal_tunneltrafficpolicy_binding",
"obj",
"=",
"new",
"tunnelglobal_tunneltrafficpolicy_binding",
"(",
")",
";",
"tunn... | Use this API to fetch a tunnelglobal_tunneltrafficpolicy_binding resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"a",
"tunnelglobal_tunneltrafficpolicy_binding",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/tunnel/tunnelglobal_tunneltrafficpolicy_binding.java#L201-L205 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/stat/pq/pq_stats.java | pq_stats.get | public static pq_stats get(nitro_service service) throws Exception{
pq_stats obj = new pq_stats();
pq_stats[] response = (pq_stats[])obj.stat_resources(service);
return response[0];
} | java | public static pq_stats get(nitro_service service) throws Exception{
pq_stats obj = new pq_stats();
pq_stats[] response = (pq_stats[])obj.stat_resources(service);
return response[0];
} | [
"public",
"static",
"pq_stats",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"pq_stats",
"obj",
"=",
"new",
"pq_stats",
"(",
")",
";",
"pq_stats",
"[",
"]",
"response",
"=",
"(",
"pq_stats",
"[",
"]",
")",
"obj",
".",
"stat_re... | Use this API to fetch the statistics of all pq_stats resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"the",
"statistics",
"of",
"all",
"pq_stats",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/pq/pq_stats.java#L191-L195 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cs/csvserver_authorizationpolicy_binding.java | csvserver_authorizationpolicy_binding.get | public static csvserver_authorizationpolicy_binding[] get(nitro_service service, String name) throws Exception{
csvserver_authorizationpolicy_binding obj = new csvserver_authorizationpolicy_binding();
obj.set_name(name);
csvserver_authorizationpolicy_binding response[] = (csvserver_authorizationpolicy_binding[]) ... | java | public static csvserver_authorizationpolicy_binding[] get(nitro_service service, String name) throws Exception{
csvserver_authorizationpolicy_binding obj = new csvserver_authorizationpolicy_binding();
obj.set_name(name);
csvserver_authorizationpolicy_binding response[] = (csvserver_authorizationpolicy_binding[]) ... | [
"public",
"static",
"csvserver_authorizationpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"csvserver_authorizationpolicy_binding",
"obj",
"=",
"new",
"csvserver_authorizationpolicy_binding",
"(",
... | Use this API to fetch csvserver_authorizationpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"csvserver_authorizationpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cs/csvserver_authorizationpolicy_binding.java#L337-L342 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/trees/LabeledScoredTreeFactory.java | LabeledScoredTreeFactory.newTreeNode | @Override
public Tree newTreeNode(Label parentLabel, List<Tree> children) {
return new LabeledScoredTreeNode(lf.newLabel(parentLabel), children);
} | java | @Override
public Tree newTreeNode(Label parentLabel, List<Tree> children) {
return new LabeledScoredTreeNode(lf.newLabel(parentLabel), children);
} | [
"@",
"Override",
"public",
"Tree",
"newTreeNode",
"(",
"Label",
"parentLabel",
",",
"List",
"<",
"Tree",
">",
"children",
")",
"{",
"return",
"new",
"LabeledScoredTreeNode",
"(",
"lf",
".",
"newLabel",
"(",
"parentLabel",
")",
",",
"children",
")",
";",
"}... | Create a new non-leaf tree node with the given label
@param parentLabel The label for the node
@param children A <code>List</code> of the children of this node,
each of which should itself be a <code>LabeledScoredTree</code>
@return A new internal tree node | [
"Create",
"a",
"new",
"non",
"-",
"leaf",
"tree",
"node",
"with",
"the",
"given",
"label"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/LabeledScoredTreeFactory.java#L67-L70 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policystringmap_binding.java | policystringmap_binding.get | public static policystringmap_binding get(nitro_service service, String name) throws Exception{
policystringmap_binding obj = new policystringmap_binding();
obj.set_name(name);
policystringmap_binding response = (policystringmap_binding) obj.get_resource(service);
return response;
} | java | public static policystringmap_binding get(nitro_service service, String name) throws Exception{
policystringmap_binding obj = new policystringmap_binding();
obj.set_name(name);
policystringmap_binding response = (policystringmap_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"policystringmap_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"policystringmap_binding",
"obj",
"=",
"new",
"policystringmap_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"nam... | Use this API to fetch policystringmap_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"policystringmap_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/policy/policystringmap_binding.java#L103-L108 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternodegroup_crvserver_binding.java | clusternodegroup_crvserver_binding.count | public static long count(nitro_service service, clusternodegroup_crvserver_binding obj) throws Exception{
options option = new options();
option.set_count(true);
option.set_args(nitro_util.object_to_string_withoutquotes(obj));
clusternodegroup_crvserver_binding response[] = (clusternodegroup_crvserver_binding[]... | java | public static long count(nitro_service service, clusternodegroup_crvserver_binding obj) throws Exception{
options option = new options();
option.set_count(true);
option.set_args(nitro_util.object_to_string_withoutquotes(obj));
clusternodegroup_crvserver_binding response[] = (clusternodegroup_crvserver_binding[]... | [
"public",
"static",
"long",
"count",
"(",
"nitro_service",
"service",
",",
"clusternodegroup_crvserver_binding",
"obj",
")",
"throws",
"Exception",
"{",
"options",
"option",
"=",
"new",
"options",
"(",
")",
";",
"option",
".",
"set_count",
"(",
"true",
")",
";... | Use this API to count clusternodegroup_crvserver_binding resources configued on NetScaler. | [
"Use",
"this",
"API",
"to",
"count",
"clusternodegroup_crvserver_binding",
"resources",
"configued",
"on",
"NetScaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cluster/clusternodegroup_crvserver_binding.java#L178-L187 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/ArrayUtils.java | ArrayUtils.asSet | public static <T> Set<T> asSet(T[] a) {
return new HashSet<T>(Arrays.asList(a));
} | java | public static <T> Set<T> asSet(T[] a) {
return new HashSet<T>(Arrays.asList(a));
} | [
"public",
"static",
"<",
"T",
">",
"Set",
"<",
"T",
">",
"asSet",
"(",
"T",
"[",
"]",
"a",
")",
"{",
"return",
"new",
"HashSet",
"<",
"T",
">",
"(",
"Arrays",
".",
"asList",
"(",
"a",
")",
")",
";",
"}"
] | Return a set containing the same elements as the specified array. | [
"Return",
"a",
"set",
"containing",
"the",
"same",
"elements",
"as",
"the",
"specified",
"array",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/ArrayUtils.java#L567-L569 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/ArrayUtils.java | ArrayUtils.toDouble | public static double[] toDouble(float[] a) {
double[] d = new double[a.length];
for (int i = 0; i < a.length; i++) {
d[i] = a[i];
}
return d;
} | java | public static double[] toDouble(float[] a) {
double[] d = new double[a.length];
for (int i = 0; i < a.length; i++) {
d[i] = a[i];
}
return d;
} | [
"public",
"static",
"double",
"[",
"]",
"toDouble",
"(",
"float",
"[",
"]",
"a",
")",
"{",
"double",
"[",
"]",
"d",
"=",
"new",
"double",
"[",
"a",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"a",
".",
"length",
... | Casts to a double array | [
"Casts",
"to",
"a",
"double",
"array"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/ArrayUtils.java#L612-L618 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/util/ArrayUtils.java | ArrayUtils.toDouble | public static double[] toDouble(int[] array) {
double[] rv = new double[array.length];
for (int i = 0; i < array.length; i++) {
rv[i] = array[i];
}
return rv;
} | java | public static double[] toDouble(int[] array) {
double[] rv = new double[array.length];
for (int i = 0; i < array.length; i++) {
rv[i] = array[i];
}
return rv;
} | [
"public",
"static",
"double",
"[",
"]",
"toDouble",
"(",
"int",
"[",
"]",
"array",
")",
"{",
"double",
"[",
"]",
"rv",
"=",
"new",
"double",
"[",
"array",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"array",
".",
... | Casts to a double array. | [
"Casts",
"to",
"a",
"double",
"array",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/ArrayUtils.java#L623-L629 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnsessionpolicy.java | vpnsessionpolicy.add | public static base_response add(nitro_service client, vpnsessionpolicy resource) throws Exception {
vpnsessionpolicy addresource = new vpnsessionpolicy();
addresource.name = resource.name;
addresource.rule = resource.rule;
addresource.action = resource.action;
return addresource.add_resource(client);
} | java | public static base_response add(nitro_service client, vpnsessionpolicy resource) throws Exception {
vpnsessionpolicy addresource = new vpnsessionpolicy();
addresource.name = resource.name;
addresource.rule = resource.rule;
addresource.action = resource.action;
return addresource.add_resource(client);
} | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"vpnsessionpolicy",
"resource",
")",
"throws",
"Exception",
"{",
"vpnsessionpolicy",
"addresource",
"=",
"new",
"vpnsessionpolicy",
"(",
")",
";",
"addresource",
".",
"name",
"=",
"re... | Use this API to add vpnsessionpolicy. | [
"Use",
"this",
"API",
"to",
"add",
"vpnsessionpolicy",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnsessionpolicy.java#L156-L162 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnsessionpolicy.java | vpnsessionpolicy.update | public static base_response update(nitro_service client, vpnsessionpolicy resource) throws Exception {
vpnsessionpolicy updateresource = new vpnsessionpolicy();
updateresource.name = resource.name;
updateresource.rule = resource.rule;
updateresource.action = resource.action;
return updateresource.update_resou... | java | public static base_response update(nitro_service client, vpnsessionpolicy resource) throws Exception {
vpnsessionpolicy updateresource = new vpnsessionpolicy();
updateresource.name = resource.name;
updateresource.rule = resource.rule;
updateresource.action = resource.action;
return updateresource.update_resou... | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"vpnsessionpolicy",
"resource",
")",
"throws",
"Exception",
"{",
"vpnsessionpolicy",
"updateresource",
"=",
"new",
"vpnsessionpolicy",
"(",
")",
";",
"updateresource",
".",
"name",
"... | Use this API to update vpnsessionpolicy. | [
"Use",
"this",
"API",
"to",
"update",
"vpnsessionpolicy",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnsessionpolicy.java#L235-L241 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnsessionpolicy.java | vpnsessionpolicy.get | public static vpnsessionpolicy[] get(nitro_service service) throws Exception{
vpnsessionpolicy obj = new vpnsessionpolicy();
vpnsessionpolicy[] response = (vpnsessionpolicy[])obj.get_resources(service);
return response;
} | java | public static vpnsessionpolicy[] get(nitro_service service) throws Exception{
vpnsessionpolicy obj = new vpnsessionpolicy();
vpnsessionpolicy[] response = (vpnsessionpolicy[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"vpnsessionpolicy",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"vpnsessionpolicy",
"obj",
"=",
"new",
"vpnsessionpolicy",
"(",
")",
";",
"vpnsessionpolicy",
"[",
"]",
"response",
"=",
"(",
"vpnsessionpo... | Use this API to fetch all the vpnsessionpolicy resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"vpnsessionpolicy",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnsessionpolicy.java#L308-L312 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnsessionpolicy.java | vpnsessionpolicy.get | public static vpnsessionpolicy get(nitro_service service, String name) throws Exception{
vpnsessionpolicy obj = new vpnsessionpolicy();
obj.set_name(name);
vpnsessionpolicy response = (vpnsessionpolicy) obj.get_resource(service);
return response;
} | java | public static vpnsessionpolicy get(nitro_service service, String name) throws Exception{
vpnsessionpolicy obj = new vpnsessionpolicy();
obj.set_name(name);
vpnsessionpolicy response = (vpnsessionpolicy) obj.get_resource(service);
return response;
} | [
"public",
"static",
"vpnsessionpolicy",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"vpnsessionpolicy",
"obj",
"=",
"new",
"vpnsessionpolicy",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"... | Use this API to fetch vpnsessionpolicy resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"vpnsessionpolicy",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnsessionpolicy.java#L324-L329 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/classify/SVMLightClassifierFactory.java | SVMLightClassifierFactory.readModel | private static Pair<Double, ClassicCounter<Integer>> readModel(File modelFile, boolean multiclass) {
int modelLineCount = 0;
try {
int numLinesToSkip = multiclass ? 13 : 10;
String stopToken = "#";
BufferedReader in = new BufferedReader(new FileReader(modelFile));
for (int ... | java | private static Pair<Double, ClassicCounter<Integer>> readModel(File modelFile, boolean multiclass) {
int modelLineCount = 0;
try {
int numLinesToSkip = multiclass ? 13 : 10;
String stopToken = "#";
BufferedReader in = new BufferedReader(new FileReader(modelFile));
for (int ... | [
"private",
"static",
"Pair",
"<",
"Double",
",",
"ClassicCounter",
"<",
"Integer",
">",
">",
"readModel",
"(",
"File",
"modelFile",
",",
"boolean",
"multiclass",
")",
"{",
"int",
"modelLineCount",
"=",
"0",
";",
"try",
"{",
"int",
"numLinesToSkip",
"=",
"m... | Reads in a model file in svm light format. It needs to know if its multiclass or not
because it affects the number of header lines. Maybe there is another way to tell and we
can remove this flag? | [
"Reads",
"in",
"a",
"model",
"file",
"in",
"svm",
"light",
"format",
".",
"It",
"needs",
"to",
"know",
"if",
"its",
"multiclass",
"or",
"not",
"because",
"it",
"affects",
"the",
"number",
"of",
"header",
"lines",
".",
"Maybe",
"there",
"is",
"another",
... | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/classify/SVMLightClassifierFactory.java#L106-L157 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/classify/SVMLightClassifierFactory.java | SVMLightClassifierFactory.convertWeights | private ClassicCounter<Pair<F, L>> convertWeights(ClassicCounter<Integer> weights, Index<F> featureIndex, Index<L> labelIndex, boolean multiclass) {
return multiclass ? convertSVMStructWeights(weights, featureIndex, labelIndex) : convertSVMLightWeights(weights, featureIndex, labelIndex);
} | java | private ClassicCounter<Pair<F, L>> convertWeights(ClassicCounter<Integer> weights, Index<F> featureIndex, Index<L> labelIndex, boolean multiclass) {
return multiclass ? convertSVMStructWeights(weights, featureIndex, labelIndex) : convertSVMLightWeights(weights, featureIndex, labelIndex);
} | [
"private",
"ClassicCounter",
"<",
"Pair",
"<",
"F",
",",
"L",
">",
">",
"convertWeights",
"(",
"ClassicCounter",
"<",
"Integer",
">",
"weights",
",",
"Index",
"<",
"F",
">",
"featureIndex",
",",
"Index",
"<",
"L",
">",
"labelIndex",
",",
"boolean",
"mult... | Converts the weight Counter to be from indexed, svm_light format, to a format
we can use in our LinearClassifier. | [
"Converts",
"the",
"weight",
"Counter",
"to",
"be",
"from",
"indexed",
"svm_light",
"format",
"to",
"a",
"format",
"we",
"can",
"use",
"in",
"our",
"LinearClassifier",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/classify/SVMLightClassifierFactory.java#L179-L181 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/classify/SVMLightClassifierFactory.java | SVMLightClassifierFactory.fitSigmoid | private LinearClassifier<L, L> fitSigmoid(SVMLightClassifier<L, F> classifier, GeneralDataset<L, F> dataset) {
RVFDataset<L, L> plattDataset = new RVFDataset<L, L>();
for (int i = 0; i < dataset.size(); i++) {
RVFDatum<L, F> d = dataset.getRVFDatum(i);
Counter<L> scores = classifier.scoresOf((Da... | java | private LinearClassifier<L, L> fitSigmoid(SVMLightClassifier<L, F> classifier, GeneralDataset<L, F> dataset) {
RVFDataset<L, L> plattDataset = new RVFDataset<L, L>();
for (int i = 0; i < dataset.size(); i++) {
RVFDatum<L, F> d = dataset.getRVFDatum(i);
Counter<L> scores = classifier.scoresOf((Da... | [
"private",
"LinearClassifier",
"<",
"L",
",",
"L",
">",
"fitSigmoid",
"(",
"SVMLightClassifier",
"<",
"L",
",",
"F",
">",
"classifier",
",",
"GeneralDataset",
"<",
"L",
",",
"F",
">",
"dataset",
")",
"{",
"RVFDataset",
"<",
"L",
",",
"L",
">",
"plattDa... | Builds a sigmoid model to turn the classifier outputs into probabilities. | [
"Builds",
"a",
"sigmoid",
"model",
"to",
"turn",
"the",
"classifier",
"outputs",
"into",
"probabilities",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/classify/SVMLightClassifierFactory.java#L224-L235 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/gslb/gslbservice_binding.java | gslbservice_binding.get | public static gslbservice_binding get(nitro_service service, String servicename) throws Exception{
gslbservice_binding obj = new gslbservice_binding();
obj.set_servicename(servicename);
gslbservice_binding response = (gslbservice_binding) obj.get_resource(service);
return response;
} | java | public static gslbservice_binding get(nitro_service service, String servicename) throws Exception{
gslbservice_binding obj = new gslbservice_binding();
obj.set_servicename(servicename);
gslbservice_binding response = (gslbservice_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"gslbservice_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"servicename",
")",
"throws",
"Exception",
"{",
"gslbservice_binding",
"obj",
"=",
"new",
"gslbservice_binding",
"(",
")",
";",
"obj",
".",
"set_servicename",
"(",
"s... | Use this API to fetch gslbservice_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"gslbservice_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/gslb/gslbservice_binding.java#L114-L119 | train |
meertensinstituut/mtas | src/main/java/mtas/analysis/util/MtasFetchData.java | MtasFetchData.getUrl | public Reader getUrl(String prefix, String postfix)
throws MtasParserException {
String url = getString();
if ((url != null) && !url.equals("")) {
if (prefix != null) {
url = prefix + url;
}
if (postfix != null) {
url = url + postfix;
}
if (url.startsWith("htt... | java | public Reader getUrl(String prefix, String postfix)
throws MtasParserException {
String url = getString();
if ((url != null) && !url.equals("")) {
if (prefix != null) {
url = prefix + url;
}
if (postfix != null) {
url = url + postfix;
}
if (url.startsWith("htt... | [
"public",
"Reader",
"getUrl",
"(",
"String",
"prefix",
",",
"String",
"postfix",
")",
"throws",
"MtasParserException",
"{",
"String",
"url",
"=",
"getString",
"(",
")",
";",
"if",
"(",
"(",
"url",
"!=",
"null",
")",
"&&",
"!",
"url",
".",
"equals",
"("... | Gets the url.
@param prefix the prefix
@param postfix the postfix
@return the url
@throws MtasParserException the mtas parser exception | [
"Gets",
"the",
"url",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/analysis/util/MtasFetchData.java#L68-L104 | train |
meertensinstituut/mtas | src/main/java/mtas/analysis/util/MtasFetchData.java | MtasFetchData.getFile | public Reader getFile(String prefix, String postfix)
throws MtasParserException {
String file = getString();
if ((file != null) && !file.equals("")) {
if (prefix != null) {
file = prefix + file;
}
if (postfix != null) {
file = file + postfix;
}
Path path = (ne... | java | public Reader getFile(String prefix, String postfix)
throws MtasParserException {
String file = getString();
if ((file != null) && !file.equals("")) {
if (prefix != null) {
file = prefix + file;
}
if (postfix != null) {
file = file + postfix;
}
Path path = (ne... | [
"public",
"Reader",
"getFile",
"(",
"String",
"prefix",
",",
"String",
"postfix",
")",
"throws",
"MtasParserException",
"{",
"String",
"file",
"=",
"getString",
"(",
")",
";",
"if",
"(",
"(",
"file",
"!=",
"null",
")",
"&&",
"!",
"file",
".",
"equals",
... | Gets the file.
@param prefix the prefix
@param postfix the postfix
@return the file
@throws MtasParserException the mtas parser exception | [
"Gets",
"the",
"file",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/analysis/util/MtasFetchData.java#L114-L145 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/basic/service_binding.java | service_binding.get | public static service_binding get(nitro_service service, String name) throws Exception{
service_binding obj = new service_binding();
obj.set_name(name);
service_binding response = (service_binding) obj.get_resource(service);
return response;
} | java | public static service_binding get(nitro_service service, String name) throws Exception{
service_binding obj = new service_binding();
obj.set_name(name);
service_binding response = (service_binding) obj.get_resource(service);
return response;
} | [
"public",
"static",
"service_binding",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"service_binding",
"obj",
"=",
"new",
"service_binding",
"(",
")",
";",
"obj",
".",
"set_name",
"(",
"name",
")",
";",
"ser... | Use this API to fetch service_binding resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"service_binding",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/basic/service_binding.java#L125-L130 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemglobal_authenticationlocalpolicy_binding.java | systemglobal_authenticationlocalpolicy_binding.get | public static systemglobal_authenticationlocalpolicy_binding[] get(nitro_service service) throws Exception{
systemglobal_authenticationlocalpolicy_binding obj = new systemglobal_authenticationlocalpolicy_binding();
systemglobal_authenticationlocalpolicy_binding response[] = (systemglobal_authenticationlocalpolicy_b... | java | public static systemglobal_authenticationlocalpolicy_binding[] get(nitro_service service) throws Exception{
systemglobal_authenticationlocalpolicy_binding obj = new systemglobal_authenticationlocalpolicy_binding();
systemglobal_authenticationlocalpolicy_binding response[] = (systemglobal_authenticationlocalpolicy_b... | [
"public",
"static",
"systemglobal_authenticationlocalpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"systemglobal_authenticationlocalpolicy_binding",
"obj",
"=",
"new",
"systemglobal_authenticationlocalpolicy_binding",
"(",
"... | Use this API to fetch a systemglobal_authenticationlocalpolicy_binding resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"a",
"systemglobal_authenticationlocalpolicy_binding",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systemglobal_authenticationlocalpolicy_binding.java#L180-L184 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditsyslogpolicy_tmglobal_binding.java | auditsyslogpolicy_tmglobal_binding.get | public static auditsyslogpolicy_tmglobal_binding[] get(nitro_service service, String name) throws Exception{
auditsyslogpolicy_tmglobal_binding obj = new auditsyslogpolicy_tmglobal_binding();
obj.set_name(name);
auditsyslogpolicy_tmglobal_binding response[] = (auditsyslogpolicy_tmglobal_binding[]) obj.get_resourc... | java | public static auditsyslogpolicy_tmglobal_binding[] get(nitro_service service, String name) throws Exception{
auditsyslogpolicy_tmglobal_binding obj = new auditsyslogpolicy_tmglobal_binding();
obj.set_name(name);
auditsyslogpolicy_tmglobal_binding response[] = (auditsyslogpolicy_tmglobal_binding[]) obj.get_resourc... | [
"public",
"static",
"auditsyslogpolicy_tmglobal_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"auditsyslogpolicy_tmglobal_binding",
"obj",
"=",
"new",
"auditsyslogpolicy_tmglobal_binding",
"(",
")",
"... | Use this API to fetch auditsyslogpolicy_tmglobal_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"auditsyslogpolicy_tmglobal_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditsyslogpolicy_tmglobal_binding.java#L132-L137 | train |
meertensinstituut/mtas | src/main/java/mtas/analysis/util/MtasBufferedReader.java | MtasBufferedReader.readLine | String readLine(boolean ignoreLF) throws IOException {
StringBuffer s = null;
int startChar;
synchronized (lock) {
ensureOpen();
boolean omitLF = ignoreLF || skipLF;
for (;;) {
if (nextChar >= nChars)
fill();
if (nextChar >= nChars) { /* EOF */
if (s ... | java | String readLine(boolean ignoreLF) throws IOException {
StringBuffer s = null;
int startChar;
synchronized (lock) {
ensureOpen();
boolean omitLF = ignoreLF || skipLF;
for (;;) {
if (nextChar >= nChars)
fill();
if (nextChar >= nChars) { /* EOF */
if (s ... | [
"String",
"readLine",
"(",
"boolean",
"ignoreLF",
")",
"throws",
"IOException",
"{",
"StringBuffer",
"s",
"=",
"null",
";",
"int",
"startChar",
";",
"synchronized",
"(",
"lock",
")",
"{",
"ensureOpen",
"(",
")",
";",
"boolean",
"omitLF",
"=",
"ignoreLF",
"... | Read line.
@param ignoreLF the ignore LF
@return the string
@throws IOException Signals that an I/O exception has occurred. | [
"Read",
"line",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/analysis/util/MtasBufferedReader.java#L196-L255 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnparameter.java | vpnparameter.unset | public static base_response unset(nitro_service client, vpnparameter resource, String[] args) throws Exception{
vpnparameter unsetresource = new vpnparameter();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, vpnparameter resource, String[] args) throws Exception{
vpnparameter unsetresource = new vpnparameter();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"vpnparameter",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"vpnparameter",
"unsetresource",
"=",
"new",
"vpnparameter",
"(",
")",
";",
"return",... | Use this API to unset the properties of vpnparameter resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"vpnparameter",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnparameter.java#L1477-L1480 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnparameter.java | vpnparameter.get | public static vpnparameter get(nitro_service service, options option) throws Exception{
vpnparameter obj = new vpnparameter();
vpnparameter[] response = (vpnparameter[])obj.get_resources(service,option);
return response[0];
} | java | public static vpnparameter get(nitro_service service, options option) throws Exception{
vpnparameter obj = new vpnparameter();
vpnparameter[] response = (vpnparameter[])obj.get_resources(service,option);
return response[0];
} | [
"public",
"static",
"vpnparameter",
"get",
"(",
"nitro_service",
"service",
",",
"options",
"option",
")",
"throws",
"Exception",
"{",
"vpnparameter",
"obj",
"=",
"new",
"vpnparameter",
"(",
")",
";",
"vpnparameter",
"[",
"]",
"response",
"=",
"(",
"vpnparamet... | Use this API to fetch all the vpnparameter resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"vpnparameter",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnparameter.java#L1494-L1498 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/sequences/PlainTextDocumentReaderAndWriter.java | PlainTextDocumentReaderAndWriter.getIterator | public Iterator<List<IN>> getIterator(Reader r) {
Tokenizer<IN> tokenizer = tokenizerFactory.getTokenizer(r);
// PTBTokenizer.newPTBTokenizer(r, false, true);
List<IN> words = new ArrayList<IN>();
IN previous = tokenFactory.makeToken();
StringBuilder prepend = new StringBuilder();
/*
... | java | public Iterator<List<IN>> getIterator(Reader r) {
Tokenizer<IN> tokenizer = tokenizerFactory.getTokenizer(r);
// PTBTokenizer.newPTBTokenizer(r, false, true);
List<IN> words = new ArrayList<IN>();
IN previous = tokenFactory.makeToken();
StringBuilder prepend = new StringBuilder();
/*
... | [
"public",
"Iterator",
"<",
"List",
"<",
"IN",
">",
">",
"getIterator",
"(",
"Reader",
"r",
")",
"{",
"Tokenizer",
"<",
"IN",
">",
"tokenizer",
"=",
"tokenizerFactory",
".",
"getTokenizer",
"(",
"r",
")",
";",
"// PTBTokenizer.newPTBTokenizer(r, false, true);\r",... | sentence splitting as now | [
"sentence",
"splitting",
"as",
"now"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/sequences/PlainTextDocumentReaderAndWriter.java#L125-L178 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_dospolicy_binding.java | lbvserver_dospolicy_binding.get | public static lbvserver_dospolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_dospolicy_binding obj = new lbvserver_dospolicy_binding();
obj.set_name(name);
lbvserver_dospolicy_binding response[] = (lbvserver_dospolicy_binding[]) obj.get_resources(service);
return response;
} | java | public static lbvserver_dospolicy_binding[] get(nitro_service service, String name) throws Exception{
lbvserver_dospolicy_binding obj = new lbvserver_dospolicy_binding();
obj.set_name(name);
lbvserver_dospolicy_binding response[] = (lbvserver_dospolicy_binding[]) obj.get_resources(service);
return response;
} | [
"public",
"static",
"lbvserver_dospolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"lbvserver_dospolicy_binding",
"obj",
"=",
"new",
"lbvserver_dospolicy_binding",
"(",
")",
";",
"obj",
".",
... | Use this API to fetch lbvserver_dospolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"lbvserver_dospolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_dospolicy_binding.java#L144-L149 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrunningconfig.java | nsrunningconfig.get | public static nsrunningconfig get(nitro_service service) throws Exception{
nsrunningconfig obj = new nsrunningconfig();
nsrunningconfig[] response = (nsrunningconfig[])obj.get_resources(service);
return response[0];
} | java | public static nsrunningconfig get(nitro_service service) throws Exception{
nsrunningconfig obj = new nsrunningconfig();
nsrunningconfig[] response = (nsrunningconfig[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"nsrunningconfig",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"nsrunningconfig",
"obj",
"=",
"new",
"nsrunningconfig",
"(",
")",
";",
"nsrunningconfig",
"[",
"]",
"response",
"=",
"(",
"nsrunningconfig",
"[",
"]"... | Use this API to fetch all the nsrunningconfig resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"nsrunningconfig",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrunningconfig.java#L116-L120 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrunningconfig.java | nsrunningconfig.get | public static nsrunningconfig[] get(nitro_service service, nsrunningconfig_args args) throws Exception{
nsrunningconfig obj = new nsrunningconfig();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
nsrunningconfig[] response = (nsrunningconfig[])obj.get_resources... | java | public static nsrunningconfig[] get(nitro_service service, nsrunningconfig_args args) throws Exception{
nsrunningconfig obj = new nsrunningconfig();
options option = new options();
option.set_args(nitro_util.object_to_string_withoutquotes(args));
nsrunningconfig[] response = (nsrunningconfig[])obj.get_resources... | [
"public",
"static",
"nsrunningconfig",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"nsrunningconfig_args",
"args",
")",
"throws",
"Exception",
"{",
"nsrunningconfig",
"obj",
"=",
"new",
"nsrunningconfig",
"(",
")",
";",
"options",
"option",
"=",
"new"... | Use this API to fetch all the nsrunningconfig resources that are configured on netscaler.
This uses nsrunningconfig_args which is a way to provide additional arguments while fetching the resources. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"nsrunningconfig",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
".",
"This",
"uses",
"nsrunningconfig_args",
"which",
"is",
"a",
"way",
"to",
"provide",
"additional",
"arguments",
"while",
"fetch... | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrunningconfig.java#L135-L141 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/basic/servicegroup_servicegroupmember_binding.java | servicegroup_servicegroupmember_binding.get | public static servicegroup_servicegroupmember_binding[] get(nitro_service service, String servicegroupname) throws Exception{
servicegroup_servicegroupmember_binding obj = new servicegroup_servicegroupmember_binding();
obj.set_servicegroupname(servicegroupname);
servicegroup_servicegroupmember_binding response[] ... | java | public static servicegroup_servicegroupmember_binding[] get(nitro_service service, String servicegroupname) throws Exception{
servicegroup_servicegroupmember_binding obj = new servicegroup_servicegroupmember_binding();
obj.set_servicegroupname(servicegroupname);
servicegroup_servicegroupmember_binding response[] ... | [
"public",
"static",
"servicegroup_servicegroupmember_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"servicegroupname",
")",
"throws",
"Exception",
"{",
"servicegroup_servicegroupmember_binding",
"obj",
"=",
"new",
"servicegroup_servicegroupmember_... | Use this API to fetch servicegroup_servicegroupmember_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"servicegroup_servicegroupmember_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/basic/servicegroup_servicegroupmember_binding.java#L371-L376 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaagroup_auditnslogpolicy_binding.java | aaagroup_auditnslogpolicy_binding.get | public static aaagroup_auditnslogpolicy_binding[] get(nitro_service service, String groupname) throws Exception{
aaagroup_auditnslogpolicy_binding obj = new aaagroup_auditnslogpolicy_binding();
obj.set_groupname(groupname);
aaagroup_auditnslogpolicy_binding response[] = (aaagroup_auditnslogpolicy_binding[]) obj.g... | java | public static aaagroup_auditnslogpolicy_binding[] get(nitro_service service, String groupname) throws Exception{
aaagroup_auditnslogpolicy_binding obj = new aaagroup_auditnslogpolicy_binding();
obj.set_groupname(groupname);
aaagroup_auditnslogpolicy_binding response[] = (aaagroup_auditnslogpolicy_binding[]) obj.g... | [
"public",
"static",
"aaagroup_auditnslogpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"groupname",
")",
"throws",
"Exception",
"{",
"aaagroup_auditnslogpolicy_binding",
"obj",
"=",
"new",
"aaagroup_auditnslogpolicy_binding",
"(",
")",
... | Use this API to fetch aaagroup_auditnslogpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"aaagroup_auditnslogpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/aaa/aaagroup_auditnslogpolicy_binding.java#L246-L251 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/network/nd6ravariables_onlinkipv6prefix_binding.java | nd6ravariables_onlinkipv6prefix_binding.get | public static nd6ravariables_onlinkipv6prefix_binding[] get(nitro_service service, Long vlan) throws Exception{
nd6ravariables_onlinkipv6prefix_binding obj = new nd6ravariables_onlinkipv6prefix_binding();
obj.set_vlan(vlan);
nd6ravariables_onlinkipv6prefix_binding response[] = (nd6ravariables_onlinkipv6prefix_bin... | java | public static nd6ravariables_onlinkipv6prefix_binding[] get(nitro_service service, Long vlan) throws Exception{
nd6ravariables_onlinkipv6prefix_binding obj = new nd6ravariables_onlinkipv6prefix_binding();
obj.set_vlan(vlan);
nd6ravariables_onlinkipv6prefix_binding response[] = (nd6ravariables_onlinkipv6prefix_bin... | [
"public",
"static",
"nd6ravariables_onlinkipv6prefix_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"Long",
"vlan",
")",
"throws",
"Exception",
"{",
"nd6ravariables_onlinkipv6prefix_binding",
"obj",
"=",
"new",
"nd6ravariables_onlinkipv6prefix_binding",
"(... | Use this API to fetch nd6ravariables_onlinkipv6prefix_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"nd6ravariables_onlinkipv6prefix_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/nd6ravariables_onlinkipv6prefix_binding.java#L166-L171 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.exp | public static double[] exp(double[] a) {
double[] result = new double[a.length];
for (int i = 0; i < a.length; i++) {
result[i] = Math.exp(a[i]);
}
return result;
} | java | public static double[] exp(double[] a) {
double[] result = new double[a.length];
for (int i = 0; i < a.length; i++) {
result[i] = Math.exp(a[i]);
}
return result;
} | [
"public",
"static",
"double",
"[",
"]",
"exp",
"(",
"double",
"[",
"]",
"a",
")",
"{",
"double",
"[",
"]",
"result",
"=",
"new",
"double",
"[",
"a",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"a",
".",
"length",... | OPERATIONS ON AN ARRAY - NONDESTRUCTIVE | [
"OPERATIONS",
"ON",
"AN",
"ARRAY",
"-",
"NONDESTRUCTIVE"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L83-L89 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.expInPlace | public static void expInPlace(double[] a) {
for (int i = 0; i < a.length; i++) {
a[i] = Math.exp(a[i]);
}
} | java | public static void expInPlace(double[] a) {
for (int i = 0; i < a.length; i++) {
a[i] = Math.exp(a[i]);
}
} | [
"public",
"static",
"void",
"expInPlace",
"(",
"double",
"[",
"]",
"a",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"a",
".",
"length",
";",
"i",
"++",
")",
"{",
"a",
"[",
"i",
"]",
"=",
"Math",
".",
"exp",
"(",
"a",
"[",
"... | OPERATIONS ON AN ARRAY - DESTRUCTIVE | [
"OPERATIONS",
"ON",
"AN",
"ARRAY",
"-",
"DESTRUCTIVE"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L101-L105 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.addInPlace | public static void addInPlace(double[] a, double b) {
for (int i = 0; i < a.length; i++) {
a[i] = a[i] + b;
}
} | java | public static void addInPlace(double[] a, double b) {
for (int i = 0; i < a.length; i++) {
a[i] = a[i] + b;
}
} | [
"public",
"static",
"void",
"addInPlace",
"(",
"double",
"[",
"]",
"a",
",",
"double",
"b",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"a",
".",
"length",
";",
"i",
"++",
")",
"{",
"a",
"[",
"i",
"]",
"=",
"a",
"[",
"i",
"... | Increases the values in this array by b. Does it in place.
@param a The array
@param b The amount by which to increase each item | [
"Increases",
"the",
"values",
"in",
"this",
"array",
"by",
"b",
".",
"Does",
"it",
"in",
"place",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L121-L125 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.addMultInPlace | public static void addMultInPlace(double[] a, double[] b, double c) {
for (int i=0; i<a.length; i++) {
a[i] += b[i] * c;
}
} | java | public static void addMultInPlace(double[] a, double[] b, double c) {
for (int i=0; i<a.length; i++) {
a[i] += b[i] * c;
}
} | [
"public",
"static",
"void",
"addMultInPlace",
"(",
"double",
"[",
"]",
"a",
",",
"double",
"[",
"]",
"b",
",",
"double",
"c",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"a",
".",
"length",
";",
"i",
"++",
")",
"{",
"a",
"[",
... | Add c times the array b to array a. Does it in place. | [
"Add",
"c",
"times",
"the",
"array",
"b",
"to",
"array",
"a",
".",
"Does",
"it",
"in",
"place",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L142-L146 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.multiplyInPlace | public static void multiplyInPlace(double[] a, double b) {
for (int i = 0; i < a.length; i++) {
a[i] = a[i] * b;
}
} | java | public static void multiplyInPlace(double[] a, double b) {
for (int i = 0; i < a.length; i++) {
a[i] = a[i] * b;
}
} | [
"public",
"static",
"void",
"multiplyInPlace",
"(",
"double",
"[",
"]",
"a",
",",
"double",
"b",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"a",
".",
"length",
";",
"i",
"++",
")",
"{",
"a",
"[",
"i",
"]",
"=",
"a",
"[",
"i"... | Scales the values in this array by b. Does it in place. | [
"Scales",
"the",
"values",
"in",
"this",
"array",
"by",
"b",
".",
"Does",
"it",
"in",
"place",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L151-L155 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.add | public static double[] add(double[] a, double c) {
double[] result = new double[a.length];
for (int i = 0; i < a.length; i++) {
result[i] = a[i] + c;
}
return result;
} | java | public static double[] add(double[] a, double c) {
double[] result = new double[a.length];
for (int i = 0; i < a.length; i++) {
result[i] = a[i] + c;
}
return result;
} | [
"public",
"static",
"double",
"[",
"]",
"add",
"(",
"double",
"[",
"]",
"a",
",",
"double",
"c",
")",
"{",
"double",
"[",
"]",
"result",
"=",
"new",
"double",
"[",
"a",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",... | OPERATIONS WITH SCALAR - NONDESTRUCTIVE | [
"OPERATIONS",
"WITH",
"SCALAR",
"-",
"NONDESTRUCTIVE"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L186-L192 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.pow | public static double[] pow(double[] a, double c) {
double[] result = new double[a.length];
for (int i = 0; i < a.length; i++) {
result[i] = Math.pow(a[i], c);
}
return result;
} | java | public static double[] pow(double[] a, double c) {
double[] result = new double[a.length];
for (int i = 0; i < a.length; i++) {
result[i] = Math.pow(a[i], c);
}
return result;
} | [
"public",
"static",
"double",
"[",
"]",
"pow",
"(",
"double",
"[",
"]",
"a",
",",
"double",
"c",
")",
"{",
"double",
"[",
"]",
"result",
"=",
"new",
"double",
"[",
"a",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",... | raises each entry in array a by power c | [
"raises",
"each",
"entry",
"in",
"array",
"a",
"by",
"power",
"c"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L227-L233 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.pairwiseAdd | public static int[] pairwiseAdd(int[] a, int[] b) {
int[] result = new int[a.length];
for (int i = 0; i < a.length; i++) {
result[i] = a[i] + b[i];
}
return result;
} | java | public static int[] pairwiseAdd(int[] a, int[] b) {
int[] result = new int[a.length];
for (int i = 0; i < a.length; i++) {
result[i] = a[i] + b[i];
}
return result;
} | [
"public",
"static",
"int",
"[",
"]",
"pairwiseAdd",
"(",
"int",
"[",
"]",
"a",
",",
"int",
"[",
"]",
"b",
")",
"{",
"int",
"[",
"]",
"result",
"=",
"new",
"int",
"[",
"a",
".",
"length",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",... | OPERATIONS WITH TWO ARRAYS - NONDESTRUCTIVE | [
"OPERATIONS",
"WITH",
"TWO",
"ARRAYS",
"-",
"NONDESTRUCTIVE"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L295-L301 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.pairwiseMultiply | public static double[] pairwiseMultiply(double[] a, double[] b) {
if (a.length != b.length) {
throw new RuntimeException("Can't pairwise multiple different lengths: a.length=" + a.length + " b.length=" + b.length);
}
double[] result = new double[a.length];
for (int i = 0; i < result.length; i... | java | public static double[] pairwiseMultiply(double[] a, double[] b) {
if (a.length != b.length) {
throw new RuntimeException("Can't pairwise multiple different lengths: a.length=" + a.length + " b.length=" + b.length);
}
double[] result = new double[a.length];
for (int i = 0; i < result.length; i... | [
"public",
"static",
"double",
"[",
"]",
"pairwiseMultiply",
"(",
"double",
"[",
"]",
"a",
",",
"double",
"[",
"]",
"b",
")",
"{",
"if",
"(",
"a",
".",
"length",
"!=",
"b",
".",
"length",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"Can't pai... | Assumes that both arrays have same length. | [
"Assumes",
"that",
"both",
"arrays",
"have",
"same",
"length",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L353-L362 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.norm_1 | public static double norm_1(double[] a) {
double sum = 0;
for (double anA : a) {
sum += (anA < 0 ? -anA : anA);
}
return sum;
} | java | public static double norm_1(double[] a) {
double sum = 0;
for (double anA : a) {
sum += (anA < 0 ? -anA : anA);
}
return sum;
} | [
"public",
"static",
"double",
"norm_1",
"(",
"double",
"[",
"]",
"a",
")",
"{",
"double",
"sum",
"=",
"0",
";",
"for",
"(",
"double",
"anA",
":",
"a",
")",
"{",
"sum",
"+=",
"(",
"anA",
"<",
"0",
"?",
"-",
"anA",
":",
"anA",
")",
";",
"}",
... | Computes 1-norm of vector
@param a A vector of double
@return 1-norm of a | [
"Computes",
"1",
"-",
"norm",
"of",
"vector"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L610-L616 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.norm | public static double norm(double[] a) {
double squaredSum = 0;
for (double anA : a) {
squaredSum += anA * anA;
}
return Math.sqrt(squaredSum);
} | java | public static double norm(double[] a) {
double squaredSum = 0;
for (double anA : a) {
squaredSum += anA * anA;
}
return Math.sqrt(squaredSum);
} | [
"public",
"static",
"double",
"norm",
"(",
"double",
"[",
"]",
"a",
")",
"{",
"double",
"squaredSum",
"=",
"0",
";",
"for",
"(",
"double",
"anA",
":",
"a",
")",
"{",
"squaredSum",
"+=",
"anA",
"*",
"anA",
";",
"}",
"return",
"Math",
".",
"sqrt",
... | Computes 2-norm of vector
@param a A vector of double
@return Euclidean norm of a | [
"Computes",
"2",
"-",
"norm",
"of",
"vector"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L639-L645 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.innerProduct | public static double innerProduct(double[] a, double[] b) {
double result = 0.0;
int len = Math.min(a.length, b.length);
for (int i = 0; i < len; i++) {
result += a[i] * b[i];
}
return result;
} | java | public static double innerProduct(double[] a, double[] b) {
double result = 0.0;
int len = Math.min(a.length, b.length);
for (int i = 0; i < len; i++) {
result += a[i] * b[i];
}
return result;
} | [
"public",
"static",
"double",
"innerProduct",
"(",
"double",
"[",
"]",
"a",
",",
"double",
"[",
"]",
"b",
")",
"{",
"double",
"result",
"=",
"0.0",
";",
"int",
"len",
"=",
"Math",
".",
"min",
"(",
"a",
".",
"length",
",",
"b",
".",
"length",
")",... | LINEAR ALGEBRAIC FUNCTIONS | [
"LINEAR",
"ALGEBRAIC",
"FUNCTIONS"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L1029-L1036 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.normalize | public static void normalize(double[] a) {
double total = sum(a);
if (total == 0.0 || Double.isNaN(total)) {
throw new RuntimeException("Can't normalize an array with sum 0.0 or NaN: " + Arrays.toString(a));
}
multiplyInPlace(a, 1.0/total); // divide each value by total
} | java | public static void normalize(double[] a) {
double total = sum(a);
if (total == 0.0 || Double.isNaN(total)) {
throw new RuntimeException("Can't normalize an array with sum 0.0 or NaN: " + Arrays.toString(a));
}
multiplyInPlace(a, 1.0/total); // divide each value by total
} | [
"public",
"static",
"void",
"normalize",
"(",
"double",
"[",
"]",
"a",
")",
"{",
"double",
"total",
"=",
"sum",
"(",
"a",
")",
";",
"if",
"(",
"total",
"==",
"0.0",
"||",
"Double",
".",
"isNaN",
"(",
"total",
")",
")",
"{",
"throw",
"new",
"Runti... | Makes the values in this array sum to 1.0. Does it in place.
If the total is 0.0 or NaN, throws an RuntimeException. | [
"Makes",
"the",
"values",
"in",
"this",
"array",
"sum",
"to",
"1",
".",
"0",
".",
"Does",
"it",
"in",
"place",
".",
"If",
"the",
"total",
"is",
"0",
".",
"0",
"or",
"NaN",
"throws",
"an",
"RuntimeException",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L1127-L1133 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.standardize | public static void standardize(double[] a) {
double m = mean(a);
if (Double.isNaN(m))
throw new RuntimeException("Can't standardize array whose mean is NaN");
double s = stdev(a);
if(s == 0.0 || Double.isNaN(s))
throw new RuntimeException("Can't standardize array whose standard deviati... | java | public static void standardize(double[] a) {
double m = mean(a);
if (Double.isNaN(m))
throw new RuntimeException("Can't standardize array whose mean is NaN");
double s = stdev(a);
if(s == 0.0 || Double.isNaN(s))
throw new RuntimeException("Can't standardize array whose standard deviati... | [
"public",
"static",
"void",
"standardize",
"(",
"double",
"[",
"]",
"a",
")",
"{",
"double",
"m",
"=",
"mean",
"(",
"a",
")",
";",
"if",
"(",
"Double",
".",
"isNaN",
"(",
"m",
")",
")",
"throw",
"new",
"RuntimeException",
"(",
"\"Can't standardize arra... | Standardize values in this array, i.e., subtract the mean and divide by the standard deviation.
If standard deviation is 0.0, throws an RuntimeException. | [
"Standardize",
"values",
"in",
"this",
"array",
"i",
".",
"e",
".",
"subtract",
"the",
"mean",
"and",
"divide",
"by",
"the",
"standard",
"deviation",
".",
"If",
"standard",
"deviation",
"is",
"0",
".",
"0",
"throws",
"an",
"RuntimeException",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L1166-L1175 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.sampleFromDistribution | public static int sampleFromDistribution(double[] d, Random random) {
// sample from the uniform [0,1]
double r = random.nextDouble();
// now compare its value to cumulative values to find what interval it falls in
double total = 0;
for (int i = 0; i < d.length - 1; i++) {
if (Double.isN... | java | public static int sampleFromDistribution(double[] d, Random random) {
// sample from the uniform [0,1]
double r = random.nextDouble();
// now compare its value to cumulative values to find what interval it falls in
double total = 0;
for (int i = 0; i < d.length - 1; i++) {
if (Double.isN... | [
"public",
"static",
"int",
"sampleFromDistribution",
"(",
"double",
"[",
"]",
"d",
",",
"Random",
"random",
")",
"{",
"// sample from the uniform [0,1]\r",
"double",
"r",
"=",
"random",
".",
"nextDouble",
"(",
")",
";",
"// now compare its value to cumulative values t... | Samples from the distribution over values 0 through d.length given by d.
Assumes that the distribution sums to 1.0.
@param d the distribution to sample from
@return a value from 0 to d.length | [
"Samples",
"from",
"the",
"distribution",
"over",
"values",
"0",
"through",
"d",
".",
"length",
"given",
"by",
"d",
".",
"Assumes",
"that",
"the",
"distribution",
"sums",
"to",
"1",
".",
"0",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L1231-L1246 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.sampleWithoutReplacement | public static void sampleWithoutReplacement(int[] array, int numArgClasses, Random rand) {
int[] temp = new int[numArgClasses];
for (int i = 0; i < temp.length; i++) {
temp[i] = i;
}
shuffle(temp, rand);
System.arraycopy(temp, 0, array, 0, array.length);
} | java | public static void sampleWithoutReplacement(int[] array, int numArgClasses, Random rand) {
int[] temp = new int[numArgClasses];
for (int i = 0; i < temp.length; i++) {
temp[i] = i;
}
shuffle(temp, rand);
System.arraycopy(temp, 0, array, 0, array.length);
} | [
"public",
"static",
"void",
"sampleWithoutReplacement",
"(",
"int",
"[",
"]",
"array",
",",
"int",
"numArgClasses",
",",
"Random",
"rand",
")",
"{",
"int",
"[",
"]",
"temp",
"=",
"new",
"int",
"[",
"numArgClasses",
"]",
";",
"for",
"(",
"int",
"i",
"="... | Fills the array with sample from 0 to numArgClasses-1 without replacement. | [
"Fills",
"the",
"array",
"with",
"sample",
"from",
"0",
"to",
"numArgClasses",
"-",
"1",
"without",
"replacement",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L1399-L1406 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/math/ArrayMath.java | ArrayMath.absDiffOfMeans | private static double absDiffOfMeans(double[] A, double[] B, boolean randomize) {
Random random = new Random();
double aTotal = 0.0;
double bTotal = 0.0;
for (int i = 0; i < A.length; i++) {
if (randomize && random.nextBoolean()) {
aTotal += B[i];
bTotal += A[i];
} el... | java | private static double absDiffOfMeans(double[] A, double[] B, boolean randomize) {
Random random = new Random();
double aTotal = 0.0;
double bTotal = 0.0;
for (int i = 0; i < A.length; i++) {
if (randomize && random.nextBoolean()) {
aTotal += B[i];
bTotal += A[i];
} el... | [
"private",
"static",
"double",
"absDiffOfMeans",
"(",
"double",
"[",
"]",
"A",
",",
"double",
"[",
"]",
"B",
",",
"boolean",
"randomize",
")",
"{",
"Random",
"random",
"=",
"new",
"Random",
"(",
")",
";",
"double",
"aTotal",
"=",
"0.0",
";",
"double",
... | Assumes input arrays have equal, non-zero length. | [
"Assumes",
"input",
"arrays",
"have",
"equal",
"non",
"-",
"zero",
"length",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/math/ArrayMath.java#L1563-L1579 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicy_lbvserver_binding.java | appfwpolicy_lbvserver_binding.get | public static appfwpolicy_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
appfwpolicy_lbvserver_binding obj = new appfwpolicy_lbvserver_binding();
obj.set_name(name);
appfwpolicy_lbvserver_binding response[] = (appfwpolicy_lbvserver_binding[]) obj.get_resources(service);
return res... | java | public static appfwpolicy_lbvserver_binding[] get(nitro_service service, String name) throws Exception{
appfwpolicy_lbvserver_binding obj = new appfwpolicy_lbvserver_binding();
obj.set_name(name);
appfwpolicy_lbvserver_binding response[] = (appfwpolicy_lbvserver_binding[]) obj.get_resources(service);
return res... | [
"public",
"static",
"appfwpolicy_lbvserver_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"name",
")",
"throws",
"Exception",
"{",
"appfwpolicy_lbvserver_binding",
"obj",
"=",
"new",
"appfwpolicy_lbvserver_binding",
"(",
")",
";",
"obj",
... | Use this API to fetch appfwpolicy_lbvserver_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"appfwpolicy_lbvserver_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwpolicy_lbvserver_binding.java#L162-L167 | train |
mariosotil/river-framework | river-core/src/main/java/org/riverframework/River.java | River.getSession | public static Session getSession(String wrapper, Object... parameters) {
// This will be the session loaded depending the selected wrapper
org.riverframework.wrapper.Session<?> _session = null;
// Trying to retrieve the session from the map
Session session = map.get(wrapper);
if (session != null && session.... | java | public static Session getSession(String wrapper, Object... parameters) {
// This will be the session loaded depending the selected wrapper
org.riverframework.wrapper.Session<?> _session = null;
// Trying to retrieve the session from the map
Session session = map.get(wrapper);
if (session != null && session.... | [
"public",
"static",
"Session",
"getSession",
"(",
"String",
"wrapper",
",",
"Object",
"...",
"parameters",
")",
"{",
"// This will be the session loaded depending the selected wrapper",
"org",
".",
"riverframework",
".",
"wrapper",
".",
"Session",
"<",
"?",
">",
"_ses... | Loads a wrapper that wraps libraries as lotus.domino or org.openntf.domino and creates a core Session
object. Its behavior will depend on how the wrapper is implemented. Anyway, this method creates the session just
one time and returns the same every time is called. To free the memory, resources, etc., it's necessary t... | [
"Loads",
"a",
"wrapper",
"that",
"wraps",
"libraries",
"as",
"lotus",
".",
"domino",
"or",
"org",
".",
"openntf",
".",
"domino",
"and",
"creates",
"a",
"core",
"Session",
"object",
".",
"Its",
"behavior",
"will",
"depend",
"on",
"how",
"the",
"wrapper",
... | e8c3ae3b0a956ec9cb4e14a81376ba8e8370b44e | https://github.com/mariosotil/river-framework/blob/e8c3ae3b0a956ec9cb4e14a81376ba8e8370b44e/river-core/src/main/java/org/riverframework/River.java#L63-L118 | train |
mariosotil/river-framework | river-core/src/main/java/org/riverframework/River.java | River.closeSession | public static void closeSession(String wrapper) {
Session session = map.get(wrapper);
if (session != null) {
Method method;
try {
method = session.getClass().getDeclaredMethod("protectedClose");
method.setAccessible(true);
method.invoke(session);
} catch (InvocationTargetException e) {
thro... | java | public static void closeSession(String wrapper) {
Session session = map.get(wrapper);
if (session != null) {
Method method;
try {
method = session.getClass().getDeclaredMethod("protectedClose");
method.setAccessible(true);
method.invoke(session);
} catch (InvocationTargetException e) {
thro... | [
"public",
"static",
"void",
"closeSession",
"(",
"String",
"wrapper",
")",
"{",
"Session",
"session",
"=",
"map",
".",
"get",
"(",
"wrapper",
")",
";",
"if",
"(",
"session",
"!=",
"null",
")",
"{",
"Method",
"method",
";",
"try",
"{",
"method",
"=",
... | Calls the Session close method to free resources, memory, etc. Also, it will remove it from its
internal table.
@param wrapper
the package's full name | [
"Calls",
"the",
"Session",
"close",
"method",
"to",
"free",
"resources",
"memory",
"etc",
".",
"Also",
"it",
"will",
"remove",
"it",
"from",
"its",
"internal",
"table",
"."
] | e8c3ae3b0a956ec9cb4e14a81376ba8e8370b44e | https://github.com/mariosotil/river-framework/blob/e8c3ae3b0a956ec9cb4e14a81376ba8e8370b44e/river-core/src/main/java/org/riverframework/River.java#L127-L142 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ntp/ntpparam.java | ntpparam.update | public static base_response update(nitro_service client, ntpparam resource) throws Exception {
ntpparam updateresource = new ntpparam();
updateresource.authentication = resource.authentication;
updateresource.trustedkey = resource.trustedkey;
updateresource.autokeylogsec = resource.autokeylogsec;
updateresour... | java | public static base_response update(nitro_service client, ntpparam resource) throws Exception {
ntpparam updateresource = new ntpparam();
updateresource.authentication = resource.authentication;
updateresource.trustedkey = resource.trustedkey;
updateresource.autokeylogsec = resource.autokeylogsec;
updateresour... | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"ntpparam",
"resource",
")",
"throws",
"Exception",
"{",
"ntpparam",
"updateresource",
"=",
"new",
"ntpparam",
"(",
")",
";",
"updateresource",
".",
"authentication",
"=",
"resourc... | Use this API to update ntpparam. | [
"Use",
"this",
"API",
"to",
"update",
"ntpparam",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ntp/ntpparam.java#L169-L176 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ntp/ntpparam.java | ntpparam.unset | public static base_response unset(nitro_service client, ntpparam resource, String[] args) throws Exception{
ntpparam unsetresource = new ntpparam();
return unsetresource.unset_resource(client,args);
} | java | public static base_response unset(nitro_service client, ntpparam resource, String[] args) throws Exception{
ntpparam unsetresource = new ntpparam();
return unsetresource.unset_resource(client,args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"ntpparam",
"resource",
",",
"String",
"[",
"]",
"args",
")",
"throws",
"Exception",
"{",
"ntpparam",
"unsetresource",
"=",
"new",
"ntpparam",
"(",
")",
";",
"return",
"unsetres... | Use this API to unset the properties of ntpparam resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"ntpparam",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ntp/ntpparam.java#L182-L185 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ntp/ntpparam.java | ntpparam.get | public static ntpparam get(nitro_service service) throws Exception{
ntpparam obj = new ntpparam();
ntpparam[] response = (ntpparam[])obj.get_resources(service);
return response[0];
} | java | public static ntpparam get(nitro_service service) throws Exception{
ntpparam obj = new ntpparam();
ntpparam[] response = (ntpparam[])obj.get_resources(service);
return response[0];
} | [
"public",
"static",
"ntpparam",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"ntpparam",
"obj",
"=",
"new",
"ntpparam",
"(",
")",
";",
"ntpparam",
"[",
"]",
"response",
"=",
"(",
"ntpparam",
"[",
"]",
")",
"obj",
".",
"get_res... | Use this API to fetch all the ntpparam resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"ntpparam",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ntp/ntpparam.java#L190-L194 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpengineid.java | snmpengineid.update | public static base_response update(nitro_service client, snmpengineid resource) throws Exception {
snmpengineid updateresource = new snmpengineid();
updateresource.engineid = resource.engineid;
updateresource.ownernode = resource.ownernode;
return updateresource.update_resource(client);
} | java | public static base_response update(nitro_service client, snmpengineid resource) throws Exception {
snmpengineid updateresource = new snmpengineid();
updateresource.engineid = resource.engineid;
updateresource.ownernode = resource.ownernode;
return updateresource.update_resource(client);
} | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"snmpengineid",
"resource",
")",
"throws",
"Exception",
"{",
"snmpengineid",
"updateresource",
"=",
"new",
"snmpengineid",
"(",
")",
";",
"updateresource",
".",
"engineid",
"=",
"r... | Use this API to update snmpengineid. | [
"Use",
"this",
"API",
"to",
"update",
"snmpengineid",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpengineid.java#L137-L142 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpengineid.java | snmpengineid.update | public static base_responses update(nitro_service client, snmpengineid resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
snmpengineid updateresources[] = new snmpengineid[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i... | java | public static base_responses update(nitro_service client, snmpengineid resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
snmpengineid updateresources[] = new snmpengineid[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i... | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"snmpengineid",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
... | Use this API to update snmpengineid resources. | [
"Use",
"this",
"API",
"to",
"update",
"snmpengineid",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpengineid.java#L147-L159 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpengineid.java | snmpengineid.unset | public static base_response unset(nitro_service client, Long ownernode, String args[]) throws Exception {
snmpengineid unsetresource = new snmpengineid();
unsetresource.ownernode = ownernode;
return unsetresource.unset_resource(client, args);
} | java | public static base_response unset(nitro_service client, Long ownernode, String args[]) throws Exception {
snmpengineid unsetresource = new snmpengineid();
unsetresource.ownernode = ownernode;
return unsetresource.unset_resource(client, args);
} | [
"public",
"static",
"base_response",
"unset",
"(",
"nitro_service",
"client",
",",
"Long",
"ownernode",
",",
"String",
"args",
"[",
"]",
")",
"throws",
"Exception",
"{",
"snmpengineid",
"unsetresource",
"=",
"new",
"snmpengineid",
"(",
")",
";",
"unsetresource",... | Use this API to unset the properties of snmpengineid resource.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"snmpengineid",
"resource",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpengineid.java#L165-L169 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpengineid.java | snmpengineid.unset | public static base_responses unset(nitro_service client, Long ownernode[], String args[]) throws Exception {
base_responses result = null;
if (ownernode != null && ownernode.length > 0) {
snmpengineid unsetresources[] = new snmpengineid[ownernode.length];
for (int i=0;i<ownernode.length;i++){
unsetresourc... | java | public static base_responses unset(nitro_service client, Long ownernode[], String args[]) throws Exception {
base_responses result = null;
if (ownernode != null && ownernode.length > 0) {
snmpengineid unsetresources[] = new snmpengineid[ownernode.length];
for (int i=0;i<ownernode.length;i++){
unsetresourc... | [
"public",
"static",
"base_responses",
"unset",
"(",
"nitro_service",
"client",
",",
"Long",
"ownernode",
"[",
"]",
",",
"String",
"args",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"ownernode",
"!=",
... | Use this API to unset the properties of snmpengineid resources.
Properties that need to be unset are specified in args array. | [
"Use",
"this",
"API",
"to",
"unset",
"the",
"properties",
"of",
"snmpengineid",
"resources",
".",
"Properties",
"that",
"need",
"to",
"be",
"unset",
"are",
"specified",
"in",
"args",
"array",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpengineid.java#L185-L196 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpengineid.java | snmpengineid.get | public static snmpengineid[] get(nitro_service service) throws Exception{
snmpengineid obj = new snmpengineid();
snmpengineid[] response = (snmpengineid[])obj.get_resources(service);
return response;
} | java | public static snmpengineid[] get(nitro_service service) throws Exception{
snmpengineid obj = new snmpengineid();
snmpengineid[] response = (snmpengineid[])obj.get_resources(service);
return response;
} | [
"public",
"static",
"snmpengineid",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
")",
"throws",
"Exception",
"{",
"snmpengineid",
"obj",
"=",
"new",
"snmpengineid",
"(",
")",
";",
"snmpengineid",
"[",
"]",
"response",
"=",
"(",
"snmpengineid",
"[",
"]",... | Use this API to fetch all the snmpengineid resources that are configured on netscaler. | [
"Use",
"this",
"API",
"to",
"fetch",
"all",
"the",
"snmpengineid",
"resources",
"that",
"are",
"configured",
"on",
"netscaler",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpengineid.java#L218-L222 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpengineid.java | snmpengineid.get | public static snmpengineid get(nitro_service service, Long ownernode) throws Exception{
snmpengineid obj = new snmpengineid();
obj.set_ownernode(ownernode);
snmpengineid response = (snmpengineid) obj.get_resource(service);
return response;
} | java | public static snmpengineid get(nitro_service service, Long ownernode) throws Exception{
snmpengineid obj = new snmpengineid();
obj.set_ownernode(ownernode);
snmpengineid response = (snmpengineid) obj.get_resource(service);
return response;
} | [
"public",
"static",
"snmpengineid",
"get",
"(",
"nitro_service",
"service",
",",
"Long",
"ownernode",
")",
"throws",
"Exception",
"{",
"snmpengineid",
"obj",
"=",
"new",
"snmpengineid",
"(",
")",
";",
"obj",
".",
"set_ownernode",
"(",
"ownernode",
")",
";",
... | Use this API to fetch snmpengineid resource of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"snmpengineid",
"resource",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpengineid.java#L234-L239 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpengineid.java | snmpengineid.get | public static snmpengineid[] get(nitro_service service, Long ownernode[]) throws Exception{
if (ownernode !=null && ownernode.length>0) {
snmpengineid response[] = new snmpengineid[ownernode.length];
snmpengineid obj[] = new snmpengineid[ownernode.length];
for (int i=0;i<ownernode.length;i++) {
obj[i] = ... | java | public static snmpengineid[] get(nitro_service service, Long ownernode[]) throws Exception{
if (ownernode !=null && ownernode.length>0) {
snmpengineid response[] = new snmpengineid[ownernode.length];
snmpengineid obj[] = new snmpengineid[ownernode.length];
for (int i=0;i<ownernode.length;i++) {
obj[i] = ... | [
"public",
"static",
"snmpengineid",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"Long",
"ownernode",
"[",
"]",
")",
"throws",
"Exception",
"{",
"if",
"(",
"ownernode",
"!=",
"null",
"&&",
"ownernode",
".",
"length",
">",
"0",
")",
"{",
"snmpen... | Use this API to fetch snmpengineid resources of given names . | [
"Use",
"this",
"API",
"to",
"fetch",
"snmpengineid",
"resources",
"of",
"given",
"names",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/snmp/snmpengineid.java#L244-L256 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipssimsource.java | sslfipssimsource.enable | public static base_response enable(nitro_service client, sslfipssimsource resource) throws Exception {
sslfipssimsource enableresource = new sslfipssimsource();
enableresource.targetsecret = resource.targetsecret;
enableresource.sourcesecret = resource.sourcesecret;
return enableresource.perform_operation(clien... | java | public static base_response enable(nitro_service client, sslfipssimsource resource) throws Exception {
sslfipssimsource enableresource = new sslfipssimsource();
enableresource.targetsecret = resource.targetsecret;
enableresource.sourcesecret = resource.sourcesecret;
return enableresource.perform_operation(clien... | [
"public",
"static",
"base_response",
"enable",
"(",
"nitro_service",
"client",
",",
"sslfipssimsource",
"resource",
")",
"throws",
"Exception",
"{",
"sslfipssimsource",
"enableresource",
"=",
"new",
"sslfipssimsource",
"(",
")",
";",
"enableresource",
".",
"targetsecr... | Use this API to enable sslfipssimsource. | [
"Use",
"this",
"API",
"to",
"enable",
"sslfipssimsource",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipssimsource.java#L132-L137 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipssimsource.java | sslfipssimsource.init | public static base_response init(nitro_service client, sslfipssimsource resource) throws Exception {
sslfipssimsource initresource = new sslfipssimsource();
initresource.certfile = resource.certfile;
return initresource.perform_operation(client,"init");
} | java | public static base_response init(nitro_service client, sslfipssimsource resource) throws Exception {
sslfipssimsource initresource = new sslfipssimsource();
initresource.certfile = resource.certfile;
return initresource.perform_operation(client,"init");
} | [
"public",
"static",
"base_response",
"init",
"(",
"nitro_service",
"client",
",",
"sslfipssimsource",
"resource",
")",
"throws",
"Exception",
"{",
"sslfipssimsource",
"initresource",
"=",
"new",
"sslfipssimsource",
"(",
")",
";",
"initresource",
".",
"certfile",
"="... | Use this API to init sslfipssimsource. | [
"Use",
"this",
"API",
"to",
"init",
"sslfipssimsource",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslfipssimsource.java#L142-L146 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbrs.java | nspbrs.renumber | public static base_response renumber(nitro_service client) throws Exception {
nspbrs renumberresource = new nspbrs();
return renumberresource.perform_operation(client,"renumber");
} | java | public static base_response renumber(nitro_service client) throws Exception {
nspbrs renumberresource = new nspbrs();
return renumberresource.perform_operation(client,"renumber");
} | [
"public",
"static",
"base_response",
"renumber",
"(",
"nitro_service",
"client",
")",
"throws",
"Exception",
"{",
"nspbrs",
"renumberresource",
"=",
"new",
"nspbrs",
"(",
")",
";",
"return",
"renumberresource",
".",
"perform_operation",
"(",
"client",
",",
"\"renu... | Use this API to renumber nspbrs. | [
"Use",
"this",
"API",
"to",
"renumber",
"nspbrs",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbrs.java#L75-L78 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbrs.java | nspbrs.clear | public static base_response clear(nitro_service client) throws Exception {
nspbrs clearresource = new nspbrs();
return clearresource.perform_operation(client,"clear");
} | java | public static base_response clear(nitro_service client) throws Exception {
nspbrs clearresource = new nspbrs();
return clearresource.perform_operation(client,"clear");
} | [
"public",
"static",
"base_response",
"clear",
"(",
"nitro_service",
"client",
")",
"throws",
"Exception",
"{",
"nspbrs",
"clearresource",
"=",
"new",
"nspbrs",
"(",
")",
";",
"return",
"clearresource",
".",
"perform_operation",
"(",
"client",
",",
"\"clear\"",
"... | Use this API to clear nspbrs. | [
"Use",
"this",
"API",
"to",
"clear",
"nspbrs",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbrs.java#L83-L86 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbrs.java | nspbrs.apply | public static base_response apply(nitro_service client) throws Exception {
nspbrs applyresource = new nspbrs();
return applyresource.perform_operation(client,"apply");
} | java | public static base_response apply(nitro_service client) throws Exception {
nspbrs applyresource = new nspbrs();
return applyresource.perform_operation(client,"apply");
} | [
"public",
"static",
"base_response",
"apply",
"(",
"nitro_service",
"client",
")",
"throws",
"Exception",
"{",
"nspbrs",
"applyresource",
"=",
"new",
"nspbrs",
"(",
")",
";",
"return",
"applyresource",
".",
"perform_operation",
"(",
"client",
",",
"\"apply\"",
"... | Use this API to apply nspbrs. | [
"Use",
"this",
"API",
"to",
"apply",
"nspbrs",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbrs.java#L91-L94 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowpolicylabel_appflowpolicy_binding.java | appflowpolicylabel_appflowpolicy_binding.get | public static appflowpolicylabel_appflowpolicy_binding[] get(nitro_service service, String labelname) throws Exception{
appflowpolicylabel_appflowpolicy_binding obj = new appflowpolicylabel_appflowpolicy_binding();
obj.set_labelname(labelname);
appflowpolicylabel_appflowpolicy_binding response[] = (appflowpolicyl... | java | public static appflowpolicylabel_appflowpolicy_binding[] get(nitro_service service, String labelname) throws Exception{
appflowpolicylabel_appflowpolicy_binding obj = new appflowpolicylabel_appflowpolicy_binding();
obj.set_labelname(labelname);
appflowpolicylabel_appflowpolicy_binding response[] = (appflowpolicyl... | [
"public",
"static",
"appflowpolicylabel_appflowpolicy_binding",
"[",
"]",
"get",
"(",
"nitro_service",
"service",
",",
"String",
"labelname",
")",
"throws",
"Exception",
"{",
"appflowpolicylabel_appflowpolicy_binding",
"obj",
"=",
"new",
"appflowpolicylabel_appflowpolicy_bind... | Use this API to fetch appflowpolicylabel_appflowpolicy_binding resources of given name . | [
"Use",
"this",
"API",
"to",
"fetch",
"appflowpolicylabel_appflowpolicy_binding",
"resources",
"of",
"given",
"name",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appflow/appflowpolicylabel_appflowpolicy_binding.java#L279-L284 | train |
meertensinstituut/mtas | src/main/java/mtas/solr/handler/component/util/MtasSolrComponentPrefix.java | MtasSolrComponentPrefix.repairPrefixItems | @SuppressWarnings("unchecked")
private void repairPrefixItems(NamedList<Object> mtasResponse) {
// repair prefix lists
try {
ArrayList<NamedList<?>> list = (ArrayList<NamedList<?>>) mtasResponse
.findRecursive(NAME);
// MtasSolrResultUtil.rewrite(list);
if (list != null) {
... | java | @SuppressWarnings("unchecked")
private void repairPrefixItems(NamedList<Object> mtasResponse) {
// repair prefix lists
try {
ArrayList<NamedList<?>> list = (ArrayList<NamedList<?>>) mtasResponse
.findRecursive(NAME);
// MtasSolrResultUtil.rewrite(list);
if (list != null) {
... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"private",
"void",
"repairPrefixItems",
"(",
"NamedList",
"<",
"Object",
">",
"mtasResponse",
")",
"{",
"// repair prefix lists",
"try",
"{",
"ArrayList",
"<",
"NamedList",
"<",
"?",
">",
">",
"list",
"=",
"(... | Repair prefix items.
@param mtasResponse the mtas response | [
"Repair",
"prefix",
"items",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/solr/handler/component/util/MtasSolrComponentPrefix.java#L240-L265 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.collectKnownPrefixes | private static Set<String> collectKnownPrefixes(FieldInfo fi)
throws IOException {
if (fi != null) {
HashSet<String> result = new HashSet<>();
String singlePositionPrefixes = fi.getAttribute(
MtasCodecPostingsFormat.MTAS_FIELDINFO_ATTRIBUTE_PREFIX_SINGLE_POSITION);
String multipleP... | java | private static Set<String> collectKnownPrefixes(FieldInfo fi)
throws IOException {
if (fi != null) {
HashSet<String> result = new HashSet<>();
String singlePositionPrefixes = fi.getAttribute(
MtasCodecPostingsFormat.MTAS_FIELDINFO_ATTRIBUTE_PREFIX_SINGLE_POSITION);
String multipleP... | [
"private",
"static",
"Set",
"<",
"String",
">",
"collectKnownPrefixes",
"(",
"FieldInfo",
"fi",
")",
"throws",
"IOException",
"{",
"if",
"(",
"fi",
"!=",
"null",
")",
"{",
"HashSet",
"<",
"String",
">",
"result",
"=",
"new",
"HashSet",
"<>",
"(",
")",
... | Collect known prefixes.
@param fi
the fi
@return the sets the
@throws IOException
Signals that an I/O exception has occurred. | [
"Collect",
"known",
"prefixes",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L925-L969 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.collectIntersectionPrefixes | private static Set<String> collectIntersectionPrefixes(FieldInfo fi)
throws IOException {
if (fi != null) {
Set<String> result = new HashSet<>();
String intersectingPrefixes = fi.getAttribute(
MtasCodecPostingsFormat.MTAS_FIELDINFO_ATTRIBUTE_PREFIX_INTERSECTION);
if (intersectingPr... | java | private static Set<String> collectIntersectionPrefixes(FieldInfo fi)
throws IOException {
if (fi != null) {
Set<String> result = new HashSet<>();
String intersectingPrefixes = fi.getAttribute(
MtasCodecPostingsFormat.MTAS_FIELDINFO_ATTRIBUTE_PREFIX_INTERSECTION);
if (intersectingPr... | [
"private",
"static",
"Set",
"<",
"String",
">",
"collectIntersectionPrefixes",
"(",
"FieldInfo",
"fi",
")",
"throws",
"IOException",
"{",
"if",
"(",
"fi",
"!=",
"null",
")",
"{",
"Set",
"<",
"String",
">",
"result",
"=",
"new",
"HashSet",
"<>",
"(",
")",... | Collect intersection prefixes.
@param fi
the fi
@return the sets the
@throws IOException
Signals that an I/O exception has occurred. | [
"Collect",
"intersection",
"prefixes",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L980-L1000 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.collectPrefixes | private static void collectPrefixes(FieldInfos fieldInfos, String field,
ComponentField fieldInfo, Status status) throws IOException {
if (fieldInfo.prefix != null) {
FieldInfo fi = fieldInfos.fieldInfo(field);
if (fi != null) {
String singlePositionPrefixes = fi.getAttribute(
... | java | private static void collectPrefixes(FieldInfos fieldInfos, String field,
ComponentField fieldInfo, Status status) throws IOException {
if (fieldInfo.prefix != null) {
FieldInfo fi = fieldInfos.fieldInfo(field);
if (fi != null) {
String singlePositionPrefixes = fi.getAttribute(
... | [
"private",
"static",
"void",
"collectPrefixes",
"(",
"FieldInfos",
"fieldInfos",
",",
"String",
"field",
",",
"ComponentField",
"fieldInfo",
",",
"Status",
"status",
")",
"throws",
"IOException",
"{",
"if",
"(",
"fieldInfo",
".",
"prefix",
"!=",
"null",
")",
"... | Collect prefixes.
@param fieldInfos
the field infos
@param field
the field
@param fieldInfo
the field info
@throws IOException
Signals that an I/O exception has occurred. | [
"Collect",
"prefixes",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L1014-L1057 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.collectSpansForOccurences | private static Map<GroupHit, Spans> collectSpansForOccurences(
Set<GroupHit> occurences, Set<String> prefixes, String field,
IndexSearcher searcher, LeafReaderContext lrc) throws IOException {
Map<GroupHit, Spans> list = new HashMap<>();
IndexReader reader = searcher.getIndexReader();
final floa... | java | private static Map<GroupHit, Spans> collectSpansForOccurences(
Set<GroupHit> occurences, Set<String> prefixes, String field,
IndexSearcher searcher, LeafReaderContext lrc) throws IOException {
Map<GroupHit, Spans> list = new HashMap<>();
IndexReader reader = searcher.getIndexReader();
final floa... | [
"private",
"static",
"Map",
"<",
"GroupHit",
",",
"Spans",
">",
"collectSpansForOccurences",
"(",
"Set",
"<",
"GroupHit",
">",
"occurences",
",",
"Set",
"<",
"String",
">",
"prefixes",
",",
"String",
"field",
",",
"IndexSearcher",
"searcher",
",",
"LeafReaderC... | Collect spans for occurences.
@param occurences
the occurences
@param prefixes
the prefixes
@param field
the field
@param searcher
the searcher
@param lrc
the lrc
@return the map
@throws IOException
Signals that an I/O exception has occurred. | [
"Collect",
"spans",
"for",
"occurences",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L1076-L1095 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.createQueryFromGroupHit | private static MtasSpanQuery createQueryFromGroupHit(Set<String> prefixes,
String field, GroupHit hit) {
// initial check
if (prefixes == null || field == null || hit == null) {
return null;
} else {
MtasSpanQuery query = null;
// check for missing
if (hit.missingLeft != null &... | java | private static MtasSpanQuery createQueryFromGroupHit(Set<String> prefixes,
String field, GroupHit hit) {
// initial check
if (prefixes == null || field == null || hit == null) {
return null;
} else {
MtasSpanQuery query = null;
// check for missing
if (hit.missingLeft != null &... | [
"private",
"static",
"MtasSpanQuery",
"createQueryFromGroupHit",
"(",
"Set",
"<",
"String",
">",
"prefixes",
",",
"String",
"field",
",",
"GroupHit",
"hit",
")",
"{",
"// initial check",
"if",
"(",
"prefixes",
"==",
"null",
"||",
"field",
"==",
"null",
"||",
... | Creates the query from group hit.
@param prefixes
the prefixes
@param field
the field
@param hit
the hit
@return the mtas span query | [
"Creates",
"the",
"query",
"from",
"group",
"hit",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L1108-L1154 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.createSubQueryFromGroupHit | private static MtasSpanQuery createSubQueryFromGroupHit(List<String>[] subHit,
boolean reverse, String field) {
MtasSpanQuery query = null;
if (subHit != null && subHit.length > 0) {
List<MtasSpanSequenceItem> items = new ArrayList<>();
List<String> subHitItem;
for (int i = 0; i < subHit... | java | private static MtasSpanQuery createSubQueryFromGroupHit(List<String>[] subHit,
boolean reverse, String field) {
MtasSpanQuery query = null;
if (subHit != null && subHit.length > 0) {
List<MtasSpanSequenceItem> items = new ArrayList<>();
List<String> subHitItem;
for (int i = 0; i < subHit... | [
"private",
"static",
"MtasSpanQuery",
"createSubQueryFromGroupHit",
"(",
"List",
"<",
"String",
">",
"[",
"]",
"subHit",
",",
"boolean",
"reverse",
",",
"String",
"field",
")",
"{",
"MtasSpanQuery",
"query",
"=",
"null",
";",
"if",
"(",
"subHit",
"!=",
"null... | Creates the sub query from group hit.
@param subHit
the sub hit
@param reverse
the reverse
@param field
the field
@return the mtas span query | [
"Creates",
"the",
"sub",
"query",
"from",
"group",
"hit",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L1167-L1198 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.computePositions | private static Map<Integer, Integer> computePositions(CodecInfo mtasCodecInfo,
LeafReader r, LeafReaderContext lrc, String field, List<Integer> docSet)
throws IOException {
HashMap<Integer, Integer> positionsData;
if (mtasCodecInfo != null) {
// for relatively small numbers, compute only what ... | java | private static Map<Integer, Integer> computePositions(CodecInfo mtasCodecInfo,
LeafReader r, LeafReaderContext lrc, String field, List<Integer> docSet)
throws IOException {
HashMap<Integer, Integer> positionsData;
if (mtasCodecInfo != null) {
// for relatively small numbers, compute only what ... | [
"private",
"static",
"Map",
"<",
"Integer",
",",
"Integer",
">",
"computePositions",
"(",
"CodecInfo",
"mtasCodecInfo",
",",
"LeafReader",
"r",
",",
"LeafReaderContext",
"lrc",
",",
"String",
"field",
",",
"List",
"<",
"Integer",
">",
"docSet",
")",
"throws",
... | Compute positions.
@param mtasCodecInfo
the mtas codec info
@param r
the r
@param lrc
the lrc
@param field
the field
@param docSet
the doc set
@return the map
@throws IOException
Signals that an I/O exception has occurred. | [
"Compute",
"positions",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L1217-L1246 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.computeArguments | private static Map<Integer, long[]> computeArguments(
Map<MtasSpanQuery, Map<Integer, Integer>> spansNumberData,
MtasSpanQuery[] queries, Integer[] docSet) {
Map<Integer, long[]> args = new HashMap<>();
for (int q = 0; q < queries.length; q++) {
Map<Integer, Integer> tmpData = spansNumberData.... | java | private static Map<Integer, long[]> computeArguments(
Map<MtasSpanQuery, Map<Integer, Integer>> spansNumberData,
MtasSpanQuery[] queries, Integer[] docSet) {
Map<Integer, long[]> args = new HashMap<>();
for (int q = 0; q < queries.length; q++) {
Map<Integer, Integer> tmpData = spansNumberData.... | [
"private",
"static",
"Map",
"<",
"Integer",
",",
"long",
"[",
"]",
">",
"computeArguments",
"(",
"Map",
"<",
"MtasSpanQuery",
",",
"Map",
"<",
"Integer",
",",
"Integer",
">",
">",
"spansNumberData",
",",
"MtasSpanQuery",
"[",
"]",
"queries",
",",
"Integer"... | Compute arguments.
@param spansNumberData
the spans number data
@param queries
the queries
@param docSet
the doc set
@return the map | [
"Compute",
"arguments",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L1259-L1282 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.intersectedDocList | private static Integer[] intersectedDocList(int[] facetDocList,
Integer[] docSet) {
if (facetDocList != null && docSet != null) {
Integer[] c = new Integer[Math.min(facetDocList.length, docSet.length)];
int ai = 0;
int bi = 0;
int ci = 0;
while (ai < facetDocList.length && bi < d... | java | private static Integer[] intersectedDocList(int[] facetDocList,
Integer[] docSet) {
if (facetDocList != null && docSet != null) {
Integer[] c = new Integer[Math.min(facetDocList.length, docSet.length)];
int ai = 0;
int bi = 0;
int ci = 0;
while (ai < facetDocList.length && bi < d... | [
"private",
"static",
"Integer",
"[",
"]",
"intersectedDocList",
"(",
"int",
"[",
"]",
"facetDocList",
",",
"Integer",
"[",
"]",
"docSet",
")",
"{",
"if",
"(",
"facetDocList",
"!=",
"null",
"&&",
"docSet",
"!=",
"null",
")",
"{",
"Integer",
"[",
"]",
"c... | Intersected doc list.
@param facetDocList
the facet doc list
@param docSet
the doc set
@return the integer[] | [
"Intersected",
"doc",
"list",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L1293-L1316 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.createPositions | private static void createPositions(List<ComponentPosition> statsPositionList,
Map<Integer, Integer> positionsData, List<Integer> docSet)
throws IOException {
if (statsPositionList != null) {
for (ComponentPosition position : statsPositionList) {
position.dataCollector.initNewList(1);
... | java | private static void createPositions(List<ComponentPosition> statsPositionList,
Map<Integer, Integer> positionsData, List<Integer> docSet)
throws IOException {
if (statsPositionList != null) {
for (ComponentPosition position : statsPositionList) {
position.dataCollector.initNewList(1);
... | [
"private",
"static",
"void",
"createPositions",
"(",
"List",
"<",
"ComponentPosition",
">",
"statsPositionList",
",",
"Map",
"<",
"Integer",
",",
"Integer",
">",
"positionsData",
",",
"List",
"<",
"Integer",
">",
"docSet",
")",
"throws",
"IOException",
"{",
"i... | Creates the positions.
@param statsPositionList
the stats position list
@param positionsData
the positions data
@param docSet
the doc set
@throws IOException
Signals that an I/O exception has occurred. | [
"Creates",
"the",
"positions",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L1330-L1357 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.createTokens | private static void createTokens(List<ComponentToken> statsTokenList,
Map<Integer, Integer> tokensData, List<Integer> docSet)
throws IOException {
if (statsTokenList != null) {
for (ComponentToken token : statsTokenList) {
token.dataCollector.initNewList(1);
Integer tmpValue;
... | java | private static void createTokens(List<ComponentToken> statsTokenList,
Map<Integer, Integer> tokensData, List<Integer> docSet)
throws IOException {
if (statsTokenList != null) {
for (ComponentToken token : statsTokenList) {
token.dataCollector.initNewList(1);
Integer tmpValue;
... | [
"private",
"static",
"void",
"createTokens",
"(",
"List",
"<",
"ComponentToken",
">",
"statsTokenList",
",",
"Map",
"<",
"Integer",
",",
"Integer",
">",
"tokensData",
",",
"List",
"<",
"Integer",
">",
"docSet",
")",
"throws",
"IOException",
"{",
"if",
"(",
... | Creates the tokens.
@param statsTokenList
the stats token list
@param tokensData
the tokens data
@param docSet
the doc set
@throws IOException
Signals that an I/O exception has occurred. | [
"Creates",
"the",
"tokens",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L1371-L1399 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.availablePrefixes | private static boolean availablePrefixes(ComponentGroup group,
Set<String> knownPrefixes) {
if (knownPrefixes != null) {
for (String prefix : group.prefixes) {
if (knownPrefixes.contains(prefix)) {
return true;
}
}
}
return false;
} | java | private static boolean availablePrefixes(ComponentGroup group,
Set<String> knownPrefixes) {
if (knownPrefixes != null) {
for (String prefix : group.prefixes) {
if (knownPrefixes.contains(prefix)) {
return true;
}
}
}
return false;
} | [
"private",
"static",
"boolean",
"availablePrefixes",
"(",
"ComponentGroup",
"group",
",",
"Set",
"<",
"String",
">",
"knownPrefixes",
")",
"{",
"if",
"(",
"knownPrefixes",
"!=",
"null",
")",
"{",
"for",
"(",
"String",
"prefix",
":",
"group",
".",
"prefixes",... | Available prefixes.
@param group
the group
@param knownPrefixes
the known prefixes
@return true, if successful | [
"Available",
"prefixes",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L1967-L1977 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.intersectionPrefixes | private static boolean intersectionPrefixes(ComponentGroup group,
Set<String> intersectionPrefixes) {
if (intersectionPrefixes != null) {
for (String prefix : group.prefixes) {
if (intersectionPrefixes.contains(prefix)) {
return true;
}
}
}
return false;
} | java | private static boolean intersectionPrefixes(ComponentGroup group,
Set<String> intersectionPrefixes) {
if (intersectionPrefixes != null) {
for (String prefix : group.prefixes) {
if (intersectionPrefixes.contains(prefix)) {
return true;
}
}
}
return false;
} | [
"private",
"static",
"boolean",
"intersectionPrefixes",
"(",
"ComponentGroup",
"group",
",",
"Set",
"<",
"String",
">",
"intersectionPrefixes",
")",
"{",
"if",
"(",
"intersectionPrefixes",
"!=",
"null",
")",
"{",
"for",
"(",
"String",
"prefix",
":",
"group",
"... | Intersection prefixes.
@param group
the group
@param intersectionPrefixes
the intersection prefixes
@return true, if successful | [
"Intersection",
"prefixes",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L1988-L1998 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.createPositionHit | private static IntervalTreeNodeData<String> createPositionHit(Match m,
ComponentGroup group) {
Integer start = null;
Integer end = null;
if (group.hitInside != null || group.hitInsideLeft != null
|| group.hitInsideRight != null) {
start = m.startPosition;
end = m.endPosition - 1;
... | java | private static IntervalTreeNodeData<String> createPositionHit(Match m,
ComponentGroup group) {
Integer start = null;
Integer end = null;
if (group.hitInside != null || group.hitInsideLeft != null
|| group.hitInsideRight != null) {
start = m.startPosition;
end = m.endPosition - 1;
... | [
"private",
"static",
"IntervalTreeNodeData",
"<",
"String",
">",
"createPositionHit",
"(",
"Match",
"m",
",",
"ComponentGroup",
"group",
")",
"{",
"Integer",
"start",
"=",
"null",
";",
"Integer",
"end",
"=",
"null",
";",
"if",
"(",
"group",
".",
"hitInside",... | Creates the position hit.
@param m
the m
@param group
the group
@return the interval tree node data | [
"Creates",
"the",
"position",
"hit",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L2009-L2044 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.sortMatchList | private static void sortMatchList(List<Match> list) {
if (list != null) {
// light sorting on start position
Collections.sort(list, (Match m1,
Match m2) -> (Integer.compare(m1.startPosition, m2.startPosition)));
}
} | java | private static void sortMatchList(List<Match> list) {
if (list != null) {
// light sorting on start position
Collections.sort(list, (Match m1,
Match m2) -> (Integer.compare(m1.startPosition, m2.startPosition)));
}
} | [
"private",
"static",
"void",
"sortMatchList",
"(",
"List",
"<",
"Match",
">",
"list",
")",
"{",
"if",
"(",
"list",
"!=",
"null",
")",
"{",
"// light sorting on start position",
"Collections",
".",
"sort",
"(",
"list",
",",
"(",
"Match",
"m1",
",",
"Match",... | Sort match list.
@param list
the list | [
"Sort",
"match",
"list",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L2266-L2272 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.groupedKeyName | private static String groupedKeyName(String key, Double baseRangeSize,
Double baseRangeBase) {
final double precision = 0.000001;
if (baseRangeSize == null || baseRangeSize <= 0) {
return key;
} else {
Double doubleKey;
Double doubleBase;
Double doubleNumber;
Double doubl... | java | private static String groupedKeyName(String key, Double baseRangeSize,
Double baseRangeBase) {
final double precision = 0.000001;
if (baseRangeSize == null || baseRangeSize <= 0) {
return key;
} else {
Double doubleKey;
Double doubleBase;
Double doubleNumber;
Double doubl... | [
"private",
"static",
"String",
"groupedKeyName",
"(",
"String",
"key",
",",
"Double",
"baseRangeSize",
",",
"Double",
"baseRangeBase",
")",
"{",
"final",
"double",
"precision",
"=",
"0.000001",
";",
"if",
"(",
"baseRangeSize",
"==",
"null",
"||",
"baseRangeSize"... | Grouped key name.
@param key
the key
@param baseRangeSize
the base range size
@param baseRangeBase
the base range base
@return the string | [
"Grouped",
"key",
"name",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L2955-L2992 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.mergeDocLists | private static Integer[] mergeDocLists(Integer[] a, Integer[] b) {
Integer[] answer = new Integer[a.length + b.length];
int i = 0;
int j = 0;
int k = 0;
Integer tmp;
while (i < a.length && j < b.length) {
tmp = a[i] < b[j] ? a[i++] : b[j++];
for (; i < a.length && a[i].equals(tmp); i... | java | private static Integer[] mergeDocLists(Integer[] a, Integer[] b) {
Integer[] answer = new Integer[a.length + b.length];
int i = 0;
int j = 0;
int k = 0;
Integer tmp;
while (i < a.length && j < b.length) {
tmp = a[i] < b[j] ? a[i++] : b[j++];
for (; i < a.length && a[i].equals(tmp); i... | [
"private",
"static",
"Integer",
"[",
"]",
"mergeDocLists",
"(",
"Integer",
"[",
"]",
"a",
",",
"Integer",
"[",
"]",
"b",
")",
"{",
"Integer",
"[",
"]",
"answer",
"=",
"new",
"Integer",
"[",
"a",
".",
"length",
"+",
"b",
".",
"length",
"]",
";",
"... | Merge doc lists.
@param a
the a
@param b
the b
@return the integer[] | [
"Merge",
"doc",
"lists",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L3003-L3030 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.createFacet | private static void createFacet(List<ComponentFacet> facetList,
Map<Integer, Integer> positionsData,
Map<MtasSpanQuery, Map<Integer, Integer>> spansNumberData,
Map<String, SortedMap<String, int[]>> facetData, List<Integer> docSet)
throws IOException {
if (facetList != null) {
for (Com... | java | private static void createFacet(List<ComponentFacet> facetList,
Map<Integer, Integer> positionsData,
Map<MtasSpanQuery, Map<Integer, Integer>> spansNumberData,
Map<String, SortedMap<String, int[]>> facetData, List<Integer> docSet)
throws IOException {
if (facetList != null) {
for (Com... | [
"private",
"static",
"void",
"createFacet",
"(",
"List",
"<",
"ComponentFacet",
">",
"facetList",
",",
"Map",
"<",
"Integer",
",",
"Integer",
">",
"positionsData",
",",
"Map",
"<",
"MtasSpanQuery",
",",
"Map",
"<",
"Integer",
",",
"Integer",
">",
">",
"spa... | Creates the facet.
@param facetList
the facet list
@param positionsData
the positions data
@param spansNumberData
the spans number data
@param facetData
the facet data
@param docSet
the doc set
@throws IOException
Signals that an I/O exception has occurred. | [
"Creates",
"the",
"facet",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L3048-L3063 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.validateTermWithStartValue | private static boolean validateTermWithStartValue(BytesRef term,
ComponentTermVector termVector) {
if (termVector.startValue == null) {
return true;
} else if (termVector.subComponentFunction.sortType
.equals(CodecUtil.SORT_TERM)) {
if (term.length > termVector.startValue.length) {
... | java | private static boolean validateTermWithStartValue(BytesRef term,
ComponentTermVector termVector) {
if (termVector.startValue == null) {
return true;
} else if (termVector.subComponentFunction.sortType
.equals(CodecUtil.SORT_TERM)) {
if (term.length > termVector.startValue.length) {
... | [
"private",
"static",
"boolean",
"validateTermWithStartValue",
"(",
"BytesRef",
"term",
",",
"ComponentTermVector",
"termVector",
")",
"{",
"if",
"(",
"termVector",
".",
"startValue",
"==",
"null",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"termV... | Validate term with start value.
@param term
the term
@param termVector
the term vector
@return true, if successful | [
"Validate",
"term",
"with",
"start",
"value",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L3630-L3661 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.validateTermWithDistance | private static boolean validateTermWithDistance(BytesRef term,
ComponentTermVector termVector) throws IOException {
if (termVector.distances == null || termVector.distances.isEmpty()) {
return true;
} else {
// first check maximum for all distances
for (SubComponentDistance item : termVe... | java | private static boolean validateTermWithDistance(BytesRef term,
ComponentTermVector termVector) throws IOException {
if (termVector.distances == null || termVector.distances.isEmpty()) {
return true;
} else {
// first check maximum for all distances
for (SubComponentDistance item : termVe... | [
"private",
"static",
"boolean",
"validateTermWithDistance",
"(",
"BytesRef",
"term",
",",
"ComponentTermVector",
"termVector",
")",
"throws",
"IOException",
"{",
"if",
"(",
"termVector",
".",
"distances",
"==",
"null",
"||",
"termVector",
".",
"distances",
".",
"i... | Validate term with distance.
@param term
the term
@param termVector
the term vector
@return true, if successful
@throws IOException
Signals that an I/O exception has occurred. | [
"Validate",
"term",
"with",
"distance",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L3674-L3714 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.needSecondRoundTermvector | private static boolean needSecondRoundTermvector(
List<ComponentTermVector> termVectorList) throws IOException {
boolean needSecondRound = false;
for (ComponentTermVector termVector : termVectorList) {
if (!termVector.full && termVector.list == null) {
boolean doCheck;
doCheck = term... | java | private static boolean needSecondRoundTermvector(
List<ComponentTermVector> termVectorList) throws IOException {
boolean needSecondRound = false;
for (ComponentTermVector termVector : termVectorList) {
if (!termVector.full && termVector.list == null) {
boolean doCheck;
doCheck = term... | [
"private",
"static",
"boolean",
"needSecondRoundTermvector",
"(",
"List",
"<",
"ComponentTermVector",
">",
"termVectorList",
")",
"throws",
"IOException",
"{",
"boolean",
"needSecondRound",
"=",
"false",
";",
"for",
"(",
"ComponentTermVector",
"termVector",
":",
"term... | Need second round termvector.
@param termVectorList
the term vector list
@return true, if successful
@throws IOException
Signals that an I/O exception has occurred. | [
"Need",
"second",
"round",
"termvector",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L3725-L3754 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.preliminaryRegisterValue | private static boolean preliminaryRegisterValue(BytesRef term,
ComponentTermVector termVector, TermvectorNumberBasic number,
Integer termNumberMaximum, Integer segmentNumber, String[] mutableKey)
throws IOException {
long sortValue = 0;
if (termVector.subComponentFunction.sortDirection
... | java | private static boolean preliminaryRegisterValue(BytesRef term,
ComponentTermVector termVector, TermvectorNumberBasic number,
Integer termNumberMaximum, Integer segmentNumber, String[] mutableKey)
throws IOException {
long sortValue = 0;
if (termVector.subComponentFunction.sortDirection
... | [
"private",
"static",
"boolean",
"preliminaryRegisterValue",
"(",
"BytesRef",
"term",
",",
"ComponentTermVector",
"termVector",
",",
"TermvectorNumberBasic",
"number",
",",
"Integer",
"termNumberMaximum",
",",
"Integer",
"segmentNumber",
",",
"String",
"[",
"]",
"mutable... | Preliminary register value.
@param term
the term
@param termVector
the term vector
@param number
the number
@param termNumberMaximum
the term number maximum
@param segmentNumber
the segment number
@param mutableKey
the mutable key
@return true, if successful
@throws IOException
Signals that an I/O exception has occurr... | [
"Preliminary",
"register",
"value",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L4002-L4044 | train |
meertensinstituut/mtas | src/main/java/mtas/codec/util/CodecCollector.java | CodecCollector.computeTermvectorNumberFull | private static TermvectorNumberFull computeTermvectorNumberFull(
List<Integer> docSet, int termDocId, TermsEnum termsEnum,
LeafReaderContext lrc, PostingsEnum postingsEnum,
Map<Integer, Integer> positionsData) throws IOException {
TermvectorNumberFull result = new TermvectorNumberFull(docSet.size(... | java | private static TermvectorNumberFull computeTermvectorNumberFull(
List<Integer> docSet, int termDocId, TermsEnum termsEnum,
LeafReaderContext lrc, PostingsEnum postingsEnum,
Map<Integer, Integer> positionsData) throws IOException {
TermvectorNumberFull result = new TermvectorNumberFull(docSet.size(... | [
"private",
"static",
"TermvectorNumberFull",
"computeTermvectorNumberFull",
"(",
"List",
"<",
"Integer",
">",
"docSet",
",",
"int",
"termDocId",
",",
"TermsEnum",
"termsEnum",
",",
"LeafReaderContext",
"lrc",
",",
"PostingsEnum",
"postingsEnum",
",",
"Map",
"<",
"In... | Compute termvector number full.
@param docSet
the doc set
@param termDocId
the term doc id
@param termsEnum
the terms enum
@param lrc
the lrc
@param postingsEnum
the postings enum
@param positionsData
the positions data
@return the termvector number full
@throws IOException
Signals that an I/O exception has occurred. | [
"Compute",
"termvector",
"number",
"full",
"."
] | f02ae730848616bd88b553efa7f9eddc32818e64 | https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/util/CodecCollector.java#L4215-L4234 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/trees/international/pennchinese/ChineseEnglishWordMap.java | ChineseEnglishWordMap.containsKey | public boolean containsKey(String key) {
key = key.toLowerCase();
key = key.trim();
return map.containsKey(key);
} | java | public boolean containsKey(String key) {
key = key.toLowerCase();
key = key.trim();
return map.containsKey(key);
} | [
"public",
"boolean",
"containsKey",
"(",
"String",
"key",
")",
"{",
"key",
"=",
"key",
".",
"toLowerCase",
"(",
")",
";",
"key",
"=",
"key",
".",
"trim",
"(",
")",
";",
"return",
"map",
".",
"containsKey",
"(",
"key",
")",
";",
"}"
] | Does the word exist in the dictionary?
@param key The word in Chinese
@return Whether it is in the dictionary | [
"Does",
"the",
"word",
"exist",
"in",
"the",
"dictionary?"
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/international/pennchinese/ChineseEnglishWordMap.java#L100-L104 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/trees/international/pennchinese/ChineseEnglishWordMap.java | ChineseEnglishWordMap.getReverseMap | public Map<String, Set<String>> getReverseMap() {
Set<Map.Entry<String,Set<String>>> entries = map.entrySet();
Map<String, Set<String>> rMap = new HashMap<String, Set<String>>(entries.size());
for (Map.Entry<String,Set<String>> me : entries) {
String k = me.getKey();
Set<String> transList =... | java | public Map<String, Set<String>> getReverseMap() {
Set<Map.Entry<String,Set<String>>> entries = map.entrySet();
Map<String, Set<String>> rMap = new HashMap<String, Set<String>>(entries.size());
for (Map.Entry<String,Set<String>> me : entries) {
String k = me.getKey();
Set<String> transList =... | [
"public",
"Map",
"<",
"String",
",",
"Set",
"<",
"String",
">",
">",
"getReverseMap",
"(",
")",
"{",
"Set",
"<",
"Map",
".",
"Entry",
"<",
"String",
",",
"Set",
"<",
"String",
">",
">",
">",
"entries",
"=",
"map",
".",
"entrySet",
"(",
")",
";",
... | Returns a reversed map of the current map.
@return A reversed map of the current map. | [
"Returns",
"a",
"reversed",
"map",
"of",
"the",
"current",
"map",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/international/pennchinese/ChineseEnglishWordMap.java#L276-L295 | train |
PeterisP/LVTagger | src/main/java/edu/stanford/nlp/trees/international/pennchinese/ChineseEnglishWordMap.java | ChineseEnglishWordMap.addMap | public int addMap(Map<String, Set<String>> addM) {
int newTrans = 0;
for (Map.Entry<String,Set<String>> me : addM.entrySet()) {
String k = me.getKey();
Set<String> addList = me.getValue();
Set<String> origList = map.get(k);
if (origList == null) {
map.put(k, new LinkedHa... | java | public int addMap(Map<String, Set<String>> addM) {
int newTrans = 0;
for (Map.Entry<String,Set<String>> me : addM.entrySet()) {
String k = me.getKey();
Set<String> addList = me.getValue();
Set<String> origList = map.get(k);
if (origList == null) {
map.put(k, new LinkedHa... | [
"public",
"int",
"addMap",
"(",
"Map",
"<",
"String",
",",
"Set",
"<",
"String",
">",
">",
"addM",
")",
"{",
"int",
"newTrans",
"=",
"0",
";",
"for",
"(",
"Map",
".",
"Entry",
"<",
"String",
",",
"Set",
"<",
"String",
">",
">",
"me",
":",
"addM... | Add all of the mappings from the specified map to the current map. | [
"Add",
"all",
"of",
"the",
"mappings",
"from",
"the",
"specified",
"map",
"to",
"the",
"current",
"map",
"."
] | b3d44bab9ec07ace0d13612c448a6b7298c1f681 | https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/trees/international/pennchinese/ChineseEnglishWordMap.java#L300-L323 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnssoarec.java | dnssoarec.add | public static base_response add(nitro_service client, dnssoarec resource) throws Exception {
dnssoarec addresource = new dnssoarec();
addresource.domain = resource.domain;
addresource.originserver = resource.originserver;
addresource.contact = resource.contact;
addresource.serial = resource.serial;
addresou... | java | public static base_response add(nitro_service client, dnssoarec resource) throws Exception {
dnssoarec addresource = new dnssoarec();
addresource.domain = resource.domain;
addresource.originserver = resource.originserver;
addresource.contact = resource.contact;
addresource.serial = resource.serial;
addresou... | [
"public",
"static",
"base_response",
"add",
"(",
"nitro_service",
"client",
",",
"dnssoarec",
"resource",
")",
"throws",
"Exception",
"{",
"dnssoarec",
"addresource",
"=",
"new",
"dnssoarec",
"(",
")",
";",
"addresource",
".",
"domain",
"=",
"resource",
".",
"... | Use this API to add dnssoarec. | [
"Use",
"this",
"API",
"to",
"add",
"dnssoarec",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnssoarec.java#L337-L349 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnssoarec.java | dnssoarec.add | public static base_responses add(nitro_service client, dnssoarec resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnssoarec addresources[] = new dnssoarec[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new dnssoarec(... | java | public static base_responses add(nitro_service client, dnssoarec resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnssoarec addresources[] = new dnssoarec[resources.length];
for (int i=0;i<resources.length;i++){
addresources[i] = new dnssoarec(... | [
"public",
"static",
"base_responses",
"add",
"(",
"nitro_service",
"client",
",",
"dnssoarec",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
".",
... | Use this API to add dnssoarec resources. | [
"Use",
"this",
"API",
"to",
"add",
"dnssoarec",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnssoarec.java#L354-L373 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnssoarec.java | dnssoarec.delete | public static base_responses delete(nitro_service client, dnssoarec resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnssoarec deleteresources[] = new dnssoarec[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new d... | java | public static base_responses delete(nitro_service client, dnssoarec resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnssoarec deleteresources[] = new dnssoarec[resources.length];
for (int i=0;i<resources.length;i++){
deleteresources[i] = new d... | [
"public",
"static",
"base_responses",
"delete",
"(",
"nitro_service",
"client",
",",
"dnssoarec",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
"."... | Use this API to delete dnssoarec resources. | [
"Use",
"this",
"API",
"to",
"delete",
"dnssoarec",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnssoarec.java#L412-L423 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnssoarec.java | dnssoarec.update | public static base_response update(nitro_service client, dnssoarec resource) throws Exception {
dnssoarec updateresource = new dnssoarec();
updateresource.domain = resource.domain;
updateresource.originserver = resource.originserver;
updateresource.contact = resource.contact;
updateresource.serial = resource.... | java | public static base_response update(nitro_service client, dnssoarec resource) throws Exception {
dnssoarec updateresource = new dnssoarec();
updateresource.domain = resource.domain;
updateresource.originserver = resource.originserver;
updateresource.contact = resource.contact;
updateresource.serial = resource.... | [
"public",
"static",
"base_response",
"update",
"(",
"nitro_service",
"client",
",",
"dnssoarec",
"resource",
")",
"throws",
"Exception",
"{",
"dnssoarec",
"updateresource",
"=",
"new",
"dnssoarec",
"(",
")",
";",
"updateresource",
".",
"domain",
"=",
"resource",
... | Use this API to update dnssoarec. | [
"Use",
"this",
"API",
"to",
"update",
"dnssoarec",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnssoarec.java#L428-L440 | train |
netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnssoarec.java | dnssoarec.update | public static base_responses update(nitro_service client, dnssoarec resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnssoarec updateresources[] = new dnssoarec[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new d... | java | public static base_responses update(nitro_service client, dnssoarec resources[]) throws Exception {
base_responses result = null;
if (resources != null && resources.length > 0) {
dnssoarec updateresources[] = new dnssoarec[resources.length];
for (int i=0;i<resources.length;i++){
updateresources[i] = new d... | [
"public",
"static",
"base_responses",
"update",
"(",
"nitro_service",
"client",
",",
"dnssoarec",
"resources",
"[",
"]",
")",
"throws",
"Exception",
"{",
"base_responses",
"result",
"=",
"null",
";",
"if",
"(",
"resources",
"!=",
"null",
"&&",
"resources",
"."... | Use this API to update dnssoarec resources. | [
"Use",
"this",
"API",
"to",
"update",
"dnssoarec",
"resources",
"."
] | 2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4 | https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnssoarec.java#L445-L464 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.