text
stringlengths
27
1.4k
public void write(byte[] buffer) throws IOException {write(buffer, 0, buffer.length);}
public ExtendedPivotTableViewFieldsRecord(RecordInputStream in) {_grbit1 = in.readInt();_grbit2 = in.readUByte();_citmShow = in.readUByte();_isxdiSort = in.readUShort();_isxdiShow = in.readUShort();switch (in.remaining()) {case 0:_reserved1 = 0;_reserved2 = 0;_subtotalName = null;return;case 10:break;default:throw new RecordFormatException("Unexpected remaining size (" + in.remaining() + ")");}int cchSubName = in.readUShort();_reserved1 = in.readInt();_reserved2 = in.readInt();if (cchSubName != STRING_NOT_PRESENT_LEN) {_subtotalName = in.readUnicodeLEString(cchSubName);}}
public static double cosh(double d) {double ePowX = Math.pow(Math.E, d);double ePowNegX = Math.pow(Math.E, -d);return (ePowX + ePowNegX) / 2;}
public List<String> getDFAStrings() {synchronized (_interp.decisionToDFA) {List<String> s = new ArrayList<String>();for (int d = 0; d < _interp.decisionToDFA.length; d++) {DFA dfa = _interp.decisionToDFA[d];s.add( dfa.toString(getVocabulary()) );}return s;}}
public LexerChannelAction(int channel) {this.channel = channel;}
public MappingCharFilter(NormalizeCharMap normMap, Reader in) {super(in);buffer.reset(in);map = normMap.map;cachedRootArcs = normMap.cachedRootArcs;if (map != null) {fstReader = map.getBytesReader();} else {fstReader = null;}}
public String toString() {String newline = System.getProperty("line.separator");StringBuilder sb = new StringBuilder();sb.append(sequence.toString());sb.append(newline);return sb.toString();}
public void visitContainedRecords(RecordVisitor rv) {for (CFRecordsAggregate subAgg : _cfHeaders) {subAgg.visitContainedRecords(rv);}}
public static boolean equals(short[] array1, short[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {if (array1[i] != array2[i]) {return false;}}return true;}
public String getString(){return getString(field_2_bytes, codepage);}
public SimpleDate(Calendar cal) {year = cal.get(Calendar.YEAR);month = cal.get(Calendar.MONTH) + 1;day = cal.get(Calendar.DAY_OF_MONTH);tsMilliseconds = cal.getTimeInMillis();}
public TreeFilter clone() {throw new IllegalStateException("Do not clone this kind of filter: " + getClass().getName());}
public String getText(Interval interval) {int start = interval.a;int stop = interval.b;if ( start<0 || stop<0 ) return "";fill();if ( stop>=tokens.size() ) stop = tokens.size()-1;StringBuilder buf = new StringBuilder();for (int i = start; i <= stop; i++) {Token t = tokens.get(i);if ( t.getType()==Token.EOF ) break;buf.append(t.getText());}return buf.toString();}
public CancelStepsResult cancelSteps(CancelStepsRequest request) {request = beforeClientExecution(request);return executeCancelSteps(request);}
public long ramBytesUsed() {return 0;}
public boolean contains(Object o) {return containsValue(o);}
public synchronized int codePointBefore(int index) {return super.codePointBefore(index);}
public DeleteApplicationRequest(String applicationName) {setApplicationName(applicationName);}
public LazyDocument(IndexReader reader, int docID) {this.reader = reader;this.docID = docID;}
public static int trimLeadingWhitespace(byte[] raw, int start, int end) {while (start < end && isWhitespace(raw[start]))start++;return start;}
public int[] getMap() {return map;}
public void set(E object) {iterator.set(object);}
public ModifyCurrentDBClusterCapacityResult modifyCurrentDBClusterCapacity(ModifyCurrentDBClusterCapacityRequest request) {request = beforeClientExecution(request);return executeModifyCurrentDBClusterCapacity(request);}
public CancelRepoBuildRequest() {super("cr", "2016-06-07", "CancelRepoBuild", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/cancel");setMethod(MethodType.POST);}
public LongBuffer get(long[] dst, int dstOffset, int longCount) {Arrays.checkOffsetAndCount(dst.length, dstOffset, longCount);if (longCount > remaining()) {throw new BufferUnderflowException();}for (int i = dstOffset; i < dstOffset + longCount; ++i) {dst[i] = get();}return this;}
public SpreadsheetVersion getSpreadsheetVersion(){return SpreadsheetVersion.EXCEL97;}
public boolean equals(Object obj) {if (obj instanceof Point) {Point rhs = (Point) obj;return this.x == rhs.x && this.y == rhs.y;}return false;}
public int numNodes() {return numNodes(rootNode);}
public String toString() {return super.toString() + flags;}
public EnglishPossessiveFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
public static double atanh(double d) {return Math.log((1 + d)/(1 - d)) / 2;}
public WindowsIndexInput clone() {WindowsIndexInput clone = (WindowsIndexInput)super.clone();clone.isClone = true;return clone;}
public ParseException(Token currentTokenVal,int[][] expectedTokenSequencesVal,String[] tokenImageVal){super(initialise(currentTokenVal, expectedTokenSequencesVal, tokenImageVal));currentToken = currentTokenVal;expectedTokenSequences = expectedTokenSequencesVal;tokenImage = tokenImageVal;}
public long getTotalATNLookaheadOps() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.length; i++) {k += decisions[i].SLL_ATNTransitions;k += decisions[i].LL_ATNTransitions;}return k;}
public synchronized StringBuffer reverse() {reverse0();return this;}
public DescribeLoadBalancersRequest(java.util.List<String> loadBalancerNames) {setLoadBalancerNames(loadBalancerNames);}
public String toString() {return '~'+super.toString();}
public static ISignatureComposer getComposer() {if (null == composer) {composer = new RoaSignatureComposer();}return composer;}
public boolean ready() throws IOException {synchronized (lock) {if (buf == null) {throw new IOException("Reader is closed");}return (buf.length - pos > 0 || in.ready());}}
public GetClientCertificatesResult getClientCertificates(GetClientCertificatesRequest request) {request = beforeClientExecution(request);return executeGetClientCertificates(request);}
public static final int tagger(byte[] b, int ptr) {final int sz = b.length;if (ptr == 0)ptr += 48; while (ptr < sz) {if (b[ptr] == '\n')return -1;final int m = match(b, ptr, tagger);if (m >= 0)return m;ptr = nextLF(b, ptr);}return -1;}
public GetInstanceStateResult getInstanceState(GetInstanceStateRequest request) {request = beforeClientExecution(request);return executeGetInstanceState(request);}
public boolean isEmpty() {synchronized (mutex) {return delegate().isEmpty();}}
public long getCount() {return cnt;}
public DeleteConfigurationSetEventDestinationResult deleteConfigurationSetEventDestination(DeleteConfigurationSetEventDestinationRequest request) {request = beforeClientExecution(request);return executeDeleteConfigurationSetEventDestination(request);}
public DeleteNetworkInterfacePermissionResult deleteNetworkInterfacePermission(DeleteNetworkInterfacePermissionRequest request) {request = beforeClientExecution(request);return executeDeleteNetworkInterfacePermission(request);}
public Tag(String key, String value) {this.key = key;this.value = value;}
public CreateTrafficMirrorTargetResult createTrafficMirrorTarget(CreateTrafficMirrorTargetRequest request) {request = beforeClientExecution(request);return executeCreateTrafficMirrorTarget(request);}
public GetGroupPolicyRequest(String groupName, String policyName) {setGroupName(groupName);setPolicyName(policyName);}
public DeleteVoiceChannelResult deleteVoiceChannel(DeleteVoiceChannelRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceChannel(request);}
public DBClusterSnapshotAttributesResult modifyDBClusterSnapshotAttribute(ModifyDBClusterSnapshotAttributeRequest request) {request = beforeClientExecution(request);return executeModifyDBClusterSnapshotAttribute(request);}
public RegisterAVSDeviceResult registerAVSDevice(RegisterAVSDeviceRequest request) {request = beforeClientExecution(request);return executeRegisterAVSDevice(request);}
public void setValue(char[] newValue) {clear();if (newValue != null) {value = new char[newValue.length];System.arraycopy(newValue, 0, value, 0, newValue.length);}}
public int compareSameType(Object other) {assert exists || 0.0D == value;MutableValueDouble b = (MutableValueDouble)other;int c = Double.compare(value, b.value);if (c != 0) return c;if (exists == b.exists) return 0;return exists ? 1 : -1;}
public UpdateCodeRepositoryResult updateCodeRepository(UpdateCodeRepositoryRequest request) {request = beforeClientExecution(request);return executeUpdateCodeRepository(request);}
public static FormulaError forString(String code) throws IllegalArgumentException {FormulaError err = smap.get(code);if(err == null) throw new IllegalArgumentException("Unknown error code: " + code);return err;}
public UnmonitorInstancesResult unmonitorInstances(UnmonitorInstancesRequest request) {request = beforeClientExecution(request);return executeUnmonitorInstances(request);}
public boolean isInteractive() {return false;}
public void setColor(short byteIndex, byte red, byte green, byte blue){int i = byteIndex - FIRST_COLOR_INDEX;if (i < 0 || i >= STANDARD_PALETTE_SIZE){return;}while (_colors.size() <= i) {_colors.add(new PColor(0, 0, 0));}PColor custColor = new PColor(red, green, blue);_colors.set(i, custColor);}
public boolean isUser() {return type == Type.USER;}
public DeleteMeetingResult deleteMeeting(DeleteMeetingRequest request) {request = beforeClientExecution(request);return executeDeleteMeeting(request);}
public void serializeTokens(LittleEndianOutput out) {out.write(_byteEncoding, 0, _encodedTokenLen);}
final public QueryNode Query(CharSequence field) throws ParseException {Vector<QueryNode> clauses = null;QueryNode c, first=null;first = DisjQuery(field);label_1:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case NOT:case PLUS:case MINUS:case LPAREN:case QUOTED:case TERM:case REGEXPTERM:case RANGEIN_START:case RANGEEX_START:case NUMBER:;break;default:jj_la1[2] = jj_gen;break label_1;}c = DisjQuery(field);if (clauses == null) {clauses = new Vector<QueryNode>();clauses.addElement(first);}clauses.addElement(c);}if (clauses != null) {{if (true) return new BooleanQueryNode(clauses);}} else {if (first instanceof ModifierQueryNode) {ModifierQueryNode m = (ModifierQueryNode) first;if (m.getModifier() == ModifierQueryNode.Modifier.MOD_NOT) {{if (true) return new BooleanQueryNode(Arrays.<QueryNode> asList(m));}}}{if (true) return first;}}throw new Error("Missing return statement in function");}
public DBInstance rebootDBInstance(RebootDBInstanceRequest request) {request = beforeClientExecution(request);return executeRebootDBInstance(request);}
public SortedSet<E> tailSet(E start) {return tailSet(start, true);}
public static boolean equals(byte[] array1, byte[] array2, int length) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length < length || array2.length < length) {return false;}for (int i = 0; i < length; i++) {if (array1[i] != array2[i]) {return false;}}return true;}
public boolean contains(Object o) {synchronized (mutex) {return delegate().contains(o);}}
public RestoreDomainAccessResult restoreDomainAccess(RestoreDomainAccessRequest request) {request = beforeClientExecution(request);return executeRestoreDomainAccess(request);}
static final public boolean wasEscaped(CharSequence text, int index) {if (text instanceof UnescapedCharSequence)return ((UnescapedCharSequence)text).wasEscaped[index];else return false;}
public void setCmd(Character way, int cmd) {Cell c = at(way);if (c == null) {c = new Cell();c.cmd = cmd;cells.put(way, c);} else {c.cmd = cmd;}c.cnt = (cmd >= 0) ? 1 : 0;}
public ValueRangeRecord(RecordInputStream in) {field_1_minimumAxisValue = in.readDouble();field_2_maximumAxisValue = in.readDouble();field_3_majorIncrement = in.readDouble();field_4_minorIncrement = in.readDouble();field_5_categoryAxisCross = in.readDouble();field_6_options = in.readShort();}
public void addFiles(Collection<String> files) {checkFileNames(files);for (String f : files) {setFiles.add(namedForThisSegment(f));}}
public CreateClientVpnEndpointResult createClientVpnEndpoint(CreateClientVpnEndpointRequest request) {request = beforeClientExecution(request);return executeCreateClientVpnEndpoint(request);}
public static IntBuffer allocate(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteIntArrayBuffer(capacity);}
public File getFile() {return attributes.getFile();}
public static CFRecordsAggregate createCFAggregate(RecordStream rs) {Record rec = rs.getNext();if (rec.getSid() != CFHeaderRecord.sid &&rec.getSid() != CFHeader12Record.sid) {throw new IllegalStateException("next record sid was " + rec.getSid()+ " instead of " + CFHeaderRecord.sid + " or " +CFHeader12Record.sid + " as expected");}CFHeaderBase header = (CFHeaderBase)rec;int nRules = header.getNumberOfConditionalFormats();CFRuleBase[] rules = new CFRuleBase[nRules];for (int i = 0; i < rules.length; i++) {rules[i] = (CFRuleBase) rs.getNext();}return new CFRecordsAggregate(header, rules);}
public void save() throws IOException {final byte[] out;final String text = toText();if (utf8Bom) {final ByteArrayOutputStream bos = new ByteArrayOutputStream();bos.write(0xEF);bos.write(0xBB);bos.write(0xBF);bos.write(text.getBytes(UTF_8));out = bos.toByteArray();} else {out = Constants.encode(text);}final LockFile lf = new LockFile(getFile());if (!lf.lock())throw new LockFailedException(getFile());try {lf.setNeedSnapshot(true);lf.write(out);if (!lf.commit())throw new IOException(MessageFormat.format(JGitText.get().cannotCommitWriteTo, getFile()));} finally {lf.unlock();}snapshot = lf.getCommitSnapshot();hash = hash(out);fireConfigChangedEvent();}
public DeleteTopicRequest(String topicArn) {setTopicArn(topicArn);}
public static boolean contains(CellRangeAddress crA, CellRangeAddress crB){return le(crA.getFirstRow(), crB.getFirstRow()) &&ge(crA.getLastRow(), crB.getLastRow()) &&le(crA.getFirstColumn(), crB.getFirstColumn()) &&ge(crA.getLastColumn(), crB.getLastColumn());}
@Override public void clear() {if (size != 0) {Arrays.fill(array, 0, size, null);size = 0;modCount++;}}
public String toString(){return this.getClass().toString();}
public CherryPickCommand include(Ref commit) {checkCallable();commits.add(commit);return this;}
public String toString() {return "NO_MERGES"; }
public FileMode getOldMode(int nthParent) {return oldModes[nthParent];}
public void reset(Reader reader) {this.reader = reader;nextPos = 0;nextWrite = 0;count = 0;end = false;}
public void serialize(LittleEndianOutput out) {String formatString = getFormatString();out.writeShort(getIndexCode());out.writeShort(formatString.length());out.writeByte(field_3_hasMultibyte ? 0x01 : 0x00);if ( field_3_hasMultibyte ) {StringUtil.putUnicodeLE( formatString, out);} else {StringUtil.putCompressedUnicode( formatString, out);}}
public DescribePendingMaintenanceActionsResult describePendingMaintenanceActions(DescribePendingMaintenanceActionsRequest request) {request = beforeClientExecution(request);return executeDescribePendingMaintenanceActions(request);}
public DescribeServicesResult describeServices(DescribeServicesRequest request) {request = beforeClientExecution(request);return executeDescribeServices(request);}
public int getCachedResultType() {if (specialCachedValue == null) {return CellType.NUMERIC.getCode();}return specialCachedValue.getValueType();}
public boolean stem() {int v_1 = cursor;r_mark_regions();cursor = v_1;limit_backward = cursor;cursor = limit;int v_2 = limit - cursor;r_main_suffix();cursor = limit - v_2;int v_3 = limit - cursor;r_consonant_pair();cursor = limit - v_3;int v_4 = limit - cursor;r_other_suffix();cursor = limit - v_4;int v_5 = limit - cursor;r_undouble();cursor = limit - v_5;cursor = limit_backward;return true;}
public void setCachedResultErrorCode(int errorCode) {specialCachedValue = FormulaSpecialCachedValue.createCachedErrorCode(errorCode);}
public void setMinShingleSize(int minShingleSize) {if (minShingleSize < 2) {throw new IllegalArgumentException("Min shingle size must be >= 2");}if (minShingleSize > maxShingleSize) {throw new IllegalArgumentException("Min shingle size must be <= max shingle size");}this.minShingleSize = minShingleSize;gramSize = new CircularSequence();}
public void write(int value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.write(value);}
public int serializeSimplePart(byte[] data, int pos) {LittleEndian.putShort(data, pos, getId());LittleEndian.putInt(data, pos + 2, complexData.length);return 6;}
public InputMismatchException(Parser recognizer) {super(recognizer, recognizer.getInputStream(), recognizer._ctx);this.setOffendingToken(recognizer.getCurrentToken());}
public long ramBytesUsed() {long mem = RamUsageEstimator.shallowSizeOf(this) + RamUsageEstimator.sizeOf(offsets);if (offsets != ordinals) {mem += RamUsageEstimator.sizeOf(ordinals);}return mem;}
public Trec1MQReader(String name) {super();this.name = name;}
public String toString() {return "MergeInfo [totalMaxDoc=" + totalMaxDoc+ ", estimatedMergeBytes=" + estimatedMergeBytes + ", isExternal="+ isExternal + ", mergeMaxNumSegments=" + mergeMaxNumSegments + "]";}
public GetVaultNotificationsRequest(String vaultName) {setVaultName(vaultName);}
public DisassociatePhoneNumbersFromVoiceConnectorGroupResult disassociatePhoneNumbersFromVoiceConnectorGroup(DisassociatePhoneNumbersFromVoiceConnectorGroupRequest request) {request = beforeClientExecution(request);return executeDisassociatePhoneNumbersFromVoiceConnectorGroup(request);}