id
int32 0
10.3k
| java
stringlengths 29
1.4k
| cs
stringlengths 28
1.38k
|
---|---|---|
10,000 | public Charset detectedCharset() {throw new UnsupportedOperationException();}
| public virtual java.nio.charset.Charset detectedCharset(){throw new System.NotSupportedException();}
|
10,001 | public RightMarginRecord clone() {return copy();}
| public override Object Clone(){RightMarginRecord rec = new RightMarginRecord();rec.field_1_margin = this.field_1_margin;return rec;}
|
10,002 | public ListTrafficPoliciesResult listTrafficPolicies(ListTrafficPoliciesRequest request) {request = beforeClientExecution(request);return executeListTrafficPolicies(request);}
| public virtual ListTrafficPoliciesResponse ListTrafficPolicies(ListTrafficPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrafficPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrafficPoliciesResponseUnmarshaller.Instance;return Invoke<ListTrafficPoliciesResponse>(request, options);}
|
10,003 | public DeleteKeyPairRequest(String keyName) {setKeyName(keyName);}
| public DeleteKeyPairRequest(string keyName){_keyName = keyName;}
|
10,004 | public void setElement(int index, byte[] element) {if (emptyComplexPart) {return;}int actualSize = getActualSizeOfElements(getSizeOfElements());System.arraycopy( element, 0, getComplexData(), FIXED_SIZE + index * actualSize, actualSize);}
| public void SetElement(int index, byte[] element){int actualSize = GetActualSizeOfElements(SizeOfElements);Array.Copy(element, 0, _complexData, FIXED_SIZE + index * actualSize, actualSize);}
|
10,005 | public FieldDoc(int doc, float score, Object[] fields) {super(doc, score);this.fields = fields;}
| public FieldDoc(int doc, float score, object[] fields): base(doc, score){this.fields = fields;}
|
10,006 | public TreeFilter clone() {return new Binary(a.clone(), b.clone());}
| public override RevFilter Clone(){return new OrRevFilter.Binary(a.Clone(), b.Clone());}
|
10,007 | public void fillTo(int toIndex, long val) {while (count < toIndex)add(val);}
| public virtual void FillTo(int toIndex, long val){while (count < toIndex){Add(val);}}
|
10,008 | public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long byte0 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = byte0 >>> 5;values[valuesOffset++] = (byte0 >>> 2) & 7;final long byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte0 & 3) << 1) | (byte1 >>> 7);values[valuesOffset++] = (byte1 >>> 4) & 7;values[valuesOffset++] = (byte1 >>> 1) & 7;final long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 1) << 2) | (byte2 >>> 6);values[valuesOffset++] = (byte2 >>> 3) & 7;values[valuesOffset++] = byte2 & 7;}}
| public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long byte0 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (long)((ulong)byte0 >> 5);values[valuesOffset++] = ((long)((ulong)byte0 >> 2)) & 7;long byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte0 & 3) << 1) | ((long)((ulong)byte1 >> 7));values[valuesOffset++] = ((long)((ulong)byte1 >> 4)) & 7;values[valuesOffset++] = ((long)((ulong)byte1 >> 1)) & 7;long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 1) << 2) | ((long)((ulong)byte2 >> 6));values[valuesOffset++] = ((long)((ulong)byte2 >> 3)) & 7;values[valuesOffset++] = byte2 & 7;}}
|
10,009 | public RawText getResultContents() {return resultContents;}
| public virtual RawText GetResultContents(){return resultContents;}
|
10,010 | public void setMaxShingleSize(int maxShingleSize) {if (maxShingleSize < 2) {throw new IllegalArgumentException("Max shingle size must be >= 2");}this.maxShingleSize = maxShingleSize;}
| public void SetMaxShingleSize(int maxShingleSize){if (maxShingleSize < 2){throw new System.ArgumentException("Max shingle size must be >= 2");}this.maxShingleSize = maxShingleSize;}
|
10,011 | public FieldInfo(RecordInputStream in) {_isxvi = in.readShort();_isxvd = in.readShort();_idObj = in.readShort();}
| public FieldInfo(RecordInputStream in1){_isxvi = in1.ReadShort();_isxvd = in1.ReadShort();_idObj = in1.ReadShort();}
|
10,012 | public DescribeDBEngineVersionsResult describeDBEngineVersions(DescribeDBEngineVersionsRequest request) {request = beforeClientExecution(request);return executeDescribeDBEngineVersions(request);}
| public virtual DescribeDBEngineVersionsResponse DescribeDBEngineVersions(DescribeDBEngineVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBEngineVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBEngineVersionsResponseUnmarshaller.Instance;return Invoke<DescribeDBEngineVersionsResponse>(request, options);}
|
10,013 | public DBSnapshot copyDBSnapshot(CopyDBSnapshotRequest request) {request = beforeClientExecution(request);return executeCopyDBSnapshot(request);}
| public virtual CopyDBSnapshotResponse CopyDBSnapshot(CopyDBSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyDBSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyDBSnapshotResponseUnmarshaller.Instance;return Invoke<CopyDBSnapshotResponse>(request, options);}
|
10,014 | public DFA(DecisionState atnStartState, int decision) {this.atnStartState = atnStartState;this.decision = decision;boolean precedenceDfa = false;if (atnStartState instanceof StarLoopEntryState) {if (((StarLoopEntryState)atnStartState).isPrecedenceDecision) {precedenceDfa = true;DFAState precedenceState = new DFAState(new ATNConfigSet());precedenceState.edges = new DFAState[0];precedenceState.isAcceptState = false;precedenceState.requiresFullContext = false;this.s0 = precedenceState;}}this.precedenceDfa = precedenceDfa;}
| public DFA(DecisionState atnStartState, int decision){this.atnStartState = atnStartState;this.decision = decision;this.precedenceDfa = false;if (atnStartState is StarLoopEntryState && ((StarLoopEntryState)atnStartState).isPrecedenceDecision){this.precedenceDfa = true;DFAState precedenceState = new DFAState(new ATNConfigSet());precedenceState.edges = new DFAState[0];precedenceState.isAcceptState = false;precedenceState.requiresFullContext = false;this.s0 = precedenceState;}}
|
10,015 | public QueryParserTokenManager(CharStream stream){input_stream = stream;}
| public QueryParserTokenManager(ICharStream stream){m_input_stream = stream;}
|
10,016 | public String toString() {return "<group>" + "\n" + getChild().toString() + "\n</group>";}
| public override string ToString(){return "<group>" + "\n" + GetChild().ToString() + "\n</group>";}
|
10,017 | public UpdateResolverRuleResult updateResolverRule(UpdateResolverRuleRequest request) {request = beforeClientExecution(request);return executeUpdateResolverRule(request);}
| public virtual UpdateResolverRuleResponse UpdateResolverRule(UpdateResolverRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateResolverRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateResolverRuleResponseUnmarshaller.Instance;return Invoke<UpdateResolverRuleResponse>(request, options);}
|
10,018 | public int compareTo(BytesRef other) {return Arrays.compareUnsigned(this.bytes, this.offset, this.offset + this.length,other.bytes, other.offset, other.offset + other.length);}
| public int CompareTo(BytesRef other){return utf8SortedAsUnicodeSortOrder.Compare(this, other);}
|
10,019 | public void rewind() {ns.removeAllElements();ks.setLength(0);cur = root;run();}
| public virtual void Rewind(){ns.Clear();ks.Length = 0;cur = outerInstance.m_root;Run();}
|
10,020 | public ModifyWorkspaceAccessPropertiesResult modifyWorkspaceAccessProperties(ModifyWorkspaceAccessPropertiesRequest request) {request = beforeClientExecution(request);return executeModifyWorkspaceAccessProperties(request);}
| public virtual ModifyWorkspaceAccessPropertiesResponse ModifyWorkspaceAccessProperties(ModifyWorkspaceAccessPropertiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyWorkspaceAccessPropertiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyWorkspaceAccessPropertiesResponseUnmarshaller.Instance;return Invoke<ModifyWorkspaceAccessPropertiesResponse>(request, options);}
|
10,021 | public DescribeFleetAttributesResult describeFleetAttributes(DescribeFleetAttributesRequest request) {request = beforeClientExecution(request);return executeDescribeFleetAttributes(request);}
| public virtual DescribeFleetAttributesResponse DescribeFleetAttributes(DescribeFleetAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetAttributesResponseUnmarshaller.Instance;return Invoke<DescribeFleetAttributesResponse>(request, options);}
|
10,022 | public CreateBuildResult createBuild(CreateBuildRequest request) {request = beforeClientExecution(request);return executeCreateBuild(request);}
| public virtual CreateBuildResponse CreateBuild(CreateBuildRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBuildRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBuildResponseUnmarshaller.Instance;return Invoke<CreateBuildResponse>(request, options);}
|
10,023 | public static FloatBuffer wrap(float[] array, int start, int floatCount) {Arrays.checkOffsetAndCount(array.length, start, floatCount);FloatBuffer buf = new ReadWriteFloatArrayBuffer(array);buf.position = start;buf.limit = start + floatCount;return buf;}
| public static java.nio.FloatBuffer wrap(float[] array_1, int start, int floatCount){java.util.Arrays.checkOffsetAndCount(array_1.Length, start, floatCount);java.nio.FloatBuffer buf = new java.nio.ReadWriteFloatArrayBuffer(array_1);buf._position = start;buf._limit = start + floatCount;return buf;}
|
10,024 | public String toString() {StringBuilder result = new StringBuilder();DateFormatTokenizer tokenizer = new DateFormatTokenizer(format);String token;while( ( token = tokenizer.getNextToken() ) != null ) {if( result.length() > 0 ) {result.append( ", " );}result.append("[").append(token).append("]");}return result.toString();}
| public override string ToString(){StringBuilder result = new StringBuilder();DateFormatTokenizer tokenizer = new DateFormatTokenizer(format);string token;while ((token = tokenizer.GetNextToken()) != null){if (result.Length > 0){result.Append(", ");}result.Append("[").Append(token).Append("]");}return result.ToString();}
|
10,025 | public byte readByte() {return data[pos++];}
| public override byte ReadByte(){return data[pos++];}
|
10,026 | public CreateDatasetResult createDataset(CreateDatasetRequest request) {request = beforeClientExecution(request);return executeCreateDataset(request);}
| public virtual CreateDatasetResponse CreateDataset(CreateDatasetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDatasetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDatasetResponseUnmarshaller.Instance;return Invoke<CreateDatasetResponse>(request, options);}
|
10,027 | public BytesRef next() {termOrd++;if (termOrd < terms.length) {return setTerm();} else {return null;}}
| public override BytesRef Next(){termOrd++;if (termOrd < outerInstance.terms.Length){return SetTerm();}else{return null;}}
|
10,028 | public static FontCharset valueOf(int value){return (value < 0 || value >= _table.length) ? null :_table[value];}
| public static FontCharset ValueOf(int value){if(value>=0&&value<=255)return _table[value];return null;}
|
10,029 | public static String escape(String s) {StringBuilder sb = new StringBuilder();for (int i = 0; i < s.length(); i++) {char c = s.charAt(i);if (c == '\\' || c == '+' || c == '-' || c == '!' || c == '(' || c == ')'|| c == ':' || c == '^' || c == '[' || c == ']' || c == '\"'|| c == '{' || c == '}' || c == '~' || c == '*' || c == '?'|| c == '|' || c == '&' || c == '/') {sb.append('\\');}sb.append(c);}return sb.toString();}
| public static string Escape(string s){StringBuilder sb = new StringBuilder();for (int i = 0; i < s.Length; i++){char c = s[i];if (c == '\\' || c == '+' || c == '-' || c == '!' || c == '(' || c == ')'|| c == ':' || c == '^' || c == '[' || c == ']' || c == '\"'|| c == '{' || c == '}' || c == '~' || c == '*' || c == '?'|| c == '|' || c == '&' || c == '/'){sb.Append('\\');}sb.Append(c);}return sb.ToString();}
|
10,030 | public RejectVpcEndpointConnectionsResult rejectVpcEndpointConnections(RejectVpcEndpointConnectionsRequest request) {request = beforeClientExecution(request);return executeRejectVpcEndpointConnections(request);}
| public virtual RejectVpcEndpointConnectionsResponse RejectVpcEndpointConnections(RejectVpcEndpointConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectVpcEndpointConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectVpcEndpointConnectionsResponseUnmarshaller.Instance;return Invoke<RejectVpcEndpointConnectionsResponse>(request, options);}
|
10,031 | public V next() { return nextEntry().value; }
| public override V next(){return this.nextEntry().value;}
|
10,032 | public ShingleAnalyzerWrapper(Analyzer delegate,int minShingleSize,int maxShingleSize,String tokenSeparator,boolean outputUnigrams,boolean outputUnigramsIfNoShingles,String fillerToken) {super(delegate.getReuseStrategy());this.delegate = delegate;if (maxShingleSize < 2) {throw new IllegalArgumentException("Max shingle size must be >= 2");}this.maxShingleSize = maxShingleSize;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;this.tokenSeparator = (tokenSeparator == null ? "" : tokenSeparator);this.outputUnigrams = outputUnigrams;this.outputUnigramsIfNoShingles = outputUnigramsIfNoShingles;this.fillerToken = fillerToken;}
| public ShingleAnalyzerWrapper(Analyzer @delegate, int minShingleSize, int maxShingleSize,string tokenSeparator, bool outputUnigrams, bool outputUnigramsIfNoShingles, string fillerToken): base(@delegate.Strategy){this.@delegate = @delegate;if (maxShingleSize < 2){throw new ArgumentOutOfRangeException("Max shingle size must be >= 2");}this.maxShingleSize = maxShingleSize;if (minShingleSize < 2){throw new ArgumentOutOfRangeException("Min shingle size must be >= 2");}if (minShingleSize > maxShingleSize){throw new ArgumentOutOfRangeException("Min shingle size must be <= max shingle size");}this.minShingleSize = minShingleSize;this.tokenSeparator = (tokenSeparator == null ? "" : tokenSeparator);this.outputUnigrams = outputUnigrams;this.outputUnigramsIfNoShingles = outputUnigramsIfNoShingles;this.fillerToken = fillerToken;}
|
10,033 | public CreateInterconnectResult createInterconnect(CreateInterconnectRequest request) {request = beforeClientExecution(request);return executeCreateInterconnect(request);}
| public virtual CreateInterconnectResponse CreateInterconnect(CreateInterconnectRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateInterconnectRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateInterconnectResponseUnmarshaller.Instance;return Invoke<CreateInterconnectResponse>(request, options);}
|
10,034 | public DeleteTrafficMirrorTargetResult deleteTrafficMirrorTarget(DeleteTrafficMirrorTargetRequest request) {request = beforeClientExecution(request);return executeDeleteTrafficMirrorTarget(request);}
| public virtual DeleteTrafficMirrorTargetResponse DeleteTrafficMirrorTarget(DeleteTrafficMirrorTargetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrafficMirrorTargetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrafficMirrorTargetResponseUnmarshaller.Instance;return Invoke<DeleteTrafficMirrorTargetResponse>(request, options);}
|
10,035 | public UpdateMonitoringScheduleResult updateMonitoringSchedule(UpdateMonitoringScheduleRequest request) {request = beforeClientExecution(request);return executeUpdateMonitoringSchedule(request);}
| public virtual UpdateMonitoringScheduleResponse UpdateMonitoringSchedule(UpdateMonitoringScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMonitoringScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMonitoringScheduleResponseUnmarshaller.Instance;return Invoke<UpdateMonitoringScheduleResponse>(request, options);}
|
10,036 | public DeleteGatewayGroupResult deleteGatewayGroup(DeleteGatewayGroupRequest request) {request = beforeClientExecution(request);return executeDeleteGatewayGroup(request);}
| public virtual DeleteGatewayGroupResponse DeleteGatewayGroup(DeleteGatewayGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGatewayGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGatewayGroupResponseUnmarshaller.Instance;return Invoke<DeleteGatewayGroupResponse>(request, options);}
|
10,037 | public ListStackSetOperationsResult listStackSetOperations(ListStackSetOperationsRequest request) {request = beforeClientExecution(request);return executeListStackSetOperations(request);}
| public virtual ListStackSetOperationsResponse ListStackSetOperations(ListStackSetOperationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStackSetOperationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStackSetOperationsResponseUnmarshaller.Instance;return Invoke<ListStackSetOperationsResponse>(request, options);}
|
10,038 | public ListOfOutputs(Outputs<T> outputs) {this.outputs = outputs;}
| public ListOfOutputs(Outputs<T> outputs){this.outputs = outputs;}
|
10,039 | public ExceedsLimit(long limit, long size) {this.limit = limit;this.size = size;}
| public ExceedsLimit(long limit, long size){this.limit = limit;this.size = size;}
|
10,040 | public GetIndustryInfoRequest() {super("industry-brain", "2018-07-12", "GetIndustryInfo");setProtocol(ProtocolType.HTTPS);}
| public GetIndustryInfoRequest(): base("industry-brain", "2018-07-12", "GetIndustryInfo"){Protocol = ProtocolType.HTTPS;}
|
10,041 | public CreateVpnGatewayRequest(String type) {setType(type);}
| public CreateVpnGatewayRequest(GatewayType type){_type = type;}
|
10,042 | public int compareTo(PointTransitions other) {return point - other.point;}
| public int CompareTo(PointTransitions other){return point - other.point;}
|
10,043 | public DeleteQueuedReservedInstancesResult deleteQueuedReservedInstances(DeleteQueuedReservedInstancesRequest request) {request = beforeClientExecution(request);return executeDeleteQueuedReservedInstances(request);}
| public virtual DeleteQueuedReservedInstancesResponse DeleteQueuedReservedInstances(DeleteQueuedReservedInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteQueuedReservedInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteQueuedReservedInstancesResponseUnmarshaller.Instance;return Invoke<DeleteQueuedReservedInstancesResponse>(request, options);}
|
10,044 | public static final AbbreviatedObjectId fromString(String str) {if (str.length() > Constants.OBJECT_ID_STRING_LENGTH)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidId, str));final byte[] b = Constants.encodeASCII(str);return fromHexString(b, 0, b.length);}
| public static NGit.AbbreviatedObjectId FromString(string str){if (str.Length > Constants.OBJECT_ID_STRING_LENGTH){throw new ArgumentException(MessageFormat.Format(JGitText.Get().invalidId, str));}byte[] b = Constants.EncodeASCII(str);return FromHexString(b, 0, b.Length);}
|
10,045 | public final int getByte(int index) {int w;switch (index >> 2) {case 0:w = w1;break;case 1:w = w2;break;case 2:w = w3;break;case 3:w = w4;break;case 4:w = w5;break;default:throw new ArrayIndexOutOfBoundsException(index);}return (w >>> (8 * (3 - (index & 3)))) & 0xff;}
| public int GetByte(int index){int w;switch (index >> 2){case 0:{w = w1;break;}case 1:{w = w2;break;}case 2:{w = w3;break;}case 3:{w = w4;break;}case 4:{w = w5;break;}default:{throw Sharpen.Extensions.CreateIndexOutOfRangeException(index);}}return ((int)(((uint)w) >> (8 * (3 - (index & 3))))) & unchecked((int)(0xff));}
|
10,046 | public SpanFirstBuilder(SpanQueryBuilder factory) {this.factory = factory;}
| public SpanFirstBuilder(ISpanQueryBuilder factory){this.factory = factory;}
|
10,047 | public DescribeInstancesResult describeInstances(DescribeInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeInstances(request);}
| public virtual DescribeInstancesResponse DescribeInstances(DescribeInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInstancesResponseUnmarshaller.Instance;return Invoke<DescribeInstancesResponse>(request, options);}
|
10,048 | public DescribeProjectsResult describeProjects(DescribeProjectsRequest request) {request = beforeClientExecution(request);return executeDescribeProjects(request);}
| public virtual DescribeProjectsResponse DescribeProjects(DescribeProjectsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeProjectsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeProjectsResponseUnmarshaller.Instance;return Invoke<DescribeProjectsResponse>(request, options);}
|
10,049 | public static String toHexString(String s) {StringBuilder sb = new StringBuilder();for(int i=0;i<s.length();i++) {char ch = s.charAt(i);if (i > 0) {sb.append(' ');}if (ch < 128) {sb.append(ch);} else {if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_HIGH_END) {sb.append("H:");} else if (ch >= UNI_SUR_LOW_START && ch <= UNI_SUR_LOW_END) {sb.append("L:");} else if (ch > UNI_SUR_LOW_END) {if (ch == 0xffff) {sb.append("F:");} else {sb.append("E:");}}sb.append("0x").append(Integer.toHexString(ch));}}return sb.toString();}
| public static string ToHexString(string s){var sb = new StringBuilder();for (int i = 0; i < s.Length; i++){char ch = s[i];if (i > 0){sb.Append(' ');}if (ch < 128){sb.Append(ch);}else{if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_HIGH_END){sb.Append("H:");}else if (ch >= UNI_SUR_LOW_START && ch <= UNI_SUR_LOW_END){sb.Append("L:");}else if (ch > UNI_SUR_LOW_END){if (ch == 0xffff){sb.Append("F:");}else{sb.Append("E:");}}sb.Append("0x" + ((short)ch).ToString("X"));}}return sb.ToString();}
|
10,050 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {double result;try {double d0 = NumericFunction.singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);result = Math.log(d0) / LOG_10_TO_BASE_e;NumericFunction.checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}
| public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);result = Math.Log(d0) / NumericFunction.LOG_10_TO_BASE_e;NumericFunction.CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}
|
10,051 | public long byteCount(int packedIntsVersion, int valueCount, int bitsPerValue) {assert bitsPerValue >= 0 && bitsPerValue <= 64 : bitsPerValue;return 8L * longCount(packedIntsVersion, valueCount, bitsPerValue);}
| public virtual long ByteCount(int packedIntsVersion, int valueCount, int bitsPerValue){return 8L * Int64Count(packedIntsVersion, valueCount, bitsPerValue);}
|
10,052 | public Policy(String id, Collection<Statement> statements) {this(id);setStatements(statements);}
| public Policy(string id, IList<Statement> statements){this.id = id;this.statements = statements;}
|
10,053 | public FunctionQuery(ValueSource func) {this.func=func;}
| public FunctionQuery(ValueSource func){this.func = func;}
|
10,054 | public UpdateGameServerResult updateGameServer(UpdateGameServerRequest request) {request = beforeClientExecution(request);return executeUpdateGameServer(request);}
| public virtual UpdateGameServerResponse UpdateGameServer(UpdateGameServerRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGameServerRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGameServerResponseUnmarshaller.Instance;return Invoke<UpdateGameServerResponse>(request, options);}
|
10,055 | public GetDetectorVersionResult getDetectorVersion(GetDetectorVersionRequest request) {request = beforeClientExecution(request);return executeGetDetectorVersion(request);}
| public virtual GetDetectorVersionResponse GetDetectorVersion(GetDetectorVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDetectorVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDetectorVersionResponseUnmarshaller.Instance;return Invoke<GetDetectorVersionResponse>(request, options);}
|
10,056 | public void addField(String fieldName, String text, Analyzer analyzer) {if (fieldName == null)throw new IllegalArgumentException("fieldName must not be null");if (text == null)throw new IllegalArgumentException("text must not be null");if (analyzer == null)throw new IllegalArgumentException("analyzer must not be null");TokenStream stream = analyzer.tokenStream(fieldName, text);storeTerms(getInfo(fieldName, defaultFieldType), stream,analyzer.getPositionIncrementGap(fieldName), analyzer.getOffsetGap(fieldName));}
| public virtual void AddField(string fieldName, string text, Analyzer analyzer){if (fieldName == null){throw new System.ArgumentException("fieldName must not be null");}if (text == null){throw new System.ArgumentException("text must not be null");}if (analyzer == null){throw new System.ArgumentException("analyzer must not be null");}TokenStream stream;try{stream = analyzer.GetTokenStream(fieldName, text);}catch (IOException ex){throw new Exception(ex.ToString(), ex);}AddField(fieldName, stream, 1.0f, analyzer.GetPositionIncrementGap(fieldName), analyzer.GetOffsetGap(fieldName));}
|
10,057 | public boolean isEnabled(String component) {return false;}
| public override bool IsEnabled(string component){return false;}
|
10,058 | public long next() {final long idx = 1 + (ord / indexInterval);if (idx >= fieldIndex.numIndexTerms) {return -1;}ord += indexInterval;final long offset = fieldIndex.termOffsets.get(idx);final int length = (int) (fieldIndex.termOffsets.get(1+idx) - offset);termBytesReader.fillSlice(term, fieldIndex.termBytesStart + offset, length);return fieldIndex.termsStart + fieldIndex.termsDictOffsets.get(idx);}
| public override long Next(){int idx = 1 + (int)(ord / outerInstance.totalIndexInterval);if (idx >= fieldIndex.numIndexTerms){return -1;}ord += outerInstance.totalIndexInterval;long offset = fieldIndex.termOffsets.Get(idx);int length = (int)(fieldIndex.termOffsets.Get(1 + idx) - offset);outerInstance.termBytesReader.FillSlice(term, fieldIndex.termBytesStart + offset, length);return fieldIndex.termsStart + fieldIndex.termsDictOffsets.Get(idx);}
|
10,059 | public DisassociateMemberFromGroupResult disassociateMemberFromGroup(DisassociateMemberFromGroupRequest request) {request = beforeClientExecution(request);return executeDisassociateMemberFromGroup(request);}
| public virtual DisassociateMemberFromGroupResponse DisassociateMemberFromGroup(DisassociateMemberFromGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateMemberFromGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateMemberFromGroupResponseUnmarshaller.Instance;return Invoke<DisassociateMemberFromGroupResponse>(request, options);}
|
10,060 | public UnmergedPathException(DirCacheEntry dce) {super(MessageFormat.format(JGitText.get().unmergedPath, dce.getPathString()));entry = dce;}
| public UnmergedPathException(DirCacheEntry dce) : base(MessageFormat.Format(JGitText.Get().unmergedPath, dce.PathString)){entry = dce;}
|
10,061 | public Name(NameRecord nameRecord, int index) {_nameRecord = nameRecord;_index = index;}
| public Name(NameRecord nameRecord, int index){_nameRecord = nameRecord;_index = index;}
|
10,062 | public void add(ET object) {if (expectedModCount == list.modCount) {Link<ET> next = link.next;Link<ET> newLink = new Link<ET>(object, link, next);link.next = newLink;next.previous = newLink;link = newLink;lastLink = null;pos++;expectedModCount++;list.size++;list.modCount++;} else {throw new ConcurrentModificationException();}}
| public void add(ET @object){if (expectedModCount == list.modCount){java.util.LinkedList.Link<ET> next_1 = link.next;java.util.LinkedList.Link<ET> newLink = new java.util.LinkedList.Link<ET>(@object, link, next_1);link.next = newLink;next_1.previous = newLink;link = newLink;lastLink = null;pos++;expectedModCount++;list._size++;list.modCount++;}else{throw new java.util.ConcurrentModificationException();}}
|
10,063 | public final ByteOrder order() {return order;}
| public java.nio.ByteOrder order(){return _order;}
|
10,064 | public ValueFiller getValueFiller() {return new ValueFiller() {private final MutableValueStr mval = new MutableValueStr();@Override
| public override ValueFiller GetValueFiller(){return new ValueFillerAnonymousInnerClassHelper(this);}
|
10,065 | public SubmoduleInitCommand addPath(String path) {paths.add(path);return this;}
| public virtual NGit.Api.SubmoduleInitCommand AddPath(string path){paths.AddItem(path);return this;}
|
10,066 | public DeleteInterconnectResult deleteInterconnect(DeleteInterconnectRequest request) {request = beforeClientExecution(request);return executeDeleteInterconnect(request);}
| public virtual DeleteInterconnectResponse DeleteInterconnect(DeleteInterconnectRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteInterconnectRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteInterconnectResponseUnmarshaller.Instance;return Invoke<DeleteInterconnectResponse>(request, options);}
|
10,067 | public Credential(String keyId, String secret) {this.accessKeyId = keyId;this.accessSecret = secret;this.refreshDate = new Date();}
| public Credential(string keyId, string secret){AccessKeyId = keyId;AccessSecret = secret;RefreshDate = DateTime.UtcNow;}
|
10,068 | public DeleteRepoWebhookRequest() {super("cr", "2016-06-07", "DeleteRepoWebhook", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/webhooks/[WebhookId]");setMethod(MethodType.DELETE);}
| public DeleteRepoWebhookRequest(): base("cr", "2016-06-07", "DeleteRepoWebhook", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/webhooks/[WebhookId]";Method = MethodType.DELETE;}
|
10,069 | public DeleteDeviceResult deleteDevice(DeleteDeviceRequest request) {request = beforeClientExecution(request);return executeDeleteDevice(request);}
| public virtual DeleteDeviceResponse DeleteDevice(DeleteDeviceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDeviceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDeviceResponseUnmarshaller.Instance;return Invoke<DeleteDeviceResponse>(request, options);}
|
10,070 | public CreateEventBusResult createEventBus(CreateEventBusRequest request) {request = beforeClientExecution(request);return executeCreateEventBus(request);}
| public virtual CreateEventBusResponse CreateEventBus(CreateEventBusRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEventBusRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEventBusResponseUnmarshaller.Instance;return Invoke<CreateEventBusResponse>(request, options);}
|
10,071 | public boolean isEnabled() {return enabled;}
| public virtual bool IsEnabled(){return enabled;}
|
10,072 | public boolean isSigned() {return signed;}
| public virtual bool IsSigned(){return signed;}
|
10,073 | public DeleteRuleVersionResult deleteRuleVersion(DeleteRuleVersionRequest request) {request = beforeClientExecution(request);return executeDeleteRuleVersion(request);}
| public virtual DeleteRuleVersionResponse DeleteRuleVersion(DeleteRuleVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRuleVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRuleVersionResponseUnmarshaller.Instance;return Invoke<DeleteRuleVersionResponse>(request, options);}
|
10,074 | public long seek(long ord) {throw new UnsupportedOperationException();}
| public override long Seek(long ord){throw new NotSupportedException();}
|
10,075 | public CreateAppCookieStickinessPolicyRequest(String loadBalancerName, String policyName, String cookieName) {setLoadBalancerName(loadBalancerName);setPolicyName(policyName);setCookieName(cookieName);}
| public CreateAppCookieStickinessPolicyRequest(string loadBalancerName, string policyName, string cookieName){_loadBalancerName = loadBalancerName;_policyName = policyName;_cookieName = cookieName;}
|
10,076 | public BlameCommand setDiffAlgorithm(DiffAlgorithm diffAlgorithm) {this.diffAlgorithm = diffAlgorithm;return this;}
| public virtual NGit.Api.BlameCommand SetDiffAlgorithm(DiffAlgorithm diffAlgorithm){this.diffAlgorithm = diffAlgorithm;return this;}
|
10,077 | public DisassociateSkillFromUsersResult disassociateSkillFromUsers(DisassociateSkillFromUsersRequest request) {request = beforeClientExecution(request);return executeDisassociateSkillFromUsers(request);}
| public virtual DisassociateSkillFromUsersResponse DisassociateSkillFromUsers(DisassociateSkillFromUsersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateSkillFromUsersRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateSkillFromUsersResponseUnmarshaller.Instance;return Invoke<DisassociateSkillFromUsersResponse>(request, options);}
|
10,078 | public PatchIdDiffFormatter() {super(new DigestOutputStream(NullOutputStream.INSTANCE,Constants.newMessageDigest()));digest = ((DigestOutputStream) getOutputStream()).getMessageDigest();}
| public PatchIdDiffFormatter() : base(new DigestOutputStream(NullOutputStream.INSTANCE, Constants.NewMessageDigest())){digest = ((DigestOutputStream)GetOutputStream()).GetMessageDigest();}
|
10,079 | public SendMessageResult sendMessage(SendMessageRequest request) {request = beforeClientExecution(request);return executeSendMessage(request);}
| public virtual SendMessageResponse SendMessage(SendMessageRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendMessageRequestMarshaller.Instance;options.ResponseUnmarshaller = SendMessageResponseUnmarshaller.Instance;return Invoke<SendMessageResponse>(request, options);}
|
10,080 | public static ParsePathType pathType(Path f) {int pathLength = 0;while (f != null && f.getFileName() != null && ++pathLength < MAX_PATH_LENGTH) {ParsePathType ppt = pathName2Type.get(f.getFileName().toString().toUpperCase(Locale.ROOT));if (ppt!=null) {return ppt;}f = f.getParent();}return DEFAULT_PATH_TYPE;}
| public static ParsePathType PathType(FileInfo f){int pathLength = 0;ParsePathType? ppt;if (pathName2Type.TryGetValue(f.Name.ToUpperInvariant(), out ppt) && ppt != null){return ppt.Value;}DirectoryInfo parentDir = f.Directory;while (parentDir != null && ++pathLength < MAX_PATH_LENGTH){if (pathName2Type.TryGetValue(parentDir.Name.ToUpperInvariant(), out ppt) && ppt != null){return ppt.Value;}parentDir = parentDir.Parent;}return DEFAULT_PATH_TYPE;}
|
10,081 | public static long estimateIndexSize(int sourceLength) {return sourceLength + (sourceLength * 3 / 4);}
| public static long EstimateIndexSize(int sourceLength){return sourceLength + (sourceLength * 3 / 4);}
|
10,082 | public UpdateDashboardPermissionsResult updateDashboardPermissions(UpdateDashboardPermissionsRequest request) {request = beforeClientExecution(request);return executeUpdateDashboardPermissions(request);}
| public virtual UpdateDashboardPermissionsResponse UpdateDashboardPermissions(UpdateDashboardPermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDashboardPermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDashboardPermissionsResponseUnmarshaller.Instance;return Invoke<UpdateDashboardPermissionsResponse>(request, options);}
|
10,083 | public String formatAsString() {switch (_cellType) {case NUMERIC:return String.valueOf(_numberValue);case STRING:return '"' + _textValue + '"';case BOOLEAN:return _booleanValue ? "TRUE" : "FALSE";case ERROR:return ErrorEval.getText(_errorCode);default:return "<error unexpected cell type " + _cellType + ">";}}
| public String FormatAsString(){switch (_cellType){case CellType.Numeric:string result = _numberValue.ToString(CultureInfo.InvariantCulture);return result;case CellType.String:return '"' + _textValue + '"';case CellType.Boolean:return _boolValue ? "TRUE" : "FALSE";case CellType.Error:return ErrorEval.GetText(_errorCode);}return "<error unexpected cell type " + _cellType + ">";}
|
10,084 | public final void add(RevFlagSet set) {flags |= set.mask;}
| public void Add(RevFlagSet set){flags |= set.mask;}
|
10,085 | public URIish setHost(String n) {final URIish r = new URIish(this);r.host = n;return r;}
| public virtual NGit.Transport.URIish SetHost(string n){NGit.Transport.URIish r = new NGit.Transport.URIish(this);r.host = n;return r;}
|
10,086 | public void clearFormulaEntry() {CellCacheEntry[] usedCells = _sensitiveInputCells;if (usedCells != null) {for (int i = usedCells.length-1; i>=0; i--) {usedCells[i].clearConsumingCell(this);}}_sensitiveInputCells = null;clearValue();}
| public void ClearFormulaEntry(){CellCacheEntry[] usedCells = _sensitiveInputCells;if (usedCells != null){for (int i = usedCells.Length - 1; i >= 0; i--){usedCells[i].ClearConsumingCell(this);}}_sensitiveInputCells = null;ClearValue();}
|
10,087 | public GetDiskSnapshotResult getDiskSnapshot(GetDiskSnapshotRequest request) {request = beforeClientExecution(request);return executeGetDiskSnapshot(request);}
| public virtual GetDiskSnapshotResponse GetDiskSnapshot(GetDiskSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDiskSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDiskSnapshotResponseUnmarshaller.Instance;return Invoke<GetDiskSnapshotResponse>(request, options);}
|
10,088 | public DescribeIpv6PoolsResult describeIpv6Pools(DescribeIpv6PoolsRequest request) {request = beforeClientExecution(request);return executeDescribeIpv6Pools(request);}
| public virtual DescribeIpv6PoolsResponse DescribeIpv6Pools(DescribeIpv6PoolsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIpv6PoolsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIpv6PoolsResponseUnmarshaller.Instance;return Invoke<DescribeIpv6PoolsResponse>(request, options);}
|
10,089 | public UpdateDetectorResult updateDetector(UpdateDetectorRequest request) {request = beforeClientExecution(request);return executeUpdateDetector(request);}
| public virtual UpdateDetectorResponse UpdateDetector(UpdateDetectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDetectorRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDetectorResponseUnmarshaller.Instance;return Invoke<UpdateDetectorResponse>(request, options);}
|
10,090 | public DeleteInstanceResult deleteInstance(DeleteInstanceRequest request) {request = beforeClientExecution(request);return executeDeleteInstance(request);}
| public virtual DeleteInstanceResponse DeleteInstance(DeleteInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteInstanceResponseUnmarshaller.Instance;return Invoke<DeleteInstanceResponse>(request, options);}
|
10,091 | public ListThreatIntelSetsResult listThreatIntelSets(ListThreatIntelSetsRequest request) {request = beforeClientExecution(request);return executeListThreatIntelSets(request);}
| public virtual ListThreatIntelSetsResponse ListThreatIntelSets(ListThreatIntelSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListThreatIntelSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListThreatIntelSetsResponseUnmarshaller.Instance;return Invoke<ListThreatIntelSetsResponse>(request, options);}
|
10,092 | public ExportClientVpnClientConfigurationResult exportClientVpnClientConfiguration(ExportClientVpnClientConfigurationRequest request) {request = beforeClientExecution(request);return executeExportClientVpnClientConfiguration(request);}
| public virtual ExportClientVpnClientConfigurationResponse ExportClientVpnClientConfiguration(ExportClientVpnClientConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExportClientVpnClientConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = ExportClientVpnClientConfigurationResponseUnmarshaller.Instance;return Invoke<ExportClientVpnClientConfigurationResponse>(request, options);}
|
10,093 | public float currentScore(int docId, String field, int start, int end, int numPayloadsSeen, float currentScore, float currentPayloadScore) {if (numPayloadsSeen == 0) {return currentPayloadScore;} else {return Math.max(currentPayloadScore, currentScore);}}
| public override float CurrentScore(int docId, string field, int start, int end, int numPayloadsSeen, float currentScore, float currentPayloadScore){if (numPayloadsSeen == 0){return currentPayloadScore;}else{return Math.Max(currentPayloadScore, currentScore);}}
|
10,094 | public CreateDBParameterGroupRequest(String dBParameterGroupName, String dBParameterGroupFamily, String description) {setDBParameterGroupName(dBParameterGroupName);setDBParameterGroupFamily(dBParameterGroupFamily);setDescription(description);}
| public CreateDBParameterGroupRequest(string dbParameterGroupName, string dbParameterGroupFamily, string description){_dbParameterGroupName = dbParameterGroupName;_dbParameterGroupFamily = dbParameterGroupFamily;_description = description;}
|
10,095 | public void add(int forwardId, int backwardId, int cost) {int offset = (backwardId * forwardSize + forwardId) * 2;costs.putShort(offset, (short) cost);}
| public void Add(int forwardId, int backwardId, int cost){this.costs[backwardId][forwardId] = (short)cost;}
|
10,096 | public boolean isPeeled() {return true;}
| public override bool IsPeeled(){return true;}
|
10,097 | public CreateTransitVirtualInterfaceResult createTransitVirtualInterface(CreateTransitVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeCreateTransitVirtualInterface(request);}
| public virtual CreateTransitVirtualInterfaceResponse CreateTransitVirtualInterface(CreateTransitVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitVirtualInterfaceResponseUnmarshaller.Instance;return Invoke<CreateTransitVirtualInterfaceResponse>(request, options);}
|
10,098 | public BatchDetectSentimentResult batchDetectSentiment(BatchDetectSentimentRequest request) {request = beforeClientExecution(request);return executeBatchDetectSentiment(request);}
| public virtual BatchDetectSentimentResponse BatchDetectSentiment(BatchDetectSentimentRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDetectSentimentRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDetectSentimentResponseUnmarshaller.Instance;return Invoke<BatchDetectSentimentResponse>(request, options);}
|
10,099 | public boolean equals(Object o) {if ( o==null || !(o instanceof Interval) ) {return false;}Interval other = (Interval)o;return this.a==other.a && this.b==other.b;}
| public override bool Equals(object o){if (!(o is Antlr4.Runtime.Misc.Interval)){return false;}Antlr4.Runtime.Misc.Interval other = (Antlr4.Runtime.Misc.Interval)o;return this.a == other.a && this.b == other.b;}
|