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
546
public long ramBytesUsed() {return RamUsageEstimator.alignObjectSize(RamUsageEstimator.NUM_BYTES_OBJECT_HEADER + Integer.BYTES);}
[ "public", "long", "ramBytesUsed", "(", ")", "{", "return", "RamUsageEstimator", ".", "alignObjectSize", "(", "RamUsageEstimator", ".", "NUM_BYTES_OBJECT_HEADER", "+", "Integer", ".", "BYTES", ")", ";", "}" ]
public override long RamBytesUsed(){return RamUsageEstimator.AlignObjectSize(RamUsageEstimator.NUM_BYTES_OBJECT_HEADER + RamUsageEstimator.NUM_BYTES_INT32);}
train
false
547
public NoteRecord() {field_6_author = "";field_3_flags = 0;field_7_padding = DEFAULT_PADDING; }
[ "public", "NoteRecord", "(", ")", "{", "field_6_author", "=", "\"\"", ";", "field_3_flags", "=", "0", ";", "field_7_padding", "=", "DEFAULT_PADDING", ";", "}" ]
public NoteRecord(){field_6_author = "";field_3_flags = 0;field_7_padding = DEFAULT_PADDING; }
train
false
548
public CellReference[] getAllReferencedCells() {if(_isSingleCell) {return new CellReference[] { _firstCell, };}int minRow = Math.min(_firstCell.getRow(), _lastCell.getRow());int maxRow = Math.max(_firstCell.getRow(), _lastCell.getRow());int minCol = Math.min(_firstCell.getCol(), _lastCell.getCol());int maxCol = Math.m...
[ "public", "CellReference", "[", "]", "getAllReferencedCells", "(", ")", "{", "if", "(", "_isSingleCell", ")", "{", "return", "new", "CellReference", "[", "]", "{", "_firstCell", ",", "}", ";", "}", "int", "minRow", "=", "Math", ".", "min", "(", "_firstCe...
public CellReference[] GetAllReferencedCells(){if (_isSingleCell){return new CellReference[] { _firstCell, };}int minRow = Math.Min(_firstCell.Row, _lastCell.Row);int maxRow = Math.Max(_firstCell.Row, _lastCell.Row);int minCol = Math.Min(_firstCell.Col, _lastCell.Col);int maxCol = Math.Max(_firstCell.Col, _lastCell.Col...
train
false
549
public String[] listAll() {ensureOpen();String[] res = entries.keySet().toArray(new String[entries.size()]);for (int i = 0; i < res.length; i++) {res[i] = segmentName + res[i];}return res;}
[ "public", "String", "[", "]", "listAll", "(", ")", "{", "ensureOpen", "(", ")", ";", "String", "[", "]", "res", "=", "entries", ".", "keySet", "(", ")", ".", "toArray", "(", "new", "String", "[", "entries", ".", "size", "(", ")", "]", ")", ";", ...
public override string[] ListAll(){EnsureOpen();string[] res;if (writer != null){res = writer.ListAll();}else{res = entries.Keys.ToArray();string seg = IndexFileNames.ParseSegmentName(fileName);for (int i = 0; i < res.Length; i++){res[i] = seg + res[i];}}return res;}
train
false
550
public UpdateDataRetentionResult updateDataRetention(UpdateDataRetentionRequest request) {request = beforeClientExecution(request);return executeUpdateDataRetention(request);}
[ "public", "UpdateDataRetentionResult", "updateDataRetention", "(", "UpdateDataRetentionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateDataRetention", "(", "request", ")", ";", "}" ]
public virtual UpdateDataRetentionResponse UpdateDataRetention(UpdateDataRetentionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDataRetentionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDataRetentionResponseUnmarshaller.Instance;return Invoke<UpdateDataRetention...
train
true
551
public CreateDistributionRequest(DistributionConfig distributionConfig) {setDistributionConfig(distributionConfig);}
[ "public", "CreateDistributionRequest", "(", "DistributionConfig", "distributionConfig", ")", "{", "setDistributionConfig", "(", "distributionConfig", ")", ";", "}" ]
public CreateDistributionRequest(DistributionConfig distributionConfig){_distributionConfig = distributionConfig;}
train
false
552
public DescribeBatchPredictionsResult describeBatchPredictions(DescribeBatchPredictionsRequest request) {request = beforeClientExecution(request);return executeDescribeBatchPredictions(request);}
[ "public", "DescribeBatchPredictionsResult", "describeBatchPredictions", "(", "DescribeBatchPredictionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeBatchPredictions", "(", "request", ")", ";", "}"...
public virtual DescribeBatchPredictionsResponse DescribeBatchPredictions(DescribeBatchPredictionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeBatchPredictionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeBatchPredictionsResponseUnmarshaller.Instance;return I...
train
true
553
public float getScore(int index) {return scores[index];}
[ "public", "float", "getScore", "(", "int", "index", ")", "{", "return", "scores", "[", "index", "]", ";", "}" ]
public virtual float GetScore(int index){return scores[index];}
train
false
554
public BatchUpdatePhoneNumberResult batchUpdatePhoneNumber(BatchUpdatePhoneNumberRequest request) {request = beforeClientExecution(request);return executeBatchUpdatePhoneNumber(request);}
[ "public", "BatchUpdatePhoneNumberResult", "batchUpdatePhoneNumber", "(", "BatchUpdatePhoneNumberRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeBatchUpdatePhoneNumber", "(", "request", ")", ";", "}" ]
public virtual BatchUpdatePhoneNumberResponse BatchUpdatePhoneNumber(BatchUpdatePhoneNumberRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchUpdatePhoneNumberRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchUpdatePhoneNumberResponseUnmarshaller.Instance;return Invoke<Batc...
train
true
555
public LMSimilarity(CollectionModel collectionModel) {this.collectionModel = collectionModel;}
[ "public", "LMSimilarity", "(", "CollectionModel", "collectionModel", ")", "{", "this", ".", "collectionModel", "=", "collectionModel", ";", "}" ]
public LMSimilarity(ICollectionModel collectionModel){this.m_collectionModel = collectionModel;}
train
false
556
public GetGlobalSettingsResult getGlobalSettings(GetGlobalSettingsRequest request) {request = beforeClientExecution(request);return executeGetGlobalSettings(request);}
[ "public", "GetGlobalSettingsResult", "getGlobalSettings", "(", "GetGlobalSettingsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetGlobalSettings", "(", "request", ")", ";", "}" ]
public virtual GetGlobalSettingsResponse GetGlobalSettings(GetGlobalSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGlobalSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGlobalSettingsResponseUnmarshaller.Instance;return Invoke<GetGlobalSettingsResponse>(re...
train
true
557
public CreateHITTypeResult createHITType(CreateHITTypeRequest request) {request = beforeClientExecution(request);return executeCreateHITType(request);}
[ "public", "CreateHITTypeResult", "createHITType", "(", "CreateHITTypeRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateHITType", "(", "request", ")", ";", "}" ]
public virtual CreateHITTypeResponse CreateHITType(CreateHITTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHITTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHITTypeResponseUnmarshaller.Instance;return Invoke<CreateHITTypeResponse>(request, options);}
train
true
558
public MLTConfig build() {return new MLTConfig(this);}
[ "public", "MLTConfig", "build", "(", ")", "{", "return", "new", "MLTConfig", "(", "this", ")", ";", "}" ]
public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}
train
false
559
public CharsRef(String string) {this.chars = string.toCharArray();this.offset = 0;this.length = chars.length;}
[ "public", "CharsRef", "(", "String", "string", ")", "{", "this", ".", "chars", "=", "string", ".", "toCharArray", "(", ")", ";", "this", ".", "offset", "=", "0", ";", "this", ".", "length", "=", "chars", ".", "length", ";", "}" ]
public CharsRef(string @string){this.chars = @string.ToCharArray();this.Offset = 0;this.Length = chars.Length;}
train
false
560
public ListFargateProfilesResult listFargateProfiles(ListFargateProfilesRequest request) {request = beforeClientExecution(request);return executeListFargateProfiles(request);}
[ "public", "ListFargateProfilesResult", "listFargateProfiles", "(", "ListFargateProfilesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListFargateProfiles", "(", "request", ")", ";", "}" ]
public virtual ListFargateProfilesResponse ListFargateProfiles(ListFargateProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFargateProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFargateProfilesResponseUnmarshaller.Instance;return Invoke<ListFargateProfiles...
train
false
561
public Entry<K, V> floorEntry(K key) {return immutableCopy(findBounded(key, FLOOR));}
[ "public", "Entry", "<", "K", ",", "V", ">", "floorEntry", "(", "K", "key", ")", "{", "return", "immutableCopy", "(", "findBounded", "(", "key", ",", "FLOOR", ")", ")", ";", "}" ]
public java.util.MapClass.Entry<K, V> floorEntry(K key){return this._enclosing.immutableCopy(this.findBounded(key, java.util.TreeMap.Relation.FLOOR));}
train
false
562
public boolean equals( Object o ) {return o instanceof NorwegianStemmer;}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "return", "o", "instanceof", "NorwegianStemmer", ";", "}" ]
public override bool Equals(object o){return o is NorwegianStemmer;}
train
false
563
public DeleteVaultNotificationsResult deleteVaultNotifications(DeleteVaultNotificationsRequest request) {request = beforeClientExecution(request);return executeDeleteVaultNotifications(request);}
[ "public", "DeleteVaultNotificationsResult", "deleteVaultNotifications", "(", "DeleteVaultNotificationsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteVaultNotifications", "(", "request", ")", ";", "}"...
public virtual DeleteVaultNotificationsResponse DeleteVaultNotifications(DeleteVaultNotificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVaultNotificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVaultNotificationsResponseUnmarshaller.Instance;return I...
train
true
565
public synchronized void setRequireDimCount(String dimName, boolean v) {DimConfig ft = fieldTypes.get(dimName);if (ft == null) {ft = new DimConfig();fieldTypes.put(dimName, ft);}ft.requireDimCount = v;}
[ "public", "synchronized", "void", "setRequireDimCount", "(", "String", "dimName", ",", "boolean", "v", ")", "{", "DimConfig", "ft", "=", "fieldTypes", ".", "get", "(", "dimName", ")", ";", "if", "(", "ft", "==", "null", ")", "{", "ft", "=", "new", "Dim...
public virtual void SetRequireDimCount(string dimName, bool v){lock (this){if (!fieldTypes.TryGetValue(dimName, out DimConfig fieldType)){fieldTypes[dimName] = new DimConfig { RequireDimCount = v };}else{fieldType.RequireDimCount = v;}}}
train
false
566
public HSSFName getName(String name) {int nameIndex = getNameIndex(name);if (nameIndex < 0) {return null;}return names.get(nameIndex);}
[ "public", "HSSFName", "getName", "(", "String", "name", ")", "{", "int", "nameIndex", "=", "getNameIndex", "(", "name", ")", ";", "if", "(", "nameIndex", "<", "0", ")", "{", "return", "null", ";", "}", "return", "names", ".", "get", "(", "nameIndex", ...
public NPOI.SS.UserModel.IName GetName(String name){int nameIndex = GetNameIndex(name);if (nameIndex < 0){return null;}return (HSSFName)names[nameIndex];}
train
false
567
public ScriptBootstrapActionConfig(String path, java.util.List<String> args) {setPath(path);setArgs(args);}
[ "public", "ScriptBootstrapActionConfig", "(", "String", "path", ",", "java", ".", "util", ".", "List", "<", "String", ">", "args", ")", "{", "setPath", "(", "path", ")", ";", "setArgs", "(", "args", ")", ";", "}" ]
public ScriptBootstrapActionConfig(string path, List<string> args){_path = path;_args = args;}
train
false
568
public RegisterApplicationRevisionResult registerApplicationRevision(RegisterApplicationRevisionRequest request) {request = beforeClientExecution(request);return executeRegisterApplicationRevision(request);}
[ "public", "RegisterApplicationRevisionResult", "registerApplicationRevision", "(", "RegisterApplicationRevisionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRegisterApplicationRevision", "(", "request", ")", ...
public virtual RegisterApplicationRevisionResponse RegisterApplicationRevision(RegisterApplicationRevisionRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterApplicationRevisionRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterApplicationRevisionResponseUnmarshaller.In...
train
true
569
public SendTestEventNotificationResult sendTestEventNotification(SendTestEventNotificationRequest request) {request = beforeClientExecution(request);return executeSendTestEventNotification(request);}
[ "public", "SendTestEventNotificationResult", "sendTestEventNotification", "(", "SendTestEventNotificationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeSendTestEventNotification", "(", "request", ")", ";", ...
public virtual SendTestEventNotificationResponse SendTestEventNotification(SendTestEventNotificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendTestEventNotificationRequestMarshaller.Instance;options.ResponseUnmarshaller = SendTestEventNotificationResponseUnmarshaller.Instance;ret...
train
true
570
public void setRefLogIdent(PersonIdent pi) {refLogIdent = pi;}
[ "public", "void", "setRefLogIdent", "(", "PersonIdent", "pi", ")", "{", "refLogIdent", "=", "pi", ";", "}" ]
public virtual void SetRefLogIdent(PersonIdent pi){refLogIdent = pi;}
train
false
571
public GetDomainDeliverabilityCampaignResult getDomainDeliverabilityCampaign(GetDomainDeliverabilityCampaignRequest request) {request = beforeClientExecution(request);return executeGetDomainDeliverabilityCampaign(request);}
[ "public", "GetDomainDeliverabilityCampaignResult", "getDomainDeliverabilityCampaign", "(", "GetDomainDeliverabilityCampaignRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetDomainDeliverabilityCampaign", "(", "r...
public virtual GetDomainDeliverabilityCampaignResponse GetDomainDeliverabilityCampaign(GetDomainDeliverabilityCampaignRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainDeliverabilityCampaignRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainDeliverabilityCampaignRes...
train
false
572
public String toFormulaString() {StringBuilder b = new StringBuilder();b.append("{");for (int y = 0; y < _nRows; y++) {if (y > 0) {b.append(";");}for (int x = 0; x < _nColumns; x++) {if (x > 0) {b.append(",");}Object o = _arrayValues[getValueIndex(x, y)];b.append(getConstantText(o));}}b.append("}");return b.toString();...
[ "public", "String", "toFormulaString", "(", ")", "{", "StringBuilder", "b", "=", "new", "StringBuilder", "(", ")", ";", "b", ".", "append", "(", "\"{\"", ")", ";", "for", "(", "int", "y", "=", "0", ";", "y", "<", "_nRows", ";", "y", "++", ")", "{...
public override String ToFormulaString(){StringBuilder b = new StringBuilder();b.Append("{");for (int y = 0; y < RowCount; y++){if (y > 0){b.Append(";");}for (int x = 0; x < ColumnCount; x++){if (x > 0){b.Append(",");}Object o = _arrayValues.GetValue(GetValueIndex(x, y));b.Append(GetConstantText(o));}}b.Append("}");ret...
train
false
573
public ShingleFilterFactory(Map<String, String> args) {super(args);maxShingleSize = getInt(args, "maxShingleSize", ShingleFilter.DEFAULT_MAX_SHINGLE_SIZE);if (maxShingleSize < 2) {throw new IllegalArgumentException("Invalid maxShingleSize (" + maxShingleSize + ") - must be at least 2");}minShingleSize = getInt(args, "m...
[ "public", "ShingleFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "maxShingleSize", "=", "getInt", "(", "args", ",", "\"maxShingleSize\"", ",", "ShingleFilter", ".", "DEFAULT_MAX_SHINGLE_SIZE", "...
public ShingleFilterFactory(IDictionary<string, string> args): base(args){maxShingleSize = GetInt32(args, "maxShingleSize", ShingleFilter.DEFAULT_MAX_SHINGLE_SIZE);if (maxShingleSize < 2){throw new ArgumentOutOfRangeException("Invalid maxShingleSize (" + maxShingleSize + ") - must be at least 2");}minShingleSize = GetI...
train
false
574
public UpdateRelationalDatabaseParametersResult updateRelationalDatabaseParameters(UpdateRelationalDatabaseParametersRequest request) {request = beforeClientExecution(request);return executeUpdateRelationalDatabaseParameters(request);}
[ "public", "UpdateRelationalDatabaseParametersResult", "updateRelationalDatabaseParameters", "(", "UpdateRelationalDatabaseParametersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateRelationalDatabaseParameters",...
public virtual UpdateRelationalDatabaseParametersResponse UpdateRelationalDatabaseParameters(UpdateRelationalDatabaseParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRelationalDatabaseParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRelationalDataba...
train
true
575
public static Collection<ParseTree> findAllRuleNodes(ParseTree t, int ruleIndex) {return findAllNodes(t, ruleIndex, false);}
[ "public", "static", "Collection", "<", "ParseTree", ">", "findAllRuleNodes", "(", "ParseTree", "t", ",", "int", "ruleIndex", ")", "{", "return", "findAllNodes", "(", "t", ",", "ruleIndex", ",", "false", ")", ";", "}" ]
public static ICollection<IParseTree> FindAllRuleNodes(IParseTree t, int ruleIndex){return FindAllNodes(t, ruleIndex, false);}
train
false
576
public int getObjectCount() {return entryCount;}
[ "public", "int", "getObjectCount", "(", ")", "{", "return", "entryCount", ";", "}" ]
public virtual int GetObjectCount(){return entryCount;}
train
false
577
public ActionTransition(ATNState target, int ruleIndex, int actionIndex, boolean isCtxDependent) {super(target);this.ruleIndex = ruleIndex;this.actionIndex = actionIndex;this.isCtxDependent = isCtxDependent;}
[ "public", "ActionTransition", "(", "ATNState", "target", ",", "int", "ruleIndex", ",", "int", "actionIndex", ",", "boolean", "isCtxDependent", ")", "{", "super", "(", "target", ")", ";", "this", ".", "ruleIndex", "=", "ruleIndex", ";", "this", ".", "actionIn...
public ActionTransition(ATNState target, int ruleIndex, int actionIndex, bool isCtxDependent): base(target){this.ruleIndex = ruleIndex;this.actionIndex = actionIndex;this.isCtxDependent = isCtxDependent;}
train
false
578
public long get(int index) {final int blockOffset = index / valuesPerBlock;final long skip = ((long) blockOffset) << 3;try {in.seek(startPointer + skip);long block = in.readLong();final int offsetInBlock = index % valuesPerBlock;return (block >>> (offsetInBlock * bitsPerValue)) & mask;} catch (IOException e) {throw new...
[ "public", "long", "get", "(", "int", "index", ")", "{", "final", "int", "blockOffset", "=", "index", "/", "valuesPerBlock", ";", "final", "long", "skip", "=", "(", "(", "long", ")", "blockOffset", ")", "<<", "3", ";", "try", "{", "in", ".", "seek", ...
public override long Get(int index){int blockOffset = index / valuesPerBlock;long skip = ((long)blockOffset) << 3;try{@in.Seek(startPointer + skip);long block = @in.ReadInt64();int offsetInBlock = index % valuesPerBlock;return ((long)((ulong)block >> (offsetInBlock * m_bitsPerValue))) & mask;}catch (System.IO.IOExcepti...
train
false
579
public String getSignerType() {return "BEARERTOKEN";}
[ "public", "String", "getSignerType", "(", ")", "{", "return", "\"BEARERTOKEN\"", ";", "}" ]
public override string GetSignerType(){return "BEARERTOKEN";}
train
false
580
public PipedOutputStream(PipedInputStream target) throws IOException {connect(target);}
[ "public", "PipedOutputStream", "(", "PipedInputStream", "target", ")", "throws", "IOException", "{", "connect", "(", "target", ")", ";", "}" ]
public PipedOutputStream(java.io.PipedInputStream target){throw new System.NotImplementedException();}
train
false
581
public DeleteLedgerResult deleteLedger(DeleteLedgerRequest request) {request = beforeClientExecution(request);return executeDeleteLedger(request);}
[ "public", "DeleteLedgerResult", "deleteLedger", "(", "DeleteLedgerRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteLedger", "(", "request", ")", ";", "}" ]
public virtual DeleteLedgerResponse DeleteLedger(DeleteLedgerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLedgerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLedgerResponseUnmarshaller.Instance;return Invoke<DeleteLedgerResponse>(request, options);}
train
false
582
public GetCognitoEventsResult getCognitoEvents(GetCognitoEventsRequest request) {request = beforeClientExecution(request);return executeGetCognitoEvents(request);}
[ "public", "GetCognitoEventsResult", "getCognitoEvents", "(", "GetCognitoEventsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetCognitoEvents", "(", "request", ")", ";", "}" ]
public virtual GetCognitoEventsResponse GetCognitoEvents(GetCognitoEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCognitoEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCognitoEventsResponseUnmarshaller.Instance;return Invoke<GetCognitoEventsResponse>(request,...
train
true
583
public NameXPtg getNameXPtg(String name, SheetIdentifier sheet) {int sheetRefIndex = getSheetExtIx(sheet);return _iBook.getNameXPtg(name, sheetRefIndex, _uBook.getUDFFinder());}
[ "public", "NameXPtg", "getNameXPtg", "(", "String", "name", ",", "SheetIdentifier", "sheet", ")", "{", "int", "sheetRefIndex", "=", "getSheetExtIx", "(", "sheet", ")", ";", "return", "_iBook", ".", "getNameXPtg", "(", "name", ",", "sheetRefIndex", ",", "_uBook...
public Ptg GetNameXPtg(String name, SheetIdentifier sheet){int sheetRefIndex = GetSheetExtIx(sheet);return _iBook.GetNameXPtg(name, sheetRefIndex, _uBook.GetUDFFinder());}
train
false
584
public ListResolverEndpointsResult listResolverEndpoints(ListResolverEndpointsRequest request) {request = beforeClientExecution(request);return executeListResolverEndpoints(request);}
[ "public", "ListResolverEndpointsResult", "listResolverEndpoints", "(", "ListResolverEndpointsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListResolverEndpoints", "(", "request", ")", ";", "}" ]
public virtual ListResolverEndpointsResponse ListResolverEndpoints(ListResolverEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListResolverEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListResolverEndpointsResponseUnmarshaller.Instance;return Invoke<ListResol...
train
true
585
public String readLine() {try {return reader.readLine();} catch (IOException e) {throw new IOError(e);}}
[ "public", "String", "readLine", "(", ")", "{", "try", "{", "return", "reader", ".", "readLine", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "throw", "new", "IOError", "(", "e", ")", ";", "}", "}" ]
public string readLine(){try{return _reader.readLine();}catch (System.IO.IOException e){throw new java.io.IOError(e);}}
train
false
586
public int hash2(char carray[]) {int hash = 5381;for (int i = 0; i < carray.length; i++) {char d = carray[i];hash = ((hash << 5) + hash) + d & 0x00FF;hash = ((hash << 5) + hash) + d >> 8;}return hash;}
[ "public", "int", "hash2", "(", "char", "carray", "[", "]", ")", "{", "int", "hash", "=", "5381", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "carray", ".", "length", ";", "i", "++", ")", "{", "char", "d", "=", "carray", "[", "i", ...
public virtual int Hash2(char[] carray){int hash = 5381;for (int i = 0; i < carray.Length; i++){char d = carray[i];hash = ((hash << 5) + hash) + d & 0x00FF;hash = ((hash << 5) + hash) + d >> 8;}return hash;}
train
false
587
public static long toBookSheetColumn(int bookIndex, int sheetIndex, int columnIndex) {return ((bookIndex & 0xFFFFL) << 48) +((sheetIndex & 0xFFFFL) << 32) +((columnIndex & 0xFFFFL) << 0);}
[ "public", "static", "long", "toBookSheetColumn", "(", "int", "bookIndex", ",", "int", "sheetIndex", ",", "int", "columnIndex", ")", "{", "return", "(", "(", "bookIndex", "&", "0xFFFFL", ")", "<<", "48", ")", "+", "(", "(", "sheetIndex", "&", "0xFFFFL", "...
public static long ToBookSheetColumn(int bookIndex, int sheetIndex, int columnIndex){return ((bookIndex & 0xFFFFL) << 48) + ((sheetIndex & 0xFFFFL) << 32) + ((columnIndex & 0xFFFFL) << 0);}
train
false
588
public CreateConfigurationProfileResult createConfigurationProfile(CreateConfigurationProfileRequest request) {request = beforeClientExecution(request);return executeCreateConfigurationProfile(request);}
[ "public", "CreateConfigurationProfileResult", "createConfigurationProfile", "(", "CreateConfigurationProfileRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateConfigurationProfile", "(", "request", ")", ";...
public virtual CreateConfigurationProfileResponse CreateConfigurationProfile(CreateConfigurationProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConfigurationProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConfigurationProfileResponseUnmarshaller.Instanc...
train
false
589
public ReplicationGroup startMigration(StartMigrationRequest request) {request = beforeClientExecution(request);return executeStartMigration(request);}
[ "public", "ReplicationGroup", "startMigration", "(", "StartMigrationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartMigration", "(", "request", ")", ";", "}" ]
public virtual StartMigrationResponse StartMigration(StartMigrationRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartMigrationRequestMarshaller.Instance;options.ResponseUnmarshaller = StartMigrationResponseUnmarshaller.Instance;return Invoke<StartMigrationResponse>(request, options);}
train
false
590
public OffsetLimitTokenFilter(TokenStream input, int offsetLimit) {super(input);this.offsetLimit = offsetLimit;}
[ "public", "OffsetLimitTokenFilter", "(", "TokenStream", "input", ",", "int", "offsetLimit", ")", "{", "super", "(", "input", ")", ";", "this", ".", "offsetLimit", "=", "offsetLimit", ";", "}" ]
public OffsetLimitTokenFilter(TokenStream input, int offsetLimit) : base(input){this.offsetLimit = offsetLimit;offsetAttrib = GetAttribute<IOffsetAttribute>();}
train
false
591
public final void write(byte[] b, int off, int len)throws IOException {while (0 < len) {final int n = Math.min(len, BYTES_TO_WRITE_BEFORE_CANCEL_CHECK);count += n;if (checkCancelAt <= count) {if (writeMonitor.isCancelled()) {throw new IOException(JGitText.get().packingCancelledDuringObjectsWriting);}checkCancelAt = cou...
[ "public", "final", "void", "write", "(", "byte", "[", "]", "b", ",", "int", "off", ",", "int", "len", ")", "throws", "IOException", "{", "while", "(", "0", "<", "len", ")", "{", "final", "int", "n", "=", "Math", ".", "min", "(", "len", ",", "BY...
public override void Write(byte[] b, int off, int len){while (0 < len){int n = Math.Min(len, BYTES_TO_WRITE_BEFORE_CANCEL_CHECK);count += n;if (checkCancelAt <= count){if (writeMonitor.IsCancelled()){throw new IOException(JGitText.Get().packingCancelledDuringObjectsWriting);}checkCancelAt = count + BYTES_TO_WRITE_BEFOR...
train
false
592
public Cell merge(Cell m, Cell e) {Cell n = new Cell();if (m.skip != e.skip) {return null;}if (m.cmd >= 0) {if (e.cmd >= 0) {if (m.cmd == e.cmd) {n.cmd = m.cmd;} else {return null;}} else {n.cmd = m.cmd;}} else {n.cmd = e.cmd;}if (m.ref >= 0) {if (e.ref >= 0) {if (m.ref == e.ref) {if (m.skip == e.skip) {n.ref = m.ref;}...
[ "public", "Cell", "merge", "(", "Cell", "m", ",", "Cell", "e", ")", "{", "Cell", "n", "=", "new", "Cell", "(", ")", ";", "if", "(", "m", ".", "skip", "!=", "e", ".", "skip", ")", "{", "return", "null", ";", "}", "if", "(", "m", ".", "cmd", ...
public virtual Cell Merge(Cell m, Cell e){Cell n = new Cell();if (m.skip != e.skip){return null;}if (m.cmd >= 0){if (e.cmd >= 0){if (m.cmd == e.cmd){n.cmd = m.cmd;}else{return null;}}else{n.cmd = m.cmd;}}else{n.cmd = e.cmd;}if (m.@ref >= 0){if (e.@ref >= 0){if (m.@ref == e.@ref){if (m.skip == e.skip){n.@ref = m.@ref;}e...
train
false
593
public GetCampaignActivitiesResult getCampaignActivities(GetCampaignActivitiesRequest request) {request = beforeClientExecution(request);return executeGetCampaignActivities(request);}
[ "public", "GetCampaignActivitiesResult", "getCampaignActivities", "(", "GetCampaignActivitiesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetCampaignActivities", "(", "request", ")", ";", "}" ]
public virtual GetCampaignActivitiesResponse GetCampaignActivities(GetCampaignActivitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCampaignActivitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCampaignActivitiesResponseUnmarshaller.Instance;return Invoke<GetCampai...
train
true
594
public long estimateBytesUsed() {return bytesUsed;}
[ "public", "long", "estimateBytesUsed", "(", ")", "{", "return", "bytesUsed", ";", "}" ]
public virtual long EstimateBytesUsed(){return this.bytesUsed;}
train
false
595
public FunctionNameEval(String functionName) {_functionName = functionName;}
[ "public", "FunctionNameEval", "(", "String", "functionName", ")", "{", "_functionName", "=", "functionName", ";", "}" ]
public FunctionNameEval(String functionName) {_functionName = functionName;}
train
false
596
public final float averageBytesPerChar() {return averageBytesPerChar;}
[ "public", "final", "float", "averageBytesPerChar", "(", ")", "{", "return", "averageBytesPerChar", ";", "}" ]
public float averageBytesPerChar(){return _averageBytesPerChar;}
train
false
597
public CreateCacheSecurityGroupRequest(String cacheSecurityGroupName, String description) {setCacheSecurityGroupName(cacheSecurityGroupName);setDescription(description);}
[ "public", "CreateCacheSecurityGroupRequest", "(", "String", "cacheSecurityGroupName", ",", "String", "description", ")", "{", "setCacheSecurityGroupName", "(", "cacheSecurityGroupName", ")", ";", "setDescription", "(", "description", ")", ";", "}" ]
public CreateCacheSecurityGroupRequest(string cacheSecurityGroupName, string description){_cacheSecurityGroupName = cacheSecurityGroupName;_description = description;}
train
false
598
public void removeAt(int index) {System.arraycopy(mKeys, index + 1, mKeys, index, mSize - (index + 1));System.arraycopy(mValues, index + 1, mValues, index, mSize - (index + 1));mSize--;}
[ "public", "void", "removeAt", "(", "int", "index", ")", "{", "System", ".", "arraycopy", "(", "mKeys", ",", "index", "+", "1", ",", "mKeys", ",", "index", ",", "mSize", "-", "(", "index", "+", "1", ")", ")", ";", "System", ".", "arraycopy", "(", ...
public virtual void removeAt(int index){System.Array.Copy(mKeys, index + 1, mKeys, index, mSize - (index + 1));System.Array.Copy(mValues, index + 1, mValues, index, mSize - (index + 1));mSize--;}
train
true
599
public DescribeIndexFieldsResult describeIndexFields(DescribeIndexFieldsRequest request) {request = beforeClientExecution(request);return executeDescribeIndexFields(request);}
[ "public", "DescribeIndexFieldsResult", "describeIndexFields", "(", "DescribeIndexFieldsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeIndexFields", "(", "request", ")", ";", "}" ]
public virtual DescribeIndexFieldsResponse DescribeIndexFields(DescribeIndexFieldsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIndexFieldsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIndexFieldsResponseUnmarshaller.Instance;return Invoke<DescribeIndexFields...
train
true
600
public void remove(int key) {delete(key);}
[ "public", "void", "remove", "(", "int", "key", ")", "{", "delete", "(", "key", ")", ";", "}" ]
public virtual void remove(int key){delete(key);}
train
false
601
public ShortBuffer duplicate() {ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());ShortToByteBufferAdapter buf = new ShortToByteBufferAdapter(bb);buf.limit = limit;buf.position = position;buf.mark = mark;return buf;}
[ "public", "ShortBuffer", "duplicate", "(", ")", "{", "ByteBuffer", "bb", "=", "byteBuffer", ".", "duplicate", "(", ")", ".", "order", "(", "byteBuffer", ".", "order", "(", ")", ")", ";", "ShortToByteBufferAdapter", "buf", "=", "new", "ShortToByteBufferAdapter"...
public override java.nio.ShortBuffer duplicate(){java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());java.nio.ShortToByteBufferAdapter buf = new java.nio.ShortToByteBufferAdapter(bb);buf._limit = _limit;buf._position = _position;buf._mark = _mark;return buf;}
train
false
602
public void addDbcell(int cell){if (field_5_dbcells == null){field_5_dbcells = new IntList();}field_5_dbcells.add(cell);}
[ "public", "void", "addDbcell", "(", "int", "cell", ")", "{", "if", "(", "field_5_dbcells", "==", "null", ")", "{", "field_5_dbcells", "=", "new", "IntList", "(", ")", ";", "}", "field_5_dbcells", ".", "add", "(", "cell", ")", ";", "}" ]
public void AddDbcell(int cell){if (field_5_dbcells == null){field_5_dbcells = new IntList();}field_5_dbcells.Add(cell);}
train
false
603
public DeleteSubnetResult deleteSubnet(DeleteSubnetRequest request) {request = beforeClientExecution(request);return executeDeleteSubnet(request);}
[ "public", "DeleteSubnetResult", "deleteSubnet", "(", "DeleteSubnetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteSubnet", "(", "request", ")", ";", "}" ]
public virtual DeleteSubnetResponse DeleteSubnet(DeleteSubnetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSubnetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSubnetResponseUnmarshaller.Instance;return Invoke<DeleteSubnetResponse>(request, options);}
train
true
604
public List<HSSFPictureData> getAllPictures(){List<HSSFPictureData> pictures = new ArrayList<>();for (org.apache.poi.hssf.record.Record r : workbook.getRecords()) {if (r instanceof AbstractEscherHolderRecord) {((AbstractEscherHolderRecord) r).decode();List<EscherRecord> escherRecords = ((AbstractEscherHolderRecord) r)....
[ "public", "List", "<", "HSSFPictureData", ">", "getAllPictures", "(", ")", "{", "List", "<", "HSSFPictureData", ">", "pictures", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "for", "(", "org", ".", "apache", ".", "poi", ".", "hssf", ".", "record",...
public IList GetAllPictures(){List<HSSFPictureData> pictures = new List<HSSFPictureData>();IEnumerator recordIter = workbook.Records.GetEnumerator();while (recordIter.MoveNext()){Object obj = recordIter.Current;if (obj is AbstractEscherHolderRecord){((AbstractEscherHolderRecord)obj).Decode();IList escherRecords = ((Abs...
train
false
605
public DescribeWorkspacesConnectionStatusResult describeWorkspacesConnectionStatus(DescribeWorkspacesConnectionStatusRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspacesConnectionStatus(request);}
[ "public", "DescribeWorkspacesConnectionStatusResult", "describeWorkspacesConnectionStatus", "(", "DescribeWorkspacesConnectionStatusRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeWorkspacesConnectionStatus",...
public virtual DescribeWorkspacesConnectionStatusResponse DescribeWorkspacesConnectionStatus(DescribeWorkspacesConnectionStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspacesConnectionStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspacesConn...
train
true
607
public InvokeServiceAsyncRequest() {super("industry-brain", "2018-07-12", "InvokeServiceAsync");setMethod(MethodType.POST);}
[ "public", "InvokeServiceAsyncRequest", "(", ")", "{", "super", "(", "\"industry-brain\"", ",", "\"2018-07-12\"", ",", "\"InvokeServiceAsync\"", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public InvokeServiceAsyncRequest(): base("industry-brain", "2018-07-12", "InvokeServiceAsync"){Method = MethodType.POST;}
train
false
609
public static byte[] readData(InputStream stream, String section ) throws IOException {try {StringBuilder sectionText = new StringBuilder();boolean inSection = false;int c = stream.read();while ( c != -1 ) {switch ( c ) {case '[':inSection = true;break;case '\n':case '\r':inSection = false;sectionText = new StringBuild...
[ "public", "static", "byte", "[", "]", "readData", "(", "InputStream", "stream", ",", "String", "section", ")", "throws", "IOException", "{", "try", "{", "StringBuilder", "sectionText", "=", "new", "StringBuilder", "(", ")", ";", "boolean", "inSection", "=", ...
public static byte[] ReadData(Stream stream, String section ){try{StringBuilder sectionText = new StringBuilder();bool inSection = false;int c = stream.ReadByte();while ( c != -1 ){switch ( c ){case '[':inSection = true;break;case '\n':case '\r':inSection = false;sectionText = new StringBuilder();break;case ']':inSecti...
train
false
610
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE) {int number;try {number = OperandResolver.coerceValueToInt(numberVE);} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}if (number < 0) {return ErrorEval.NUM_ERROR;}return new NumberEval(factorial(number).longValue());}
[ "public", "ValueEval", "evaluate", "(", "int", "srcRowIndex", ",", "int", "srcColumnIndex", ",", "ValueEval", "numberVE", ")", "{", "int", "number", ";", "try", "{", "number", "=", "OperandResolver", ".", "coerceValueToInt", "(", "numberVE", ")", ";", "}", "...
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval numberVE){int number;try{number = OperandResolver.CoerceValueToInt(numberVE);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}if (number < 0){return ErrorEval.NUM_ERROR;}return new NumberEval(factorial(number).LongValue());}
train
false
611
public final LexerActionExecutor getLexerActionExecutor() {return lexerActionExecutor;}
[ "public", "final", "LexerActionExecutor", "getLexerActionExecutor", "(", ")", "{", "return", "lexerActionExecutor", ";", "}" ]
public LexerActionExecutor getLexerActionExecutor(){return lexerActionExecutor;}
train
false
612
public EnableUserResult enableUser(EnableUserRequest request) {request = beforeClientExecution(request);return executeEnableUser(request);}
[ "public", "EnableUserResult", "enableUser", "(", "EnableUserRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeEnableUser", "(", "request", ")", ";", "}" ]
public virtual EnableUserResponse EnableUser(EnableUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableUserRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableUserResponseUnmarshaller.Instance;return Invoke<EnableUserResponse>(request, options);}
train
true
613
public void fillSlice(BytesRef b, long start, int length) {assert length >= 0: "length=" + length;assert length <= blockSize+1: "length=" + length;b.length = length;if (length == 0) {return;}final int index = (int) (start >> blockBits);final int offset = (int) (start & blockMask);if (blockSize - offset >= length) {b.by...
[ "public", "void", "fillSlice", "(", "BytesRef", "b", ",", "long", "start", ",", "int", "length", ")", "{", "assert", "length", ">=", "0", ":", "\"length=\"", "+", "length", ";", "assert", "length", "<=", "blockSize", "+", "1", ":", "\"length=\"", "+", ...
public void FillSlice(BytesRef b, long start, int length){Debug.Assert(length >= 0, "length=" + length);Debug.Assert(length <= blockSize + 1, "length=" + length);b.Length = length;if (length == 0){return;}var index = (int)(start >> blockBits);var offset = (int)(start & blockMask);if (blockSize - offset >= length){b.Byt...
train
false
614
public DescribeJournalS3ExportResult describeJournalS3Export(DescribeJournalS3ExportRequest request) {request = beforeClientExecution(request);return executeDescribeJournalS3Export(request);}
[ "public", "DescribeJournalS3ExportResult", "describeJournalS3Export", "(", "DescribeJournalS3ExportRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeJournalS3Export", "(", "request", ")", ";", "}" ]
public virtual DescribeJournalS3ExportResponse DescribeJournalS3Export(DescribeJournalS3ExportRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeJournalS3ExportRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeJournalS3ExportResponseUnmarshaller.Instance;return Invoke...
train
false
616
public DescribeTagsResult describeTags(DescribeTagsRequest request) {request = beforeClientExecution(request);return executeDescribeTags(request);}
[ "public", "DescribeTagsResult", "describeTags", "(", "DescribeTagsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeTags", "(", "request", ")", ";", "}" ]
public virtual DescribeTagsResponse DescribeTags(DescribeTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance;return Invoke<DescribeTagsResponse>(request, options);}
train
true
617
public int doLogic() {return 1;}
[ "public", "int", "doLogic", "(", ")", "{", "return", "1", ";", "}" ]
public override int DoLogic(){return 1;}
train
false
618
public DeleteCustomerGatewayResult deleteCustomerGateway(DeleteCustomerGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteCustomerGateway(request);}
[ "public", "DeleteCustomerGatewayResult", "deleteCustomerGateway", "(", "DeleteCustomerGatewayRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteCustomerGateway", "(", "request", ")", ";", "}" ]
public virtual DeleteCustomerGatewayResponse DeleteCustomerGateway(DeleteCustomerGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCustomerGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCustomerGatewayResponseUnmarshaller.Instance;return Invoke<DeleteCus...
train
true
619
public static Map newContext(IndexSearcher searcher) {Map context = new IdentityHashMap();context.put("searcher", searcher);return context;}
[ "public", "static", "Map", "newContext", "(", "IndexSearcher", "searcher", ")", "{", "Map", "context", "=", "new", "IdentityHashMap", "(", ")", ";", "context", ".", "put", "(", "\"searcher\"", ",", "searcher", ")", ";", "return", "context", ";", "}" ]
public static IDictionary NewContext(IndexSearcher searcher){return new Hashtable(IdentityEqualityComparer<object>.Default){["searcher"] = searcher};}
train
false
620
public NameRecord getSpecificBuiltinRecord(byte builtInCode, int sheetNumber) {Iterator<NameRecord> iterator = _definedNames.iterator();while (iterator.hasNext()) {NameRecord record = iterator.next();if (record.getBuiltInName() == builtInCode && record.getSheetNumber() == sheetNumber) {return record;}}return null;}
[ "public", "NameRecord", "getSpecificBuiltinRecord", "(", "byte", "builtInCode", ",", "int", "sheetNumber", ")", "{", "Iterator", "<", "NameRecord", ">", "iterator", "=", "_definedNames", ".", "iterator", "(", ")", ";", "while", "(", "iterator", ".", "hasNext", ...
public NameRecord GetSpecificBuiltinRecord(byte builtInCode, int sheetNumber){IEnumerator<NameRecord> iterator = _definedNames.GetEnumerator();while (iterator.MoveNext()){NameRecord record = iterator.Current;if (record.BuiltInName == builtInCode && record.SheetNumber == sheetNumber){return record;}}return null;}
train
false
621
public final double readDouble() throws IOException {return Double.longBitsToDouble(readLong());}
[ "public", "final", "double", "readDouble", "(", ")", "throws", "IOException", "{", "return", "Double", ".", "longBitsToDouble", "(", "readLong", "(", ")", ")", ";", "}" ]
public virtual double readDouble(){throw new System.NotImplementedException();}
train
false
622
public void write(byte[] buffer, int offset, int count) throws IOException {super.write(buffer, offset, count);}
[ "public", "void", "write", "(", "byte", "[", "]", "buffer", ",", "int", "offset", ",", "int", "count", ")", "throws", "IOException", "{", "super", ".", "write", "(", "buffer", ",", "offset", ",", "count", ")", ";", "}" ]
public override void write(byte[] buffer, int offset, int count){throw new System.NotImplementedException();}
train
false
623
public TokenStream create(TokenStream input) {return new PersianNormalizationFilter(input);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "PersianNormalizationFilter", "(", "input", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new PersianNormalizationFilter(input);}
train
false
624
public SpanishLightStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "SpanishLightStemFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Un...
public SpanishLightStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
625
public SmallDocSet(int size) {intSet = new SentinelIntSet(size, -1);}
[ "public", "SmallDocSet", "(", "int", "size", ")", "{", "intSet", "=", "new", "SentinelIntSet", "(", "size", ",", "-", "1", ")", ";", "}" ]
public SmallDocSet(int size){intSet = new SentinelInt32Set(size, -1);}
train
false
626
public RawCharSequence(byte[] buf, int start, int end) {buffer = buf;startPtr = start;endPtr = end;}
[ "public", "RawCharSequence", "(", "byte", "[", "]", "buf", ",", "int", "start", ",", "int", "end", ")", "{", "buffer", "=", "buf", ";", "startPtr", "=", "start", ";", "endPtr", "=", "end", ";", "}" ]
public RawCharSequence(byte[] buf, int start, int end){buffer = buf;startPtr = start;endPtr = end;}
train
false
627
public GetCustomVerificationEmailTemplateResult getCustomVerificationEmailTemplate(GetCustomVerificationEmailTemplateRequest request) {request = beforeClientExecution(request);return executeGetCustomVerificationEmailTemplate(request);}
[ "public", "GetCustomVerificationEmailTemplateResult", "getCustomVerificationEmailTemplate", "(", "GetCustomVerificationEmailTemplateRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetCustomVerificationEmailTemplate",...
public virtual GetCustomVerificationEmailTemplateResponse GetCustomVerificationEmailTemplate(GetCustomVerificationEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCustomVerificationEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCustomVerificationE...
train
true
628
public SendMessageBatchRequest(String queueUrl, java.util.List<SendMessageBatchRequestEntry> entries) {setQueueUrl(queueUrl);setEntries(entries);}
[ "public", "SendMessageBatchRequest", "(", "String", "queueUrl", ",", "java", ".", "util", ".", "List", "<", "SendMessageBatchRequestEntry", ">", "entries", ")", "{", "setQueueUrl", "(", "queueUrl", ")", ";", "setEntries", "(", "entries", ")", ";", "}" ]
public SendMessageBatchRequest(string queueUrl, List<SendMessageBatchRequestEntry> entries){_queueUrl = queueUrl;_entries = entries;}
train
false
629
public void writeInt(int v) {writeContinueIfRequired(4);_ulrOutput.writeInt(v);}
[ "public", "void", "writeInt", "(", "int", "v", ")", "{", "writeContinueIfRequired", "(", "4", ")", ";", "_ulrOutput", ".", "writeInt", "(", "v", ")", ";", "}" ]
public void WriteInt(int v){WriteContinueIfRequired(4);_ulrOutput.WriteInt(v);}
train
false
630
public DescribeDataSourcesResult describeDataSources(DescribeDataSourcesRequest request) {request = beforeClientExecution(request);return executeDescribeDataSources(request);}
[ "public", "DescribeDataSourcesResult", "describeDataSources", "(", "DescribeDataSourcesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDataSources", "(", "request", ")", ";", "}" ]
public virtual DescribeDataSourcesResponse DescribeDataSources(DescribeDataSourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDataSourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDataSourcesResponseUnmarshaller.Instance;return Invoke<DescribeDataSources...
train
true
631
public ListRoomsResult listRooms(ListRoomsRequest request) {request = beforeClientExecution(request);return executeListRooms(request);}
[ "public", "ListRoomsResult", "listRooms", "(", "ListRoomsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListRooms", "(", "request", ")", ";", "}" ]
public virtual ListRoomsResponse ListRooms(ListRoomsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRoomsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRoomsResponseUnmarshaller.Instance;return Invoke<ListRoomsResponse>(request, options);}
train
false
632
public char getConversion() {return c;}
[ "public", "char", "getConversion", "(", ")", "{", "return", "c", ";", "}" ]
public virtual char getConversion(){return c;}
train
false
633
public boolean equals(Object _other) {FieldAndTerm other = (FieldAndTerm) _other;return other.field.equals(field) && term.bytesEquals(other.term);}
[ "public", "boolean", "equals", "(", "Object", "_other", ")", "{", "FieldAndTerm", "other", "=", "(", "FieldAndTerm", ")", "_other", ";", "return", "other", ".", "field", ".", "equals", "(", "field", ")", "&&", "term", ".", "bytesEquals", "(", "other", "....
public override bool Equals(object other){var o = (FieldAndTerm)other;return o.Field.Equals(Field, StringComparison.Ordinal) && Term.BytesEquals(o.Term);}
train
false
634
public CreateConfigurationSetEventDestinationResult createConfigurationSetEventDestination(CreateConfigurationSetEventDestinationRequest request) {request = beforeClientExecution(request);return executeCreateConfigurationSetEventDestination(request);}
[ "public", "CreateConfigurationSetEventDestinationResult", "createConfigurationSetEventDestination", "(", "CreateConfigurationSetEventDestinationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateConfigurationSetEv...
public virtual CreateConfigurationSetEventDestinationResponse CreateConfigurationSetEventDestination(CreateConfigurationSetEventDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConfigurationSetEventDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = Create...
train
true
635
public Ole10Native(String label, String filename, String command, byte[] data) {setLabel(label);setFileName(filename);setCommand(command);setDataBuffer(data);mode = EncodingMode.parsed;}
[ "public", "Ole10Native", "(", "String", "label", ",", "String", "filename", ",", "String", "command", ",", "byte", "[", "]", "data", ")", "{", "setLabel", "(", "label", ")", ";", "setFileName", "(", "filename", ")", ";", "setCommand", "(", "command", ")"...
public Ole10Native(String label, String filename, String command, byte[] data){Label=(label);FileName=(filename);Command=(command);DataBuffer=(data);mode = EncodingMode.parsed;}
train
false
636
public String toString() {StringBuilder sb = new StringBuilder();if (fetchResult != null)sb.append(fetchResult.toString());elsesb.append("No fetch result");sb.append("\n");if (mergeResult != null)sb.append(mergeResult.toString());else if (rebaseResult != null)sb.append(rebaseResult.toString());elsesb.append("No update ...
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "if", "(", "fetchResult", "!=", "null", ")", "sb", ".", "append", "(", "fetchResult", ".", "toString", "(", ")", ")", ";", "elsesb", ".", ...
public override string ToString(){StringBuilder sb = new StringBuilder();if (fetchResult != null){sb.Append(fetchResult.ToString());}else{sb.Append("No fetch result");}sb.Append("\n");if (mergeResult != null){sb.Append(mergeResult.ToString());}else{if (rebaseResult != null){sb.Append(rebaseResult.ToString());}else{sb.A...
train
false
637
public static Cell createCell(Row row, int column, String value) {return createCell(row, column, value, null);}
[ "public", "static", "Cell", "createCell", "(", "Row", "row", ",", "int", "column", ",", "String", "value", ")", "{", "return", "createCell", "(", "row", ",", "column", ",", "value", ",", "null", ")", ";", "}" ]
public static ICell CreateCell(IRow row, int column, String value){return CreateCell(row, column, value, null);}
train
false
638
public TokenStream create(TokenStream input) {return new HindiNormalizationFilter(input);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "HindiNormalizationFilter", "(", "input", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new HindiNormalizationFilter(input);}
train
false
639
public DescribeAddressesResult describeAddresses() {return describeAddresses(new DescribeAddressesRequest());}
[ "public", "DescribeAddressesResult", "describeAddresses", "(", ")", "{", "return", "describeAddresses", "(", "new", "DescribeAddressesRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeAddressesResponse DescribeAddresses(){return DescribeAddresses(new DescribeAddressesRequest());}
train
false
641
public void dispatch(RefsChangedListener listener) {listener.onRefsChanged(this);}
[ "public", "void", "dispatch", "(", "RefsChangedListener", "listener", ")", "{", "listener", ".", "onRefsChanged", "(", "this", ")", ";", "}" ]
public override void Dispatch(RefsChangedListener listener){listener.OnRefsChanged(this);}
train
false
642
public SnowballFilter(TokenStream in, String name) {super(in);try {Class<? extends SnowballStemmer> stemClass =Class.forName("org.tartarus.snowball.ext." + name + "Stemmer").asSubclass(SnowballStemmer.class);stemmer = stemClass.getConstructor().newInstance();} catch (Exception e) {}}
[ "public", "SnowballFilter", "(", "TokenStream", "in", ",", "String", "name", ")", "{", "super", "(", "in", ")", ";", "try", "{", "Class", "<", "?", "extends", "SnowballStemmer", ">", "stemClass", "=", "Class", ".", "forName", "(", "\"org.tartarus.snowball.ex...
public SnowballFilter(TokenStream @in, string name): base(@in){try{string className = typeof(SnowballProgram).Namespace + ".Ext." +name + "Stemmer, " + this.GetType().GetTypeInfo().Assembly.GetName().Name;Type stemClass = Type.GetType(className);stemmer = (SnowballProgram)Activator.CreateInstance(stemClass);}catch (Exc...
train
false
643
public UpgradeAppliedSchemaResult upgradeAppliedSchema(UpgradeAppliedSchemaRequest request) {request = beforeClientExecution(request);return executeUpgradeAppliedSchema(request);}
[ "public", "UpgradeAppliedSchemaResult", "upgradeAppliedSchema", "(", "UpgradeAppliedSchemaRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpgradeAppliedSchema", "(", "request", ")", ";", "}" ]
public virtual UpgradeAppliedSchemaResponse UpgradeAppliedSchema(UpgradeAppliedSchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpgradeAppliedSchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = UpgradeAppliedSchemaResponseUnmarshaller.Instance;return Invoke<UpgradeApplied...
train
true
644
public String getParent() {int length = path.length(), firstInPath = 0;if (separatorChar == '\\' && length > 2 && path.charAt(1) == ':') {firstInPath = 2;}int index = path.lastIndexOf(separatorChar);if (index == -1 && firstInPath > 0) {index = 2;}if (index == -1 || path.charAt(length - 1) == separatorChar) {return null...
[ "public", "String", "getParent", "(", ")", "{", "int", "length", "=", "path", ".", "length", "(", ")", ",", "firstInPath", "=", "0", ";", "if", "(", "separatorChar", "==", "'\\\\'", "&&", "length", ">", "2", "&&", "path", ".", "charAt", "(", "1", "...
public string getParent(){int length_1 = path.Length;int firstInPath = 0;if (separatorChar == '\\' && length_1 > 2 && path[1] == ':'){firstInPath = 2;}int index = path.LastIndexOf(separatorChar);if (index == -1 && firstInPath > 0){index = 2;}if (index == -1 || path[length_1 - 1] == separatorChar){return null;}if (path....
train
true
645
public BufferedChecksumIndexInput(IndexInput main) {super("BufferedChecksumIndexInput(" + main + ")");this.main = main;this.digest = new BufferedChecksum(new CRC32());}
[ "public", "BufferedChecksumIndexInput", "(", "IndexInput", "main", ")", "{", "super", "(", "\"BufferedChecksumIndexInput(\"", "+", "main", "+", "\")\"", ")", ";", "this", ".", "main", "=", "main", ";", "this", ".", "digest", "=", "new", "BufferedChecksum", "("...
public BufferedChecksumIndexInput(IndexInput main): base("BufferedChecksumIndexInput(" + main + ")"){this.main = main;this.digest = new BufferedChecksum(new CRC32());}
train
false
646
public final void remove(RevFlagSet set) {flags &= ~set.mask;}
[ "public", "final", "void", "remove", "(", "RevFlagSet", "set", ")", "{", "flags", "&=", "~", "set", ".", "mask", ";", "}" ]
public void Remove(RevFlagSet set){flags &= ~set.mask;}
train
false
648
public GetFaceSearchResult getFaceSearch(GetFaceSearchRequest request) {request = beforeClientExecution(request);return executeGetFaceSearch(request);}
[ "public", "GetFaceSearchResult", "getFaceSearch", "(", "GetFaceSearchRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetFaceSearch", "(", "request", ")", ";", "}" ]
public virtual GetFaceSearchResponse GetFaceSearch(GetFaceSearchRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFaceSearchRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFaceSearchResponseUnmarshaller.Instance;return Invoke<GetFaceSearchResponse>(request, options);}
train
true
649
public DescribeUserStackAssociationsResult describeUserStackAssociations(DescribeUserStackAssociationsRequest request) {request = beforeClientExecution(request);return executeDescribeUserStackAssociations(request);}
[ "public", "DescribeUserStackAssociationsResult", "describeUserStackAssociations", "(", "DescribeUserStackAssociationsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeUserStackAssociations", "(", "request",...
public virtual DescribeUserStackAssociationsResponse DescribeUserStackAssociations(DescribeUserStackAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUserStackAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUserStackAssociationsResponseUnmar...
train
true
650
public void close() throws IOException {in.close();in = new ClosedInputStream();}
[ "public", "void", "close", "(", ")", "throws", "IOException", "{", "in", ".", "close", "(", ")", ";", "in", "=", "new", "ClosedInputStream", "(", ")", ";", "}" ]
public override void close(){throw new System.NotImplementedException();}
train
false
651
public CreateBranchCommand branchCreate() {return new CreateBranchCommand(repo);}
[ "public", "CreateBranchCommand", "branchCreate", "(", ")", "{", "return", "new", "CreateBranchCommand", "(", "repo", ")", ";", "}" ]
public virtual CreateBranchCommand BranchCreate(){return new CreateBranchCommand(repo);}
train
false