id_within_dataset int64 0 10.3k | snippet stringlengths 29 1.4k | tokens listlengths 10 314 | cs stringlengths 28 1.38k | split_within_dataset stringclasses 1
value | is_duplicated bool 2
classes |
|---|---|---|---|---|---|
9,875 | public PurchaseReservedInstancesOfferingResult purchaseReservedInstancesOffering(PurchaseReservedInstancesOfferingRequest request) {request = beforeClientExecution(request);return executePurchaseReservedInstancesOffering(request);}
| [
"public",
"PurchaseReservedInstancesOfferingResult",
"purchaseReservedInstancesOffering",
"(",
"PurchaseReservedInstancesOfferingRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePurchaseReservedInstancesOffering",
"... | public virtual PurchaseReservedInstancesOfferingResponse PurchaseReservedInstancesOffering(PurchaseReservedInstancesOfferingRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseReservedInstancesOfferingRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseReservedInstancesO... | train | true |
9,876 | public final char readChar() throws IOException {return (char) readShort();}
| [
"public",
"final",
"char",
"readChar",
"(",
")",
"throws",
"IOException",
"{",
"return",
"(",
"char",
")",
"readShort",
"(",
")",
";",
"}"
] | public virtual char readChar(){throw new System.NotImplementedException();}
| train | false |
9,877 | public AssociateRepositoryResult associateRepository(AssociateRepositoryRequest request) {request = beforeClientExecution(request);return executeAssociateRepository(request);}
| [
"public",
"AssociateRepositoryResult",
"associateRepository",
"(",
"AssociateRepositoryRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateRepository",
"(",
"request",
")",
";",
"}"
] | public virtual AssociateRepositoryResponse AssociateRepository(AssociateRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateRepositoryResponseUnmarshaller.Instance;return Invoke<AssociateRepository... | train | false |
9,878 | public ImportApiKeysResult importApiKeys(ImportApiKeysRequest request) {request = beforeClientExecution(request);return executeImportApiKeys(request);}
| [
"public",
"ImportApiKeysResult",
"importApiKeys",
"(",
"ImportApiKeysRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeImportApiKeys",
"(",
"request",
")",
";",
"}"
] | public virtual ImportApiKeysResponse ImportApiKeys(ImportApiKeysRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportApiKeysRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportApiKeysResponseUnmarshaller.Instance;return Invoke<ImportApiKeysResponse>(request, options);}
| train | true |
9,880 | public Type getType() {return type;}
| [
"public",
"Type",
"getType",
"(",
")",
"{",
"return",
"type",
";",
"}"
] | public virtual BinaryHunk.Type GetType(){return type;}
| train | false |
9,881 | public static Calendar getJavaCalendar(double date, boolean use1904windowing) {return getJavaCalendar(date, use1904windowing, null, false);}
| [
"public",
"static",
"Calendar",
"getJavaCalendar",
"(",
"double",
"date",
",",
"boolean",
"use1904windowing",
")",
"{",
"return",
"getJavaCalendar",
"(",
"date",
",",
"use1904windowing",
",",
"null",
",",
"false",
")",
";",
"}"
] | public static DateTime GetJavaCalendar(double date, bool use1904windowing){return GetJavaCalendar(date, use1904windowing, false);}
| train | false |
9,882 | public DeleteSnapshotScheduleResult deleteSnapshotSchedule(DeleteSnapshotScheduleRequest request) {request = beforeClientExecution(request);return executeDeleteSnapshotSchedule(request);}
| [
"public",
"DeleteSnapshotScheduleResult",
"deleteSnapshotSchedule",
"(",
"DeleteSnapshotScheduleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteSnapshotSchedule",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteSnapshotScheduleResponse DeleteSnapshotSchedule(DeleteSnapshotScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSnapshotScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSnapshotScheduleResponseUnmarshaller.Instance;return Invoke<Dele... | train | true |
9,883 | public void writeProtectWorkbook( String password, String username ) {this.workbook.writeProtectWorkbook(password, username);}
| [
"public",
"void",
"writeProtectWorkbook",
"(",
"String",
"password",
",",
"String",
"username",
")",
"{",
"this",
".",
"workbook",
".",
"writeProtectWorkbook",
"(",
"password",
",",
"username",
")",
";",
"}"
] | public void WriteProtectWorkbook(String password, String username){this.workbook.WriteProtectWorkbook(password, username);}
| train | false |
9,884 | public CreateCloudFormationStackResult createCloudFormationStack(CreateCloudFormationStackRequest request) {request = beforeClientExecution(request);return executeCreateCloudFormationStack(request);}
| [
"public",
"CreateCloudFormationStackResult",
"createCloudFormationStack",
"(",
"CreateCloudFormationStackRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateCloudFormationStack",
"(",
"request",
")",
";",
... | public virtual CreateCloudFormationStackResponse CreateCloudFormationStack(CreateCloudFormationStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCloudFormationStackRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCloudFormationStackResponseUnmarshaller.Instance;ret... | train | true |
9,885 | public void writeByte(byte b) throws IOException {assert bufferPos == buffer.position(): "bufferPos=" + bufferPos + " vs buffer.position()=" + buffer.position();buffer.put(b);if (++bufferPos == bufferSize) {dump();}}
| [
"public",
"void",
"writeByte",
"(",
"byte",
"b",
")",
"throws",
"IOException",
"{",
"assert",
"bufferPos",
"==",
"buffer",
".",
"position",
"(",
")",
":",
"\"bufferPos=\"",
"+",
"bufferPos",
"+",
"\" vs buffer.position()=\"",
"+",
"buffer",
".",
"position",
"(... | public void writeByte(sbyte b) throws IOException{Debug.Assert(bufferPos == buffer.position(), "bufferPos=" + bufferPos + " vs buffer.position()=" + buffer.position());buffer.put(b);if (++bufferPos == bufferSize){dump();}}
| train | false |
9,886 | public ExtendedFormatRecord(RecordInputStream in) {field_1_font_index = in.readShort();field_2_format_index = in.readShort();field_3_cell_options = in.readShort();field_4_alignment_options = in.readShort();field_5_indention_options = in.readShort();field_6_border_options = in.readS... | [
"public",
"ExtendedFormatRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_font_index",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_2_format_index",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_3_cell_options",
"=",
"in",
".",
"readShort",... | public ExtendedFormatRecord(RecordInputStream in1){field_1_font_index = in1.ReadShort();field_2_format_index = in1.ReadShort();field_3_cell_options = in1.ReadShort();field_4_alignment_options = in1.ReadShort();field_5_indention_options = in1.ReadShort();field_6_border_options = in1.ReadShort();field_7_palette_options =... | train | false |
9,887 | public int getExternalSheetIndex(String workbookName, String sheetName) {return _iBook.getExternalSheetIndex(workbookName, sheetName);}
| [
"public",
"int",
"getExternalSheetIndex",
"(",
"String",
"workbookName",
",",
"String",
"sheetName",
")",
"{",
"return",
"_iBook",
".",
"getExternalSheetIndex",
"(",
"workbookName",
",",
"sheetName",
")",
";",
"}"
] | public int GetExternalSheetIndex(String workbookName, String sheetName){return _iBook.GetExternalSheetIndex(workbookName, sheetName);}
| train | false |
9,888 | public HSSFObjectData(EscherContainerRecord spContainer, ObjRecord objRecord, DirectoryEntry _root) {super(spContainer, objRecord);this._root = _root;}
| [
"public",
"HSSFObjectData",
"(",
"EscherContainerRecord",
"spContainer",
",",
"ObjRecord",
"objRecord",
",",
"DirectoryEntry",
"_root",
")",
"{",
"super",
"(",
"spContainer",
",",
"objRecord",
")",
";",
"this",
".",
"_root",
"=",
"_root",
";",
"}"
] | public HSSFObjectData(EscherContainerRecord spContainer, ObjRecord objRecord, DirectoryEntry _root): base(spContainer, objRecord){this._root = _root;}
| train | false |
9,890 | public UpdateApnsVoipChannelResult updateApnsVoipChannel(UpdateApnsVoipChannelRequest request) {request = beforeClientExecution(request);return executeUpdateApnsVoipChannel(request);}
| [
"public",
"UpdateApnsVoipChannelResult",
"updateApnsVoipChannel",
"(",
"UpdateApnsVoipChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateApnsVoipChannel",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateApnsVoipChannelResponse UpdateApnsVoipChannel(UpdateApnsVoipChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApnsVoipChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApnsVoipChannelResponseUnmarshaller.Instance;return Invoke<UpdateApn... | train | true |
9,891 | public String[] getNames() {return nameValPairs.keySet().toArray(new String[0]);}
| [
"public",
"String",
"[",
"]",
"getNames",
"(",
")",
"{",
"return",
"nameValPairs",
".",
"keySet",
"(",
")",
".",
"toArray",
"(",
"new",
"String",
"[",
"0",
"]",
")",
";",
"}"
] | public virtual string[] GetNames(){return nameValPairs.Keys.ToArray();}
| train | false |
9,892 | public DeleteAutoSnapshotResult deleteAutoSnapshot(DeleteAutoSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteAutoSnapshot(request);}
| [
"public",
"DeleteAutoSnapshotResult",
"deleteAutoSnapshot",
"(",
"DeleteAutoSnapshotRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteAutoSnapshot",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteAutoSnapshotResponse DeleteAutoSnapshot(DeleteAutoSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAutoSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAutoSnapshotResponseUnmarshaller.Instance;return Invoke<DeleteAutoSnapshotRespon... | train | false |
9,893 | public int getLowIx() {return _lowIx;}
| [
"public",
"int",
"getLowIx",
"(",
")",
"{",
"return",
"_lowIx",
";",
"}"
] | public int GetLowIx(){return _lowIx;}
| train | false |
9,894 | public DescribeSubscribedWorkteamResult describeSubscribedWorkteam(DescribeSubscribedWorkteamRequest request) {request = beforeClientExecution(request);return executeDescribeSubscribedWorkteam(request);}
| [
"public",
"DescribeSubscribedWorkteamResult",
"describeSubscribedWorkteam",
"(",
"DescribeSubscribedWorkteamRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeSubscribedWorkteam",
"(",
"request",
")",
";... | public virtual DescribeSubscribedWorkteamResponse DescribeSubscribedWorkteam(DescribeSubscribedWorkteamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSubscribedWorkteamRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSubscribedWorkteamResponseUnmarshaller.Instanc... | train | true |
9,895 | public DeleteVpnGatewayResult deleteVpnGateway(DeleteVpnGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteVpnGateway(request);}
| [
"public",
"DeleteVpnGatewayResult",
"deleteVpnGateway",
"(",
"DeleteVpnGatewayRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteVpnGateway",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteVpnGatewayResponse DeleteVpnGateway(DeleteVpnGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpnGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpnGatewayResponseUnmarshaller.Instance;return Invoke<DeleteVpnGatewayResponse>(request,... | train | true |
9,896 | public boolean get(int index) {return intSet.exists(index);}
| [
"public",
"boolean",
"get",
"(",
"int",
"index",
")",
"{",
"return",
"intSet",
".",
"exists",
"(",
"index",
")",
";",
"}"
] | public virtual bool Get(int index){return intSet.Exists(index);}
| train | false |
9,897 | public String constantName() {return constantName;}
| [
"public",
"String",
"constantName",
"(",
")",
"{",
"return",
"constantName",
";",
"}"
] | public virtual string constantName(){return _constantName;}
| train | false |
9,898 | public void serialize(LittleEndianOutput out) {out.writeShort(field_1_formatIndex);}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"field_1_formatIndex",
")",
";",
"}"
] | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_formatIndex);}
| train | false |
9,899 | public boolean isEmpty() {return size() == 0;}
| [
"public",
"boolean",
"isEmpty",
"(",
")",
"{",
"return",
"size",
"(",
")",
"==",
"0",
";",
"}"
] | public virtual bool isEmpty(){return size() == 0;}
| train | false |
9,900 | public DescribeCacheParametersResult describeCacheParameters(DescribeCacheParametersRequest request) {request = beforeClientExecution(request);return executeDescribeCacheParameters(request);}
| [
"public",
"DescribeCacheParametersResult",
"describeCacheParameters",
"(",
"DescribeCacheParametersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeCacheParameters",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeCacheParametersResponse DescribeCacheParameters(DescribeCacheParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCacheParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCacheParametersResponseUnmarshaller.Instance;return Invoke... | train | true |
9,901 | public SimpleFraction(int numerator, int denominator){this.numerator = numerator;this.denominator = denominator;}
| [
"public",
"SimpleFraction",
"(",
"int",
"numerator",
",",
"int",
"denominator",
")",
"{",
"this",
".",
"numerator",
"=",
"numerator",
";",
"this",
".",
"denominator",
"=",
"denominator",
";",
"}"
] | public SimpleFraction(int numerator, int denominator){this.numerator = numerator;this.denominator = denominator;}
| train | false |
9,902 | public static int idealBooleanArraySize(int need) {return idealByteArraySize(need);}
| [
"public",
"static",
"int",
"idealBooleanArraySize",
"(",
"int",
"need",
")",
"{",
"return",
"idealByteArraySize",
"(",
"need",
")",
";",
"}"
] | public static int idealBooleanArraySize(int need){return idealByteArraySize(need);}
| train | false |
9,903 | public SubmoduleStatusCommand submoduleStatus() {return new SubmoduleStatusCommand(repo);}
| [
"public",
"SubmoduleStatusCommand",
"submoduleStatus",
"(",
")",
"{",
"return",
"new",
"SubmoduleStatusCommand",
"(",
"repo",
")",
";",
"}"
] | public virtual SubmoduleStatusCommand SubmoduleStatus(){return new SubmoduleStatusCommand(repo);}
| train | false |
9,904 | public PutRecordBatchResult putRecordBatch(PutRecordBatchRequest request) {request = beforeClientExecution(request);return executePutRecordBatch(request);}
| [
"public",
"PutRecordBatchResult",
"putRecordBatch",
"(",
"PutRecordBatchRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutRecordBatch",
"(",
"request",
")",
";",
"}"
] | public virtual PutRecordBatchResponse PutRecordBatch(PutRecordBatchRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRecordBatchRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRecordBatchResponseUnmarshaller.Instance;return Invoke<PutRecordBatchResponse>(request, options);}
| train | true |
9,905 | public QueryTermScorer(WeightedTerm[] weightedTerms) {termsToFind = new HashMap<>();for (int i = 0; i < weightedTerms.length; i++) {WeightedTerm existingTerm = termsToFind.get(weightedTerms[i].term);if ((existingTerm == null)|| (existingTerm.weight < weightedTerms[i].weight)) {termsToFind.put(weightedTerms[i].term, wei... | [
"public",
"QueryTermScorer",
"(",
"WeightedTerm",
"[",
"]",
"weightedTerms",
")",
"{",
"termsToFind",
"=",
"new",
"HashMap",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"weightedTerms",
".",
"length",
";",
"i",
"++",
")"... | public QueryTermScorer(WeightedTerm[] weightedTerms){termsToFind = new Dictionary<string, WeightedTerm>();for (int i = 0; i < weightedTerms.Length; i++){if (!termsToFind.TryGetValue(weightedTerms[i].Term, out WeightedTerm existingTerm)|| (existingTerm == null)|| (existingTerm.Weight < weightedTerms[i].Weight)){termsToF... | train | false |
9,906 | public static boolean allSubsetsConflict(Collection<BitSet> altsets) {return !hasNonConflictingAltSet(altsets);}
| [
"public",
"static",
"boolean",
"allSubsetsConflict",
"(",
"Collection",
"<",
"BitSet",
">",
"altsets",
")",
"{",
"return",
"!",
"hasNonConflictingAltSet",
"(",
"altsets",
")",
";",
"}"
] | public static bool AllSubsetsConflict(IEnumerable<BitSet> altsets){return !HasNonConflictingAltSet(altsets);}
| train | false |
9,907 | public DescribeRuntimeConfigurationResult describeRuntimeConfiguration(DescribeRuntimeConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeRuntimeConfiguration(request);}
| [
"public",
"DescribeRuntimeConfigurationResult",
"describeRuntimeConfiguration",
"(",
"DescribeRuntimeConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeRuntimeConfiguration",
"(",
"request",
"... | public virtual DescribeRuntimeConfigurationResponse DescribeRuntimeConfiguration(DescribeRuntimeConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRuntimeConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRuntimeConfigurationResponseUnmarshall... | train | true |
9,908 | public RevCommit parseCommit(AnyObjectId id)throws MissingObjectException, IncorrectObjectTypeException,IOException {RevObject c = peel(parseAny(id));if (!(c instanceof RevCommit))throw new IncorrectObjectTypeException(id.toObjectId(),Constants.TYPE_COMMIT);return (RevCommit) c;}
| [
"public",
"RevCommit",
"parseCommit",
"(",
"AnyObjectId",
"id",
")",
"throws",
"MissingObjectException",
",",
"IncorrectObjectTypeException",
",",
"IOException",
"{",
"RevObject",
"c",
"=",
"peel",
"(",
"parseAny",
"(",
"id",
")",
")",
";",
"if",
"(",
"!",
"("... | public virtual RevCommit ParseCommit(AnyObjectId id){RevObject c = Peel(ParseAny(id));if (!(c is RevCommit)){throw new IncorrectObjectTypeException(id.ToObjectId(), Constants.TYPE_COMMIT);}return (RevCommit)c;}
| train | false |
9,909 | public short readShort() {return (short)readUShort();}
| [
"public",
"short",
"readShort",
"(",
")",
"{",
"return",
"(",
"short",
")",
"readUShort",
"(",
")",
";",
"}"
] | public short ReadShort(){return (short)ReadUShort();}
| train | false |
9,910 | public final void clear() {for (int i = 0; i <= size; i++) {heap[i] = null;}size = 0;}
| [
"public",
"final",
"void",
"clear",
"(",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<=",
"size",
";",
"i",
"++",
")",
"{",
"heap",
"[",
"i",
"]",
"=",
"null",
";",
"}",
"size",
"=",
"0",
";",
"}"
] | public void Clear(){for (int i = 0; i <= size; i++){heap[i] = default(T);}size = 0;}
| train | false |
9,911 | public CreateVPCAssociationAuthorizationResult createVPCAssociationAuthorization(CreateVPCAssociationAuthorizationRequest request) {request = beforeClientExecution(request);return executeCreateVPCAssociationAuthorization(request);}
| [
"public",
"CreateVPCAssociationAuthorizationResult",
"createVPCAssociationAuthorization",
"(",
"CreateVPCAssociationAuthorizationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateVPCAssociationAuthorization",
"... | public virtual CreateVPCAssociationAuthorizationResponse CreateVPCAssociationAuthorization(CreateVPCAssociationAuthorizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVPCAssociationAuthorizationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVPCAssociationAuthor... | train | true |
9,913 | public boolean equals( Object o ) {return o instanceof CatalanStemmer;}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"o",
")",
"{",
"return",
"o",
"instanceof",
"CatalanStemmer",
";",
"}"
] | public override bool Equals(object o){return o is CatalanStemmer;}
| train | false |
9,914 | public AutomatonQuery(final Term term, Automaton automaton) {this(term, automaton, Operations.DEFAULT_MAX_DETERMINIZED_STATES);}
| [
"public",
"AutomatonQuery",
"(",
"final",
"Term",
"term",
",",
"Automaton",
"automaton",
")",
"{",
"this",
"(",
"term",
",",
"automaton",
",",
"Operations",
".",
"DEFAULT_MAX_DETERMINIZED_STATES",
")",
";",
"}"
] | public AutomatonQuery(Term term, Automaton automaton): base(term.Field){this.m_term = term;this.m_automaton = automaton;this.m_compiled = new CompiledAutomaton(automaton);}
| train | false |
9,915 | public String getPattern() {return pattern;}
| [
"public",
"String",
"getPattern",
"(",
")",
"{",
"return",
"pattern",
";",
"}"
] | public virtual string GetPattern(){return pattern;}
| train | false |
9,916 | public int compareTo(IntBuffer otherBuffer) {int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining(): otherBuffer.remaining();int thisPos = position;int otherPos = otherBuffer.position;int thisInt, otherInt;while (compareRemaining > 0) {thisInt = get(thisPos);otherInt = otherBuffer.get(otherPos);if... | [
"public",
"int",
"compareTo",
"(",
"IntBuffer",
"otherBuffer",
")",
"{",
"int",
"compareRemaining",
"=",
"(",
"remaining",
"(",
")",
"<",
"otherBuffer",
".",
"remaining",
"(",
")",
")",
"?",
"remaining",
"(",
")",
":",
"otherBuffer",
".",
"remaining",
"(",... | public virtual int compareTo(java.nio.IntBuffer otherBuffer){int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining();int thisPos = _position;int otherPos = otherBuffer._position;int thisInt;int otherInt;while (compareRemaining > 0){thisInt = get(thisPos);otherInt = otherBu... | train | true |
9,917 | public final boolean hasNext() {return next != header;}
| [
"public",
"final",
"boolean",
"hasNext",
"(",
")",
"{",
"return",
"next",
"!=",
"header",
";",
"}"
] | public virtual bool hasNext(){return this._next != this._enclosing.header;}
| train | false |
9,918 | public Class<IndexChangedListener> getListenerType() {return IndexChangedListener.class;}
| [
"public",
"Class",
"<",
"IndexChangedListener",
">",
"getListenerType",
"(",
")",
"{",
"return",
"IndexChangedListener",
".",
"class",
";",
"}"
] | public override Type GetListenerType(){return typeof(IndexChangedListener);}
| train | false |
9,919 | public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[OBJECTLINK]\n");buffer.append(" .anchorId = ").append("0x").append(HexDump.toHex( getAnchorId ())).append(" (").append( getAnchorId() ).append(" )");buffer.append(System.getProperty("line.separator"));buffer.append(" ... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[OBJECTLINK]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .anchorId = \"",
")",
".",
"ap... | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[OBJECTLINK]\n");buffer.Append(" .AnchorId = ").Append("0x").Append(HexDump.ToHex(AnchorId)).Append(" (").Append(AnchorId).Append(" )");buffer.Append(Environment.NewLine);buffer.Append(" .link1 =... | train | false |
9,920 | public void setDetectRenames(boolean on) {if (on && renameDetector == null) {assertHaveReader();renameDetector = new RenameDetector(reader, diffCfg);} else if (!on)renameDetector = null;}
| [
"public",
"void",
"setDetectRenames",
"(",
"boolean",
"on",
")",
"{",
"if",
"(",
"on",
"&&",
"renameDetector",
"==",
"null",
")",
"{",
"assertHaveReader",
"(",
")",
";",
"renameDetector",
"=",
"new",
"RenameDetector",
"(",
"reader",
",",
"diffCfg",
")",
";... | public virtual void SetDetectRenames(bool on){if (on && renameDetector == null){AssertHaveRepository();renameDetector = new RenameDetector(db);}else{if (!on){renameDetector = null;}}}
| train | false |
9,921 | public boolean isSupported(int bitsPerValue) {return Packed64SingleBlock.isSupported(bitsPerValue);}
| [
"public",
"boolean",
"isSupported",
"(",
"int",
"bitsPerValue",
")",
"{",
"return",
"Packed64SingleBlock",
".",
"isSupported",
"(",
"bitsPerValue",
")",
";",
"}"
] | public virtual bool IsSupported(int bitsPerValue){return bitsPerValue >= 1 && bitsPerValue <= 64;}
| train | false |
9,922 | public void setOutputUnigrams(boolean outputUnigrams) {this.outputUnigrams = outputUnigrams;gramSize = new CircularSequence();}
| [
"public",
"void",
"setOutputUnigrams",
"(",
"boolean",
"outputUnigrams",
")",
"{",
"this",
".",
"outputUnigrams",
"=",
"outputUnigrams",
";",
"gramSize",
"=",
"new",
"CircularSequence",
"(",
")",
";",
"}"
] | public void SetOutputUnigrams(bool outputUnigrams){this.outputUnigrams = outputUnigrams;gramSize = new CircularSequence(this);}
| train | false |
9,923 | public TypeAsPayloadTokenFilter create(TokenStream input) {return new TypeAsPayloadTokenFilter(input);}
| [
"public",
"TypeAsPayloadTokenFilter",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"TypeAsPayloadTokenFilter",
"(",
"input",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new TypeAsPayloadTokenFilter(input);}
| train | false |
9,924 | public CreateIndexResult createIndex(CreateIndexRequest request) {request = beforeClientExecution(request);return executeCreateIndex(request);}
| [
"public",
"CreateIndexResult",
"createIndex",
"(",
"CreateIndexRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateIndex",
"(",
"request",
")",
";",
"}"
] | public virtual CreateIndexResponse CreateIndex(CreateIndexRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIndexRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIndexResponseUnmarshaller.Instance;return Invoke<CreateIndexResponse>(request, options);}
| train | true |
9,925 | public QualityQuery(String queryID, Map<String,String> nameValPairs) {this.queryID = queryID;this.nameValPairs = nameValPairs;}
| [
"public",
"QualityQuery",
"(",
"String",
"queryID",
",",
"Map",
"<",
"String",
",",
"String",
">",
"nameValPairs",
")",
"{",
"this",
".",
"queryID",
"=",
"queryID",
";",
"this",
".",
"nameValPairs",
"=",
"nameValPairs",
";",
"}"
] | public QualityQuery(string queryID, IDictionary<string, string> nameValPairs){this.queryID = queryID;this.nameValPairs = nameValPairs;}
| train | false |
9,926 | public void addFirst(E object) {addFirstImpl(object);}
| [
"public",
"void",
"addFirst",
"(",
"E",
"object",
")",
"{",
"addFirstImpl",
"(",
"object",
")",
";",
"}"
] | public virtual void addFirst(E @object){addFirstImpl(@object);}
| train | false |
9,927 | public ValidateConfigurationSettingsRequest(String applicationName, java.util.List<ConfigurationOptionSetting> optionSettings) {setApplicationName(applicationName);setOptionSettings(optionSettings);}
| [
"public",
"ValidateConfigurationSettingsRequest",
"(",
"String",
"applicationName",
",",
"java",
".",
"util",
".",
"List",
"<",
"ConfigurationOptionSetting",
">",
"optionSettings",
")",
"{",
"setApplicationName",
"(",
"applicationName",
")",
";",
"setOptionSettings",
"(... | public ValidateConfigurationSettingsRequest(string applicationName, List<ConfigurationOptionSetting> optionSettings){_applicationName = applicationName;_optionSettings = optionSettings;}
| train | false |
9,928 | public static FileKey exact(File directory, FS fs) {return new FileKey(directory, fs);}
| [
"public",
"static",
"FileKey",
"exact",
"(",
"File",
"directory",
",",
"FS",
"fs",
")",
"{",
"return",
"new",
"FileKey",
"(",
"directory",
",",
"fs",
")",
";",
"}"
] | public static RepositoryCache.FileKey Exact(FilePath directory, FS fs){return new RepositoryCache.FileKey(directory, fs);}
| train | false |
9,929 | public void removeScale() {remove1stProperty(PropertyIDMap.PID_SCALE);}
| [
"public",
"void",
"removeScale",
"(",
")",
"{",
"remove1stProperty",
"(",
"PropertyIDMap",
".",
"PID_SCALE",
")",
";",
"}"
] | public void RemoveScale(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_SCALE);}
| train | false |
9,930 | public DocumentDictionary(IndexReader reader, String field, String weightField, String payloadField, String contextsField) {this.reader = reader;this.field = field;this.weightField = weightField;this.payloadField = payloadField;this.contextsField = contextsField;}
| [
"public",
"DocumentDictionary",
"(",
"IndexReader",
"reader",
",",
"String",
"field",
",",
"String",
"weightField",
",",
"String",
"payloadField",
",",
"String",
"contextsField",
")",
"{",
"this",
".",
"reader",
"=",
"reader",
";",
"this",
".",
"field",
"=",
... | public DocumentDictionary(IndexReader reader, string field, string weightField, string payloadField, string contextsField){this.m_reader = reader;this.field = field;this.weightField = weightField;this.m_payloadField = payloadField;this.m_contextsField = contextsField;}
| train | false |
9,932 | @Override public void clear() {synchronized (mutex) {c.clear();}}
| [
"@",
"Override",
"public",
"void",
"clear",
"(",
")",
"{",
"synchronized",
"(",
"mutex",
")",
"{",
"c",
".",
"clear",
"(",
")",
";",
"}",
"}"
] | public virtual void clear(){lock (mutex){c.clear();}}
| train | false |
9,933 | public boolean hasNext() {return _nextIndex < _endIx;}
| [
"public",
"boolean",
"hasNext",
"(",
")",
"{",
"return",
"_nextIndex",
"<",
"_endIx",
";",
"}"
] | public bool HasNext(){return _nextIndex < _endIx;}
| train | false |
9,934 | public AssociateVirtualInterfaceResult associateVirtualInterface(AssociateVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeAssociateVirtualInterface(request);}
| [
"public",
"AssociateVirtualInterfaceResult",
"associateVirtualInterface",
"(",
"AssociateVirtualInterfaceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateVirtualInterface",
"(",
"request",
")",
";",
... | public virtual AssociateVirtualInterfaceResponse AssociateVirtualInterface(AssociateVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateVirtualInterfaceResponseUnmarshaller.Instance;ret... | train | true |
9,935 | public DoubleValuesSource makeDistanceValueSource(Point queryPoint) {return makeDistanceValueSource(queryPoint, 1.0);}
| [
"public",
"DoubleValuesSource",
"makeDistanceValueSource",
"(",
"Point",
"queryPoint",
")",
"{",
"return",
"makeDistanceValueSource",
"(",
"queryPoint",
",",
"1.0",
")",
";",
"}"
] | public virtual ValueSource MakeDistanceValueSource(IPoint queryPoint){return MakeDistanceValueSource(queryPoint, 1.0);}
| train | false |
9,936 | public float getTokenScore() {position += posIncAtt.getPositionIncrement();String termText = termAtt.toString();WeightedSpanTerm weightedSpanTerm;if ((weightedSpanTerm = fieldWeightedSpanTerms.get(termText)) == null) {return 0;}if (weightedSpanTerm.positionSensitive &&!weightedSpanTerm.checkPosition(position)) {return ... | [
"public",
"float",
"getTokenScore",
"(",
")",
"{",
"position",
"+=",
"posIncAtt",
".",
"getPositionIncrement",
"(",
")",
";",
"String",
"termText",
"=",
"termAtt",
".",
"toString",
"(",
")",
";",
"WeightedSpanTerm",
"weightedSpanTerm",
";",
"if",
"(",
"(",
"... | public virtual float GetTokenScore(){position += posIncAtt.PositionIncrement;string termText = termAtt.ToString();WeightedSpanTerm weightedSpanTerm;if (!fieldWeightedSpanTerms.TryGetValue(termText, out weightedSpanTerm) || weightedSpanTerm == null){return 0;}if (weightedSpanTerm.IsPositionSensitive &&!weightedSpanTerm.... | train | false |
9,937 | public E pollFirst() {Map.Entry<E, Object> entry = backingMap.pollFirstEntry();return (entry == null) ? null : entry.getKey();}
| [
"public",
"E",
"pollFirst",
"(",
")",
"{",
"Map",
".",
"Entry",
"<",
"E",
",",
"Object",
">",
"entry",
"=",
"backingMap",
".",
"pollFirstEntry",
"(",
")",
";",
"return",
"(",
"entry",
"==",
"null",
")",
"?",
"null",
":",
"entry",
".",
"getKey",
"("... | public virtual E pollFirst(){java.util.MapClass.Entry<E, object> entry = backingMap.pollFirstEntry();return (entry == null) ? default(E) : entry.getKey();}
| train | false |
9,938 | public void enterEveryRule(ParserRuleContext ctx) {System.out.println("enter " + getRuleNames()[ctx.getRuleIndex()] +", LT(1)=" + _input.LT(1).getText());}
| [
"public",
"void",
"enterEveryRule",
"(",
"ParserRuleContext",
"ctx",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"enter \"",
"+",
"getRuleNames",
"(",
")",
"[",
"ctx",
".",
"getRuleIndex",
"(",
")",
"]",
"+",
"\", LT(1)=\"",
"+",
"_input",
"."... | public virtual void EnterEveryRule(ParserRuleContext ctx){Output.WriteLine("enter " + this._enclosing.RuleNames[ctx.RuleIndex] + ", LT(1)=" + this._enclosing._input.LT(1).Text);}
| train | false |
9,939 | public ShortBuffer put(int index, short c) {checkIndex(index);byteBuffer.putShort(index * SizeOf.SHORT, c);return this;}
| [
"public",
"ShortBuffer",
"put",
"(",
"int",
"index",
",",
"short",
"c",
")",
"{",
"checkIndex",
"(",
"index",
")",
";",
"byteBuffer",
".",
"putShort",
"(",
"index",
"*",
"SizeOf",
".",
"SHORT",
",",
"c",
")",
";",
"return",
"this",
";",
"}"
] | public override java.nio.ShortBuffer put(int index, short c){checkIndex(index);byteBuffer.putShort(index * libcore.io.SizeOf.SHORT, c);return this;}
| train | false |
9,940 | public void notifyUpdateCell(Cell cell) {_bookEvaluator.notifyUpdateCell(new HSSFEvaluationCell((HSSFCell)cell));}
| [
"public",
"void",
"notifyUpdateCell",
"(",
"Cell",
"cell",
")",
"{",
"_bookEvaluator",
".",
"notifyUpdateCell",
"(",
"new",
"HSSFEvaluationCell",
"(",
"(",
"HSSFCell",
")",
"cell",
")",
")",
";",
"}"
] | public void NotifyUpdateCell(ICell cell){_bookEvaluator.NotifyUpdateCell(new HSSFEvaluationCell(cell));}
| train | false |
9,941 | public void moveCell(HSSFCell cell, short newColumn) {if(cells.length > newColumn && cells[newColumn] != null) {throw new IllegalArgumentException("Asked to move cell to column " + newColumn + " but there's already a cell there");}if(! cells[cell.getColumnIndex()].equals(cell)) {throw new IllegalArgumentException("Aske... | [
"public",
"void",
"moveCell",
"(",
"HSSFCell",
"cell",
",",
"short",
"newColumn",
")",
"{",
"if",
"(",
"cells",
".",
"length",
">",
"newColumn",
"&&",
"cells",
"[",
"newColumn",
"]",
"!=",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
... | public void MoveCell(ICell cell, int newColumn){if(cells.ContainsKey(newColumn)){throw new ArgumentException("Asked to move cell to column " + newColumn + " but there's already a cell there");}bool existflag = false;foreach (ICell cellinrow in cells.Values){if (cellinrow.Equals(cell)){existflag = true;break;}}if (!exis... | train | false |
9,942 | public void connect(PipedWriter src) throws IOException {src.connect(this);}
| [
"public",
"void",
"connect",
"(",
"PipedWriter",
"src",
")",
"throws",
"IOException",
"{",
"src",
".",
"connect",
"(",
"this",
")",
";",
"}"
] | public virtual void connect(java.io.PipedWriter src){throw new System.NotImplementedException();}
| train | false |
9,943 | public void serialize(LittleEndianOutput out) {out.writeShort(getFirstColumn());out.writeShort(getLastColumn());out.writeShort(getColumnWidth());out.writeShort(getXFIndex());out.writeShort(_options);out.writeShort(field_6_reserved);}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"getFirstColumn",
"(",
")",
")",
";",
"out",
".",
"writeShort",
"(",
"getLastColumn",
"(",
")",
")",
";",
"out",
".",
"writeShort",
"(",
"getColumnWid... | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(FirstColumn);out1.WriteShort(LastColumn);out1.WriteShort(ColumnWidth);out1.WriteShort(XFIndex);out1.WriteShort(_options);out1.WriteShort(field_6_reserved);}
| train | false |
9,944 | public ModifyWorkspaceCreationPropertiesResult modifyWorkspaceCreationProperties(ModifyWorkspaceCreationPropertiesRequest request) {request = beforeClientExecution(request);return executeModifyWorkspaceCreationProperties(request);}
| [
"public",
"ModifyWorkspaceCreationPropertiesResult",
"modifyWorkspaceCreationProperties",
"(",
"ModifyWorkspaceCreationPropertiesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyWorkspaceCreationProperties",
"... | public virtual ModifyWorkspaceCreationPropertiesResponse ModifyWorkspaceCreationProperties(ModifyWorkspaceCreationPropertiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyWorkspaceCreationPropertiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyWorkspaceCreationPro... | train | false |
9,945 | public BoolDocValues(ValueSource vs) {this.vs = vs;}
| [
"public",
"BoolDocValues",
"(",
"ValueSource",
"vs",
")",
"{",
"this",
".",
"vs",
"=",
"vs",
";",
"}"
] | public BoolDocValues(ValueSource vs){this.m_vs = vs;}
| train | false |
9,946 | public void reset() {nextWrite--;while(count > 0) {if (nextWrite == -1) {nextWrite = positions.length - 1;}positions[nextWrite--].reset();count--;}nextWrite = 0;nextPos = 0;count = 0;}
| [
"public",
"void",
"reset",
"(",
")",
"{",
"nextWrite",
"--",
";",
"while",
"(",
"count",
">",
"0",
")",
"{",
"if",
"(",
"nextWrite",
"==",
"-",
"1",
")",
"{",
"nextWrite",
"=",
"positions",
".",
"length",
"-",
"1",
";",
"}",
"positions",
"[",
"ne... | public void Reset(){nextWrite--;while (count > 0){if (nextWrite == -1){nextWrite = positions.Length - 1;}positions[nextWrite--].Reset();count--;}nextWrite = 0;nextPos = 0;count = 0;}
| train | false |
9,947 | public UpdateDirectConnectGatewayAssociationResult updateDirectConnectGatewayAssociation(UpdateDirectConnectGatewayAssociationRequest request) {request = beforeClientExecution(request);return executeUpdateDirectConnectGatewayAssociation(request);}
| [
"public",
"UpdateDirectConnectGatewayAssociationResult",
"updateDirectConnectGatewayAssociation",
"(",
"UpdateDirectConnectGatewayAssociationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateDirectConnectGatewayA... | public virtual UpdateDirectConnectGatewayAssociationResponse UpdateDirectConnectGatewayAssociation(UpdateDirectConnectGatewayAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDirectConnectGatewayAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDire... | train | true |
9,948 | public EditPhotoStoreRequest() {super("CloudPhoto", "2017-07-11", "EditPhotoStore", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"EditPhotoStoreRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"EditPhotoStore\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public EditPhotoStoreRequest(): base("CloudPhoto", "2017-07-11", "EditPhotoStore", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
9,949 | public String toString() {return "<matchNoDocsQueryNode/>";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"<matchNoDocsQueryNode/>\"",
";",
"}"
] | public override string ToString(){return "<matchNoDocsQueryNode/>";}
| train | false |
9,950 | public AddCommand addFilepattern(String filepattern) {checkCallable();filepatterns.add(filepattern);return this;}
| [
"public",
"AddCommand",
"addFilepattern",
"(",
"String",
"filepattern",
")",
"{",
"checkCallable",
"(",
")",
";",
"filepatterns",
".",
"add",
"(",
"filepattern",
")",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.AddCommand AddFilepattern(string filepattern){CheckCallable();filepatterns.AddItem(filepattern);return this;}
| train | false |
9,951 | public String toString() {return '[' + "HEADERFOOTER" + "] (0x" +Integer.toHexString(sid).toUpperCase(Locale.ROOT) + ")\n" +" rawData=" + HexDump.toHex(_rawData) + "\n" +"[/" + "HEADERFOOTER" + "]\n";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"'['",
"+",
"\"HEADERFOOTER\"",
"+",
"\"] (0x\"",
"+",
"Integer",
".",
"toHexString",
"(",
"sid",
")",
".",
"toUpperCase",
"(",
"Locale",
".",
"ROOT",
")",
"+",
"\")\\n\"",
"+",
"\" rawData=\"",
"+"... | public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append("[").Append("HEADERFOOTER").Append("] (0x");sb.Append(StringUtil.ToHexString(sid).ToUpper() + ")\n");sb.Append(" rawData=").Append(HexDump.ToHex(_rawData)).Append("\n");sb.Append("[/").Append("HEADERFOOTER").Append("]\n");return sb.ToSt... | train | false |
9,952 | public UpdateBrokerResult updateBroker(UpdateBrokerRequest request) {request = beforeClientExecution(request);return executeUpdateBroker(request);}
| [
"public",
"UpdateBrokerResult",
"updateBroker",
"(",
"UpdateBrokerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateBroker",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateBrokerResponse UpdateBroker(UpdateBrokerRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBrokerRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBrokerResponseUnmarshaller.Instance;return Invoke<UpdateBrokerResponse>(request, options);}
| train | true |
9,953 | public FormatRecord clone() {return copy();}
| [
"public",
"FormatRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] | public override Object Clone(){return this;}
| train | false |
9,954 | public AssociateS3ResourcesResult associateS3Resources(AssociateS3ResourcesRequest request) {request = beforeClientExecution(request);return executeAssociateS3Resources(request);}
| [
"public",
"AssociateS3ResourcesResult",
"associateS3Resources",
"(",
"AssociateS3ResourcesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateS3Resources",
"(",
"request",
")",
";",
"}"
] | public virtual AssociateS3ResourcesResponse AssociateS3Resources(AssociateS3ResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateS3ResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateS3ResourcesResponseUnmarshaller.Instance;return Invoke<AssociateS3Res... | train | true |
9,955 | public UnknownRecord(int id, byte[] data) {_sid = id & 0xFFFF;_rawData = data;}
| [
"public",
"UnknownRecord",
"(",
"int",
"id",
",",
"byte",
"[",
"]",
"data",
")",
"{",
"_sid",
"=",
"id",
"&",
"0xFFFF",
";",
"_rawData",
"=",
"data",
";",
"}"
] | public UnknownRecord(int id, byte[] data){_sid = id & 0xFFFF;_rawData = data;}
| train | false |
9,957 | public int getRawValue(final int holder){return (holder & _mask);}
| [
"public",
"int",
"getRawValue",
"(",
"final",
"int",
"holder",
")",
"{",
"return",
"(",
"holder",
"&",
"_mask",
")",
";",
"}"
] | public int GetRawValue(int holder){return (holder & this._mask);}
| train | false |
9,958 | public CancelResizeResult cancelResize(CancelResizeRequest request) {request = beforeClientExecution(request);return executeCancelResize(request);}
| [
"public",
"CancelResizeResult",
"cancelResize",
"(",
"CancelResizeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCancelResize",
"(",
"request",
")",
";",
"}"
] | public virtual CancelResizeResponse CancelResize(CancelResizeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelResizeRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelResizeResponseUnmarshaller.Instance;return Invoke<CancelResizeResponse>(request, options);}
| train | true |
9,959 | public CreateTransitGatewayRouteResult createTransitGatewayRoute(CreateTransitGatewayRouteRequest request) {request = beforeClientExecution(request);return executeCreateTransitGatewayRoute(request);}
| [
"public",
"CreateTransitGatewayRouteResult",
"createTransitGatewayRoute",
"(",
"CreateTransitGatewayRouteRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateTransitGatewayRoute",
"(",
"request",
")",
";",
... | public virtual CreateTransitGatewayRouteResponse CreateTransitGatewayRoute(CreateTransitGatewayRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayRouteResponseUnmarshaller.Instance;ret... | train | true |
9,960 | public FastVectorHighlighter( boolean phraseHighlight, boolean fieldMatch,FragListBuilder fragListBuilder, FragmentsBuilder fragmentsBuilder ){this.phraseHighlight = phraseHighlight;this.fieldMatch = fieldMatch;this.fragListBuilder = fragListBuilder;this.fragmentsBuilder = fragmentsBuilder;}
| [
"public",
"FastVectorHighlighter",
"(",
"boolean",
"phraseHighlight",
",",
"boolean",
"fieldMatch",
",",
"FragListBuilder",
"fragListBuilder",
",",
"FragmentsBuilder",
"fragmentsBuilder",
")",
"{",
"this",
".",
"phraseHighlight",
"=",
"phraseHighlight",
";",
"this",
"."... | public FastVectorHighlighter(bool phraseHighlight, bool fieldMatch,IFragListBuilder fragListBuilder, IFragmentsBuilder fragmentsBuilder){this.phraseHighlight = phraseHighlight;this.fieldMatch = fieldMatch;this.fragListBuilder = fragListBuilder;this.fragmentsBuilder = fragmentsBuilder;}
| train | false |
9,961 | public SetTypeDefaultVersionResult setTypeDefaultVersion(SetTypeDefaultVersionRequest request) {request = beforeClientExecution(request);return executeSetTypeDefaultVersion(request);}
| [
"public",
"SetTypeDefaultVersionResult",
"setTypeDefaultVersion",
"(",
"SetTypeDefaultVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSetTypeDefaultVersion",
"(",
"request",
")",
";",
"}"
] | public virtual SetTypeDefaultVersionResponse SetTypeDefaultVersion(SetTypeDefaultVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetTypeDefaultVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = SetTypeDefaultVersionResponseUnmarshaller.Instance;return Invoke<SetTypeDe... | train | false |
9,962 | public final long computeNorm(FieldInvertState state) {return get(state.getName()).computeNorm(state);}
| [
"public",
"final",
"long",
"computeNorm",
"(",
"FieldInvertState",
"state",
")",
"{",
"return",
"get",
"(",
"state",
".",
"getName",
"(",
")",
")",
".",
"computeNorm",
"(",
"state",
")",
";",
"}"
] | public override sealed long ComputeNorm(FieldInvertState state){return Get(state.Name).ComputeNorm(state);}
| train | false |
9,963 | public CreateCustomVerificationEmailTemplateResult createCustomVerificationEmailTemplate(CreateCustomVerificationEmailTemplateRequest request) {request = beforeClientExecution(request);return executeCreateCustomVerificationEmailTemplate(request);}
| [
"public",
"CreateCustomVerificationEmailTemplateResult",
"createCustomVerificationEmailTemplate",
"(",
"CreateCustomVerificationEmailTemplateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateCustomVerificationEma... | public virtual CreateCustomVerificationEmailTemplateResponse CreateCustomVerificationEmailTemplate(CreateCustomVerificationEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCustomVerificationEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCust... | train | true |
9,964 | public static double median(double[] v) {double r = Double.NaN;if (v!=null && v.length >= 1) {int n = v.length;Arrays.sort(v);r = (n % 2 == 0)? (v[n / 2] + v[n / 2 - 1]) / 2: v[n / 2];}return r;}
| [
"public",
"static",
"double",
"median",
"(",
"double",
"[",
"]",
"v",
")",
"{",
"double",
"r",
"=",
"Double",
".",
"NaN",
";",
"if",
"(",
"v",
"!=",
"null",
"&&",
"v",
".",
"length",
">=",
"1",
")",
"{",
"int",
"n",
"=",
"v",
".",
"length",
"... | public static double median(double[] v){double r = double.NaN;if (v != null && v.Length >= 1){int n = v.Length;Array.Sort(v);r = (n % 2 == 0)? (v[n / 2] + v[n / 2 - 1]) / 2: v[n / 2];}return r;}
| train | false |
9,965 | public void walk(ParseTreeListener listener, ParseTree t) {if ( t instanceof ErrorNode) {listener.visitErrorNode((ErrorNode)t);return;}else if ( t instanceof TerminalNode) {listener.visitTerminal((TerminalNode)t);return;}RuleNode r = (RuleNode)t;enterRule(listener, r);int n = r.getChildCount();for (int i = 0; i<n; i++)... | [
"public",
"void",
"walk",
"(",
"ParseTreeListener",
"listener",
",",
"ParseTree",
"t",
")",
"{",
"if",
"(",
"t",
"instanceof",
"ErrorNode",
")",
"{",
"listener",
".",
"visitErrorNode",
"(",
"(",
"ErrorNode",
")",
"t",
")",
";",
"return",
";",
"}",
"else"... | public virtual void Walk(IParseTreeListener listener, IParseTree t){if (t is IErrorNode){listener.VisitErrorNode((IErrorNode)t);return;}else{if (t is ITerminalNode){listener.VisitTerminal((ITerminalNode)t);return;}}IRuleNode r = (IRuleNode)t;EnterRule(listener, r);int n = r.ChildCount;for (int i = 0; i < n; i++){Walk(l... | train | false |
9,966 | public SCLRecord(RecordInputStream in) {field_1_numerator = in.readShort();field_2_denominator = in.readShort();}
| [
"public",
"SCLRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_numerator",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_2_denominator",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] | public SCLRecord(RecordInputStream in1){field_1_numerator = in1.ReadShort();field_2_denominator = in1.ReadShort();}
| train | false |
9,967 | public boolean add(final T value) {int index = elements.size();elements.add(value);valueKeyMap.put(value, index);return true;}
| [
"public",
"boolean",
"add",
"(",
"final",
"T",
"value",
")",
"{",
"int",
"index",
"=",
"elements",
".",
"size",
"(",
")",
";",
"elements",
".",
"add",
"(",
"value",
")",
";",
"valueKeyMap",
".",
"put",
"(",
"value",
",",
"index",
")",
";",
"return"... | public bool Add(T value){int index = elements.Count;elements.Add(value);if (valueKeyMap.ContainsKey(value)){valueKeyMap[value] = index;}else{valueKeyMap.Add(value, index);}return true;}
| train | false |
9,968 | public RawText(byte[] input) {this(input, RawParseUtils.lineMap(input, 0, input.length));}
| [
"public",
"RawText",
"(",
"byte",
"[",
"]",
"input",
")",
"{",
"this",
"(",
"input",
",",
"RawParseUtils",
".",
"lineMap",
"(",
"input",
",",
"0",
",",
"input",
".",
"length",
")",
")",
";",
"}"
] | public RawText(byte[] input){content = input;lines = RawParseUtils.LineMap(content, 0, content.Length);}
| train | false |
9,969 | public void writeInt(int v) {checkPosition(4);int i = _writeIndex;_buf[i++] = (byte)((v >>> 0) & 0xFF);_buf[i++] = (byte)((v >>> 8) & 0xFF);_buf[i++] = (byte)((v >>> 16) & 0xFF);_buf[i++] = (byte)((v >>> 24) & 0xFF);_writeIndex = i;}
| [
"public",
"void",
"writeInt",
"(",
"int",
"v",
")",
"{",
"checkPosition",
"(",
"4",
")",
";",
"int",
"i",
"=",
"_writeIndex",
";",
"_buf",
"[",
"i",
"++",
"]",
"=",
"(",
"byte",
")",
"(",
"(",
"v",
">",
">",
">",
"0",
")",
"&",
"0xFF",
")",
... | public void WriteInt(int v){CheckPosition(4);int i = _writeIndex;_buf[i++] = (byte)((v >> 0) & 0xFF);_buf[i++] = (byte)((v >> 8) & 0xFF);_buf[i++] = (byte)((v >> 16) & 0xFF);_buf[i++] = (byte)((v >> 24) & 0xFF);_writeIndex = i;}
| train | false |
9,970 | public GetRepoBatchRequest() {super("cr", "2016-06-07", "GetRepoBatch", "cr");setUriPattern("/batchsearch");setMethod(MethodType.GET);}
| [
"public",
"GetRepoBatchRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"GetRepoBatch\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/batchsearch\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"GET",
")",
";",
"}"
] | public GetRepoBatchRequest(): base("cr", "2016-06-07", "GetRepoBatch", "cr", "openAPI"){UriPattern = "/batchsearch";Method = MethodType.GET;}
| train | false |
9,971 | public MoPenDoRecognizeRequest() {super("MoPen", "2018-02-11", "MoPenDoRecognize", "mopen");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
| [
"public",
"MoPenDoRecognizeRequest",
"(",
")",
"{",
"super",
"(",
"\"MoPen\"",
",",
"\"2018-02-11\"",
",",
"\"MoPenDoRecognize\"",
",",
"\"mopen\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST"... | public MoPenDoRecognizeRequest(): base("MoPen", "2018-02-11", "MoPenDoRecognize", "mopen", "openAPI"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
| train | false |
9,973 | public DeleteApnsSandboxChannelResult deleteApnsSandboxChannel(DeleteApnsSandboxChannelRequest request) {request = beforeClientExecution(request);return executeDeleteApnsSandboxChannel(request);}
| [
"public",
"DeleteApnsSandboxChannelResult",
"deleteApnsSandboxChannel",
"(",
"DeleteApnsSandboxChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteApnsSandboxChannel",
"(",
"request",
")",
";",
"}"... | public virtual DeleteApnsSandboxChannelResponse DeleteApnsSandboxChannel(DeleteApnsSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApnsSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApnsSandboxChannelResponseUnmarshaller.Instance;return I... | train | true |
9,974 | public short readShort() {if (shouldSkipEncryptionOnCurrentRecord) {readPlain(buffer, 0, LittleEndianConsts.SHORT_SIZE);return LittleEndian.getShort(buffer);} else {return ccis.readShort();}}
| [
"public",
"short",
"readShort",
"(",
")",
"{",
"if",
"(",
"shouldSkipEncryptionOnCurrentRecord",
")",
"{",
"readPlain",
"(",
"buffer",
",",
"0",
",",
"LittleEndianConsts",
".",
"SHORT_SIZE",
")",
";",
"return",
"LittleEndian",
".",
"getShort",
"(",
"buffer",
"... | public short ReadShort(){return (short)_rc4.Xorshort(_le.ReadUShort());}
| train | false |
9,975 | public DeleteEndpointResult deleteEndpoint(DeleteEndpointRequest request) {request = beforeClientExecution(request);return executeDeleteEndpoint(request);}
| [
"public",
"DeleteEndpointResult",
"deleteEndpoint",
"(",
"DeleteEndpointRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteEndpoint",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteEndpointResponse DeleteEndpoint(DeleteEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEndpointResponseUnmarshaller.Instance;return Invoke<DeleteEndpointResponse>(request, options);}
| train | true |
9,976 | @Override public int lastIndexOf(Object object) {return list.lastIndexOf(object);}
| [
"@",
"Override",
"public",
"int",
"lastIndexOf",
"(",
"Object",
"object",
")",
"{",
"return",
"list",
".",
"lastIndexOf",
"(",
"object",
")",
";",
"}"
] | public virtual int lastIndexOf(object @object){return list.lastIndexOf(@object);}
| train | false |
9,978 | public GetIndustryInfoChildrenListRequest() {super("industry-brain", "2018-07-12", "GetIndustryInfoChildrenList");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"GetIndustryInfoChildrenListRequest",
"(",
")",
"{",
"super",
"(",
"\"industry-brain\"",
",",
"\"2018-07-12\"",
",",
"\"GetIndustryInfoChildrenList\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public GetIndustryInfoChildrenListRequest(): base("industry-brain", "2018-07-12", "GetIndustryInfoChildrenList"){Protocol = ProtocolType.HTTPS;}
| train | false |
9,979 | public Credential(String keyId, String secret, int expiredHours) {this.accessKeyId = keyId;this.accessSecret = secret;this.refreshDate = new Date();setExpiredDate(expiredHours);}
| [
"public",
"Credential",
"(",
"String",
"keyId",
",",
"String",
"secret",
",",
"int",
"expiredHours",
")",
"{",
"this",
".",
"accessKeyId",
"=",
"keyId",
";",
"this",
".",
"accessSecret",
"=",
"secret",
";",
"this",
".",
"refreshDate",
"=",
"new",
"Date",
... | public Credential(string keyId, string secret, int expiredHours){AccessKeyId = keyId;AccessSecret = secret;RefreshDate = new DateTime();SetExpiredDate(expiredHours);}
| train | false |
9,980 | public KeywordMarkerFilterFactory(Map<String,String> args) {super(args);wordFiles = get(args, PROTECTED_TOKENS);stringPattern = get(args, PATTERN);ignoreCase = getBoolean(args, "ignoreCase", false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"KeywordMarkerFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"wordFiles",
"=",
"get",
"(",
"args",
",",
"PROTECTED_TOKENS",
")",
";",
"stringPattern",
"=",
"get",
"(",
"args",
",... | public KeywordMarkerFilterFactory(IDictionary<string, string> args): base(args){wordFiles = Get(args, PROTECTED_TOKENS);stringPattern = Get(args, PATTERN);ignoreCase = GetBoolean(args, "ignoreCase", false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
| train | false |
9,981 | public CellRangeAddress getAreaAt(int index) {return _regions[_startIndex + index];}
| [
"public",
"CellRangeAddress",
"getAreaAt",
"(",
"int",
"index",
")",
"{",
"return",
"_regions",
"[",
"_startIndex",
"+",
"index",
"]",
";",
"}"
] | public CellRangeAddress GetAreaAt(int index){return _regions[_startIndex + index];}
| train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.