_id
stringlengths
2
7
title
stringlengths
3
140
partition
stringclasses
3 values
text
stringlengths
73
34.1k
language
stringclasses
1 value
meta_information
dict
q11600
MLEDependencyGrammar.getCachedITW
train
private IntTaggedWord getCachedITW(short tag) { // The +2 below is because -1 and -2 are used with special meanings (see IntTaggedWord). if (tagITWList == null) { tagITWList = new ArrayList<IntTaggedWord>(numTagBins + 2); for (int i=0; i<numTagBins + 2; i++) { tagITWList.add(i, null); } } IntTaggedWord headT = tagITWList.get(tagBin(tag) + 2); if (headT == null) { headT = new IntTaggedWord(ANY_WORD_INT, tagBin(tag)); tagITWList.set(tagBin(tag) + 2, headT); } return headT; }
java
{ "resource": "" }
q11601
MLEDependencyGrammar.expandDependency
train
protected void expandDependency(IntDependency dependency, double count) { //if (Test.prunePunc && pruneTW(dependency.arg)) // return; if (dependency.head == null || dependency.arg == null) { return; } if (dependency.arg.word != STOP_WORD_INT) { expandArg(dependency, valenceBin(dependency.distance), count); } expandStop(dependency, distanceBin(dependency.distance), count, true); }
java
{ "resource": "" }
q11602
MLEDependencyGrammar.scoreTB
train
public double scoreTB(IntDependency dependency) { return op.testOptions.depWeight * Math.log(probTB(dependency)); }
java
{ "resource": "" }
q11603
MLEDependencyGrammar.readData
train
@Override public void readData(BufferedReader in) throws IOException { final String LEFT = "left"; int lineNum = 1; // all lines have one rule per line boolean doingStop = false; for (String line = in.readLine(); line != null && line.length() > 0; line = in.readLine()) { try { if (line.equals("BEGIN_STOP")) { doingStop = true; continue; } String[] fields = StringUtils.splitOnCharWithQuoting(line, ' ', '\"', '\\'); // split on spaces, quote with doublequote, and escape with backslash // System.out.println("fields:\n" + fields[0] + "\n" + fields[1] + "\n" + fields[2] + "\n" + fields[3] + "\n" + fields[4] + "\n" + fields[5]); short distance = (short)Integer.parseInt(fields[4]); IntTaggedWord tempHead = new IntTaggedWord(fields[0], '/', wordIndex, tagIndex); IntTaggedWord tempArg = new IntTaggedWord(fields[2], '/', wordIndex, tagIndex); IntDependency tempDependency = new IntDependency(tempHead, tempArg, fields[3].equals(LEFT), distance); double count = Double.parseDouble(fields[5]); if (doingStop) { expandStop(tempDependency, distance, count, false); } else { expandArg(tempDependency, distance, count); } } catch (Exception e) { IOException ioe = new IOException("Error on line " + lineNum + ": " + line); ioe.initCause(e); throw ioe; } // System.out.println("read line " + lineNum + ": " + line); lineNum++; } }
java
{ "resource": "" }
q11604
MLEDependencyGrammar.writeData
train
@Override public void writeData(PrintWriter out) throws IOException { // all lines have one rule per line for (IntDependency dependency : argCounter.keySet()) { if (dependency.head != wildTW && dependency.arg != wildTW && dependency.head.word != -1 && dependency.arg.word != -1) { double count = argCounter.getCount(dependency); out.println(dependency.toString(wordIndex, tagIndex) + " " + count); } } out.println("BEGIN_STOP"); for (IntDependency dependency : stopCounter.keySet()) { if (dependency.head.word != -1) { double count = stopCounter.getCount(dependency); out.println(dependency.toString(wordIndex, tagIndex) + " " + count); } } out.flush(); }
java
{ "resource": "" }
q11605
vpnintranetapplication.add
train
public static base_response add(nitro_service client, vpnintranetapplication resource) throws Exception { vpnintranetapplication addresource = new vpnintranetapplication(); addresource.intranetapplication = resource.intranetapplication; addresource.protocol = resource.protocol; addresource.destip = resource.destip; addresource.netmask = resource.netmask; addresource.iprange = resource.iprange; addresource.hostname = resource.hostname; addresource.clientapplication = resource.clientapplication; addresource.spoofiip = resource.spoofiip; addresource.destport = resource.destport; addresource.interception = resource.interception; addresource.srcip = resource.srcip; addresource.srcport = resource.srcport; return addresource.add_resource(client); }
java
{ "resource": "" }
q11606
vpnintranetapplication.add
train
public static base_responses add(nitro_service client, vpnintranetapplication resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { vpnintranetapplication addresources[] = new vpnintranetapplication[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new vpnintranetapplication(); addresources[i].intranetapplication = resources[i].intranetapplication; addresources[i].protocol = resources[i].protocol; addresources[i].destip = resources[i].destip; addresources[i].netmask = resources[i].netmask; addresources[i].iprange = resources[i].iprange; addresources[i].hostname = resources[i].hostname; addresources[i].clientapplication = resources[i].clientapplication; addresources[i].spoofiip = resources[i].spoofiip; addresources[i].destport = resources[i].destport; addresources[i].interception = resources[i].interception; addresources[i].srcip = resources[i].srcip; addresources[i].srcport = resources[i].srcport; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q11607
vpnintranetapplication.delete
train
public static base_response delete(nitro_service client, String intranetapplication) throws Exception { vpnintranetapplication deleteresource = new vpnintranetapplication(); deleteresource.intranetapplication = intranetapplication; return deleteresource.delete_resource(client); }
java
{ "resource": "" }
q11608
vpnintranetapplication.get
train
public static vpnintranetapplication[] get(nitro_service service) throws Exception{ vpnintranetapplication obj = new vpnintranetapplication(); vpnintranetapplication[] response = (vpnintranetapplication[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q11609
vpnintranetapplication.get
train
public static vpnintranetapplication get(nitro_service service, String intranetapplication) throws Exception{ vpnintranetapplication obj = new vpnintranetapplication(); obj.set_intranetapplication(intranetapplication); vpnintranetapplication response = (vpnintranetapplication) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11610
vpnintranetapplication.get
train
public static vpnintranetapplication[] get(nitro_service service, String intranetapplication[]) throws Exception{ if (intranetapplication !=null && intranetapplication.length>0) { vpnintranetapplication response[] = new vpnintranetapplication[intranetapplication.length]; vpnintranetapplication obj[] = new vpnintranetapplication[intranetapplication.length]; for (int i=0;i<intranetapplication.length;i++) { obj[i] = new vpnintranetapplication(); obj[i].set_intranetapplication(intranetapplication[i]); response[i] = (vpnintranetapplication) obj[i].get_resource(service); } return response; } return null; }
java
{ "resource": "" }
q11611
sslpolicy_sslvserver_binding.get
train
public static sslpolicy_sslvserver_binding[] get(nitro_service service, String name) throws Exception{ sslpolicy_sslvserver_binding obj = new sslpolicy_sslvserver_binding(); obj.set_name(name); sslpolicy_sslvserver_binding response[] = (sslpolicy_sslvserver_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11612
tmsessionpolicy_tmglobal_binding.get
train
public static tmsessionpolicy_tmglobal_binding[] get(nitro_service service, String name) throws Exception{ tmsessionpolicy_tmglobal_binding obj = new tmsessionpolicy_tmglobal_binding(); obj.set_name(name); tmsessionpolicy_tmglobal_binding response[] = (tmsessionpolicy_tmglobal_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11613
nsweblogparam.update
train
public static base_response update(nitro_service client, nsweblogparam resource) throws Exception { nsweblogparam updateresource = new nsweblogparam(); updateresource.buffersizemb = resource.buffersizemb; updateresource.customreqhdrs = resource.customreqhdrs; updateresource.customrsphdrs = resource.customrsphdrs; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11614
nsweblogparam.unset
train
public static base_response unset(nitro_service client, nsweblogparam resource, String[] args) throws Exception{ nsweblogparam unsetresource = new nsweblogparam(); return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q11615
nsweblogparam.get
train
public static nsweblogparam get(nitro_service service, options option) throws Exception{ nsweblogparam obj = new nsweblogparam(); nsweblogparam[] response = (nsweblogparam[])obj.get_resources(service,option); return response[0]; }
java
{ "resource": "" }
q11616
nslicense.get
train
public static nslicense get(nitro_service service) throws Exception{ nslicense obj = new nslicense(); nslicense[] response = (nslicense[])obj.get_resources(service); return response[0]; }
java
{ "resource": "" }
q11617
ipset_binding.get
train
public static ipset_binding get(nitro_service service, String name) throws Exception{ ipset_binding obj = new ipset_binding(); obj.set_name(name); ipset_binding response = (ipset_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11618
AbstractLongList.elements
train
public long[] elements() { long[] myElements = new long[size]; for (int i=size; --i >= 0; ) myElements[i]=getQuick(i); return myElements; } /** * Sets the receiver's elements to be the specified array. * The size and capacity of the list is the length of the array. * <b>WARNING:</b> For efficiency reasons and to keep memory usage low, this method may decide <b>not to copy the array</b>. * So if subsequently you modify the returned array directly via the [] operator, be sure you know what you're doing. * * @param elements the new elements to be stored. * @return the receiver itself. */ public AbstractLongList elements(long[] elements) { clear(); addAllOfFromTo(new LongArrayList(elements),0,elements.length-1); return this; } /** * Ensures that the receiver can hold at least the specified number of elements without needing to allocate new internal memory. * If necessary, allocates new internal memory and increases the capacity of the receiver. * * @param minCapacity the desired minimum capacity. */ public abstract void ensureCapacity(int minCapacity); /** * Compares the specified Object with the receiver. * Returns true if and only if the specified Object is also an ArrayList of the same type, both Lists have the * same size, and all corresponding pairs of elements in the two Lists are identical. * In other words, two Lists are defined to be equal if they contain the * same elements in the same order. * * @param otherObj the Object to be compared for equality with the receiver. * @return true if the specified Object is equal to the receiver. */ public boolean equals(Object otherObj) { //delta if (! (otherObj instanceof AbstractLongList)) {return false;} if (this==otherObj) return true; if (otherObj==null) return false; AbstractLongList other = (AbstractLongList) otherObj; if (size()!=other.size()) return false; for (int i=size(); --i >= 0; ) { if (getQuick(i) != other.getQuick(i)) return false; } return true; } /** * Sets the specified range of elements in the specified array to the specified value. * * @param from the index of the first element (inclusive) to be filled with the specified value. * @param to the index of the last element (inclusive) to be filled with the specified value. * @param val the value to be stored in the specified elements of the receiver. */ public void fillFromToWith(int from, int to, long val) { checkRangeFromTo(from,to,this.size); for (int i=from; i<=to;) setQuick(i++,val); } /** * Applies a procedure to each element of the receiver, if any. * Starts at index 0, moving rightwards. * @param procedure the procedure to be applied. Stops iteration if the procedure returns <tt>false</tt>, otherwise continues. * @return <tt>false</tt> if the procedure stopped before all elements where iterated over, <tt>true</tt> otherwise. */ public boolean forEach(LongProcedure procedure) { for (int i=0; i<size;) if (! procedure.apply(get(i++))) return false; return true; } /** * Returns the element at the specified position in the receiver. * * @param index index of element to return. * @exception IndexOutOfBoundsException index is out of range (index * &lt; 0 || index &gt;= size()). */ public long get(int index) { if (index >= size || index < 0) throw new IndexOutOfBoundsException("Index: "+index+", Size: "+size); return getQuick(index); } /** * Returns the element at the specified position in the receiver; <b>WARNING:</b> Does not check preconditions. * Provided with invalid parameters this method may return invalid elements without throwing any exception! * <b>You should only use this method when you are absolutely sure that the index is within bounds.</b> * Precondition (unchecked): <tt>index &gt;= 0 && index &lt; size()</tt>. * * This method is normally only used internally in large loops where bounds are explicitly checked before the loop and need no be rechecked within the loop. * However, when desperately, you can give this method <tt>public</tt> visibility in subclasses. * * @param index index of element to return. */ protected abstract long getQuick(int index); /** * Returns the index of the first occurrence of the specified * element. Returns <code>-1</code> if the receiver does not contain this element. * * @param element the element to be searched for. * @return the index of the first occurrence of the element in the receiver; returns <code>-1</code> if the element is not found. */ public int indexOf(long element) { //delta return indexOfFromTo(element, 0, size-1); } /** * Returns the index of the first occurrence of the specified * element. Returns <code>-1</code> if the receiver does not contain this element. * Searches between <code>from</code>, inclusive and <code>to</code>, inclusive. * Tests for identity. * * @param element element to search for. * @param from the leftmost search position, inclusive. * @param to the rightmost search position, inclusive. * @return the index of the first occurrence of the element in the receiver; returns <code>-1</code> if the element is not found. * @exception IndexOutOfBoundsException index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to || to&gt;=size())</tt>). */ public int indexOfFromTo(long element, int from, int to) { checkRangeFromTo(from, to, size); for (int i = from ; i <= to; i++) { if (element==getQuick(i)) return i; //found } return -1; //not found } /** * Returns the index of the last occurrence of the specified * element. Returns <code>-1</code> if the receiver does not contain this element. * * @param element the element to be searched for. * @return the index of the last occurrence of the element in the receiver; returns <code>-1</code> if the element is not found. */ public int lastIndexOf(long element) { return lastIndexOfFromTo(element, 0, size-1); } /** * Returns the index of the last occurrence of the specified * element. Returns <code>-1</code> if the receiver does not contain this element. * Searches beginning at <code>to</code>, inclusive until <code>from</code>, inclusive. * Tests for identity. * * @param element element to search for. * @param from the leftmost search position, inclusive. * @param to the rightmost search position, inclusive. * @return the index of the last occurrence of the element in the receiver; returns <code>-1</code> if the element is not found. * @exception IndexOutOfBoundsException index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to || to&gt;=size())</tt>). */ public int lastIndexOfFromTo(long element, int from, int to) { checkRangeFromTo(from, to, size()); for (int i = to ; i >= from; i--) { if (element==getQuick(i)) return i; //found } return -1; //not found } /** * Sorts the specified range of the receiver into ascending order. * * The sorting algorithm is a modified mergesort (in which the merge is * omitted if the highest element in the low sublist is less than the * lowest element in the high sublist). This algorithm offers guaranteed * n*log(n) performance, and can approach linear performance on nearly * sorted lists. * * <p><b>You should never call this method unless you are sure that this particular sorting algorithm is the right one for your data set.</b> * It is generally better to call <tt>sort()</tt> or <tt>sortFromTo(...)</tt> instead, because those methods automatically choose the best sorting algorithm. * * @param from the index of the first element (inclusive) to be sorted. * @param to the index of the last element (inclusive) to be sorted. * @exception IndexOutOfBoundsException index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to || to&gt;=size())</tt>). */ public void mergeSortFromTo(int from, int to) { int mySize = size(); checkRangeFromTo(from, to, mySize); long[] myElements = elements(); java.util.Arrays.sort(myElements, from, to+1); elements(myElements); setSizeRaw(mySize); } /** * Sorts the receiver according * to the order induced by the specified comparator. All elements in the * range must be <i>mutually comparable</i> by the specified comparator * (that is, <tt>c.compare(e1, e2)</tt> must not throw a * <tt>ClassCastException</tt> for any elements <tt>e1</tt> and * <tt>e2</tt> in the range).<p> * * This sort is guaranteed to be <i>stable</i>: equal elements will * not be reordered as a result of the sort.<p> * * The sorting algorithm is a modified mergesort (in which the merge is * omitted if the highest element in the low sublist is less than the * lowest element in the high sublist). This algorithm offers guaranteed * n*log(n) performance, and can approach linear performance on nearly * sorted lists. * * @param from the index of the first element (inclusive) to be * sorted. * @param to the index of the last element (inclusive) to be sorted. * @param c the comparator to determine the order of the receiver. * @throws ClassCastException if the array contains elements that are not * <i>mutually comparable</i> using the specified comparator. * @throws IllegalArgumentException if <tt>fromIndex &gt; toIndex</tt> * @throws ArrayIndexOutOfBoundsException if <tt>fromIndex &lt; 0</tt> or * <tt>toIndex &gt; a.length</tt> * @see Comparator * @exception IndexOutOfBoundsException index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to || to&gt;=size())</tt>). */ public void mergeSortFromTo(int from, int to, LongComparator c) { int mySize = size(); checkRangeFromTo(from, to, mySize); long[] myElements = elements(); java.util.Arrays.sort(myElements, from, to+1); elements(myElements); setSizeRaw(mySize); } /** * Returns a new list of the part of the receiver between <code>from</code>, inclusive, and <code>to</code>, inclusive. * @param from the index of the first element (inclusive). * @param to the index of the last element (inclusive). * @return a new list * @exception IndexOutOfBoundsException index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to || to&gt;=size())</tt>). */ public AbstractLongList partFromTo(int from, int to) { checkRangeFromTo(from, to, size); int length = to-from+1; LongArrayList part = new LongArrayList(length); part.addAllOfFromTo(this,from,to); return part; } /** * Sorts the specified range of the receiver into * ascending numerical order. The sorting algorithm is a tuned quicksort, * adapted from Jon L. Bentley and M. Douglas McIlroy's "Engineering a * Sort Function", Software-Practice and Experience, Vol. 23(11) * P. 1249-1265 (November 1993). This algorithm offers n*log(n) * performance on many data sets that cause other quicksorts to degrade to * quadratic performance. * * <p><b>You should never call this method unless you are sure that this particular sorting algorithm is the right one for your data set.</b> * It is generally better to call <tt>sort()</tt> or <tt>sortFromTo(...)</tt> instead, because those methods automatically choose the best sorting algorithm. * * @param from the index of the first element (inclusive) to be sorted. * @param to the index of the last element (inclusive) to be sorted. * @exception IndexOutOfBoundsException index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to || to&gt;=size())</tt>). */ public void quickSortFromTo(int from, int to) { int mySize = size(); checkRangeFromTo(from, to, mySize); long[] myElements = elements(); java.util.Arrays.sort(myElements, from, to+1); elements(myElements); setSizeRaw(mySize); } /** * Sorts the receiver according * to the order induced by the specified comparator. All elements in the * range must be <i>mutually comparable</i> by the specified comparator * (that is, <tt>c.compare(e1, e2)</tt> must not throw a * <tt>ClassCastException</tt> for any elements <tt>e1</tt> and * <tt>e2</tt> in the range).<p> * * The sorting algorithm is a tuned quicksort, * adapted from Jon L. Bentley and M. Douglas McIlroy's "Engineering a * Sort Function", Software-Practice and Experience, Vol. 23(11) * P. 1249-1265 (November 1993). This algorithm offers n*log(n) * performance on many data sets that cause other quicksorts to degrade to * quadratic performance. * * @param from the index of the first element (inclusive) to be * sorted. * @param to the index of the last element (inclusive) to be sorted. * @param c the comparator to determine the order of the receiver. * @throws ClassCastException if the array contains elements that are not * <i>mutually comparable</i> using the specified comparator. * @throws IllegalArgumentException if <tt>fromIndex &gt; toIndex</tt> * @throws ArrayIndexOutOfBoundsException if <tt>fromIndex &lt; 0</tt> or * <tt>toIndex &gt; a.length</tt> * @see Comparator * @exception IndexOutOfBoundsException index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to || to&gt;=size())</tt>). */ public void quickSortFromTo(int from, int to, LongComparator c) { int mySize = size(); checkRangeFromTo(from, to, mySize); long[] myElements = elements(); java.util.Arrays.sort(myElements, from, to+1); elements(myElements); setSizeRaw(mySize); } /** * Removes from the receiver all elements that are contained in the specified list. * Tests for identity. * * @param other the other list. * @return <code>true</code> if the receiver changed as a result of the call. */ public boolean removeAll(AbstractLongList other) { if (other.size()==0) return false; //nothing to do int limit = other.size()-1; int j=0; for (int i=0; i<size ; i++) { if (other.indexOfFromTo(getQuick(i), 0, limit) < 0) setQuick(j++,getQuick(i)); } boolean modified = (j!=size); setSize(j); return modified; } /** * Removes from the receiver all elements whose index is between * <code>from</code>, inclusive and <code>to</code>, inclusive. Shifts any succeeding * elements to the left (reduces their index). * This call shortens the list by <tt>(to - from + 1)</tt> elements. * * @param from index of first element to be removed. * @param to index of last element to be removed. * @exception IndexOutOfBoundsException index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to || to&gt;=size())</tt>). */ public void removeFromTo(int from, int to) { checkRangeFromTo(from, to, size); int numMoved = size - to - 1; if (numMoved > 0) { replaceFromToWithFrom(from, from-1+numMoved, this, to+1); //fillFromToWith(from+numMoved, size-1, 0.0f); //delta } int width = to-from+1; if (width>0) setSizeRaw(size-width); } /** * Replaces a number of elements in the receiver with the same number of elements of another list. * Replaces elements in the receiver, between <code>from</code> (inclusive) and <code>to</code> (inclusive), * with elements of <code>other</code>, starting from <code>otherFrom</code> (inclusive). * * @param from the position of the first element to be replaced in the receiver * @param to the position of the last element to be replaced in the receiver * @param other list holding elements to be copied into the receiver. * @param otherFrom position of first element within other list to be copied. */ public void replaceFromToWithFrom(int from, int to, AbstractLongList other, int otherFrom) { int length=to-from+1; if (length>0) { checkRangeFromTo(from, to, size()); checkRangeFromTo(otherFrom,otherFrom+length-1,other.size()); // unambiguous copy (it may hold other==this) if (from<=otherFrom) { for (; --length >= 0; ) setQuick(from++,other.getQuick(otherFrom++)); } else { int otherTo = otherFrom+length-1; for (; --length >= 0; ) setQuick(to--,other.getQuick(otherTo--)); } } } /** * Replaces the part between <code>from</code> (inclusive) and <code>to</code> (inclusive) with the other list's * part between <code>otherFrom</code> and <code>otherTo</code>. * Powerful (and tricky) method! * Both parts need not be of the same size (part A can both be smaller or larger than part B). * Parts may overlap. * Receiver and other list may (but most not) be identical. * If <code>from &gt; to</code>, then inserts other part before <code>from</code>. * * @param from the first element of the receiver (inclusive) * @param to the last element of the receiver (inclusive) * @param other the other list (may be identical with receiver) * @param otherFrom the first element of the other list (inclusive) * @param otherTo the last element of the other list (inclusive) * * <p><b>Examples:</b><pre> * a=[0, 1, 2, 3, 4, 5, 6, 7] * b=[50, 60, 70, 80, 90] * a.R(...)=a.replaceFromToWithFromTo(...) * * a.R(3,5,b,0,4)-->[0, 1, 2, 50, 60, 70, 80, 90, 6, 7] * a.R(1,6,b,0,4)-->[0, 50, 60, 70, 80, 90, 7] * a.R(0,6,b,0,4)-->[50, 60, 70, 80, 90, 7] * a.R(3,5,b,1,2)-->[0, 1, 2, 60, 70, 6, 7] * a.R(1,6,b,1,2)-->[0, 60, 70, 7] * a.R(0,6,b,1,2)-->[60, 70, 7] * a.R(5,3,b,0,4)-->[0, 1, 2, 3, 4, 50, 60, 70, 80, 90, 5, 6, 7] * a.R(5,0,b,0,4)-->[0, 1, 2, 3, 4, 50, 60, 70, 80, 90, 5, 6, 7] * a.R(5,3,b,1,2)-->[0, 1, 2, 3, 4, 60, 70, 5, 6, 7] * a.R(5,0,b,1,2)-->[0, 1, 2, 3, 4, 60, 70, 5, 6, 7] * * Extreme cases: * a.R(5,3,b,0,0)-->[0, 1, 2, 3, 4, 50, 5, 6, 7] * a.R(5,3,b,4,4)-->[0, 1, 2, 3, 4, 90, 5, 6, 7] * a.R(3,5,a,0,1)-->[0, 1, 2, 0, 1, 6, 7] * a.R(3,5,a,3,5)-->[0, 1, 2, 3, 4, 5, 6, 7] * a.R(3,5,a,4,4)-->[0, 1, 2, 4, 6, 7] * a.R(5,3,a,0,4)-->[0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 5, 6, 7] * a.R(0,-1,b,0,4)-->[50, 60, 70, 80, 90, 0, 1, 2, 3, 4, 5, 6, 7] * a.R(0,-1,a,0,4)-->[0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 5, 6, 7] * a.R(8,0,a,0,4)-->[0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4] * </pre> */ public void replaceFromToWithFromTo(int from, int to, AbstractLongList other, int otherFrom, int otherTo) { if (otherFrom>otherTo) { throw new IndexOutOfBoundsException("otherFrom: "+otherFrom+", otherTo: "+otherTo); } if (this==other && to-from!=otherTo-otherFrom) { // avoid stumbling over my own feet replaceFromToWithFromTo(from, to, partFromTo(otherFrom, otherTo), 0, otherTo-otherFrom); return; } int length=otherTo-otherFrom+1; int diff=length; int theLast=from-1; if (to>=from) { diff -= (to-from+1); theLast=to; } if (diff>0) { beforeInsertDummies(theLast+1, diff); } else { if (diff<0) { removeFromTo(theLast+diff, theLast-1); } } if (length>0) { replaceFromToWithFrom(from,from+length-1,other,otherFrom); } } /** * Replaces the part of the receiver starting at <code>from</code> (inclusive) with all the elements of the specified collection. * Does not alter the size of the receiver. * Replaces exactly <tt>Math.max(0,Math.min(size()-from, other.size()))</tt> elements. * * @param from the index at which to copy the first element from the specified collection. * @param other Collection to replace part of the receiver * @exception IndexOutOfBoundsException index is out of range (index &lt; 0 || index &gt;= size()). */ public void replaceFromWith(int from, java.util.Collection other) { checkRange(from,size()); java.util.Iterator e = other.iterator(); int index=from; int limit = Math.min(size()-from, other.size()); for (int i=0; i<limit; i++) set(index++,((Number) e.next()).longValue()); //delta } /** * Retains (keeps) only the elements in the receiver that are contained in the specified other list. * In other words, removes from the receiver all of its elements that are not contained in the * specified other list. * @param other the other list to test against. * @return <code>true</code> if the receiver changed as a result of the call. */ public boolean retainAll(AbstractLongList other) { if (other.size()==0) { if (size==0) return false; setSize(0); return true; } int limit = other.size()-1; int j=0; for (int i=0; i<size ; i++) { if (other.indexOfFromTo(getQuick(i), 0, limit) >= 0) setQuick(j++, getQuick(i)); } boolean modified = (j!=size); setSize(j); return modified; } /** * Reverses the elements of the receiver. * Last becomes first, second last becomes second first, and so on. */ public void reverse() { long tmp; int limit=size()/2; int j=size()-1; for (int i=0; i<limit;) { //swap tmp=getQuick(i); setQuick(i++,getQuick(j)); setQuick(j--,tmp); } } /** * Replaces the element at the specified position in the receiver with the specified element. * * @param index index of element to replace. * @param element element to be stored at the specified position. * @throws IndexOutOfBoundsException if <tt>index &lt; 0 || index &gt;= size()</tt>. */ public void set(int index, long element) { if (index >= size || index < 0) throw new IndexOutOfBoundsException("Index: "+index+", Size: "+size); setQuick(index,element); } /** * Replaces the element at the specified position in the receiver with the specified element; <b>WARNING:</b> Does not check preconditions. * Provided with invalid parameters this method may access invalid indexes without throwing any exception! * <b>You should only use this method when you are absolutely sure that the index is within bounds.</b> * Precondition (unchecked): <tt>index &gt;= 0 && index &lt; size()</tt>. * * This method is normally only used internally in large loops where bounds are explicitly checked before the loop and need no be rechecked within the loop. * However, when desperately, you can give this method <tt>public</tt> visibility in subclasses. * * @param index index of element to replace. * @param element element to be stored at the specified position. */ protected abstract void setQuick(int index, long element); /** * Sets the size of the receiver without modifying it otherwise. * This method should not release or allocate new memory but simply set some instance variable like <tt>size</tt>. * * If your subclass overrides and delegates size changing methods to some other object, * you must make sure that those overriding methods not only update the size of the delegate but also of this class. * For example: * public DatabaseList extends AbstractLongList { * ... * public void removeFromTo(int from,int to) { * myDatabase.removeFromTo(from,to); * this.setSizeRaw(size-(to-from+1)); * } * } */ protected void setSizeRaw(int newSize) { size = newSize; } /** * Randomly permutes the part of the receiver between <code>from</code> (inclusive) and <code>to</code> (inclusive). * @param from the index of the first element (inclusive) to be permuted. * @param to the index of the last element (inclusive) to be permuted. * @exception IndexOutOfBoundsException index is out of range (<tt>size()&gt;0 && (from&lt;0 || from&gt;to || to&gt;=size())</tt>). */ public void shuffleFromTo(int from, int to) { checkRangeFromTo(from, to, size()); //cern.jet.random.Uniform gen = new cern.jet.random.Uniform(new cern.jet.random.engine.DRand(new java.util.Date())); java.util.Random gen = new java.util.Random(); for (int i=from; i<to; i++) { int rp = gen.nextInt(to-i); int random = rp + i; // int random = gen.nextIntFromTo(i, to); //swap(i, random) long tmpElement = getQuick(random); setQuick(random,getQuick(i)); setQuick(i,tmpElement); } }
java
{ "resource": "" }
q11619
auditsyslogpolicy_binding.get
train
public static auditsyslogpolicy_binding get(nitro_service service, String name) throws Exception{ auditsyslogpolicy_binding obj = new auditsyslogpolicy_binding(); obj.set_name(name); auditsyslogpolicy_binding response = (auditsyslogpolicy_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11620
sslcipher_sslciphersuite_binding.get
train
public static sslcipher_sslciphersuite_binding[] get(nitro_service service, String ciphergroupname) throws Exception{ sslcipher_sslciphersuite_binding obj = new sslcipher_sslciphersuite_binding(); obj.set_ciphergroupname(ciphergroupname); sslcipher_sslciphersuite_binding response[] = (sslcipher_sslciphersuite_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11621
sslcipher_binding.get
train
public static sslcipher_binding get(nitro_service service, String ciphergroupname) throws Exception{ sslcipher_binding obj = new sslcipher_binding(); obj.set_ciphergroupname(ciphergroupname); sslcipher_binding response = (sslcipher_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11622
auditnslogpolicy_tmglobal_binding.get
train
public static auditnslogpolicy_tmglobal_binding[] get(nitro_service service, String name) throws Exception{ auditnslogpolicy_tmglobal_binding obj = new auditnslogpolicy_tmglobal_binding(); obj.set_name(name); auditnslogpolicy_tmglobal_binding response[] = (auditnslogpolicy_tmglobal_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11623
nsdhcpparams.update
train
public static base_response update(nitro_service client, nsdhcpparams resource) throws Exception { nsdhcpparams updateresource = new nsdhcpparams(); updateresource.dhcpclient = resource.dhcpclient; updateresource.saveroute = resource.saveroute; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11624
nsdhcpparams.unset
train
public static base_response unset(nitro_service client, nsdhcpparams resource, String[] args) throws Exception{ nsdhcpparams unsetresource = new nsdhcpparams(); return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q11625
nsdhcpparams.get
train
public static nsdhcpparams get(nitro_service service) throws Exception{ nsdhcpparams obj = new nsdhcpparams(); nsdhcpparams[] response = (nsdhcpparams[])obj.get_resources(service); return response[0]; }
java
{ "resource": "" }
q11626
filterprebodyinjection.update
train
public static base_response update(nitro_service client, filterprebodyinjection resource) throws Exception { filterprebodyinjection updateresource = new filterprebodyinjection(); updateresource.prebody = resource.prebody; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11627
filterprebodyinjection.unset
train
public static base_response unset(nitro_service client, filterprebodyinjection resource, String[] args) throws Exception{ filterprebodyinjection unsetresource = new filterprebodyinjection(); return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q11628
filterprebodyinjection.get
train
public static filterprebodyinjection get(nitro_service service) throws Exception{ filterprebodyinjection obj = new filterprebodyinjection(); filterprebodyinjection[] response = (filterprebodyinjection[])obj.get_resources(service); return response[0]; }
java
{ "resource": "" }
q11629
vpntrafficpolicy_aaauser_binding.get
train
public static vpntrafficpolicy_aaauser_binding[] get(nitro_service service, String name) throws Exception{ vpntrafficpolicy_aaauser_binding obj = new vpntrafficpolicy_aaauser_binding(); obj.set_name(name); vpntrafficpolicy_aaauser_binding response[] = (vpntrafficpolicy_aaauser_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11630
sslpolicylabel_sslpolicy_binding.get
train
public static sslpolicylabel_sslpolicy_binding[] get(nitro_service service, String labelname) throws Exception{ sslpolicylabel_sslpolicy_binding obj = new sslpolicylabel_sslpolicy_binding(); obj.set_labelname(labelname); sslpolicylabel_sslpolicy_binding response[] = (sslpolicylabel_sslpolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11631
PRCurve.init
train
void init() { numnegative = new int[numSamples() + 1]; numpositive = new int[numSamples() + 1]; numnegative[0] = 0; numpositive[0] = 0; int num = numSamples(); for (int i = 1; i <= num; i++) { numnegative[i] = numnegative[i - 1] + (classes[i - 1] == 0 ? 1 : 0); } for (int i = 1; i <= num; i++) { numpositive[i] = numpositive[i - 1] + (classes[num - i] == 0 ? 0 : 1); } System.err.println("total positive " + numpositive[num] + " total negative " + numnegative[num] + " total " + num); for (int i = 1; i < numpositive.length; i++) { //System.out.println(i + " positive " + numpositive[i] + " negative " + numnegative[i] + " classes " + classes[i - 1] + " " + classes[num - i]); } }
java
{ "resource": "" }
q11632
PRCurve.precision
train
public int precision(int recall) { int optimum = 0; for (int right = 0; right <= recall; right++) { int candidate = numpositive[right] + numnegative[recall - right]; if (candidate > optimum) { optimum = candidate; } } return optimum; }
java
{ "resource": "" }
q11633
PRCurve.fmeasure
train
public double fmeasure(int numleft, int numright) { int tp = 0, fp = 0, fn = 0; tp = numpositive[numright]; fp = numright - tp; fn = numleft - numnegative[numleft]; return f1(tp, fp, fn); }
java
{ "resource": "" }
q11634
PRCurve.logPrecision
train
public int logPrecision(int recall) { int totaltaken = 0; int rightIndex = numSamples() - 1; //next right candidate int leftIndex = 0; //next left candidate int totalcorrect = 0; while (totaltaken < recall) { double confr = Math.abs(scores[rightIndex] - .5); double confl = Math.abs(scores[leftIndex] - .5); int chosen = leftIndex; if (confr > confl) { chosen = rightIndex; rightIndex--; } else { leftIndex++; } //System.err.println("chose "+chosen+" score "+scores[chosen]+" class "+classes[chosen]+" correct "+correct(scores[chosen],classes[chosen])); if ((scores[chosen] >= .5) && (classes[chosen] == 1)) { totalcorrect++; } if ((scores[chosen] < .5) && (classes[chosen] == 0)) { totalcorrect++; } totaltaken++; } return totalcorrect; }
java
{ "resource": "" }
q11635
PRCurve.optFmeasure
train
public double optFmeasure(int recall) { double max = 0; for (int i = 0; i < (recall + 1); i++) { double f = fmeasure(i, recall - i); if (f > max) { max = f; } } return max; }
java
{ "resource": "" }
q11636
PRCurve.fmeasure
train
public double fmeasure(int recall) { int totaltaken = 0; int rightIndex = numSamples() - 1; //next right candidate int leftIndex = 0; //next left candidate int tp = 0, fp = 0, fn = 0; while (totaltaken < recall) { double confr = Math.abs(scores[rightIndex] - .5); double confl = Math.abs(scores[leftIndex] - .5); int chosen = leftIndex; if (confr > confl) { chosen = rightIndex; rightIndex--; } else { leftIndex++; } //System.err.println("chose "+chosen+" score "+scores[chosen]+" class "+classes[chosen]+" correct "+correct(scores[chosen],classes[chosen])); if ((scores[chosen] >= .5)) { if (classes[chosen] == 1) { tp++; } else { fp++; } } if ((scores[chosen] < .5)) { if (classes[chosen] == 1) { fn++; } } totaltaken++; } return f1(tp, fp, fn); }
java
{ "resource": "" }
q11637
PRCurve.logLikelihood
train
public double logLikelihood() { double loglik = 0; for (int i = 0; i < scores.length; i++) { loglik += Math.log(classes[i] == 0 ? 1 - scores[i] : scores[i]); } return loglik; }
java
{ "resource": "" }
q11638
PRCurve.optimalCwa
train
public double optimalCwa() { double acc = 0; for (int recall = 1; recall <= numSamples(); recall++) { acc += precision(recall) / (double) recall; } return acc / numSamples(); }
java
{ "resource": "" }
q11639
nssimpleacl6_stats.get
train
public static nssimpleacl6_stats get(nitro_service service) throws Exception{ nssimpleacl6_stats obj = new nssimpleacl6_stats(); nssimpleacl6_stats[] response = (nssimpleacl6_stats[])obj.stat_resources(service); return response[0]; }
java
{ "resource": "" }
q11640
Tsurgeon.getOperationFromReader
train
public static Pair<TregexPattern, TsurgeonPattern> getOperationFromReader(BufferedReader reader, TregexPatternCompiler compiler) throws IOException { String patternString = getPatternFromFile(reader); // System.err.println("Read tregex pattern: " + patternString); if ("".equals(patternString)) { return null; } TregexPattern matchPattern = compiler.compile(patternString); TsurgeonPattern collectedPattern = getTsurgeonOperationsFromReader(reader); return new Pair<TregexPattern,TsurgeonPattern>(matchPattern,collectedPattern); }
java
{ "resource": "" }
q11641
Tsurgeon.getPatternFromFile
train
public static String getPatternFromFile(BufferedReader reader) throws IOException { StringBuilder matchString = new StringBuilder(); for (String thisLine; (thisLine = reader.readLine()) != null; ) { if (matchString.length() > 0 && emptyLinePattern.matcher(thisLine).matches()) { // A blank line after getting some real content (not just comments or nothing) break; } Matcher m = commentPattern.matcher(thisLine); if (m.matches()) { // delete it thisLine = m.replaceFirst(""); } if ( ! emptyLinePattern.matcher(thisLine).matches()) { matchString.append(thisLine); } } return matchString.toString(); }
java
{ "resource": "" }
q11642
Tsurgeon.getOperationsFromFile
train
public static List<Pair<TregexPattern, TsurgeonPattern>> getOperationsFromFile(String filename, String encoding, TregexPatternCompiler compiler) throws IOException { List<Pair<TregexPattern,TsurgeonPattern>> operations = new ArrayList<Pair<TregexPattern, TsurgeonPattern>>(); BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(filename), encoding)); for ( ; ; ) { Pair<TregexPattern, TsurgeonPattern> operation = getOperationFromReader(reader, compiler); if (operation == null) { break; } operations.add(operation); } reader.close(); return operations; }
java
{ "resource": "" }
q11643
Tsurgeon.processPatternsOnTree
train
public static Tree processPatternsOnTree(List<Pair<TregexPattern, TsurgeonPattern>> ops, Tree t) { matchedOnTree = false; for (Pair<TregexPattern,TsurgeonPattern> op : ops) { try { if (DEBUG) { System.err.println("Running pattern " + op.first()); } TregexMatcher m = op.first().matcher(t); while (m.find()) { matchedOnTree = true; t = op.second().evaluate(t,m); if (t == null) { return null; } m = op.first().matcher(t); } } catch (NullPointerException npe) { throw new RuntimeException("Tsurgeon.processPatternsOnTree failed to match label for pattern: " + op.first() + ", " + op.second(), npe); } } return t; }
java
{ "resource": "" }
q11644
Tsurgeon.collectOperations
train
public static TsurgeonPattern collectOperations(List<TsurgeonPattern> patterns) { return new TsurgeonPatternRoot(patterns.toArray(new TsurgeonPattern[patterns.size()])); }
java
{ "resource": "" }
q11645
dnspolicylabel_stats.get
train
public static dnspolicylabel_stats[] get(nitro_service service, options option) throws Exception{ dnspolicylabel_stats obj = new dnspolicylabel_stats(); dnspolicylabel_stats[] response = (dnspolicylabel_stats[])obj.stat_resources(service,option); return response; }
java
{ "resource": "" }
q11646
dnspolicylabel_stats.get
train
public static dnspolicylabel_stats get(nitro_service service, String labelname) throws Exception{ dnspolicylabel_stats obj = new dnspolicylabel_stats(); obj.set_labelname(labelname); dnspolicylabel_stats response = (dnspolicylabel_stats) obj.stat_resource(service); return response; }
java
{ "resource": "" }
q11647
gslbvserver_domain_binding.get
train
public static gslbvserver_domain_binding[] get(nitro_service service, String name) throws Exception{ gslbvserver_domain_binding obj = new gslbvserver_domain_binding(); obj.set_name(name); gslbvserver_domain_binding response[] = (gslbvserver_domain_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11648
nsip.add
train
public static base_response add(nitro_service client, nsip resource) throws Exception { nsip addresource = new nsip(); addresource.ipaddress = resource.ipaddress; addresource.netmask = resource.netmask; addresource.type = resource.type; addresource.arp = resource.arp; addresource.icmp = resource.icmp; addresource.vserver = resource.vserver; addresource.telnet = resource.telnet; addresource.ftp = resource.ftp; addresource.gui = resource.gui; addresource.ssh = resource.ssh; addresource.snmp = resource.snmp; addresource.mgmtaccess = resource.mgmtaccess; addresource.restrictaccess = resource.restrictaccess; addresource.dynamicrouting = resource.dynamicrouting; addresource.ospf = resource.ospf; addresource.bgp = resource.bgp; addresource.rip = resource.rip; addresource.hostroute = resource.hostroute; addresource.hostrtgw = resource.hostrtgw; addresource.metric = resource.metric; addresource.vserverrhilevel = resource.vserverrhilevel; addresource.ospflsatype = resource.ospflsatype; addresource.ospfarea = resource.ospfarea; addresource.state = resource.state; addresource.vrid = resource.vrid; addresource.icmpresponse = resource.icmpresponse; addresource.ownernode = resource.ownernode; addresource.arpresponse = resource.arpresponse; addresource.td = resource.td; return addresource.add_resource(client); }
java
{ "resource": "" }
q11649
nsip.add
train
public static base_responses add(nitro_service client, nsip resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nsip addresources[] = new nsip[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new nsip(); addresources[i].ipaddress = resources[i].ipaddress; addresources[i].netmask = resources[i].netmask; addresources[i].type = resources[i].type; addresources[i].arp = resources[i].arp; addresources[i].icmp = resources[i].icmp; addresources[i].vserver = resources[i].vserver; addresources[i].telnet = resources[i].telnet; addresources[i].ftp = resources[i].ftp; addresources[i].gui = resources[i].gui; addresources[i].ssh = resources[i].ssh; addresources[i].snmp = resources[i].snmp; addresources[i].mgmtaccess = resources[i].mgmtaccess; addresources[i].restrictaccess = resources[i].restrictaccess; addresources[i].dynamicrouting = resources[i].dynamicrouting; addresources[i].ospf = resources[i].ospf; addresources[i].bgp = resources[i].bgp; addresources[i].rip = resources[i].rip; addresources[i].hostroute = resources[i].hostroute; addresources[i].hostrtgw = resources[i].hostrtgw; addresources[i].metric = resources[i].metric; addresources[i].vserverrhilevel = resources[i].vserverrhilevel; addresources[i].ospflsatype = resources[i].ospflsatype; addresources[i].ospfarea = resources[i].ospfarea; addresources[i].state = resources[i].state; addresources[i].vrid = resources[i].vrid; addresources[i].icmpresponse = resources[i].icmpresponse; addresources[i].ownernode = resources[i].ownernode; addresources[i].arpresponse = resources[i].arpresponse; addresources[i].td = resources[i].td; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q11650
nsip.delete
train
public static base_response delete(nitro_service client, nsip resource) throws Exception { nsip deleteresource = new nsip(); deleteresource.ipaddress = resource.ipaddress; deleteresource.td = resource.td; return deleteresource.delete_resource(client); }
java
{ "resource": "" }
q11651
nsip.update
train
public static base_response update(nitro_service client, nsip resource) throws Exception { nsip updateresource = new nsip(); updateresource.ipaddress = resource.ipaddress; updateresource.td = resource.td; updateresource.netmask = resource.netmask; updateresource.arp = resource.arp; updateresource.icmp = resource.icmp; updateresource.vserver = resource.vserver; updateresource.telnet = resource.telnet; updateresource.ftp = resource.ftp; updateresource.gui = resource.gui; updateresource.ssh = resource.ssh; updateresource.snmp = resource.snmp; updateresource.mgmtaccess = resource.mgmtaccess; updateresource.restrictaccess = resource.restrictaccess; updateresource.dynamicrouting = resource.dynamicrouting; updateresource.ospf = resource.ospf; updateresource.bgp = resource.bgp; updateresource.rip = resource.rip; updateresource.hostroute = resource.hostroute; updateresource.hostrtgw = resource.hostrtgw; updateresource.metric = resource.metric; updateresource.vserverrhilevel = resource.vserverrhilevel; updateresource.ospflsatype = resource.ospflsatype; updateresource.ospfarea = resource.ospfarea; updateresource.vrid = resource.vrid; updateresource.icmpresponse = resource.icmpresponse; updateresource.arpresponse = resource.arpresponse; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11652
nsip.update
train
public static base_responses update(nitro_service client, nsip resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nsip updateresources[] = new nsip[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new nsip(); updateresources[i].ipaddress = resources[i].ipaddress; updateresources[i].td = resources[i].td; updateresources[i].netmask = resources[i].netmask; updateresources[i].arp = resources[i].arp; updateresources[i].icmp = resources[i].icmp; updateresources[i].vserver = resources[i].vserver; updateresources[i].telnet = resources[i].telnet; updateresources[i].ftp = resources[i].ftp; updateresources[i].gui = resources[i].gui; updateresources[i].ssh = resources[i].ssh; updateresources[i].snmp = resources[i].snmp; updateresources[i].mgmtaccess = resources[i].mgmtaccess; updateresources[i].restrictaccess = resources[i].restrictaccess; updateresources[i].dynamicrouting = resources[i].dynamicrouting; updateresources[i].ospf = resources[i].ospf; updateresources[i].bgp = resources[i].bgp; updateresources[i].rip = resources[i].rip; updateresources[i].hostroute = resources[i].hostroute; updateresources[i].hostrtgw = resources[i].hostrtgw; updateresources[i].metric = resources[i].metric; updateresources[i].vserverrhilevel = resources[i].vserverrhilevel; updateresources[i].ospflsatype = resources[i].ospflsatype; updateresources[i].ospfarea = resources[i].ospfarea; updateresources[i].vrid = resources[i].vrid; updateresources[i].icmpresponse = resources[i].icmpresponse; updateresources[i].arpresponse = resources[i].arpresponse; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q11653
nsip.unset
train
public static base_response unset(nitro_service client, nsip resource, String[] args) throws Exception{ nsip unsetresource = new nsip(); unsetresource.ipaddress = resource.ipaddress; unsetresource.td = resource.td; return unsetresource.unset_resource(client,args); }
java
{ "resource": "" }
q11654
nsip.enable
train
public static base_response enable(nitro_service client, String ipaddress) throws Exception { nsip enableresource = new nsip(); enableresource.ipaddress = ipaddress; return enableresource.perform_operation(client,"enable"); }
java
{ "resource": "" }
q11655
nsip.enable
train
public static base_response enable(nitro_service client, nsip resource) throws Exception { nsip enableresource = new nsip(); enableresource.ipaddress = resource.ipaddress; enableresource.td = resource.td; return enableresource.perform_operation(client,"enable"); }
java
{ "resource": "" }
q11656
nsip.enable
train
public static base_responses enable(nitro_service client, String ipaddress[]) throws Exception { base_responses result = null; if (ipaddress != null && ipaddress.length > 0) { nsip enableresources[] = new nsip[ipaddress.length]; for (int i=0;i<ipaddress.length;i++){ enableresources[i] = new nsip(); enableresources[i].ipaddress = ipaddress[i]; } result = perform_operation_bulk_request(client, enableresources,"enable"); } return result; }
java
{ "resource": "" }
q11657
nsip.enable
train
public static base_responses enable(nitro_service client, nsip resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nsip enableresources[] = new nsip[resources.length]; for (int i=0;i<resources.length;i++){ enableresources[i] = new nsip(); enableresources[i].ipaddress = resources[i].ipaddress; enableresources[i].td = resources[i].td; } result = perform_operation_bulk_request(client, enableresources,"enable"); } return result; }
java
{ "resource": "" }
q11658
nsip.disable
train
public static base_response disable(nitro_service client, String ipaddress) throws Exception { nsip disableresource = new nsip(); disableresource.ipaddress = ipaddress; return disableresource.perform_operation(client,"disable"); }
java
{ "resource": "" }
q11659
nsip.disable
train
public static base_response disable(nitro_service client, nsip resource) throws Exception { nsip disableresource = new nsip(); disableresource.ipaddress = resource.ipaddress; disableresource.td = resource.td; return disableresource.perform_operation(client,"disable"); }
java
{ "resource": "" }
q11660
nsip.disable
train
public static base_responses disable(nitro_service client, String ipaddress[]) throws Exception { base_responses result = null; if (ipaddress != null && ipaddress.length > 0) { nsip disableresources[] = new nsip[ipaddress.length]; for (int i=0;i<ipaddress.length;i++){ disableresources[i] = new nsip(); disableresources[i].ipaddress = ipaddress[i]; } result = perform_operation_bulk_request(client, disableresources,"disable"); } return result; }
java
{ "resource": "" }
q11661
nsip.disable
train
public static base_responses disable(nitro_service client, nsip resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nsip disableresources[] = new nsip[resources.length]; for (int i=0;i<resources.length;i++){ disableresources[i] = new nsip(); disableresources[i].ipaddress = resources[i].ipaddress; disableresources[i].td = resources[i].td; } result = perform_operation_bulk_request(client, disableresources,"disable"); } return result; }
java
{ "resource": "" }
q11662
nsip.get
train
public static nsip[] get(nitro_service service) throws Exception{ nsip obj = new nsip(); nsip[] response = (nsip[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q11663
nsip.get
train
public static nsip[] get(nitro_service service, nsip_args args) throws Exception{ nsip obj = new nsip(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); nsip[] response = (nsip[])obj.get_resources(service, option); return response; }
java
{ "resource": "" }
q11664
authenticationtacacspolicy_vpnglobal_binding.get
train
public static authenticationtacacspolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{ authenticationtacacspolicy_vpnglobal_binding obj = new authenticationtacacspolicy_vpnglobal_binding(); obj.set_name(name); authenticationtacacspolicy_vpnglobal_binding response[] = (authenticationtacacspolicy_vpnglobal_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11665
MtasTree.addIdFromDoc
train
final public void addIdFromDoc(Integer docId, Long reference) { if (!closed && (docId != null)) { addSinglePoint(docId, 0, 0, docId, reference); } }
java
{ "resource": "" }
q11666
MtasTree.addParentFromToken
train
final public void addParentFromToken(MtasToken token) throws IOException { if (!closed && (token != null)) { if (token.checkParentId()) { addSinglePoint(token.getParentId(), token.getPrefixId(), token.getTermRef(), token.getId(), token.getTokenRef()); } } }
java
{ "resource": "" }
q11667
MtasTree.addPositionFromToken
train
final private void addPositionFromToken(MtasToken token, Long ref) throws IOException { int prefixId = storePrefixAndTermRef ? token.getPrefixId() : 0; if (!closed && (token != null)) { if (token.checkPositionType(MtasPosition.POSITION_SINGLE)) { addSinglePoint(token.getPositionStart(), prefixId, token.getTermRef(), token.getId(), ref); } else if (token.checkPositionType(MtasPosition.POSITION_RANGE)) { addRange(token.getPositionStart(), token.getPositionEnd(), prefixId, token.getTermRef(), token.getId(), ref); } else if (token.checkPositionType(MtasPosition.POSITION_SET)) { // split set into minimum number of single points and ranges SortedMap<Integer, Integer> list = new TreeMap<>(); int[] positions = token.getPositions(); Integer lastPoint = null; Integer startPoint = null; for (int position : positions) { if (lastPoint == null) { startPoint = position; lastPoint = position; } else if ((position - lastPoint) != 1) { list.put(startPoint, lastPoint); startPoint = position; } lastPoint = position; } if (lastPoint != null) { list.put(startPoint, lastPoint); } for (Entry<Integer, Integer> entry : list.entrySet()) { if (entry.getKey().equals(entry.getValue())) { addSinglePoint(entry.getKey(), prefixId, token.getTermRef(), token.getId(), ref); } else { addRange(entry.getKey(), entry.getValue(), prefixId, token.getTermRef(), token.getId(), ref); } } } } }
java
{ "resource": "" }
q11668
authenticationldappolicy_vpnvserver_binding.get
train
public static authenticationldappolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{ authenticationldappolicy_vpnvserver_binding obj = new authenticationldappolicy_vpnvserver_binding(); obj.set_name(name); authenticationldappolicy_vpnvserver_binding response[] = (authenticationldappolicy_vpnvserver_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11669
TsurgeonParser.NodeSelection
train
final public TsurgeonPattern NodeSelection() throws ParseException { /*@bgen(jjtree) NodeSelection */ SimpleNode jjtn000 = new SimpleNode(JJTNODESELECTION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);TsurgeonPattern result; try { result = NodeName(); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; {if (true) return result;} } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } throw new Error("Missing return statement in function"); }
java
{ "resource": "" }
q11670
TsurgeonParser.TreeRoot
train
final public AuxiliaryTree TreeRoot(boolean requiresFoot) throws ParseException { /*@bgen(jjtree) TreeRoot */ SimpleNode jjtn000 = new SimpleNode(JJTTREEROOT); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Tree t; try { t = TreeNode(); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; {if (true) return new AuxiliaryTree(t,requiresFoot);} } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } throw new Error("Missing return statement in function"); }
java
{ "resource": "" }
q11671
linkset_channel_binding.get
train
public static linkset_channel_binding[] get(nitro_service service, String id) throws Exception{ linkset_channel_binding obj = new linkset_channel_binding(); obj.set_id(id); linkset_channel_binding response[] = (linkset_channel_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11672
authenticationldappolicy_binding.get
train
public static authenticationldappolicy_binding get(nitro_service service, String name) throws Exception{ authenticationldappolicy_binding obj = new authenticationldappolicy_binding(); obj.set_name(name); authenticationldappolicy_binding response = (authenticationldappolicy_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11673
aaagroup_auditsyslogpolicy_binding.get
train
public static aaagroup_auditsyslogpolicy_binding[] get(nitro_service service, String groupname) throws Exception{ aaagroup_auditsyslogpolicy_binding obj = new aaagroup_auditsyslogpolicy_binding(); obj.set_groupname(groupname); aaagroup_auditsyslogpolicy_binding response[] = (aaagroup_auditsyslogpolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11674
inat_stats.get
train
public static inat_stats[] get(nitro_service service) throws Exception{ inat_stats obj = new inat_stats(); inat_stats[] response = (inat_stats[])obj.stat_resources(service); return response; }
java
{ "resource": "" }
q11675
inat_stats.get
train
public static inat_stats get(nitro_service service, String name) throws Exception{ inat_stats obj = new inat_stats(); obj.set_name(name); inat_stats response = (inat_stats) obj.stat_resource(service); return response; }
java
{ "resource": "" }
q11676
policypatset_binding.get
train
public static policypatset_binding get(nitro_service service, String name) throws Exception{ policypatset_binding obj = new policypatset_binding(); obj.set_name(name); policypatset_binding response = (policypatset_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11677
Jarafe.processString
train
public String processString(String s) { if (decoderPipeline != null) { return decoderPipeline.processString(s); } else { throw new java.lang.RuntimeException("Decoder Not Initialized"); } }
java
{ "resource": "" }
q11678
Jarafe.processRawStringAsAnnotList
train
public List<LightAnnot> processRawStringAsAnnotList(String s) { Annotation[] annots = decoderPipeline.processRawStringAsAnnotList(s); List<LightAnnot> alist = new ArrayList<LightAnnot>(); int i = 0; for (i = 0; i < annots.length; i++) { Annotation ann = annots[i]; alist.add(new LightAnnot(ann.st(),ann.en(),ann.typ().toString())); } return (alist); }
java
{ "resource": "" }
q11679
vpnglobal_vpnsessionpolicy_binding.get
train
public static vpnglobal_vpnsessionpolicy_binding[] get(nitro_service service) throws Exception{ vpnglobal_vpnsessionpolicy_binding obj = new vpnglobal_vpnsessionpolicy_binding(); vpnglobal_vpnsessionpolicy_binding response[] = (vpnglobal_vpnsessionpolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11680
sslvserver_binding.get
train
public static sslvserver_binding get(nitro_service service, String vservername) throws Exception{ sslvserver_binding obj = new sslvserver_binding(); obj.set_vservername(vservername); sslvserver_binding response = (sslvserver_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11681
sslvserver_binding.get
train
public static sslvserver_binding[] get(nitro_service service, String vservername[]) throws Exception{ if (vservername !=null && vservername.length>0) { sslvserver_binding response[] = new sslvserver_binding[vservername.length]; sslvserver_binding obj[] = new sslvserver_binding[vservername.length]; for (int i=0;i<vservername.length;i++) { obj[i] = new sslvserver_binding(); obj[i].set_vservername(vservername[i]); response[i] = (sslvserver_binding) obj[i].get_resource(service); } return response; } return null; }
java
{ "resource": "" }
q11682
transformpolicylabel_transformpolicy_binding.get
train
public static transformpolicylabel_transformpolicy_binding[] get(nitro_service service, String labelname) throws Exception{ transformpolicylabel_transformpolicy_binding obj = new transformpolicylabel_transformpolicy_binding(); obj.set_labelname(labelname); transformpolicylabel_transformpolicy_binding response[] = (transformpolicylabel_transformpolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11683
ClassifierCombiner.mergeTwoDocuments
train
static <INN extends CoreMap & HasWord> void mergeTwoDocuments(List<INN> mainDocument, List<INN> auxDocument, Set<String> auxLabels, String background) { boolean insideAuxTag = false; boolean auxTagValid = true; String prevAnswer = background; Collection<INN> constituents = new ArrayList<INN>(); Iterator<INN> auxIterator = auxDocument.listIterator(); for (INN wMain : mainDocument) { String mainAnswer = wMain.get(AnswerAnnotation.class); INN wAux = auxIterator.next(); String auxAnswer = wAux.get(AnswerAnnotation.class); boolean insideMainTag = !mainAnswer.equals(background); /* if the auxiliary classifier gave it one of the labels unique to auxClassifier, we might set the mainLabel to that. */ if (auxLabels.contains(auxAnswer) && !auxAnswer.equals(background)) { //AZ not equal background symbol (it is background symbol not strong class) if ( ! prevAnswer.equals(auxAnswer) && ! prevAnswer.equals(background)) { if (auxTagValid){ for (INN wi : constituents) { wi.set(AnswerAnnotation.class, prevAnswer); } } constituents = new ArrayList<INN>(); } insideAuxTag = true; if (insideMainTag) { auxTagValid = false; } prevAnswer = auxAnswer; constituents.add(wMain); } else { if (insideAuxTag) { if (auxTagValid){ for (INN wi : constituents) { wi.set(AnswerAnnotation.class, prevAnswer); } } constituents = new ArrayList<INN>(); } insideAuxTag=false; auxTagValid = true; prevAnswer = background; } } // deal with a sequence final auxLabel if (auxTagValid){ for (INN wi : constituents) { wi.set(AnswerAnnotation.class, prevAnswer); } } }
java
{ "resource": "" }
q11684
ClassifierCombiner.classify
train
@Override public List<IN> classify(List<IN> tokens) { if (baseClassifiers.isEmpty()) { return tokens; } List<List<IN>> baseOutputs = new ArrayList<List<IN>>(); // the first base model works in place, modifying the original tokens List<IN> output = baseClassifiers.get(0).classifySentence(tokens); // classify(List<IN>) is supposed to work in place, so add AnswerAnnotation to tokens! for (int i = 0, sz = output.size(); i < sz; i++) { tokens.get(i).set(AnswerAnnotation.class, output.get(i).get(AnswerAnnotation.class)); } baseOutputs.add(tokens); for (int i = 1, sz = baseClassifiers.size(); i < sz; i ++) { //List<CoreLabel> copy = deepCopy(tokens); // no need for deep copy: classifySentence creates a copy of the input anyway // List<CoreLabel> copy = tokens; output = baseClassifiers.get(i).classifySentence(tokens); baseOutputs.add(output); } assert(baseOutputs.size() == baseClassifiers.size()); List<IN> finalAnswer = mergeDocuments(baseOutputs); return finalAnswer; }
java
{ "resource": "" }
q11685
ClassifierCombiner.main
train
public static void main(String[] args) throws Exception { Properties props = StringUtils.argsToProperties(args); ClassifierCombiner ec = new ClassifierCombiner(props); System.err.println(ec.classifyToString("Marketing : Sony Hopes to Win Much Bigger Market For Wide Range of Small-Video Products --- By Andrew B. Cohen Staff Reporter of The Wall Street Journal")); // test_mergeTwoDocumentsByLongestSequence("O O X O O", "O Y Y Y O"); // test_mergeTwoDocumentsByLongestSequence("O Y Y Y Y", "O O X X X"); // test_mergeTwoDocumentsByLongestSequence("X X X O Z Z Z Z Z", "O Y Y Y Y O O O O"); // test_mergeTwoDocumentsByLongestSequence("O Y Y Y Y O O O O", "X X X O Z Z Z Z Z"); // test_mergeTwoDocumentsByLongestSequence("O O O O O", "O X X X O"); // test_mergeTwoDocumentsByLongestSequence("O X X O O O", "O Y Y Y Z O"); // test_mergeTwoDocumentsByLongestSequence("O Y Y Y Z O", "O X X O O O"); // test_mergeTwoDocumentsByLongestSequence("O Y Y Y O O", "O O X X Z O"); // test_mergeTwoDocumentsByLongestSequence("O Y Y Y O O", "O O X X Z Z"); // test_mergeTwoDocumentsByLongestSequence("O X Y Z W", "A B B D E"); // test_mergeTwoDocumentsByLongestSequence("O X O O O", "O O Y Y O"); // test_mergeTwoDocumentsByLongestSequence("O O Y Y O", "O X O O O"); // test_mergeTwoDocumentsByLongestSequence("O X X O O", "O O Y Y Y"); // test_mergeTwoDocumentsByLongestSequence("O O Y Y Y", "O X X O O"); }
java
{ "resource": "" }
q11686
tunneltrafficpolicy_binding.get
train
public static tunneltrafficpolicy_binding get(nitro_service service, String name) throws Exception{ tunneltrafficpolicy_binding obj = new tunneltrafficpolicy_binding(); obj.set_name(name); tunneltrafficpolicy_binding response = (tunneltrafficpolicy_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11687
authenticationlocalpolicy_vpnvserver_binding.get
train
public static authenticationlocalpolicy_vpnvserver_binding[] get(nitro_service service, String name) throws Exception{ authenticationlocalpolicy_vpnvserver_binding obj = new authenticationlocalpolicy_vpnvserver_binding(); obj.set_name(name); authenticationlocalpolicy_vpnvserver_binding response[] = (authenticationlocalpolicy_vpnvserver_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11688
vpnicaconnection.get
train
public static vpnicaconnection[] get(nitro_service service) throws Exception{ vpnicaconnection obj = new vpnicaconnection(); vpnicaconnection[] response = (vpnicaconnection[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q11689
vpnicaconnection.get
train
public static vpnicaconnection[] get(nitro_service service, vpnicaconnection_args args) throws Exception{ vpnicaconnection obj = new vpnicaconnection(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); vpnicaconnection[] response = (vpnicaconnection[])obj.get_resources(service, option); return response; }
java
{ "resource": "" }
q11690
appfwprofile_xmlattachmenturl_binding.get
train
public static appfwprofile_xmlattachmenturl_binding[] get(nitro_service service, String name) throws Exception{ appfwprofile_xmlattachmenturl_binding obj = new appfwprofile_xmlattachmenturl_binding(); obj.set_name(name); appfwprofile_xmlattachmenturl_binding response[] = (appfwprofile_xmlattachmenturl_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11691
cmpglobal_binding.get
train
public static cmpglobal_binding get(nitro_service service) throws Exception{ cmpglobal_binding obj = new cmpglobal_binding(); cmpglobal_binding response = (cmpglobal_binding) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11692
aaaglobal_aaapreauthenticationpolicy_binding.get
train
public static aaaglobal_aaapreauthenticationpolicy_binding[] get(nitro_service service) throws Exception{ aaaglobal_aaapreauthenticationpolicy_binding obj = new aaaglobal_aaapreauthenticationpolicy_binding(); aaaglobal_aaapreauthenticationpolicy_binding response[] = (aaaglobal_aaapreauthenticationpolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }
q11693
appqoeaction.add
train
public static base_response add(nitro_service client, appqoeaction resource) throws Exception { appqoeaction addresource = new appqoeaction(); addresource.name = resource.name; addresource.priority = resource.priority; addresource.respondwith = resource.respondwith; addresource.customfile = resource.customfile; addresource.altcontentsvcname = resource.altcontentsvcname; addresource.altcontentpath = resource.altcontentpath; addresource.polqdepth = resource.polqdepth; addresource.priqdepth = resource.priqdepth; addresource.maxconn = resource.maxconn; addresource.delay = resource.delay; addresource.dostrigexpression = resource.dostrigexpression; addresource.dosaction = resource.dosaction; return addresource.add_resource(client); }
java
{ "resource": "" }
q11694
appqoeaction.add
train
public static base_responses add(nitro_service client, appqoeaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appqoeaction addresources[] = new appqoeaction[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new appqoeaction(); addresources[i].name = resources[i].name; addresources[i].priority = resources[i].priority; addresources[i].respondwith = resources[i].respondwith; addresources[i].customfile = resources[i].customfile; addresources[i].altcontentsvcname = resources[i].altcontentsvcname; addresources[i].altcontentpath = resources[i].altcontentpath; addresources[i].polqdepth = resources[i].polqdepth; addresources[i].priqdepth = resources[i].priqdepth; addresources[i].maxconn = resources[i].maxconn; addresources[i].delay = resources[i].delay; addresources[i].dostrigexpression = resources[i].dostrigexpression; addresources[i].dosaction = resources[i].dosaction; } result = add_bulk_request(client, addresources); } return result; }
java
{ "resource": "" }
q11695
appqoeaction.update
train
public static base_response update(nitro_service client, appqoeaction resource) throws Exception { appqoeaction updateresource = new appqoeaction(); updateresource.name = resource.name; updateresource.priority = resource.priority; updateresource.altcontentsvcname = resource.altcontentsvcname; updateresource.altcontentpath = resource.altcontentpath; updateresource.polqdepth = resource.polqdepth; updateresource.priqdepth = resource.priqdepth; updateresource.maxconn = resource.maxconn; updateresource.delay = resource.delay; updateresource.dostrigexpression = resource.dostrigexpression; updateresource.dosaction = resource.dosaction; return updateresource.update_resource(client); }
java
{ "resource": "" }
q11696
appqoeaction.update
train
public static base_responses update(nitro_service client, appqoeaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appqoeaction updateresources[] = new appqoeaction[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new appqoeaction(); updateresources[i].name = resources[i].name; updateresources[i].priority = resources[i].priority; updateresources[i].altcontentsvcname = resources[i].altcontentsvcname; updateresources[i].altcontentpath = resources[i].altcontentpath; updateresources[i].polqdepth = resources[i].polqdepth; updateresources[i].priqdepth = resources[i].priqdepth; updateresources[i].maxconn = resources[i].maxconn; updateresources[i].delay = resources[i].delay; updateresources[i].dostrigexpression = resources[i].dostrigexpression; updateresources[i].dosaction = resources[i].dosaction; } result = update_bulk_request(client, updateresources); } return result; }
java
{ "resource": "" }
q11697
appqoeaction.get
train
public static appqoeaction[] get(nitro_service service) throws Exception{ appqoeaction obj = new appqoeaction(); appqoeaction[] response = (appqoeaction[])obj.get_resources(service); return response; }
java
{ "resource": "" }
q11698
appqoeaction.get
train
public static appqoeaction get(nitro_service service, String name) throws Exception{ appqoeaction obj = new appqoeaction(); obj.set_name(name); appqoeaction response = (appqoeaction) obj.get_resource(service); return response; }
java
{ "resource": "" }
q11699
lbvserver_pqpolicy_binding.get
train
public static lbvserver_pqpolicy_binding[] get(nitro_service service, String name) throws Exception{ lbvserver_pqpolicy_binding obj = new lbvserver_pqpolicy_binding(); obj.set_name(name); lbvserver_pqpolicy_binding response[] = (lbvserver_pqpolicy_binding[]) obj.get_resources(service); return response; }
java
{ "resource": "" }