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
7,541
public MissingCellDummyRecord(int row, int column) {this.row = row;this.column = column;}
[ "public", "MissingCellDummyRecord", "(", "int", "row", ",", "int", "column", ")", "{", "this", ".", "row", "=", "row", ";", "this", ".", "column", "=", "column", ";", "}" ]
public MissingCellDummyRecord(int row, int column){this.row = row;this.column = column;}
train
false
7,542
public static TokenizerFactory forName(String name, Map<String,String> args) {return loader.newInstance(name, args);}
[ "public", "static", "TokenizerFactory", "forName", "(", "String", "name", ",", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "return", "loader", ".", "newInstance", "(", "name", ",", "args", ")", ";", "}" ]
public static TokenizerFactory ForName(string name, IDictionary<string, string> args){return loader.NewInstance(name, args);}
train
false
7,543
public final ByteBuffer encode(CharBuffer in) throws CharacterCodingException {if (in.remaining() == 0) {return ByteBuffer.allocate(0);}reset();int length = (int) (in.remaining() * averageBytesPerChar);ByteBuffer output = ByteBuffer.allocate(length);CoderResult result = null;while (true) {result = encode(in, output, false);if (result==CoderResult.UNDERFLOW) {break;} else if (result==CoderResult.OVERFLOW) {output = allocateMore(output);continue;}checkCoderResult(result);}result = encode(in, output, true);checkCoderResult(result);while (true) {result = flush(output);if (result==CoderResult.UNDERFLOW) {output.flip();break;} else if (result==CoderResult.OVERFLOW) {output = allocateMore(output);continue;}checkCoderResult(result);output.flip();if (result.isMalformed()) {throw new MalformedInputException(result.length());} else if (result.isUnmappable()) {throw new UnmappableCharacterException(result.length());}break;}status = READY;finished = true;return output;}
[ "public", "final", "ByteBuffer", "encode", "(", "CharBuffer", "in", ")", "throws", "CharacterCodingException", "{", "if", "(", "in", ".", "remaining", "(", ")", "==", "0", ")", "{", "return", "ByteBuffer", ".", "allocate", "(", "0", ")", ";", "}", "reset", "(", ")", ";", "int", "length", "=", "(", "int", ")", "(", "in", ".", "remaining", "(", ")", "*", "averageBytesPerChar", ")", ";", "ByteBuffer", "output", "=", "ByteBuffer", ".", "allocate", "(", "length", ")", ";", "CoderResult", "result", "=", "null", ";", "while", "(", "true", ")", "{", "result", "=", "encode", "(", "in", ",", "output", ",", "false", ")", ";", "if", "(", "result", "==", "CoderResult", ".", "UNDERFLOW", ")", "{", "break", ";", "}", "else", "if", "(", "result", "==", "CoderResult", ".", "OVERFLOW", ")", "{", "output", "=", "allocateMore", "(", "output", ")", ";", "continue", ";", "}", "checkCoderResult", "(", "result", ")", ";", "}", "result", "=", "encode", "(", "in", ",", "output", ",", "true", ")", ";", "checkCoderResult", "(", "result", ")", ";", "while", "(", "true", ")", "{", "result", "=", "flush", "(", "output", ")", ";", "if", "(", "result", "==", "CoderResult", ".", "UNDERFLOW", ")", "{", "output", ".", "flip", "(", ")", ";", "break", ";", "}", "else", "if", "(", "result", "==", "CoderResult", ".", "OVERFLOW", ")", "{", "output", "=", "allocateMore", "(", "output", ")", ";", "continue", ";", "}", "checkCoderResult", "(", "result", ")", ";", "output", ".", "flip", "(", ")", ";", "if", "(", "result", ".", "isMalformed", "(", ")", ")", "{", "throw", "new", "MalformedInputException", "(", "result", ".", "length", "(", ")", ")", ";", "}", "else", "if", "(", "result", ".", "isUnmappable", "(", ")", ")", "{", "throw", "new", "UnmappableCharacterException", "(", "result", ".", "length", "(", ")", ")", ";", "}", "break", ";", "}", "status", "=", "READY", ";", "finished", "=", "true", ";", "return", "output", ";", "}" ]
public java.nio.ByteBuffer encode(java.nio.CharBuffer @in){if (@in.remaining() == 0){return java.nio.ByteBuffer.allocate(0);}reset();int length = (int)(@in.remaining() * _averageBytesPerChar);java.nio.ByteBuffer output = java.nio.ByteBuffer.allocate(length);java.nio.charset.CoderResult result = null;while (true){result = encode(@in, output, false);if (result == java.nio.charset.CoderResult.UNDERFLOW){break;}else{if (result == java.nio.charset.CoderResult.OVERFLOW){output = allocateMore(output);continue;}}checkCoderResult(result);}result = encode(@in, output, true);checkCoderResult(result);while (true){result = flush(output);if (result == java.nio.charset.CoderResult.UNDERFLOW){output.flip();break;}else{if (result == java.nio.charset.CoderResult.OVERFLOW){output = allocateMore(output);continue;}}checkCoderResult(result);output.flip();if (result.isMalformed()){throw new java.nio.charset.MalformedInputException(result.length());}else{if (result.isUnmappable()){throw new java.nio.charset.UnmappableCharacterException(result.length());}}break;}status = READY;finished = true;return output;}
train
false
7,544
public TextProgressMonitor(Writer out) {this.out = out;this.write = true;}
[ "public", "TextProgressMonitor", "(", "Writer", "out", ")", "{", "this", ".", "out", "=", "out", ";", "this", ".", "write", "=", "true", ";", "}" ]
public TextProgressMonitor(TextWriter @out){this.@out = @out;this.write = true;}
train
false
7,546
public LooseRef peel(ObjectIdRef newLeaf) {ObjectId peeledObjectId = newLeaf.getPeeledObjectId();ObjectId objectId = getObjectId();if (peeledObjectId != null) {return new LoosePeeledTag(snapShot, getName(),objectId, peeledObjectId);}return new LooseNonTag(snapShot, getName(), objectId);}
[ "public", "LooseRef", "peel", "(", "ObjectIdRef", "newLeaf", ")", "{", "ObjectId", "peeledObjectId", "=", "newLeaf", ".", "getPeeledObjectId", "(", ")", ";", "ObjectId", "objectId", "=", "getObjectId", "(", ")", ";", "if", "(", "peeledObjectId", "!=", "null", ")", "{", "return", "new", "LoosePeeledTag", "(", "snapShot", ",", "getName", "(", ")", ",", "objectId", ",", "peeledObjectId", ")", ";", "}", "return", "new", "LooseNonTag", "(", "snapShot", ",", "getName", "(", ")", ",", "objectId", ")", ";", "}" ]
public RefDirectory.LooseRef Peel(ObjectIdRef newLeaf){if (newLeaf.GetPeeledObjectId() != null){return new RefDirectory.LoosePeeledTag(snapShot, GetName(), GetObjectId(), newLeaf.GetPeeledObjectId());}else{return new RefDirectory.LooseNonTag(snapShot, GetName(), GetObjectId());}}
train
false
7,547
public List<Ref> call() throws GitAPIException {checkCallable();List<Ref> resultRefs;try {Collection<Ref> refs = new ArrayList<>();Ref head = repo.exactRef(HEAD);if (head != null && head.getLeaf().getName().equals(HEAD)) {refs.add(head);}if (listMode == null) {refs.addAll(repo.getRefDatabase().getRefsByPrefix(R_HEADS));} else if (listMode == ListMode.REMOTE) {refs.addAll(repo.getRefDatabase().getRefsByPrefix(R_REMOTES));} else {refs.addAll(repo.getRefDatabase().getRefsByPrefix(R_HEADS,R_REMOTES));}resultRefs = new ArrayList<>(filterRefs(refs));} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}Collections.sort(resultRefs,(Ref o1, Ref o2) -> o1.getName().compareTo(o2.getName()));setCallable(false);return resultRefs;}
[ "public", "List", "<", "Ref", ">", "call", "(", ")", "throws", "GitAPIException", "{", "checkCallable", "(", ")", ";", "List", "<", "Ref", ">", "resultRefs", ";", "try", "{", "Collection", "<", "Ref", ">", "refs", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "Ref", "head", "=", "repo", ".", "exactRef", "(", "HEAD", ")", ";", "if", "(", "head", "!=", "null", "&&", "head", ".", "getLeaf", "(", ")", ".", "getName", "(", ")", ".", "equals", "(", "HEAD", ")", ")", "{", "refs", ".", "add", "(", "head", ")", ";", "}", "if", "(", "listMode", "==", "null", ")", "{", "refs", ".", "addAll", "(", "repo", ".", "getRefDatabase", "(", ")", ".", "getRefsByPrefix", "(", "R_HEADS", ")", ")", ";", "}", "else", "if", "(", "listMode", "==", "ListMode", ".", "REMOTE", ")", "{", "refs", ".", "addAll", "(", "repo", ".", "getRefDatabase", "(", ")", ".", "getRefsByPrefix", "(", "R_REMOTES", ")", ")", ";", "}", "else", "{", "refs", ".", "addAll", "(", "repo", ".", "getRefDatabase", "(", ")", ".", "getRefsByPrefix", "(", "R_HEADS", ",", "R_REMOTES", ")", ")", ";", "}", "resultRefs", "=", "new", "ArrayList", "<", ">", "(", "filterRefs", "(", "refs", ")", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "throw", "new", "JGitInternalException", "(", "e", ".", "getMessage", "(", ")", ",", "e", ")", ";", "}", "Collections", ".", "sort", "(", "resultRefs", ",", "(", "Ref", "o1", ",", "Ref", "o2", ")", "->", "o1", ".", "getName", "(", ")", ".", "compareTo", "(", "o2", ".", "getName", "(", ")", ")", ")", ";", "setCallable", "(", "false", ")", ";", "return", "resultRefs", ";", "}" ]
public override IList<Ref> Call(){CheckCallable();IDictionary<string, Ref> refList;try{if (listMode == ListMode.HEAD){refList = repo.RefDatabase.GetRefs(Constants.R_HEADS);}else{if (listMode == ListBranchCommand.ListMode.REMOTE){refList = repo.RefDatabase.GetRefs(Constants.R_REMOTES);}else{refList = new Dictionary<string, Ref>(repo.RefDatabase.GetRefs(Constants.R_HEADS));refList.PutAll(repo.RefDatabase.GetRefs(Constants.R_REMOTES));}}}catch (IOException e){throw new JGitInternalException(e.Message, e);}IList<Ref> resultRefs = new AList<Ref>();Sharpen.Collections.AddAll(resultRefs, refList.Values);resultRefs.Sort(new _IComparer_111());SetCallable(false);return resultRefs;}
train
false
7,548
public void writeLong(long v) {writeContinueIfRequired(8);_ulrOutput.writeLong(v);}
[ "public", "void", "writeLong", "(", "long", "v", ")", "{", "writeContinueIfRequired", "(", "8", ")", ";", "_ulrOutput", ".", "writeLong", "(", "v", ")", ";", "}" ]
public void WriteLong(long v){WriteContinueIfRequired(8);_ulrOutput.WriteLong(v);}
train
false
7,549
public UpdateSmsTemplateResult updateSmsTemplate(UpdateSmsTemplateRequest request) {request = beforeClientExecution(request);return executeUpdateSmsTemplate(request);}
[ "public", "UpdateSmsTemplateResult", "updateSmsTemplate", "(", "UpdateSmsTemplateRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateSmsTemplate", "(", "request", ")", ";", "}" ]
public virtual UpdateSmsTemplateResponse UpdateSmsTemplate(UpdateSmsTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSmsTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSmsTemplateResponseUnmarshaller.Instance;return Invoke<UpdateSmsTemplateResponse>(request, options);}
train
false
7,550
public DeletePlacementGroupResult deletePlacementGroup(DeletePlacementGroupRequest request) {request = beforeClientExecution(request);return executeDeletePlacementGroup(request);}
[ "public", "DeletePlacementGroupResult", "deletePlacementGroup", "(", "DeletePlacementGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeletePlacementGroup", "(", "request", ")", ";", "}" ]
public virtual DeletePlacementGroupResponse DeletePlacementGroup(DeletePlacementGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePlacementGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePlacementGroupResponseUnmarshaller.Instance;return Invoke<DeletePlacementGroupResponse>(request, options);}
train
true
7,551
public StartApplicationResult startApplication(StartApplicationRequest request) {request = beforeClientExecution(request);return executeStartApplication(request);}
[ "public", "StartApplicationResult", "startApplication", "(", "StartApplicationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartApplication", "(", "request", ")", ";", "}" ]
public virtual StartApplicationResponse StartApplication(StartApplicationRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartApplicationRequestMarshaller.Instance;options.ResponseUnmarshaller = StartApplicationResponseUnmarshaller.Instance;return Invoke<StartApplicationResponse>(request, options);}
train
true
7,552
public void mark(int readlimit) throws IOException {synchronized (lock) {super.mark(readlimit);markedLineNumber = lineNumber;markedLastWasCR = lastWasCR;}}
[ "public", "void", "mark", "(", "int", "readlimit", ")", "throws", "IOException", "{", "synchronized", "(", "lock", ")", "{", "super", ".", "mark", "(", "readlimit", ")", ";", "markedLineNumber", "=", "lineNumber", ";", "markedLastWasCR", "=", "lastWasCR", ";", "}", "}" ]
public override void mark(int readlimit){throw new System.NotImplementedException();}
train
false
7,553
public int getPort() {return port;}
[ "public", "int", "getPort", "(", ")", "{", "return", "port", ";", "}" ]
public virtual int GetPort(){return port;}
train
false
7,554
public int get() {if (position == limit) {throw new BufferUnderflowException();}return byteBuffer.getInt(position++ * SizeOf.INT);}
[ "public", "int", "get", "(", ")", "{", "if", "(", "position", "==", "limit", ")", "{", "throw", "new", "BufferUnderflowException", "(", ")", ";", "}", "return", "byteBuffer", ".", "getInt", "(", "position", "++", "*", "SizeOf", ".", "INT", ")", ";", "}" ]
public override int get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return byteBuffer.getInt(_position++ * libcore.io.SizeOf.INT);}
train
false
7,555
public Entry<K, V> pollLastEntry() {Node<K, V> result = endpoint(false);if (result != null) {removeInternal(result);}return immutableCopy(result);}
[ "public", "Entry", "<", "K", ",", "V", ">", "pollLastEntry", "(", ")", "{", "Node", "<", "K", ",", "V", ">", "result", "=", "endpoint", "(", "false", ")", ";", "if", "(", "result", "!=", "null", ")", "{", "removeInternal", "(", "result", ")", ";", "}", "return", "immutableCopy", "(", "result", ")", ";", "}" ]
public java.util.MapClass.Entry<K, V> pollLastEntry(){java.util.TreeMap.Node<K, V> result = this.endpoint(false);if (result != null){this._enclosing.removeInternal(result);}return this._enclosing.immutableCopy(result);}
train
false
7,556
public RebootRelationalDatabaseResult rebootRelationalDatabase(RebootRelationalDatabaseRequest request) {request = beforeClientExecution(request);return executeRebootRelationalDatabase(request);}
[ "public", "RebootRelationalDatabaseResult", "rebootRelationalDatabase", "(", "RebootRelationalDatabaseRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRebootRelationalDatabase", "(", "request", ")", ";", "}" ]
public virtual RebootRelationalDatabaseResponse RebootRelationalDatabase(RebootRelationalDatabaseRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootRelationalDatabaseRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootRelationalDatabaseResponseUnmarshaller.Instance;return Invoke<RebootRelationalDatabaseResponse>(request, options);}
train
true
7,557
public String toString() {return getClass().getName() + " [" + asFormulaString() + "]";}
[ "public", "String", "toString", "(", ")", "{", "return", "getClass", "(", ")", ".", "getName", "(", ")", "+", "\" [\"", "+", "asFormulaString", "(", ")", "+", "\"]\"", ";", "}" ]
public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(this.GetType().Name);sb.Append(" [");AsFormulaString(sb);sb.Append("]");return sb.ToString();}
train
false
7,558
public BulkPublishResult bulkPublish(BulkPublishRequest request) {request = beforeClientExecution(request);return executeBulkPublish(request);}
[ "public", "BulkPublishResult", "bulkPublish", "(", "BulkPublishRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeBulkPublish", "(", "request", ")", ";", "}" ]
public virtual BulkPublishResponse BulkPublish(BulkPublishRequest request){var options = new InvokeOptions();options.RequestMarshaller = BulkPublishRequestMarshaller.Instance;options.ResponseUnmarshaller = BulkPublishResponseUnmarshaller.Instance;return Invoke<BulkPublishResponse>(request, options);}
train
true
7,559
public static String getNewRoleSessionName() {return "aliyun-java-sdk-" + System.currentTimeMillis();}
[ "public", "static", "String", "getNewRoleSessionName", "(", ")", "{", "return", "\"aliyun-java-sdk-\"", "+", "System", ".", "currentTimeMillis", "(", ")", ";", "}" ]
public static string GetNewRoleSessionName(){return "aliyun-net-sdk-" + DateTime.UtcNow.currentTimeMillis();}
train
false
7,560
public CompleteLifecycleActionResult completeLifecycleAction(CompleteLifecycleActionRequest request) {request = beforeClientExecution(request);return executeCompleteLifecycleAction(request);}
[ "public", "CompleteLifecycleActionResult", "completeLifecycleAction", "(", "CompleteLifecycleActionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCompleteLifecycleAction", "(", "request", ")", ";", "}" ]
public virtual CompleteLifecycleActionResponse CompleteLifecycleAction(CompleteLifecycleActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CompleteLifecycleActionRequestMarshaller.Instance;options.ResponseUnmarshaller = CompleteLifecycleActionResponseUnmarshaller.Instance;return Invoke<CompleteLifecycleActionResponse>(request, options);}
train
true
7,562
public final ObjectToPack getDeltaBase() {if (deltaBase instanceof ObjectToPack)return (ObjectToPack) deltaBase;return null;}
[ "public", "final", "ObjectToPack", "getDeltaBase", "(", ")", "{", "if", "(", "deltaBase", "instanceof", "ObjectToPack", ")", "return", "(", "ObjectToPack", ")", "deltaBase", ";", "return", "null", ";", "}" ]
public virtual NGit.Storage.Pack.ObjectToPack GetDeltaBase(){if (deltaBase is NGit.Storage.Pack.ObjectToPack){return (NGit.Storage.Pack.ObjectToPack)deltaBase;}return null;}
train
false
7,563
public GetQueryExecutionResult getQueryExecution(GetQueryExecutionRequest request) {request = beforeClientExecution(request);return executeGetQueryExecution(request);}
[ "public", "GetQueryExecutionResult", "getQueryExecution", "(", "GetQueryExecutionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetQueryExecution", "(", "request", ")", ";", "}" ]
public virtual GetQueryExecutionResponse GetQueryExecution(GetQueryExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetQueryExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetQueryExecutionResponseUnmarshaller.Instance;return Invoke<GetQueryExecutionResponse>(request, options);}
train
true
7,564
public int getFontIndex(FontRecord font) {for(int i=0; i<=numfonts; i++) {FontRecord thisFont =( FontRecord ) records.get((records.getFontpos() - (numfonts - 1)) + i);if(thisFont == font) {return (i > 3) ? i+1 : i;}}throw new IllegalArgumentException("Could not find that font!");}
[ "public", "int", "getFontIndex", "(", "FontRecord", "font", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<=", "numfonts", ";", "i", "++", ")", "{", "FontRecord", "thisFont", "=", "(", "FontRecord", ")", "records", ".", "get", "(", "(", "records", ".", "getFontpos", "(", ")", "-", "(", "numfonts", "-", "1", ")", ")", "+", "i", ")", ";", "if", "(", "thisFont", "==", "font", ")", "{", "return", "(", "i", ">", "3", ")", "?", "i", "+", "1", ":", "i", ";", "}", "}", "throw", "new", "IllegalArgumentException", "(", "\"Could not find that font!\"", ")", ";", "}" ]
public int GetFontIndex(FontRecord font){for (int i = 0; i <= numfonts; i++){FontRecord thisFont =(FontRecord)records[(records.Fontpos - (numfonts - 1)) + i];if (thisFont == font){if (i > 3){return (i + 1);}return i;}}throw new ArgumentException("Could not find that font!");}
train
false
7,566
public DescribeDominantLanguageDetectionJobResult describeDominantLanguageDetectionJob(DescribeDominantLanguageDetectionJobRequest request) {request = beforeClientExecution(request);return executeDescribeDominantLanguageDetectionJob(request);}
[ "public", "DescribeDominantLanguageDetectionJobResult", "describeDominantLanguageDetectionJob", "(", "DescribeDominantLanguageDetectionJobRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDominantLanguageDetectionJob", "(", "request", ")", ";", "}" ]
public virtual DescribeDominantLanguageDetectionJobResponse DescribeDominantLanguageDetectionJob(DescribeDominantLanguageDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDominantLanguageDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDominantLanguageDetectionJobResponseUnmarshaller.Instance;return Invoke<DescribeDominantLanguageDetectionJobResponse>(request, options);}
train
true
7,567
public DescribeReservedInstancesModificationsResult describeReservedInstancesModifications() {return describeReservedInstancesModifications(new DescribeReservedInstancesModificationsRequest());}
[ "public", "DescribeReservedInstancesModificationsResult", "describeReservedInstancesModifications", "(", ")", "{", "return", "describeReservedInstancesModifications", "(", "new", "DescribeReservedInstancesModificationsRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeReservedInstancesModificationsResponse DescribeReservedInstancesModifications(){return DescribeReservedInstancesModifications(new DescribeReservedInstancesModificationsRequest());}
train
false
7,568
public DiffCommand setOutputStream(OutputStream out) {this.out = out;return this;}
[ "public", "DiffCommand", "setOutputStream", "(", "OutputStream", "out", ")", "{", "this", ".", "out", "=", "out", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.DiffCommand SetOutputStream(OutputStream @out){this.@out = @out;return this;}
train
false
7,569
public ObjectId toObjectId() {return new ObjectId(this);}
[ "public", "ObjectId", "toObjectId", "(", ")", "{", "return", "new", "ObjectId", "(", "this", ")", ";", "}" ]
public override ObjectId ToObjectId(){return new ObjectId(this);}
train
false
7,570
public static short[] getAllKnownRecordSIDs() {if (_allKnownRecordSIDs == null) {short[] results = new short[ _recordCreatorsById.size() ];int i = 0;for (Integer sid : _recordCreatorsById.keySet()) {results[i++] = sid.shortValue();}Arrays.sort(results);_allKnownRecordSIDs = results;}return _allKnownRecordSIDs.clone();}
[ "public", "static", "short", "[", "]", "getAllKnownRecordSIDs", "(", ")", "{", "if", "(", "_allKnownRecordSIDs", "==", "null", ")", "{", "short", "[", "]", "results", "=", "new", "short", "[", "_recordCreatorsById", ".", "size", "(", ")", "]", ";", "int", "i", "=", "0", ";", "for", "(", "Integer", "sid", ":", "_recordCreatorsById", ".", "keySet", "(", ")", ")", "{", "results", "[", "i", "++", "]", "=", "sid", ".", "shortValue", "(", ")", ";", "}", "Arrays", ".", "sort", "(", "results", ")", ";", "_allKnownRecordSIDs", "=", "results", ";", "}", "return", "_allKnownRecordSIDs", ".", "clone", "(", ")", ";", "}" ]
public static short[] GetAllKnownRecordSIDs(){if (_allKnownRecordSIDs == null){short[] results = new short[_recordCreatorsById.Count];int i = 0;foreach (KeyValuePair<short, I_RecordCreator> kv in _recordCreatorsById){results[i++] = kv.Key;}Array.Sort(results);_allKnownRecordSIDs = results;}return (short[])_allKnownRecordSIDs.Clone();}
train
false
7,571
public PredictionContext getCachedContext(PredictionContext context) {if ( sharedContextCache==null ) return context;synchronized (sharedContextCache) {IdentityHashMap<PredictionContext, PredictionContext> visited =new IdentityHashMap<PredictionContext, PredictionContext>();return PredictionContext.getCachedContext(context,sharedContextCache,visited);}}
[ "public", "PredictionContext", "getCachedContext", "(", "PredictionContext", "context", ")", "{", "if", "(", "sharedContextCache", "==", "null", ")", "return", "context", ";", "synchronized", "(", "sharedContextCache", ")", "{", "IdentityHashMap", "<", "PredictionContext", ",", "PredictionContext", ">", "visited", "=", "new", "IdentityHashMap", "<", "PredictionContext", ",", "PredictionContext", ">", "(", ")", ";", "return", "PredictionContext", ".", "getCachedContext", "(", "context", ",", "sharedContextCache", ",", "visited", ")", ";", "}", "}" ]
public PredictionContext getCachedContext(PredictionContext context){if (sharedContextCache == null) return context;lock (sharedContextCache){PredictionContext.IdentityHashMap visited =new PredictionContext.IdentityHashMap();return PredictionContext.GetCachedContext(context,sharedContextCache,visited);}}
train
false
7,572
public CreateStageResult createStage(CreateStageRequest request) {request = beforeClientExecution(request);return executeCreateStage(request);}
[ "public", "CreateStageResult", "createStage", "(", "CreateStageRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateStage", "(", "request", ")", ";", "}" ]
public virtual CreateStageResponse CreateStage(CreateStageRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStageRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStageResponseUnmarshaller.Instance;return Invoke<CreateStageResponse>(request, options);}
train
true
7,573
public static EditList singleton(Edit edit) {EditList res = new EditList(1);res.add(edit);return res;}
[ "public", "static", "EditList", "singleton", "(", "Edit", "edit", ")", "{", "EditList", "res", "=", "new", "EditList", "(", "1", ")", ";", "res", ".", "add", "(", "edit", ")", ";", "return", "res", ";", "}" ]
public static NGit.Diff.EditList Singleton(Edit edit){NGit.Diff.EditList res = new NGit.Diff.EditList(1);res.AddItem(edit);return res;}
train
false
7,574
public ModifySnapshotScheduleResult modifySnapshotSchedule(ModifySnapshotScheduleRequest request) {request = beforeClientExecution(request);return executeModifySnapshotSchedule(request);}
[ "public", "ModifySnapshotScheduleResult", "modifySnapshotSchedule", "(", "ModifySnapshotScheduleRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifySnapshotSchedule", "(", "request", ")", ";", "}" ]
public virtual ModifySnapshotScheduleResponse ModifySnapshotSchedule(ModifySnapshotScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifySnapshotScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifySnapshotScheduleResponseUnmarshaller.Instance;return Invoke<ModifySnapshotScheduleResponse>(request, options);}
train
true
7,575
public boolean isEmpty() {return elements.length == 0;}
[ "public", "boolean", "isEmpty", "(", ")", "{", "return", "elements", ".", "length", "==", "0", ";", "}" ]
public virtual bool isEmpty(){return elements.Length == 0;}
train
false
7,576
public void copy(BytesRef bytes, BytesRef out) {int left = blockSize - upto;if (bytes.length > left || currentBlock==null) {if (currentBlock != null) {addBlock(currentBlock);didSkipBytes = true;}currentBlock = new byte[blockSize];upto = 0;left = blockSize;assert bytes.length <= blockSize;}out.bytes = currentBlock;out.offset = upto;out.length = bytes.length;System.arraycopy(bytes.bytes, bytes.offset, currentBlock, upto, bytes.length);upto += bytes.length;}
[ "public", "void", "copy", "(", "BytesRef", "bytes", ",", "BytesRef", "out", ")", "{", "int", "left", "=", "blockSize", "-", "upto", ";", "if", "(", "bytes", ".", "length", ">", "left", "||", "currentBlock", "==", "null", ")", "{", "if", "(", "currentBlock", "!=", "null", ")", "{", "addBlock", "(", "currentBlock", ")", ";", "didSkipBytes", "=", "true", ";", "}", "currentBlock", "=", "new", "byte", "[", "blockSize", "]", ";", "upto", "=", "0", ";", "left", "=", "blockSize", ";", "assert", "bytes", ".", "length", "<=", "blockSize", ";", "}", "out", ".", "bytes", "=", "currentBlock", ";", "out", ".", "offset", "=", "upto", ";", "out", ".", "length", "=", "bytes", ".", "length", ";", "System", ".", "arraycopy", "(", "bytes", ".", "bytes", ",", "bytes", ".", "offset", ",", "currentBlock", ",", "upto", ",", "bytes", ".", "length", ")", ";", "upto", "+=", "bytes", ".", "length", ";", "}" ]
public void Copy(BytesRef bytes, BytesRef @out){int left = blockSize - upto;if (bytes.Length > left || currentBlock == null){if (currentBlock != null){blocks.Add(currentBlock);blockEnd.Add(upto);didSkipBytes = true;}currentBlock = new byte[blockSize];upto = 0;left = blockSize;Debug.Assert(bytes.Length <= blockSize);}@out.Bytes = currentBlock;@out.Offset = upto;@out.Length = bytes.Length;Array.Copy(bytes.Bytes, bytes.Offset, currentBlock, upto, bytes.Length);upto += bytes.Length;}
train
false
7,577
public void add(int location, E object) {listIterator(location).add(object);}
[ "public", "void", "add", "(", "int", "location", ",", "E", "object", ")", "{", "listIterator", "(", "location", ")", ".", "add", "(", "object", ")", ";", "}" ]
public override void add(int location, E @object){listIterator(location).add(@object);}
train
false
7,578
public CreateKeyPairRequest(String keyName) {setKeyName(keyName);}
[ "public", "CreateKeyPairRequest", "(", "String", "keyName", ")", "{", "setKeyName", "(", "keyName", ")", ";", "}" ]
public CreateKeyPairRequest(string keyName){_keyName = keyName;}
train
false
7,579
public boolean removeLastOccurrence(Object o) {Iterator<E> iter = new ReverseLinkIterator<E>(this);return removeOneOccurrence(o, iter);}
[ "public", "boolean", "removeLastOccurrence", "(", "Object", "o", ")", "{", "Iterator", "<", "E", ">", "iter", "=", "new", "ReverseLinkIterator", "<", "E", ">", "(", "this", ")", ";", "return", "removeOneOccurrence", "(", "o", ",", "iter", ")", ";", "}" ]
public virtual bool removeLastOccurrence(object o){java.util.Iterator<E> iter = new java.util.LinkedList<E>.ReverseLinkIterator<E>(this, this);return removeOneOccurrence(o, iter);}
train
false
7,580
public int keyAt(int index) {return mKeys[index];}
[ "public", "int", "keyAt", "(", "int", "index", ")", "{", "return", "mKeys", "[", "index", "]", ";", "}" ]
public virtual int keyAt(int index){return mKeys[index];}
train
false
7,581
public synchronized void setHierarchical(String dimName, boolean v) {DimConfig ft = fieldTypes.get(dimName);if (ft == null) {ft = new DimConfig();fieldTypes.put(dimName, ft);}ft.hierarchical = v;}
[ "public", "synchronized", "void", "setHierarchical", "(", "String", "dimName", ",", "boolean", "v", ")", "{", "DimConfig", "ft", "=", "fieldTypes", ".", "get", "(", "dimName", ")", ";", "if", "(", "ft", "==", "null", ")", "{", "ft", "=", "new", "DimConfig", "(", ")", ";", "fieldTypes", ".", "put", "(", "dimName", ",", "ft", ")", ";", "}", "ft", ".", "hierarchical", "=", "v", ";", "}" ]
public virtual void SetHierarchical(string dimName, bool v){lock (this){if (!fieldTypes.TryGetValue(dimName, out DimConfig fieldType)){fieldTypes[dimName] = new DimConfig { IsHierarchical = v };}else{fieldType.IsHierarchical = v;}}}
train
false
7,582
public ObjectId getOldObjectId() {return oldObjectId;}
[ "public", "ObjectId", "getOldObjectId", "(", ")", "{", "return", "oldObjectId", ";", "}" ]
public virtual ObjectId GetOldObjectId(){return oldObjectId;}
train
false
7,583
public static String toStringTree(final Tree t, final List<String> ruleNames) {String s = Utils.escapeWhitespace(getNodeText(t, ruleNames), false);if ( t.getChildCount()==0 ) return s;StringBuilder buf = new StringBuilder();buf.append("(");s = Utils.escapeWhitespace(getNodeText(t, ruleNames), false);buf.append(s);buf.append(' ');for (int i = 0; i<t.getChildCount(); i++) {if ( i>0 ) buf.append(' ');buf.append(toStringTree(t.getChild(i), ruleNames));}buf.append(")");return buf.toString();}
[ "public", "static", "String", "toStringTree", "(", "final", "Tree", "t", ",", "final", "List", "<", "String", ">", "ruleNames", ")", "{", "String", "s", "=", "Utils", ".", "escapeWhitespace", "(", "getNodeText", "(", "t", ",", "ruleNames", ")", ",", "false", ")", ";", "if", "(", "t", ".", "getChildCount", "(", ")", "==", "0", ")", "return", "s", ";", "StringBuilder", "buf", "=", "new", "StringBuilder", "(", ")", ";", "buf", ".", "append", "(", "\"(\"", ")", ";", "s", "=", "Utils", ".", "escapeWhitespace", "(", "getNodeText", "(", "t", ",", "ruleNames", ")", ",", "false", ")", ";", "buf", ".", "append", "(", "s", ")", ";", "buf", ".", "append", "(", "' '", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "t", ".", "getChildCount", "(", ")", ";", "i", "++", ")", "{", "if", "(", "i", ">", "0", ")", "buf", ".", "append", "(", "' '", ")", ";", "buf", ".", "append", "(", "toStringTree", "(", "t", ".", "getChild", "(", "i", ")", ",", "ruleNames", ")", ")", ";", "}", "buf", ".", "append", "(", "\")\"", ")", ";", "return", "buf", ".", "toString", "(", ")", ";", "}" ]
public static string ToStringTree(ITree t, IList<string> ruleNames){string s = Utils.EscapeWhitespace(GetNodeText(t, ruleNames), false);if (t.ChildCount == 0){return s;}StringBuilder buf = new StringBuilder();buf.Append("(");s = Utils.EscapeWhitespace(GetNodeText(t, ruleNames), false);buf.Append(s);buf.Append(' ');for (int i = 0; i < t.ChildCount; i++){if (i > 0){buf.Append(' ');}buf.Append(ToStringTree(t.GetChild(i), ruleNames));}buf.Append(")");return buf.ToString();}
train
false
7,584
public NavigableSet<E> headSet(E end, boolean endInclusive) {Comparator<? super E> c = backingMap.comparator();if (c == null) {((Comparable<E>) end).compareTo(end);} else {c.compare(end, end);}return new TreeSet<E>(backingMap.headMap(end, endInclusive));}
[ "public", "NavigableSet", "<", "E", ">", "headSet", "(", "E", "end", ",", "boolean", "endInclusive", ")", "{", "Comparator", "<", "?", "super", "E", ">", "c", "=", "backingMap", ".", "comparator", "(", ")", ";", "if", "(", "c", "==", "null", ")", "{", "(", "(", "Comparable", "<", "E", ">", ")", "end", ")", ".", "compareTo", "(", "end", ")", ";", "}", "else", "{", "c", ".", "compare", "(", "end", ",", "end", ")", ";", "}", "return", "new", "TreeSet", "<", "E", ">", "(", "backingMap", ".", "headMap", "(", "end", ",", "endInclusive", ")", ")", ";", "}" ]
public virtual java.util.NavigableSet<E> headSet(E end, bool endInclusive){java.util.Comparator<E> c = backingMap.comparator();if (c == null){((java.lang.Comparable<E>)end).compareTo(end);}else{c.compare(end, end);}return new java.util.TreeSet<E>(backingMap.headMap(end, endInclusive));}
train
false
7,585
public static ContentSource create(ObjectReader reader) {return new ObjectReaderSource(reader);}
[ "public", "static", "ContentSource", "create", "(", "ObjectReader", "reader", ")", "{", "return", "new", "ObjectReaderSource", "(", "reader", ")", ";", "}" ]
public static ContentSource Create(ObjectReader reader){return new ContentSource.ObjectReaderSource(reader);}
train
false
7,586
public void setReuseDeltas(boolean reuseDeltas) {this.reuseDeltas = reuseDeltas;}
[ "public", "void", "setReuseDeltas", "(", "boolean", "reuseDeltas", ")", "{", "this", ".", "reuseDeltas", "=", "reuseDeltas", ";", "}" ]
public virtual void SetReuseDeltas(bool reuseDeltas){this.reuseDeltas = reuseDeltas;}
train
false
7,587
public ListSkillsStoreSkillsByCategoryResult listSkillsStoreSkillsByCategory(ListSkillsStoreSkillsByCategoryRequest request) {request = beforeClientExecution(request);return executeListSkillsStoreSkillsByCategory(request);}
[ "public", "ListSkillsStoreSkillsByCategoryResult", "listSkillsStoreSkillsByCategory", "(", "ListSkillsStoreSkillsByCategoryRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListSkillsStoreSkillsByCategory", "(", "request", ")", ";", "}" ]
public virtual ListSkillsStoreSkillsByCategoryResponse ListSkillsStoreSkillsByCategory(ListSkillsStoreSkillsByCategoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSkillsStoreSkillsByCategoryRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSkillsStoreSkillsByCategoryResponseUnmarshaller.Instance;return Invoke<ListSkillsStoreSkillsByCategoryResponse>(request, options);}
train
true
7,588
public final Ref getRef(String name) {return advertisedRefs.get(name);}
[ "public", "final", "Ref", "getRef", "(", "String", "name", ")", "{", "return", "advertisedRefs", ".", "get", "(", "name", ")", ";", "}" ]
public Ref GetRef(string name){return advertisedRefs.Get(name);}
train
false
7,589
public ModifyInstanceGroupsResult modifyInstanceGroups(ModifyInstanceGroupsRequest request) {request = beforeClientExecution(request);return executeModifyInstanceGroups(request);}
[ "public", "ModifyInstanceGroupsResult", "modifyInstanceGroups", "(", "ModifyInstanceGroupsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyInstanceGroups", "(", "request", ")", ";", "}" ]
public virtual ModifyInstanceGroupsResponse ModifyInstanceGroups(ModifyInstanceGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstanceGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstanceGroupsResponseUnmarshaller.Instance;return Invoke<ModifyInstanceGroupsResponse>(request, options);}
train
true
7,590
public Object toObject() {return exists ? new Date(value) : null;}
[ "public", "Object", "toObject", "(", ")", "{", "return", "exists", "?", "new", "Date", "(", "value", ")", ":", "null", ";", "}" ]
public override object ToObject(){return Exists ? new DateTime(Value) as object : null;}
train
false
7,591
public DescribeDBInstanceAutomatedBackupsResult describeDBInstanceAutomatedBackups(DescribeDBInstanceAutomatedBackupsRequest request) {request = beforeClientExecution(request);return executeDescribeDBInstanceAutomatedBackups(request);}
[ "public", "DescribeDBInstanceAutomatedBackupsResult", "describeDBInstanceAutomatedBackups", "(", "DescribeDBInstanceAutomatedBackupsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDBInstanceAutomatedBackups", "(", "request", ")", ";", "}" ]
public virtual DescribeDBInstanceAutomatedBackupsResponse DescribeDBInstanceAutomatedBackups(DescribeDBInstanceAutomatedBackupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBInstanceAutomatedBackupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBInstanceAutomatedBackupsResponseUnmarshaller.Instance;return Invoke<DescribeDBInstanceAutomatedBackupsResponse>(request, options);}
train
true
7,592
public PreviewAgentsResult previewAgents(PreviewAgentsRequest request) {request = beforeClientExecution(request);return executePreviewAgents(request);}
[ "public", "PreviewAgentsResult", "previewAgents", "(", "PreviewAgentsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePreviewAgents", "(", "request", ")", ";", "}" ]
public virtual PreviewAgentsResponse PreviewAgents(PreviewAgentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PreviewAgentsRequestMarshaller.Instance;options.ResponseUnmarshaller = PreviewAgentsResponseUnmarshaller.Instance;return Invoke<PreviewAgentsResponse>(request, options);}
train
true
7,593
public QueryGroupUsersRequest() {super("LinkFace", "2018-07-20", "QueryGroupUsers");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
[ "public", "QueryGroupUsersRequest", "(", ")", "{", "super", "(", "\"LinkFace\"", ",", "\"2018-07-20\"", ",", "\"QueryGroupUsers\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public QueryGroupUsersRequest(): base("LinkFace", "2018-07-20", "QueryGroupUsers"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
train
false
7,594
public DescribeOptionGroupsResult describeOptionGroups(DescribeOptionGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeOptionGroups(request);}
[ "public", "DescribeOptionGroupsResult", "describeOptionGroups", "(", "DescribeOptionGroupsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeOptionGroups", "(", "request", ")", ";", "}" ]
public virtual DescribeOptionGroupsResponse DescribeOptionGroups(DescribeOptionGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeOptionGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeOptionGroupsResponseUnmarshaller.Instance;return Invoke<DescribeOptionGroupsResponse>(request, options);}
train
true
7,595
public UpdateGroupResult updateGroup(UpdateGroupRequest request) {request = beforeClientExecution(request);return executeUpdateGroup(request);}
[ "public", "UpdateGroupResult", "updateGroup", "(", "UpdateGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateGroup", "(", "request", ")", ";", "}" ]
public virtual UpdateGroupResponse UpdateGroup(UpdateGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGroupResponseUnmarshaller.Instance;return Invoke<UpdateGroupResponse>(request, options);}
train
true
7,596
public UpdateSigningCertificateRequest(String certificateId, StatusType status) {setCertificateId(certificateId);setStatus(status.toString());}
[ "public", "UpdateSigningCertificateRequest", "(", "String", "certificateId", ",", "StatusType", "status", ")", "{", "setCertificateId", "(", "certificateId", ")", ";", "setStatus", "(", "status", ".", "toString", "(", ")", ")", ";", "}" ]
public UpdateSigningCertificateRequest(string certificateId, StatusType status){_certificateId = certificateId;_status = status;}
train
false
7,597
public CreateInstancesResult createInstances(CreateInstancesRequest request) {request = beforeClientExecution(request);return executeCreateInstances(request);}
[ "public", "CreateInstancesResult", "createInstances", "(", "CreateInstancesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateInstances", "(", "request", ")", ";", "}" ]
public virtual CreateInstancesResponse CreateInstances(CreateInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateInstancesResponseUnmarshaller.Instance;return Invoke<CreateInstancesResponse>(request, options);}
train
true
7,598
public static int getRecordSizeForBlockCount(int blockCount) {return 20 + 4 * blockCount;}
[ "public", "static", "int", "getRecordSizeForBlockCount", "(", "int", "blockCount", ")", "{", "return", "20", "+", "4", "*", "blockCount", ";", "}" ]
public static int GetRecordSizeForBlockCount(int blockCount){return 20 + (4 * blockCount);}
train
false
7,599
public StopStreamEncryptionResult stopStreamEncryption(StopStreamEncryptionRequest request) {request = beforeClientExecution(request);return executeStopStreamEncryption(request);}
[ "public", "StopStreamEncryptionResult", "stopStreamEncryption", "(", "StopStreamEncryptionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStopStreamEncryption", "(", "request", ")", ";", "}" ]
public virtual StopStreamEncryptionResponse StopStreamEncryption(StopStreamEncryptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopStreamEncryptionRequestMarshaller.Instance;options.ResponseUnmarshaller = StopStreamEncryptionResponseUnmarshaller.Instance;return Invoke<StopStreamEncryptionResponse>(request, options);}
train
true
7,600
public GetPredictionResult getPrediction(GetPredictionRequest request) {request = beforeClientExecution(request);return executeGetPrediction(request);}
[ "public", "GetPredictionResult", "getPrediction", "(", "GetPredictionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetPrediction", "(", "request", ")", ";", "}" ]
public virtual GetPredictionResponse GetPrediction(GetPredictionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPredictionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPredictionResponseUnmarshaller.Instance;return Invoke<GetPredictionResponse>(request, options);}
train
false
7,601
public ModifyWorkspacePropertiesResult modifyWorkspaceProperties(ModifyWorkspacePropertiesRequest request) {request = beforeClientExecution(request);return executeModifyWorkspaceProperties(request);}
[ "public", "ModifyWorkspacePropertiesResult", "modifyWorkspaceProperties", "(", "ModifyWorkspacePropertiesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyWorkspaceProperties", "(", "request", ")", ";", "}" ]
public virtual ModifyWorkspacePropertiesResponse ModifyWorkspaceProperties(ModifyWorkspacePropertiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyWorkspacePropertiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyWorkspacePropertiesResponseUnmarshaller.Instance;return Invoke<ModifyWorkspacePropertiesResponse>(request, options);}
train
true
7,602
public void copyFrom(TermState _other) {assert _other instanceof BlockTermState : "can not copy from " + _other.getClass().getName();BlockTermState other = (BlockTermState) _other;super.copyFrom(_other);docFreq = other.docFreq;totalTermFreq = other.totalTermFreq;termBlockOrd = other.termBlockOrd;blockFilePointer = other.blockFilePointer;}
[ "public", "void", "copyFrom", "(", "TermState", "_other", ")", "{", "assert", "_other", "instanceof", "BlockTermState", ":", "\"can not copy from \"", "+", "_other", ".", "getClass", "(", ")", ".", "getName", "(", ")", ";", "BlockTermState", "other", "=", "(", "BlockTermState", ")", "_other", ";", "super", ".", "copyFrom", "(", "_other", ")", ";", "docFreq", "=", "other", ".", "docFreq", ";", "totalTermFreq", "=", "other", ".", "totalTermFreq", ";", "termBlockOrd", "=", "other", ".", "termBlockOrd", ";", "blockFilePointer", "=", "other", ".", "blockFilePointer", ";", "}" ]
public override void CopyFrom(TermState other){Debug.Assert(other is BlockTermState, "can not copy from " + other.GetType().Name);BlockTermState other2 = (BlockTermState)other;base.CopyFrom(other);DocFreq = other2.DocFreq;TotalTermFreq = other2.TotalTermFreq;TermBlockOrd = other2.TermBlockOrd;BlockFilePointer = other2.BlockFilePointer;}
train
false
7,603
public String getLine() {return command.getLine();}
[ "public", "String", "getLine", "(", ")", "{", "return", "command", ".", "getLine", "(", ")", ";", "}" ]
public virtual string GetLine(){return line;}
train
false
7,604
public static void release(Inflater i) {if (i != null) {i.reset();if (releaseImpl(i))i.end();}}
[ "public", "static", "void", "release", "(", "Inflater", "i", ")", "{", "if", "(", "i", "!=", "null", ")", "{", "i", ".", "reset", "(", ")", ";", "if", "(", "releaseImpl", "(", "i", ")", ")", "i", ".", "end", "(", ")", ";", "}", "}" ]
public static void Release(Inflater i){if (i != null){i.Reset();if (ReleaseImpl(i)){i.Finish();}}}
train
false
7,605
public EnumSet<RevSort> getRevSort() {return sorting.clone();}
[ "public", "EnumSet", "<", "RevSort", ">", "getRevSort", "(", ")", "{", "return", "sorting", ".", "clone", "(", ")", ";", "}" ]
public virtual EnumSet<RevSort> GetRevSort(){return sorting.Clone();}
train
false
7,606
public boolean removeFetchRefSpec(RefSpec s) {return fetch.remove(s);}
[ "public", "boolean", "removeFetchRefSpec", "(", "RefSpec", "s", ")", "{", "return", "fetch", ".", "remove", "(", "s", ")", ";", "}" ]
public virtual bool RemoveFetchRefSpec(RefSpec s){return fetch.Remove(s);}
train
false
7,607
public CharBuffer put(char c) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = c;return this;}
[ "public", "CharBuffer", "put", "(", "char", "c", ")", "{", "if", "(", "position", "==", "limit", ")", "{", "throw", "new", "BufferOverflowException", "(", ")", ";", "}", "backingArray", "[", "offset", "+", "position", "++", "]", "=", "c", ";", "return", "this", ";", "}" ]
public override java.nio.CharBuffer put(char c){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = c;return this;}
train
false
7,608
public int getRate() {return (perMin ? rate : 60*rate);}
[ "public", "int", "getRate", "(", ")", "{", "return", "(", "perMin", "?", "rate", ":", "60", "*", "rate", ")", ";", "}" ]
public virtual int GetRate(){return (perMin ? rate : 60 * rate);}
train
false
7,609
public DescribeDBParametersRequest(String dBParameterGroupName) {setDBParameterGroupName(dBParameterGroupName);}
[ "public", "DescribeDBParametersRequest", "(", "String", "dBParameterGroupName", ")", "{", "setDBParameterGroupName", "(", "dBParameterGroupName", ")", ";", "}" ]
public DescribeDBParametersRequest(string dbParameterGroupName){_dbParameterGroupName = dbParameterGroupName;}
train
false
7,610
public DeleteNodeResult deleteNode(DeleteNodeRequest request) {request = beforeClientExecution(request);return executeDeleteNode(request);}
[ "public", "DeleteNodeResult", "deleteNode", "(", "DeleteNodeRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteNode", "(", "request", ")", ";", "}" ]
public virtual DeleteNodeResponse DeleteNode(DeleteNodeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNodeRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNodeResponseUnmarshaller.Instance;return Invoke<DeleteNodeResponse>(request, options);}
train
false
7,611
@Override public List<E> subList(int from, int to) {Slice slice = this.slice;if (from < 0 || from > to || to > size()) {throw new IndexOutOfBoundsException("from=" + from + ", to=" + to +", list size=" + size());}return new CowSubList(slice.expectedElements, slice.from + from, slice.from + to);}
[ "@", "Override", "public", "List", "<", "E", ">", "subList", "(", "int", "from", ",", "int", "to", ")", "{", "Slice", "slice", "=", "this", ".", "slice", ";", "if", "(", "from", "<", "0", "||", "from", ">", "to", "||", "to", ">", "size", "(", ")", ")", "{", "throw", "new", "IndexOutOfBoundsException", "(", "\"from=\"", "+", "from", "+", "\", to=\"", "+", "to", "+", "\", list size=\"", "+", "size", "(", ")", ")", ";", "}", "return", "new", "CowSubList", "(", "slice", ".", "expectedElements", ",", "slice", ".", "from", "+", "from", ",", "slice", ".", "from", "+", "to", ")", ";", "}" ]
public virtual java.util.List<E> subList(int from, int to){object[] snapshot = elements;if (from < 0 || from > to || to > snapshot.Length){throw new System.IndexOutOfRangeException("from=" + from + ", to=" + to + ", list size="+ snapshot.Length);}return new java.util.concurrent.CopyOnWriteArrayList<E>.CowSubList(this, snapshot, from, to);}
train
false
7,612
public CompositeReaderContext build() {return (CompositeReaderContext) build(null, reader, 0, 0);}
[ "public", "CompositeReaderContext", "build", "(", ")", "{", "return", "(", "CompositeReaderContext", ")", "build", "(", "null", ",", "reader", ",", "0", ",", "0", ")", ";", "}" ]
public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}
train
false
7,613
public Cluster rebootCluster(RebootClusterRequest request) {request = beforeClientExecution(request);return executeRebootCluster(request);}
[ "public", "Cluster", "rebootCluster", "(", "RebootClusterRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRebootCluster", "(", "request", ")", ";", "}" ]
public virtual RebootClusterResponse RebootCluster(RebootClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootClusterResponseUnmarshaller.Instance;return Invoke<RebootClusterResponse>(request, options);}
train
true
7,614
public void setBorder(boolean value){field_1_options = border.setShortBoolean(field_1_options, value);}
[ "public", "void", "setBorder", "(", "boolean", "value", ")", "{", "field_1_options", "=", "border", ".", "setShortBoolean", "(", "field_1_options", ",", "value", ")", ";", "}" ]
public void SetBorder(bool value){field_1_options = border.SetShortBoolean(field_1_options, value);}
train
false
7,615
public DescribeExportTasksResult describeExportTasks(DescribeExportTasksRequest request) {request = beforeClientExecution(request);return executeDescribeExportTasks(request);}
[ "public", "DescribeExportTasksResult", "describeExportTasks", "(", "DescribeExportTasksRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeExportTasks", "(", "request", ")", ";", "}" ]
public virtual DescribeExportTasksResponse DescribeExportTasks(DescribeExportTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeExportTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeExportTasksResponseUnmarshaller.Instance;return Invoke<DescribeExportTasksResponse>(request, options);}
train
true
7,616
public SeriesLabelsRecord clone() {return copy();}
[ "public", "SeriesLabelsRecord", "clone", "(", ")", "{", "return", "copy", "(", ")", ";", "}" ]
public override Object Clone(){SeriesLabelsRecord rec = new SeriesLabelsRecord();rec.field_1_formatFlags = field_1_formatFlags;return rec;}
train
false
7,618
public String toString() {StringBuilder r = new StringBuilder();if (isOperatorInfix()) {infixToString(r);} else {prefixToString(r);}weightToString(r);return r.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "r", "=", "new", "StringBuilder", "(", ")", ";", "if", "(", "isOperatorInfix", "(", ")", ")", "{", "infixToString", "(", "r", ")", ";", "}", "else", "{", "prefixToString", "(", "r", ")", ";", "}", "weightToString", "(", "r", ")", ";", "return", "r", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){StringBuilder r = new StringBuilder();if (IsOperatorInfix){InfixToString(r);}else{PrefixToString(r);}WeightToString(r);return r.ToString();}
train
false
7,619
public String getPreferredAuthentications() {return preferredAuthentications;}
[ "public", "String", "getPreferredAuthentications", "(", ")", "{", "return", "preferredAuthentications", ";", "}" ]
public virtual string GetPreferredAuthentications(){return preferredAuthentications;}
train
false
7,620
public int size() {return elements.length;}
[ "public", "int", "size", "(", ")", "{", "return", "elements", ".", "length", ";", "}" ]
public virtual int size(){return elements.Length;}
train
false
7,621
public ListPartnerEventSourcesResult listPartnerEventSources(ListPartnerEventSourcesRequest request) {request = beforeClientExecution(request);return executeListPartnerEventSources(request);}
[ "public", "ListPartnerEventSourcesResult", "listPartnerEventSources", "(", "ListPartnerEventSourcesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListPartnerEventSources", "(", "request", ")", ";", "}" ]
public virtual ListPartnerEventSourcesResponse ListPartnerEventSources(ListPartnerEventSourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPartnerEventSourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPartnerEventSourcesResponseUnmarshaller.Instance;return Invoke<ListPartnerEventSourcesResponse>(request, options);}
train
false
7,622
public void write(byte[] buffer, int offset, int length) {Arrays.checkOffsetAndCount(buffer.length, offset, length);synchronized (this) {if (out == null) {setError();return;}try {out.write(buffer, offset, length);if (autoFlush) {flush();}} catch (IOException e) {setError();}}}
[ "public", "void", "write", "(", "byte", "[", "]", "buffer", ",", "int", "offset", ",", "int", "length", ")", "{", "Arrays", ".", "checkOffsetAndCount", "(", "buffer", ".", "length", ",", "offset", ",", "length", ")", ";", "synchronized", "(", "this", ")", "{", "if", "(", "out", "==", "null", ")", "{", "setError", "(", ")", ";", "return", ";", "}", "try", "{", "out", ".", "write", "(", "buffer", ",", "offset", ",", "length", ")", ";", "if", "(", "autoFlush", ")", "{", "flush", "(", ")", ";", "}", "}", "catch", "(", "IOException", "e", ")", "{", "setError", "(", ")", ";", "}", "}", "}" ]
public override void write(byte[] buffer, int offset, int length){java.util.Arrays.checkOffsetAndCount(buffer.Length, offset, length);lock (this){if (@out == null){setError();return;}try{@out.write(buffer, offset, length);if (autoFlush){flush();}}catch (System.IO.IOException){setError();}}}
train
false
7,623
public ListRegisteredTagsRequest() {super("CloudPhoto", "2017-07-11", "ListRegisteredTags", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
[ "public", "ListRegisteredTagsRequest", "(", ")", "{", "super", "(", "\"CloudPhoto\"", ",", "\"2017-07-11\"", ",", "\"ListRegisteredTags\"", ",", "\"cloudphoto\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "}" ]
public ListRegisteredTagsRequest(): base("CloudPhoto", "2017-07-11", "ListRegisteredTags", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
train
false
7,624
public DeleteDBSubnetGroupResult deleteDBSubnetGroup(DeleteDBSubnetGroupRequest request) {request = beforeClientExecution(request);return executeDeleteDBSubnetGroup(request);}
[ "public", "DeleteDBSubnetGroupResult", "deleteDBSubnetGroup", "(", "DeleteDBSubnetGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteDBSubnetGroup", "(", "request", ")", ";", "}" ]
public virtual DeleteDBSubnetGroupResponse DeleteDBSubnetGroup(DeleteDBSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBSubnetGroupResponseUnmarshaller.Instance;return Invoke<DeleteDBSubnetGroupResponse>(request, options);}
train
true
7,625
public PacketLineOut(OutputStream outputStream) {out = outputStream;lenbuffer = new byte[5];flushOnEnd = true;}
[ "public", "PacketLineOut", "(", "OutputStream", "outputStream", ")", "{", "out", "=", "outputStream", ";", "lenbuffer", "=", "new", "byte", "[", "5", "]", ";", "flushOnEnd", "=", "true", ";", "}" ]
public PacketLineOut(OutputStream outputStream){@out = outputStream;lenbuffer = new byte[5];flushOnEnd = true;}
train
false
7,626
public void appendDebugInfo(StringBuilder sb) {sb.append('(');sb.append( "isxvi=").append(HexDump.shortToHex(_isxvi));sb.append(" isxvd=").append(HexDump.shortToHex(_isxvd));sb.append(" idObj=").append(HexDump.shortToHex(_idObj));sb.append(')');}
[ "public", "void", "appendDebugInfo", "(", "StringBuilder", "sb", ")", "{", "sb", ".", "append", "(", "'('", ")", ";", "sb", ".", "append", "(", "\"isxvi=\"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "_isxvi", ")", ")", ";", "sb", ".", "append", "(", "\" isxvd=\"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "_isxvd", ")", ")", ";", "sb", ".", "append", "(", "\" idObj=\"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "_idObj", ")", ")", ";", "sb", ".", "append", "(", "')'", ")", ";", "}" ]
public void AppendDebugInfo(StringBuilder sb){sb.Append('(');sb.Append("isxvi=").Append(HexDump.ShortToHex(_isxvi));sb.Append(" isxvd=").Append(HexDump.ShortToHex(_isxvd));sb.Append(" idObj=").Append(HexDump.ShortToHex(_idObj));sb.Append(')');}
train
false
7,627
public InterfaceHdrRecord(RecordInputStream in) {_codepage = in.readShort();}
[ "public", "InterfaceHdrRecord", "(", "RecordInputStream", "in", ")", "{", "_codepage", "=", "in", ".", "readShort", "(", ")", ";", "}" ]
public InterfaceHdrRecord(RecordInputStream in1){_codepage = in1.ReadShort();}
train
false
7,628
public DescribeVaultRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}
[ "public", "DescribeVaultRequest", "(", "String", "accountId", ",", "String", "vaultName", ")", "{", "setAccountId", "(", "accountId", ")", ";", "setVaultName", "(", "vaultName", ")", ";", "}" ]
public DescribeVaultRequest(string accountId, string vaultName){_accountId = accountId;_vaultName = vaultName;}
train
false
7,629
public void add(String match, String replacement) {if (match.length() == 0 ){throw new IllegalArgumentException("cannot match the empty string");}if (pendingPairs.containsKey(match)) {throw new IllegalArgumentException("match \"" + match + "\" was already added");}pendingPairs.put(match, replacement);}
[ "public", "void", "add", "(", "String", "match", ",", "String", "replacement", ")", "{", "if", "(", "match", ".", "length", "(", ")", "==", "0", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"cannot match the empty string\"", ")", ";", "}", "if", "(", "pendingPairs", ".", "containsKey", "(", "match", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"match \\\"\"", "+", "match", "+", "\"\\\" was already added\"", ")", ";", "}", "pendingPairs", ".", "put", "(", "match", ",", "replacement", ")", ";", "}" ]
public virtual void Add(string match, string replacement){if (match.Length == 0){throw new System.ArgumentException("cannot match the empty string");}if (pendingPairs.ContainsKey(match)){throw new System.ArgumentException("match \"" + match + "\" was already added");}pendingPairs[match] = replacement;}
train
false
7,630
public boolean equals(Object o) {if (this == o) {return true;}else if ( !(o instanceof ArrayPredictionContext) ) {return false;}if ( this.hashCode() != o.hashCode() ) {return false; }ArrayPredictionContext a = (ArrayPredictionContext)o;return Arrays.equals(returnStates, a.returnStates) &&Arrays.equals(parents, a.parents);}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "if", "(", "this", "==", "o", ")", "{", "return", "true", ";", "}", "else", "if", "(", "!", "(", "o", "instanceof", "ArrayPredictionContext", ")", ")", "{", "return", "false", ";", "}", "if", "(", "this", ".", "hashCode", "(", ")", "!=", "o", ".", "hashCode", "(", ")", ")", "{", "return", "false", ";", "}", "ArrayPredictionContext", "a", "=", "(", "ArrayPredictionContext", ")", "o", ";", "return", "Arrays", ".", "equals", "(", "returnStates", ",", "a", ".", "returnStates", ")", "&&", "Arrays", ".", "equals", "(", "parents", ",", "a", ".", "parents", ")", ";", "}" ]
public override bool Equals(Object o){if (this == o){return true;}else if (!(o is ArrayPredictionContext)){return false;}if (this.GetHashCode() != o.GetHashCode()){return false; }ArrayPredictionContext a = (ArrayPredictionContext)o;return Arrays.Equals(returnStates, a.returnStates) &&Arrays.Equals(parents, a.parents);}
train
false
7,631
public byte[] toArray() {if (arrays.isEmpty()) {return null;} else if (arrays.size() > 1) {int totalLength = 0;for (byte[] array : arrays) {totalLength += array.length;}byte[] concatenated = new byte[totalLength];int destPos = 0;for (byte[] array : arrays) {System.arraycopy(array, 0, concatenated, destPos, array.length);destPos += array.length;}arrays.clear();arrays.add(concatenated);}return arrays.get(0);}
[ "public", "byte", "[", "]", "toArray", "(", ")", "{", "if", "(", "arrays", ".", "isEmpty", "(", ")", ")", "{", "return", "null", ";", "}", "else", "if", "(", "arrays", ".", "size", "(", ")", ">", "1", ")", "{", "int", "totalLength", "=", "0", ";", "for", "(", "byte", "[", "]", "array", ":", "arrays", ")", "{", "totalLength", "+=", "array", ".", "length", ";", "}", "byte", "[", "]", "concatenated", "=", "new", "byte", "[", "totalLength", "]", ";", "int", "destPos", "=", "0", ";", "for", "(", "byte", "[", "]", "array", ":", "arrays", ")", "{", "System", ".", "arraycopy", "(", "array", ",", "0", ",", "concatenated", ",", "destPos", ",", "array", ".", "length", ")", ";", "destPos", "+=", "array", ".", "length", ";", "}", "arrays", ".", "clear", "(", ")", ";", "arrays", ".", "add", "(", "concatenated", ")", ";", "}", "return", "arrays", ".", "get", "(", "0", ")", ";", "}" ]
public byte[] ToArray(){if (arrays.Count==0){return null;}else if (arrays.Count > 1){int totalLength = 0;foreach (byte[] array in arrays){totalLength += array.Length;}byte[] concatenated = new byte[totalLength];int destPos = 0;foreach (byte[] array in arrays){Array.Copy(array, 0, concatenated, destPos, array.Length);destPos += array.Length;}arrays.Clear();arrays.Add(concatenated);}return arrays[(0)];}
train
false
7,632
public void serialize(LittleEndianOutput out) {int nItems = field_1_seriesNumbers.length;out.writeShort(nItems);for (int i = 0; i < nItems; i++) {out.writeShort(field_1_seriesNumbers[i]);}}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "int", "nItems", "=", "field_1_seriesNumbers", ".", "length", ";", "out", ".", "writeShort", "(", "nItems", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "nItems", ";", "i", "++", ")", "{", "out", ".", "writeShort", "(", "field_1_seriesNumbers", "[", "i", "]", ")", ";", "}", "}" ]
public override void Serialize(ILittleEndianOutput out1){int nItems = field_1_seriesNumbers.Length;out1.WriteShort(nItems);for (int i = 0; i < nItems; i++){out1.WriteShort(field_1_seriesNumbers[i]);}}
train
false
7,633
public boolean removePushURI(URIish toRemove) {return pushURIs.remove(toRemove);}
[ "public", "boolean", "removePushURI", "(", "URIish", "toRemove", ")", "{", "return", "pushURIs", ".", "remove", "(", "toRemove", ")", ";", "}" ]
public virtual bool RemovePushURI(URIish toRemove){return pushURIs.Remove(toRemove);}
train
false
7,634
public StringBuilder append(String str) {append0(str);return this;}
[ "public", "StringBuilder", "append", "(", "String", "str", ")", "{", "append0", "(", "str", ")", ";", "return", "this", ";", "}" ]
public java.lang.StringBuilder append(string str){append0(str);return this;}
train
false
7,635
public synchronized void close() {flush();if (out != null) {try {out.close();out = null;} catch (IOException e) {setError();}}}
[ "public", "synchronized", "void", "close", "(", ")", "{", "flush", "(", ")", ";", "if", "(", "out", "!=", "null", ")", "{", "try", "{", "out", ".", "close", "(", ")", ";", "out", "=", "null", ";", "}", "catch", "(", "IOException", "e", ")", "{", "setError", "(", ")", ";", "}", "}", "}" ]
public override void close(){lock (this){flush();if (@out != null){try{@out.close();@out = null;}catch (System.IO.IOException){setError();}}}}
train
false
7,636
public final BytesRef[] getBinaryValues(String name) {final List<BytesRef> result = new ArrayList<>();for (IndexableField field : fields) {if (field.name().equals(name)) {final BytesRef bytes = field.binaryValue();if (bytes != null) {result.add(bytes);}}}return result.toArray(new BytesRef[result.size()]);}
[ "public", "final", "BytesRef", "[", "]", "getBinaryValues", "(", "String", "name", ")", "{", "final", "List", "<", "BytesRef", ">", "result", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "for", "(", "IndexableField", "field", ":", "fields", ")", "{", "if", "(", "field", ".", "name", "(", ")", ".", "equals", "(", "name", ")", ")", "{", "final", "BytesRef", "bytes", "=", "field", ".", "binaryValue", "(", ")", ";", "if", "(", "bytes", "!=", "null", ")", "{", "result", ".", "add", "(", "bytes", ")", ";", "}", "}", "}", "return", "result", ".", "toArray", "(", "new", "BytesRef", "[", "result", ".", "size", "(", ")", "]", ")", ";", "}" ]
public BytesRef[] GetBinaryValues(string name){var result = new List<BytesRef>();foreach (IIndexableField field in fields){if (field.Name.Equals(name, StringComparison.Ordinal)){BytesRef bytes = field.GetBinaryValue();if (bytes != null){result.Add(bytes);}}}return result.ToArray();}
train
false
7,637
public final void backup(int amount) {bufferPosition -= amount;}
[ "public", "final", "void", "backup", "(", "int", "amount", ")", "{", "bufferPosition", "-=", "amount", ";", "}" ]
public void BackUp(int amount){bufferPosition -= amount;}
train
false
7,638
public void addChildRecord(EscherRecord childRecord) {getChildRecords().add( childRecord );}
[ "public", "void", "addChildRecord", "(", "EscherRecord", "childRecord", ")", "{", "getChildRecords", "(", ")", ".", "add", "(", "childRecord", ")", ";", "}" ]
public void AddChildRecord(EscherRecord childRecord){ChildRecords.Add(childRecord);}
train
false
7,639
public DeleteExpressionResult deleteExpression(DeleteExpressionRequest request) {request = beforeClientExecution(request);return executeDeleteExpression(request);}
[ "public", "DeleteExpressionResult", "deleteExpression", "(", "DeleteExpressionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteExpression", "(", "request", ")", ";", "}" ]
public virtual DeleteExpressionResponse DeleteExpression(DeleteExpressionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteExpressionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteExpressionResponseUnmarshaller.Instance;return Invoke<DeleteExpressionResponse>(request, options);}
train
true
7,640
public ReorderReceiptRuleSetResult reorderReceiptRuleSet(ReorderReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeReorderReceiptRuleSet(request);}
[ "public", "ReorderReceiptRuleSetResult", "reorderReceiptRuleSet", "(", "ReorderReceiptRuleSetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeReorderReceiptRuleSet", "(", "request", ")", ";", "}" ]
public virtual ReorderReceiptRuleSetResponse ReorderReceiptRuleSet(ReorderReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReorderReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = ReorderReceiptRuleSetResponseUnmarshaller.Instance;return Invoke<ReorderReceiptRuleSetResponse>(request, options);}
train
true
7,641
public FtrHeader(RecordInputStream in) {recordType = in.readShort();grbitFrt = in.readShort();associatedRange = new CellRangeAddress(in);}
[ "public", "FtrHeader", "(", "RecordInputStream", "in", ")", "{", "recordType", "=", "in", ".", "readShort", "(", ")", ";", "grbitFrt", "=", "in", ".", "readShort", "(", ")", ";", "associatedRange", "=", "new", "CellRangeAddress", "(", "in", ")", ";", "}" ]
public FtrHeader(RecordInputStream in1){recordType = in1.ReadShort();grbitFrt = in1.ReadShort();reserved = new byte[8];in1.Read(reserved, 0, 8);}
train
false
7,642
public PutVoiceConnectorProxyResult putVoiceConnectorProxy(PutVoiceConnectorProxyRequest request) {request = beforeClientExecution(request);return executePutVoiceConnectorProxy(request);}
[ "public", "PutVoiceConnectorProxyResult", "putVoiceConnectorProxy", "(", "PutVoiceConnectorProxyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutVoiceConnectorProxy", "(", "request", ")", ";", "}" ]
public virtual PutVoiceConnectorProxyResponse PutVoiceConnectorProxy(PutVoiceConnectorProxyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutVoiceConnectorProxyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutVoiceConnectorProxyResponseUnmarshaller.Instance;return Invoke<PutVoiceConnectorProxyResponse>(request, options);}
train
false
7,643
public DescribeDataSourcePermissionsResult describeDataSourcePermissions(DescribeDataSourcePermissionsRequest request) {request = beforeClientExecution(request);return executeDescribeDataSourcePermissions(request);}
[ "public", "DescribeDataSourcePermissionsResult", "describeDataSourcePermissions", "(", "DescribeDataSourcePermissionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDataSourcePermissions", "(", "request", ")", ";", "}" ]
public virtual DescribeDataSourcePermissionsResponse DescribeDataSourcePermissions(DescribeDataSourcePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDataSourcePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDataSourcePermissionsResponseUnmarshaller.Instance;return Invoke<DescribeDataSourcePermissionsResponse>(request, options);}
train
false
7,645
public final void writeByte(int val) throws IOException {out.write(val);written++;}
[ "public", "final", "void", "writeByte", "(", "int", "val", ")", "throws", "IOException", "{", "out", ".", "write", "(", "val", ")", ";", "written", "++", ";", "}" ]
public virtual void writeByte(int val){throw new System.NotImplementedException();}
train
false