id_within_dataset
int64
0
10.3k
snippet
stringlengths
29
1.4k
tokens
listlengths
10
314
cs
stringlengths
28
1.38k
split_within_dataset
stringclasses
1 value
is_duplicated
bool
2 classes
9,770
public PackLock(File packFile, FS fs) {final File p = packFile.getParentFile();final String n = packFile.getName();keepFile = new File(p, n.substring(0, n.length() - 5) + ".keep"); }
[ "public", "PackLock", "(", "File", "packFile", ",", "FS", "fs", ")", "{", "final", "File", "p", "=", "packFile", ".", "getParentFile", "(", ")", ";", "final", "String", "n", "=", "packFile", ".", "getName", "(", ")", ";", "keepFile", "=", "new", "Fil...
public PackLock(FilePath packFile, FS fs){FilePath p = packFile.GetParentFile();string n = packFile.GetName();keepFile = new FilePath(p, Sharpen.Runtime.Substring(n, 0, n.Length - 5) + ".keep");this.fs = fs;}
train
false
9,771
public CreatePublicKeyResult createPublicKey(CreatePublicKeyRequest request) {request = beforeClientExecution(request);return executeCreatePublicKey(request);}
[ "public", "CreatePublicKeyResult", "createPublicKey", "(", "CreatePublicKeyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreatePublicKey", "(", "request", ")", ";", "}" ]
public virtual CreatePublicKeyResponse CreatePublicKey(CreatePublicKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePublicKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePublicKeyResponseUnmarshaller.Instance;return Invoke<CreatePublicKeyResponse>(request, optio...
train
true
9,772
public PersonIdent getRefLogIdent() {return refLogIdent;}
[ "public", "PersonIdent", "getRefLogIdent", "(", ")", "{", "return", "refLogIdent", ";", "}" ]
public virtual PersonIdent GetRefLogIdent(){return refLogIdent;}
train
false
9,773
public boolean equals(Object o) {if (this == o) {return true;}if (!(o instanceof EscherComplexProperty)) {return false;}EscherComplexProperty escherComplexProperty = (EscherComplexProperty) o;return Arrays.equals(complexData, escherComplexProperty.complexData);}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "if", "(", "this", "==", "o", ")", "{", "return", "true", ";", "}", "if", "(", "!", "(", "o", "instanceof", "EscherComplexProperty", ")", ")", "{", "return", "false", ";", "}", "EscherCompl...
public override bool Equals(Object o){if (this == o) return true;if (!(o is EscherComplexProperty)) return false;EscherComplexProperty escherComplexProperty = (EscherComplexProperty)o;if (!Arrays.Equals(_complexData, escherComplexProperty._complexData)) return false;return true;}
train
false
9,774
public void unread(int oneByte) throws IOException {if (buf == null) {throw new IOException();}if (pos == 0) {throw new IOException("Pushback buffer full");}buf[--pos] = (byte) oneByte;}
[ "public", "void", "unread", "(", "int", "oneByte", ")", "throws", "IOException", "{", "if", "(", "buf", "==", "null", ")", "{", "throw", "new", "IOException", "(", ")", ";", "}", "if", "(", "pos", "==", "0", ")", "{", "throw", "new", "IOException", ...
public virtual void unread(int oneByte){if (buf == null){throw new System.IO.IOException();}if (pos == 0){throw new System.IO.IOException("Pushback buffer full");}buf[--pos] = unchecked((byte)oneByte);}
train
false
9,775
public GetSegmentImportJobsResult getSegmentImportJobs(GetSegmentImportJobsRequest request) {request = beforeClientExecution(request);return executeGetSegmentImportJobs(request);}
[ "public", "GetSegmentImportJobsResult", "getSegmentImportJobs", "(", "GetSegmentImportJobsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetSegmentImportJobs", "(", "request", ")", ";", "}" ]
public virtual GetSegmentImportJobsResponse GetSegmentImportJobs(GetSegmentImportJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentImportJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentImportJobsResponseUnmarshaller.Instance;return Invoke<GetSegmentImpo...
train
true
9,776
public VerifyEmailAddressResult verifyEmailAddress(VerifyEmailAddressRequest request) {request = beforeClientExecution(request);return executeVerifyEmailAddress(request);}
[ "public", "VerifyEmailAddressResult", "verifyEmailAddress", "(", "VerifyEmailAddressRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeVerifyEmailAddress", "(", "request", ")", ";", "}" ]
public virtual VerifyEmailAddressResponse VerifyEmailAddress(VerifyEmailAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = VerifyEmailAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = VerifyEmailAddressResponseUnmarshaller.Instance;return Invoke<VerifyEmailAddressRespon...
train
true
9,777
public GetTagsResult getTags(GetTagsRequest request) {request = beforeClientExecution(request);return executeGetTags(request);}
[ "public", "GetTagsResult", "getTags", "(", "GetTagsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetTags", "(", "request", ")", ";", "}" ]
public virtual GetTagsResponse GetTags(GetTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTagsResponseUnmarshaller.Instance;return Invoke<GetTagsResponse>(request, options);}
train
true
9,778
public String toString(){StringBuilder sb = new StringBuilder();sb.append( text ).append( '(' );for( Toffs to : termsOffsets )sb.append( to.toString() );sb.append( ')' );return sb.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "sb", ".", "append", "(", "text", ")", ".", "append", "(", "'('", ")", ";", "for", "(", "Toffs", "to", ":", "termsOffsets", ")", "sb", ...
public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append(text).Append('(');foreach (Toffs to in termsOffsets)sb.Append(to.ToString());sb.Append(')');return sb.ToString();}
train
false
9,779
public RevFilter clone() {return new Binary(a.clone(), b.clone());}
[ "public", "RevFilter", "clone", "(", ")", "{", "return", "new", "Binary", "(", "a", ".", "clone", "(", ")", ",", "b", ".", "clone", "(", ")", ")", ";", "}" ]
public override TreeFilter Clone(){return new OrTreeFilter.Binary(a.Clone(), b.Clone());}
train
false
9,780
public StandardTokenizerImpl(java.io.Reader in) {this.zzReader = in;}
[ "public", "StandardTokenizerImpl", "(", "java", ".", "io", ".", "Reader", "in", ")", "{", "this", ".", "zzReader", "=", "in", ";", "}" ]
public StandardTokenizerImpl(TextReader @in){this.zzReader = @in;}
train
false
9,781
public MoPenFindGroupRequest() {super("MoPen", "2018-02-11", "MoPenFindGroup", "mopen");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
[ "public", "MoPenFindGroupRequest", "(", ")", "{", "super", "(", "\"MoPen\"", ",", "\"2018-02-11\"", ",", "\"MoPenFindGroup\"", ",", "\"mopen\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ...
public MoPenFindGroupRequest(): base("MoPen", "2018-02-11", "MoPenFindGroup", "mopen", "openAPI"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
train
false
9,782
public static BreakIterator getLineInstance() {return getLineInstance(Locale.getDefault());}
[ "public", "static", "BreakIterator", "getLineInstance", "(", ")", "{", "return", "getLineInstance", "(", "Locale", ".", "getDefault", "(", ")", ")", ";", "}" ]
public static java.text.BreakIterator getLineInstance(){return getLineInstance(System.Globalization.CultureInfo.CurrentCulture);}
train
false
9,783
public boolean exists() {return true;}
[ "public", "boolean", "exists", "(", ")", "{", "return", "true", ";", "}" ]
public virtual bool Exists(){return true;}
train
false
9,784
public LongBuffer asReadOnlyBuffer() {LongToByteBufferAdapter buf = new LongToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf.limit = limit;buf.position = position;buf.mark = mark;buf.byteBuffer.order = byteBuffer.order;return buf;}
[ "public", "LongBuffer", "asReadOnlyBuffer", "(", ")", "{", "LongToByteBufferAdapter", "buf", "=", "new", "LongToByteBufferAdapter", "(", "byteBuffer", ".", "asReadOnlyBuffer", "(", ")", ")", ";", "buf", ".", "limit", "=", "limit", ";", "buf", ".", "position", ...
public override java.nio.LongBuffer asReadOnlyBuffer(){java.nio.LongToByteBufferAdapter buf = new java.nio.LongToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf._limit = _limit;buf._position = _position;buf._mark = _mark;buf.byteBuffer._order = byteBuffer._order;return buf;}
train
false
9,785
public void writeBytes(byte[] b, int offset, int length) {assert b.length >= offset + length;if (length == 0) {return;}if (upto == blockSize) {if (currentBlock != null) {addBlock(currentBlock);}currentBlock = new byte[blockSize];upto = 0;}final int offsetEnd = offset + length;while(true) {final int left = offsetEnd - o...
[ "public", "void", "writeBytes", "(", "byte", "[", "]", "b", ",", "int", "offset", ",", "int", "length", ")", "{", "assert", "b", ".", "length", ">=", "offset", "+", "length", ";", "if", "(", "length", "==", "0", ")", "{", "return", ";", "}", "if"...
public override void WriteBytes(byte[] b, int offset, int length){Debug.Assert(b.Length >= offset + length);if (length == 0){return;}if (outerInstance.upto == outerInstance.blockSize){if (outerInstance.currentBlock != null){outerInstance.blocks.Add(outerInstance.currentBlock);outerInstance.blockEnd.Add(outerInstance.up...
train
false
9,786
public ByteBuffer putFloat(float value) {throw new ReadOnlyBufferException();}
[ "public", "ByteBuffer", "putFloat", "(", "float", "value", ")", "{", "throw", "new", "ReadOnlyBufferException", "(", ")", ";", "}" ]
public override java.nio.ByteBuffer putFloat(float value){throw new System.NotImplementedException();}
train
false
9,787
public Class<?> getArgumentClass() {return arg;}
[ "public", "Class", "<", "?", ">", "getArgumentClass", "(", ")", "{", "return", "arg", ";", "}" ]
public virtual System.Type getArgumentClass(){return arg;}
train
false
9,788
public GetVaultAccessPolicyResult getVaultAccessPolicy(GetVaultAccessPolicyRequest request) {request = beforeClientExecution(request);return executeGetVaultAccessPolicy(request);}
[ "public", "GetVaultAccessPolicyResult", "getVaultAccessPolicy", "(", "GetVaultAccessPolicyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetVaultAccessPolicy", "(", "request", ")", ";", "}" ]
public virtual GetVaultAccessPolicyResponse GetVaultAccessPolicy(GetVaultAccessPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVaultAccessPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVaultAccessPolicyResponseUnmarshaller.Instance;return Invoke<GetVaultAccess...
train
true
9,789
public GetReusableDelegationSetLimitResult getReusableDelegationSetLimit(GetReusableDelegationSetLimitRequest request) {request = beforeClientExecution(request);return executeGetReusableDelegationSetLimit(request);}
[ "public", "GetReusableDelegationSetLimitResult", "getReusableDelegationSetLimit", "(", "GetReusableDelegationSetLimitRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetReusableDelegationSetLimit", "(", "request",...
public virtual GetReusableDelegationSetLimitResponse GetReusableDelegationSetLimit(GetReusableDelegationSetLimitRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetReusableDelegationSetLimitRequestMarshaller.Instance;options.ResponseUnmarshaller = GetReusableDelegationSetLimitResponseUnmar...
train
true
9,790
public int compareTo( WeightedPhraseInfo other ) {int diff = getStartOffset() - other.getStartOffset();if ( diff != 0 ) {return diff;}diff = getEndOffset() - other.getEndOffset();if ( diff != 0 ) {return diff;}return (int) Math.signum( getBoost() - other.getBoost() );}
[ "public", "int", "compareTo", "(", "WeightedPhraseInfo", "other", ")", "{", "int", "diff", "=", "getStartOffset", "(", ")", "-", "other", ".", "getStartOffset", "(", ")", ";", "if", "(", "diff", "!=", "0", ")", "{", "return", "diff", ";", "}", "diff", ...
public virtual int CompareTo(WeightedPhraseInfo other){int diff = StartOffset - other.StartOffset;if (diff != 0){return diff;}diff = EndOffset - other.EndOffset;if (diff != 0){return diff;}return (int)Math.Sign(Boost - other.Boost);}
train
false
9,791
public StopRelationalDatabaseResult stopRelationalDatabase(StopRelationalDatabaseRequest request) {request = beforeClientExecution(request);return executeStopRelationalDatabase(request);}
[ "public", "StopRelationalDatabaseResult", "stopRelationalDatabase", "(", "StopRelationalDatabaseRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStopRelationalDatabase", "(", "request", ")", ";", "}" ]
public virtual StopRelationalDatabaseResponse StopRelationalDatabase(StopRelationalDatabaseRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopRelationalDatabaseRequestMarshaller.Instance;options.ResponseUnmarshaller = StopRelationalDatabaseResponseUnmarshaller.Instance;return Invoke<Stop...
train
true
9,792
public void clear() {Arrays.fill(blocks, 0L);}
[ "public", "void", "clear", "(", ")", "{", "Arrays", ".", "fill", "(", "blocks", ",", "0L", ")", ";", "}" ]
public override void Clear(){Arrays.Fill(blocks, 0L);}
train
false
9,793
public UpdateScriptResult updateScript(UpdateScriptRequest request) {request = beforeClientExecution(request);return executeUpdateScript(request);}
[ "public", "UpdateScriptResult", "updateScript", "(", "UpdateScriptRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateScript", "(", "request", ")", ";", "}" ]
public virtual UpdateScriptResponse UpdateScript(UpdateScriptRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateScriptRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateScriptResponseUnmarshaller.Instance;return Invoke<UpdateScriptResponse>(request, options);}
train
true
9,794
public InterpreterRuleContext(ParserRuleContext parent,int invokingStateNumber,int ruleIndex){super(parent, invokingStateNumber);this.ruleIndex = ruleIndex;}
[ "public", "InterpreterRuleContext", "(", "ParserRuleContext", "parent", ",", "int", "invokingStateNumber", ",", "int", "ruleIndex", ")", "{", "super", "(", "parent", ",", "invokingStateNumber", ")", ";", "this", ".", "ruleIndex", "=", "ruleIndex", ";", "}" ]
public InterpreterRuleContext(ParserRuleContext parent, int invokingStateNumber, int ruleIndex): base(parent, invokingStateNumber){this.ruleIndex = ruleIndex;}
train
false
9,795
public CreateFileSystemFromBackupResult createFileSystemFromBackup(CreateFileSystemFromBackupRequest request) {request = beforeClientExecution(request);return executeCreateFileSystemFromBackup(request);}
[ "public", "CreateFileSystemFromBackupResult", "createFileSystemFromBackup", "(", "CreateFileSystemFromBackupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateFileSystemFromBackup", "(", "request", ")", ";...
public virtual CreateFileSystemFromBackupResponse CreateFileSystemFromBackup(CreateFileSystemFromBackupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFileSystemFromBackupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFileSystemFromBackupResponseUnmarshaller.Instanc...
train
true
9,796
public int getLevelForDistance(double dist) {if (dist == 0){return maxLevels;}int level = S2Projections.MAX_WIDTH.getMinLevel(dist * DistanceUtils.DEGREES_TO_RADIANS);int roundLevel = level % arity != 0 ? 1 : 0;level = level/arity + roundLevel;return Math.min(maxLevels, level + 1);}
[ "public", "int", "getLevelForDistance", "(", "double", "dist", ")", "{", "if", "(", "dist", "==", "0", ")", "{", "return", "maxLevels", ";", "}", "int", "level", "=", "S2Projections", ".", "MAX_WIDTH", ".", "getMinLevel", "(", "dist", "*", "DistanceUtils",...
public override int GetLevelForDistance(double dist){if (dist == 0){return m_maxLevels;}int level = GeohashUtils.LookupHashLenForWidthHeight(dist, dist);return Math.Max(Math.Min(level, m_maxLevels), 1);}
train
false
9,797
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {ValueEval ve0;ValueEval ve1;try {ve0 = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);ve1 = OperandResolver.getSingleValue(arg1, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getEr...
[ "public", "ValueEval", "evaluate", "(", "int", "srcRowIndex", ",", "int", "srcColumnIndex", ",", "ValueEval", "arg0", ",", "ValueEval", "arg1", ")", "{", "ValueEval", "ve0", ";", "ValueEval", "ve1", ";", "try", "{", "ve0", "=", "OperandResolver", ".", "getSi...
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){ValueEval ve0;ValueEval ve1;try{ve0 = OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);ve1 = OperandResolver.GetSingleValue(arg1, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e....
train
false
9,798
public static ChartDataSource<Number> fromNumericCellRange(Sheet sheet, CellRangeAddress cellRangeAddress) {return new AbstractCellRangeDataSource<Number>(sheet, cellRangeAddress);}
[ "public", "static", "ChartDataSource", "<", "Number", ">", "fromNumericCellRange", "(", "Sheet", "sheet", ",", "CellRangeAddress", "cellRangeAddress", ")", "{", "return", "new", "AbstractCellRangeDataSource", "<", "Number", ">", "(", "sheet", ",", "cellRangeAddress", ...
public static IChartDataSource<double> FromNumericCellRange(ISheet sheet, CellRangeAddress cellRangeAddress) {return new DoubleCellRangeDataSource(sheet, cellRangeAddress);}
train
false
9,799
public static FuncPtg create(LittleEndianInput in) {return create(in.readUShort());}
[ "public", "static", "FuncPtg", "create", "(", "LittleEndianInput", "in", ")", "{", "return", "create", "(", "in", ".", "readUShort", "(", ")", ")", ";", "}" ]
public static FuncPtg Create(ILittleEndianInput in1) {return Create(in1.ReadUShort());}
train
false
9,800
public InitiateVaultLockResult initiateVaultLock(InitiateVaultLockRequest request) {request = beforeClientExecution(request);return executeInitiateVaultLock(request);}
[ "public", "InitiateVaultLockResult", "initiateVaultLock", "(", "InitiateVaultLockRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeInitiateVaultLock", "(", "request", ")", ";", "}" ]
public virtual InitiateVaultLockResponse InitiateVaultLock(InitiateVaultLockRequest request){var options = new InvokeOptions();options.RequestMarshaller = InitiateVaultLockRequestMarshaller.Instance;options.ResponseUnmarshaller = InitiateVaultLockResponseUnmarshaller.Instance;return Invoke<InitiateVaultLockResponse>(re...
train
true
9,801
public final K getKey() {return key;}
[ "public", "final", "K", "getKey", "(", ")", "{", "return", "key", ";", "}" ]
public virtual K getKey(){return key;}
train
false
9,802
public boolean isSet(final int holder){return (holder & _mask) != 0;}
[ "public", "boolean", "isSet", "(", "final", "int", "holder", ")", "{", "return", "(", "holder", "&", "_mask", ")", "!=", "0", ";", "}" ]
public bool IsSet(int holder){return ((holder & this._mask) != 0);}
train
false
9,803
public DoubleMetaphoneFilter(TokenStream input, int maxCodeLength, boolean inject) {super(input);this.encoder.setMaxCodeLen(maxCodeLength);this.inject = inject;}
[ "public", "DoubleMetaphoneFilter", "(", "TokenStream", "input", ",", "int", "maxCodeLength", ",", "boolean", "inject", ")", "{", "super", "(", "input", ")", ";", "this", ".", "encoder", ".", "setMaxCodeLen", "(", "maxCodeLength", ")", ";", "this", ".", "inje...
public DoubleMetaphoneFilter(TokenStream input, int maxCodeLength, bool inject): base(input){this.encoder.MaxCodeLen = maxCodeLength;this.inject = inject;this.termAtt = AddAttribute<ICharTermAttribute>();this.posAtt = AddAttribute<IPositionIncrementAttribute>();}
train
false
9,804
public boolean changeExternalReference(String oldUrl, String newUrl) {return workbook.changeExternalReference(oldUrl, newUrl);}
[ "public", "boolean", "changeExternalReference", "(", "String", "oldUrl", ",", "String", "newUrl", ")", "{", "return", "workbook", ".", "changeExternalReference", "(", "oldUrl", ",", "newUrl", ")", ";", "}" ]
public bool ChangeExternalReference(String oldUrl, String newUrl){return workbook.ChangeExternalReference(oldUrl, newUrl);}
train
false
9,805
public DescribeEngineDefaultParametersRequest(String cacheParameterGroupFamily) {setCacheParameterGroupFamily(cacheParameterGroupFamily);}
[ "public", "DescribeEngineDefaultParametersRequest", "(", "String", "cacheParameterGroupFamily", ")", "{", "setCacheParameterGroupFamily", "(", "cacheParameterGroupFamily", ")", ";", "}" ]
public DescribeEngineDefaultParametersRequest(string cacheParameterGroupFamily){_cacheParameterGroupFamily = cacheParameterGroupFamily;}
train
false
9,806
public void extendB() {endB++;}
[ "public", "void", "extendB", "(", ")", "{", "endB", "++", ";", "}" ]
public virtual void ExtendB(){endB++;}
train
false
9,807
public JapaneseReadingFormFilter(TokenStream input, boolean useRomaji) {super(input);this.useRomaji = useRomaji;}
[ "public", "JapaneseReadingFormFilter", "(", "TokenStream", "input", ",", "boolean", "useRomaji", ")", "{", "super", "(", "input", ")", ";", "this", ".", "useRomaji", "=", "useRomaji", ";", "}" ]
public JapaneseReadingFormFilter(TokenStream input, bool useRomaji): base(input){this.useRomaji = useRomaji;this.termAttr = AddAttribute<ICharTermAttribute>();this.readingAttr = AddAttribute<IReadingAttribute>();}
train
false
9,808
public DeleteContactResult deleteContact(DeleteContactRequest request) {request = beforeClientExecution(request);return executeDeleteContact(request);}
[ "public", "DeleteContactResult", "deleteContact", "(", "DeleteContactRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteContact", "(", "request", ")", ";", "}" ]
public virtual DeleteContactResponse DeleteContact(DeleteContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteContactRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteContactResponseUnmarshaller.Instance;return Invoke<DeleteContactResponse>(request, options);}
train
true
9,809
public static final int next(byte[] b, int ptr, char chrA) {final int sz = b.length;while (ptr < sz) {if (b[ptr++] == chrA)return ptr;}return ptr;}
[ "public", "static", "final", "int", "next", "(", "byte", "[", "]", "b", ",", "int", "ptr", ",", "char", "chrA", ")", "{", "final", "int", "sz", "=", "b", ".", "length", ";", "while", "(", "ptr", "<", "sz", ")", "{", "if", "(", "b", "[", "ptr"...
public static int Next(byte[] b, int ptr, char chrA){int sz = b.Length;while (ptr < sz){if (b[ptr++] == chrA){return ptr;}}return ptr;}
train
false
9,810
public InvokeEndpointResult invokeEndpoint(InvokeEndpointRequest request) {request = beforeClientExecution(request);return executeInvokeEndpoint(request);}
[ "public", "InvokeEndpointResult", "invokeEndpoint", "(", "InvokeEndpointRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeInvokeEndpoint", "(", "request", ")", ";", "}" ]
public virtual InvokeEndpointResponse InvokeEndpoint(InvokeEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = InvokeEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = InvokeEndpointResponseUnmarshaller.Instance;return Invoke<InvokeEndpointResponse>(request, options);}
train
true
9,811
public PutAccountSettingDefaultResult putAccountSettingDefault(PutAccountSettingDefaultRequest request) {request = beforeClientExecution(request);return executePutAccountSettingDefault(request);}
[ "public", "PutAccountSettingDefaultResult", "putAccountSettingDefault", "(", "PutAccountSettingDefaultRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutAccountSettingDefault", "(", "request", ")", ";", "}"...
public virtual PutAccountSettingDefaultResponse PutAccountSettingDefault(PutAccountSettingDefaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAccountSettingDefaultRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAccountSettingDefaultResponseUnmarshaller.Instance;return I...
train
true
9,812
public static Path categoriesLineFile(Path f) {Path dir = f.toAbsolutePath().getParent();String categoriesName = "categories-"+f.getFileName();return dir.resolve(categoriesName);}
[ "public", "static", "Path", "categoriesLineFile", "(", "Path", "f", ")", "{", "Path", "dir", "=", "f", ".", "toAbsolutePath", "(", ")", ".", "getParent", "(", ")", ";", "String", "categoriesName", "=", "\"categories-\"", "+", "f", ".", "getFileName", "(", ...
public static FileInfo CategoriesLineFile(FileInfo f){DirectoryInfo dir = f.Directory;string categoriesName = "categories-" + f.Name;return dir == null ? new FileInfo(categoriesName) : new FileInfo(System.IO.Path.Combine(dir.FullName, categoriesName));}
train
false
9,813
public String toJson() {return new JsonPolicyWriter().writePolicyToString(this);}
[ "public", "String", "toJson", "(", ")", "{", "return", "new", "JsonPolicyWriter", "(", ")", ".", "writePolicyToString", "(", "this", ")", ";", "}" ]
public string ToJson(){return ToJson(true);}
train
false
9,814
public String getFunctionName(int idx) {return _funcMap.get(idx);}
[ "public", "String", "getFunctionName", "(", "int", "idx", ")", "{", "return", "_funcMap", ".", "get", "(", "idx", ")", ";", "}" ]
public String GetFunctionName(int idx){return _funcMap[idx];}
train
false
9,815
public RecordHandlerProgressResult recordHandlerProgress(RecordHandlerProgressRequest request) {request = beforeClientExecution(request);return executeRecordHandlerProgress(request);}
[ "public", "RecordHandlerProgressResult", "recordHandlerProgress", "(", "RecordHandlerProgressRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRecordHandlerProgress", "(", "request", ")", ";", "}" ]
public virtual RecordHandlerProgressResponse RecordHandlerProgress(RecordHandlerProgressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RecordHandlerProgressRequestMarshaller.Instance;options.ResponseUnmarshaller = RecordHandlerProgressResponseUnmarshaller.Instance;return Invoke<RecordHan...
train
false
9,816
public synchronized StringBuffer insert(int index, char[] chars, int start, int length) {insert0(index, chars, start, length);return this;}
[ "public", "synchronized", "StringBuffer", "insert", "(", "int", "index", ",", "char", "[", "]", "chars", ",", "int", "start", ",", "int", "length", ")", "{", "insert0", "(", "index", ",", "chars", ",", "start", ",", "length", ")", ";", "return", "this"...
public java.lang.StringBuffer insert(int index, char[] chars, int start, int length_1){lock (this){insert0(index, chars, start, length_1);return this;}}
train
false
9,817
public RevObject lookupAny(AnyObjectId id, int type) {RevObject r = objects.get(id);if (r == null) {switch (type) {case Constants.OBJ_COMMIT:r = createCommit(id);break;case Constants.OBJ_TREE:r = new RevTree(id);break;case Constants.OBJ_BLOB:r = new RevBlob(id);break;case Constants.OBJ_TAG:r = new RevTag(id);break;defa...
[ "public", "RevObject", "lookupAny", "(", "AnyObjectId", "id", ",", "int", "type", ")", "{", "RevObject", "r", "=", "objects", ".", "get", "(", "id", ")", ";", "if", "(", "r", "==", "null", ")", "{", "switch", "(", "type", ")", "{", "case", "Constan...
public virtual RevObject LookupAny(AnyObjectId id, int type){RevObject r = objects.Get(id);if (r == null){switch (type){case Constants.OBJ_COMMIT:{r = CreateCommit(id);break;}case Constants.OBJ_TREE:{r = new RevTree(id);break;}case Constants.OBJ_BLOB:{r = new RevBlob(id);break;}case Constants.OBJ_TAG:{r = new RevTag(id...
train
false
9,818
public BytesRef encode(char[] buffer) {return encode(buffer, 0, buffer.length);}
[ "public", "BytesRef", "encode", "(", "char", "[", "]", "buffer", ")", "{", "return", "encode", "(", "buffer", ",", "0", ",", "buffer", ".", "length", ")", ";", "}" ]
public virtual BytesRef Encode(char[] buffer){return Encode(buffer, 0, buffer.Length);}
train
false
9,819
public StringBuilder append(int i) {IntegralToString.appendInt(this, i);return this;}
[ "public", "StringBuilder", "append", "(", "int", "i", ")", "{", "IntegralToString", ".", "appendInt", "(", "this", ",", "i", ")", ";", "return", "this", ";", "}" ]
public java.lang.StringBuilder append(char c){append0(c);return this;}
train
false
9,820
public void removeName(Name name) {int index = getNameIndex((HSSFName) name);removeName(index);}
[ "public", "void", "removeName", "(", "Name", "name", ")", "{", "int", "index", "=", "getNameIndex", "(", "(", "HSSFName", ")", "name", ")", ";", "removeName", "(", "index", ")", ";", "}" ]
public void RemoveName(String name){int index = GetNameIndex(name);RemoveName(index);}
train
false
9,821
public WrappedPositionArray() {for(int i=0;i<positions.length;i++) {positions[i] = new Position();}}
[ "public", "WrappedPositionArray", "(", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "positions", ".", "length", ";", "i", "++", ")", "{", "positions", "[", "i", "]", "=", "new", "Position", "(", ")", ";", "}", "}" ]
public WrappedPositionArray(){for (int i = 0; i < positions.Length; i++){positions[i] = new Position();}}
train
false
9,822
public PasswordRev4Record(int pw) {field_1_password = pw;}
[ "public", "PasswordRev4Record", "(", "int", "pw", ")", "{", "field_1_password", "=", "pw", ";", "}" ]
public PasswordRev4Record(int pw){field_1_password = pw;}
train
false
9,823
public static String intToHex(int value) {StringBuilder sb = new StringBuilder(10);writeHex(sb, value & 0xFFFFFFFFL, 8, "0x");return sb.toString();}
[ "public", "static", "String", "intToHex", "(", "int", "value", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", "10", ")", ";", "writeHex", "(", "sb", ",", "value", "&", "0xFFFFFFFFL", ",", "8", ",", "\"0x\"", ")", ";", "return", "sb"...
public static char[] IntToHex(int value){return ToHexChars(value, 4);}
train
false
9,824
public RemovePermissionRequest(String topicArn, String label) {setTopicArn(topicArn);setLabel(label);}
[ "public", "RemovePermissionRequest", "(", "String", "topicArn", ",", "String", "label", ")", "{", "setTopicArn", "(", "topicArn", ")", ";", "setLabel", "(", "label", ")", ";", "}" ]
public RemovePermissionRequest(string topicArn, string label){_topicArn = topicArn;_label = label;}
train
false
9,825
public UpdateOrganizationConfigurationResult updateOrganizationConfiguration(UpdateOrganizationConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateOrganizationConfiguration(request);}
[ "public", "UpdateOrganizationConfigurationResult", "updateOrganizationConfiguration", "(", "UpdateOrganizationConfigurationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateOrganizationConfiguration", "(", "r...
public virtual UpdateOrganizationConfigurationResponse UpdateOrganizationConfiguration(UpdateOrganizationConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateOrganizationConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateOrganizationConfigurationRes...
train
false
9,826
public void seekExact(BytesRef target, TermState otherState) {assert otherState != null && otherState instanceof BlockTermState;assert !doOrd || ((BlockTermState) otherState).ord < numTerms;state.copyFrom(otherState);seekPending = true;indexIsCurrent = false;term.copyBytes(target);}
[ "public", "void", "seekExact", "(", "BytesRef", "target", ",", "TermState", "otherState", ")", "{", "assert", "otherState", "!=", "null", "&&", "otherState", "instanceof", "BlockTermState", ";", "assert", "!", "doOrd", "||", "(", "(", "BlockTermState", ")", "o...
public override void SeekExact(BytesRef target, TermState otherState){if (!target.Equals(term)){state.CopyFrom(otherState);term = BytesRef.DeepCopyOf(target);seekPending = true;}}
train
false
9,827
public void println() {newline();}
[ "public", "void", "println", "(", ")", "{", "newline", "(", ")", ";", "}" ]
public virtual void println(){newline();}
train
false
9,828
public String toString() {return "NRTCachingDirectory(" + in + "; maxCacheMB=" + (maxCachedBytes/1024/1024.) + " maxMergeSizeMB=" + (maxMergeSizeBytes/1024/1024.) + ")";}
[ "public", "String", "toString", "(", ")", "{", "return", "\"NRTCachingDirectory(\"", "+", "in", "+", "\"; maxCacheMB=\"", "+", "(", "maxCachedBytes", "/", "1024", "/", "1024.", ")", "+", "\" maxMergeSizeMB=\"", "+", "(", "maxMergeSizeBytes", "/", "1024", "/", ...
public override string ToString(){return "NRTCachingDirectory(" + @delegate + "; maxCacheMB=" + (maxCachedBytes / 1024 / 1024.0) + " maxMergeSizeMB=" + (maxMergeSizeBytes / 1024 / 1024.0) + ")";}
train
false
9,829
public DescribeWorkforceResult describeWorkforce(DescribeWorkforceRequest request) {request = beforeClientExecution(request);return executeDescribeWorkforce(request);}
[ "public", "DescribeWorkforceResult", "describeWorkforce", "(", "DescribeWorkforceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeWorkforce", "(", "request", ")", ";", "}" ]
public virtual DescribeWorkforceResponse DescribeWorkforce(DescribeWorkforceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkforceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkforceResponseUnmarshaller.Instance;return Invoke<DescribeWorkforceResponse>(re...
train
false
9,830
public ToggleFeaturesRequest() {super("CloudPhoto", "2017-07-11", "ToggleFeatures", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
[ "public", "ToggleFeaturesRequest", "(", ")", "{", "super", "(", "\"CloudPhoto\"", ",", "\"2017-07-11\"", ",", "\"ToggleFeatures\"", ",", "\"cloudphoto\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "}" ]
public ToggleFeaturesRequest(): base("CloudPhoto", "2017-07-11", "ToggleFeatures", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
train
false
9,831
public synchronized StringBuffer append(char[] chars, int start, int length) {append0(chars, start, length);return this;}
[ "public", "synchronized", "StringBuffer", "append", "(", "char", "[", "]", "chars", ",", "int", "start", ",", "int", "length", ")", "{", "append0", "(", "chars", ",", "start", ",", "length", ")", ";", "return", "this", ";", "}" ]
public java.lang.StringBuffer append(char[] chars, int start, int length_1){lock (this){append0(chars, start, length_1);return this;}}
train
false
9,832
public ShortBuffer put(short c) {if (position == limit) {throw new BufferOverflowException();}byteBuffer.putShort(position++ * SizeOf.SHORT, c);return this;}
[ "public", "ShortBuffer", "put", "(", "short", "c", ")", "{", "if", "(", "position", "==", "limit", ")", "{", "throw", "new", "BufferOverflowException", "(", ")", ";", "}", "byteBuffer", ".", "putShort", "(", "position", "++", "*", "SizeOf", ".", "SHORT",...
public override java.nio.ShortBuffer put(short c){if (_position == _limit){throw new java.nio.BufferOverflowException();}byteBuffer.putShort(_position++ * libcore.io.SizeOf.SHORT, c);return this;}
train
false
9,833
public char last() {index = (limit == start) ? limit : limit - 1;return current();}
[ "public", "char", "last", "(", ")", "{", "index", "=", "(", "limit", "==", "start", ")", "?", "limit", ":", "limit", "-", "1", ";", "return", "current", "(", ")", ";", "}" ]
public override char Last(){index = (limit == start) ? limit : limit - 1;return Current;}
train
false
9,834
public WeightedSpanTermExtractor(String defaultField) {this.defaultField = defaultField;}
[ "public", "WeightedSpanTermExtractor", "(", "String", "defaultField", ")", "{", "this", ".", "defaultField", "=", "defaultField", ";", "}" ]
public WeightedSpanTermExtractor(string defaultField){if (defaultField != null){this.defaultField = defaultField.Intern();}}
train
false
9,835
public StringReader(String str) {this.str = str;this.count = str.length();}
[ "public", "StringReader", "(", "String", "str", ")", "{", "this", ".", "str", "=", "str", ";", "this", ".", "count", "=", "str", ".", "length", "(", ")", ";", "}" ]
public StringReader(string str){this.str = str;this.count = str.Length;}
train
false
9,836
public GetThumbnailsRequest() {super("CloudPhoto", "2017-07-11", "GetThumbnails", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
[ "public", "GetThumbnailsRequest", "(", ")", "{", "super", "(", "\"CloudPhoto\"", ",", "\"2017-07-11\"", ",", "\"GetThumbnails\"", ",", "\"cloudphoto\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "}" ]
public GetThumbnailsRequest(): base("CloudPhoto", "2017-07-11", "GetThumbnails", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
train
false
9,837
public TagCommand setName(String name) {checkCallable();this.name = name;return this;}
[ "public", "TagCommand", "setName", "(", "String", "name", ")", "{", "checkCallable", "(", ")", ";", "this", ".", "name", "=", "name", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.TagCommand SetName(string name){CheckCallable();this.name = name;return this;}
train
false
9,838
@Override public String toString() {synchronized (mutex) {return c.toString();}}
[ "@", "Override", "public", "String", "toString", "(", ")", "{", "synchronized", "(", "mutex", ")", "{", "return", "c", ".", "toString", "(", ")", ";", "}", "}" ]
public override string ToString(){lock (mutex){return c.ToString();}}
train
false
9,839
public String toString() {return toString((List<String>)null, (RuleContext)null);}
[ "public", "String", "toString", "(", ")", "{", "return", "toString", "(", "(", "List", "<", "String", ">", ")", "null", ",", "(", "RuleContext", ")", "null", ")", ";", "}" ]
public override string ToString(){return ToString((IList<string>)null, (Antlr4.Runtime.RuleContext)null);}
train
false
9,840
public String toString() {return "StandardDirectoryReader.ReaderCommit(" + segmentsFileName + " files=" + files + ")";}
[ "public", "String", "toString", "(", ")", "{", "return", "\"StandardDirectoryReader.ReaderCommit(\"", "+", "segmentsFileName", "+", "\" files=\"", "+", "files", "+", "\")\"", ";", "}" ]
public override string ToString(){return "DirectoryReader.ReaderCommit(" + segmentsFileName + ")";}
train
false
9,841
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesAfterHeader = readHeader( data, offset );int pos = offset + HEADER_SIZE;field_pictureData = IOUtils.safelyAllocate(bytesAfterHeader, MAX_RECORD_LENGTH);System.arraycopy(data, pos, field_pictureData, 0, bytesAfterHea...
[ "public", "int", "fillFields", "(", "byte", "[", "]", "data", ",", "int", "offset", ",", "EscherRecordFactory", "recordFactory", ")", "{", "int", "bytesAfterHeader", "=", "readHeader", "(", "data", ",", "offset", ")", ";", "int", "pos", "=", "offset", "+",...
public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesAfterHeader = ReadHeader(data, offset);int pos = offset + HEADER_SIZE;field_pictureData = new byte[bytesAfterHeader];Array.Copy(data, pos, field_pictureData, 0, bytesAfterHeader);return bytesAfterHeader + 8;}
train
false
9,843
public void serialize(LittleEndianOutput out) {out.write(data);}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "write", "(", "data", ")", ";", "}" ]
public void Serialize(ILittleEndianOutput out1){out1.Write(data);}
train
false
9,844
public E get(int location) {if (location >= 0 && location < size) {Link<E> link = voidLink;if (location < (size / 2)) {for (int i = 0; i <= location; i++) {link = link.next;}} else {for (int i = size; i > location; i--) {link = link.previous;}}return link.data;}throw new IndexOutOfBoundsException();}
[ "public", "E", "get", "(", "int", "location", ")", "{", "if", "(", "location", ">=", "0", "&&", "location", "<", "size", ")", "{", "Link", "<", "E", ">", "link", "=", "voidLink", ";", "if", "(", "location", "<", "(", "size", "/", "2", ")", ")",...
public override E get(int location){if (location >= 0 && location < _size){java.util.LinkedList.Link<E> link = voidLink;if (location < (_size / 2)){{for (int i = 0; i <= location; i++){link = link.next;}}}else{{for (int i = _size; i > location; i--){link = link.previous;}}}return link.data;}throw new System.IndexOutOfR...
train
false
9,845
public static boolean hasExactSharedBorder(CellRangeAddress crA, CellRangeAddress crB) {int oFirstRow = crB.getFirstRow();int oLastRow = crB.getLastRow();int oFirstCol = crB.getFirstColumn();int oLastCol = crB.getLastColumn();if (crA.getFirstRow() > 0 && crA.getFirstRow()-1 == oLastRow ||oFirstRow > 0 && oFirstRow-1 ...
[ "public", "static", "boolean", "hasExactSharedBorder", "(", "CellRangeAddress", "crA", ",", "CellRangeAddress", "crB", ")", "{", "int", "oFirstRow", "=", "crB", ".", "getFirstRow", "(", ")", ";", "int", "oLastRow", "=", "crB", ".", "getLastRow", "(", ")", ";...
public static bool HasExactSharedBorder(CellRangeAddress crA, CellRangeAddress crB){int oFirstRow = crB.FirstRow;int oLastRow = crB.LastRow;int oFirstCol = crB.FirstColumn;int oLastCol = crB.LastColumn;if (crA.FirstRow > 0 && crA.FirstRow - 1 == oLastRow ||oFirstRow > 0 && oFirstRow - 1 == crA.LastRow){return crA.First...
train
false
9,846
public void visitCellsForRow(int rowIndex, RecordVisitor rv) {CellValueRecordInterface[] rowCells = records[rowIndex];if(rowCells == null) {throw new IllegalArgumentException("Row [" + rowIndex + "] is empty");}for (int i = 0; i < rowCells.length; i++) {RecordBase cvr = (RecordBase) rowCells[i];if(cvr == null) {continu...
[ "public", "void", "visitCellsForRow", "(", "int", "rowIndex", ",", "RecordVisitor", "rv", ")", "{", "CellValueRecordInterface", "[", "]", "rowCells", "=", "records", "[", "rowIndex", "]", ";", "if", "(", "rowCells", "==", "null", ")", "{", "throw", "new", ...
public void VisitCellsForRow(int rowIndex, RecordVisitor rv){CellValueRecordInterface[] rowCells = records[rowIndex];if (rowCells == null){throw new ArgumentException("Row [" + rowIndex + "] is empty");}for (int i = 0; i < rowCells.Length; i++){RecordBase cvr = (RecordBase)rowCells[i];if (cvr == null){continue;}int nBl...
train
false
9,847
public DeleteVpnConnectionResult deleteVpnConnection(DeleteVpnConnectionRequest request) {request = beforeClientExecution(request);return executeDeleteVpnConnection(request);}
[ "public", "DeleteVpnConnectionResult", "deleteVpnConnection", "(", "DeleteVpnConnectionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteVpnConnection", "(", "request", ")", ";", "}" ]
public virtual DeleteVpnConnectionResponse DeleteVpnConnection(DeleteVpnConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpnConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpnConnectionResponseUnmarshaller.Instance;return Invoke<DeleteVpnConnection...
train
true
9,848
public void clear() {username = null;if (password != null) {Arrays.fill(password, (char) 0);password = null;}}
[ "public", "void", "clear", "(", ")", "{", "username", "=", "null", ";", "if", "(", "password", "!=", "null", ")", "{", "Arrays", ".", "fill", "(", "password", ",", "(", "char", ")", "0", ")", ";", "password", "=", "null", ";", "}", "}" ]
public virtual void Clear(){username = null;if (password != null){Arrays.Fill(password, (char)0);password = null;}}
train
false
9,849
public String toString() {return String.format(Locale.ROOT,"time=%.2f sec. total (%.2f reading, %.2f sorting, %.2f merging), lines=%d, temp files=%d, merges=%d, soft ram limit=%.2f MB",totalTimeMS / 1000.0d, readTimeMS / 1000.0d, sortTimeMS.get() / 1000.0d, mergeTimeMS.get() / 1000.0d,lineCount, tempMergeFiles, mergeRo...
[ "public", "String", "toString", "(", ")", "{", "return", "String", ".", "format", "(", "Locale", ".", "ROOT", ",", "\"time=%.2f sec. total (%.2f reading, %.2f sorting, %.2f merging), lines=%d, temp files=%d, merges=%d, soft ram limit=%.2f MB\"", ",", "totalTimeMS", "/", "1000.0...
public override string ToString(){return string.Format(CultureInfo.InvariantCulture,"time={0:0.00} sec. total ({1:0.00} reading, {2:0.00} sorting, {3:0.00} merging), lines={4}, temp files={5}, merges={6}, soft ram limit={7:0.00} MB",TotalTime / 1000.0d, ReadTime / 1000.0d, SortTime / 1000.0d, MergeTime / 1000.0d,Lines,...
train
false
9,850
public DetachLoadBalancersResult detachLoadBalancers(DetachLoadBalancersRequest request) {request = beforeClientExecution(request);return executeDetachLoadBalancers(request);}
[ "public", "DetachLoadBalancersResult", "detachLoadBalancers", "(", "DetachLoadBalancersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDetachLoadBalancers", "(", "request", ")", ";", "}" ]
public virtual DetachLoadBalancersResponse DetachLoadBalancers(DetachLoadBalancersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachLoadBalancersRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachLoadBalancersResponseUnmarshaller.Instance;return Invoke<DetachLoadBalancers...
train
true
9,851
public synchronized Span[] splitSentences(String line) {if (sentenceSplitter != null) {return sentenceSplitter.sentPosDetect(line);} else {Span[] shorty = new Span[1];shorty[0] = new Span(0, line.length());return shorty;}}
[ "public", "synchronized", "Span", "[", "]", "splitSentences", "(", "String", "line", ")", "{", "if", "(", "sentenceSplitter", "!=", "null", ")", "{", "return", "sentenceSplitter", ".", "sentPosDetect", "(", "line", ")", ";", "}", "else", "{", "Span", "[", ...
public virtual Span[] SplitSentences(string line){lock (this){if (sentenceSplitter != null){return sentenceSplitter.sentPosDetect(line);}else{Span[] shorty = new Span[1];shorty[0] = new Span(0, line.Length);return shorty;}}}
train
false
9,852
public boolean isRemote() {return getHost() != null;}
[ "public", "boolean", "isRemote", "(", ")", "{", "return", "getHost", "(", ")", "!=", "null", ";", "}" ]
public virtual bool IsRemote(){return GetHost() != null;}
train
false
9,853
public void setBuiltinStyle(int builtinStyleId) {field_1_xf_index = isBuiltinFlag.set(field_1_xf_index);field_2_builtin_style = builtinStyleId;}
[ "public", "void", "setBuiltinStyle", "(", "int", "builtinStyleId", ")", "{", "field_1_xf_index", "=", "isBuiltinFlag", ".", "set", "(", "field_1_xf_index", ")", ";", "field_2_builtin_style", "=", "builtinStyleId", ";", "}" ]
public void SetBuiltinStyle(int builtinStyleId){field_1_xf_index = isBuiltinFlag.Set(field_1_xf_index);field_2_builtin_style = builtinStyleId;}
train
false
9,854
public ObjectReader getObjectReader() {return reader;}
[ "public", "ObjectReader", "getObjectReader", "(", ")", "{", "return", "reader", ";", "}" ]
public virtual ObjectReader GetObjectReader(){return reader;}
train
false
9,855
public void addEscherProperty( EscherProperty prop ){properties.add( prop );}
[ "public", "void", "addEscherProperty", "(", "EscherProperty", "prop", ")", "{", "properties", ".", "add", "(", "prop", ")", ";", "}" ]
public void AddEscherProperty(EscherProperty prop){properties.Add(prop);}
train
false
9,857
public String group(int group) {ensureMatch();int from = matchOffsets[group * 2];int to = matchOffsets[(group * 2) + 1];if (from == -1 || to == -1) {return null;} else {return input.substring(from, to);}}
[ "public", "String", "group", "(", "int", "group", ")", "{", "ensureMatch", "(", ")", ";", "int", "from", "=", "matchOffsets", "[", "group", "*", "2", "]", ";", "int", "to", "=", "matchOffsets", "[", "(", "group", "*", "2", ")", "+", "1", "]", ";"...
public string group(int group_1){ensureMatch();int from = matchOffsets[group_1 * 2];int to = matchOffsets[(group_1 * 2) + 1];if (from == -1 || to == -1){return null;}else{return Sharpen.StringHelper.Substring(input, from, to);}}
train
true
9,858
public void removeCompany() {remove1stProperty(PropertyIDMap.PID_COMPANY);}
[ "public", "void", "removeCompany", "(", ")", "{", "remove1stProperty", "(", "PropertyIDMap", ".", "PID_COMPANY", ")", ";", "}" ]
public void RemoveCompany(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_COMPANY);}
train
false
9,859
public RevFilter clone() {final RevFilter[] s = new RevFilter[subfilters.length];for (int i = 0; i < s.length; i++)s[i] = subfilters[i].clone();return new List(s);}
[ "public", "RevFilter", "clone", "(", ")", "{", "final", "RevFilter", "[", "]", "s", "=", "new", "RevFilter", "[", "subfilters", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "s", ".", "length", ";", "i", "++", ")", "...
public override RevFilter Clone(){RevFilter[] s = new RevFilter[subfilters.Length];for (int i = 0; i < s.Length; i++){s[i] = subfilters[i].Clone();}return new OrRevFilter.List(s);}
train
false
9,860
public static Charset defaultCharset() {return DEFAULT_CHARSET;}
[ "public", "static", "Charset", "defaultCharset", "(", ")", "{", "return", "DEFAULT_CHARSET", ";", "}" ]
public static java.nio.charset.Charset defaultCharset(){return DEFAULT_CHARSET;}
train
false
9,862
public AttributeValueUpdate(AttributeValue value, AttributeAction action) {setValue(value);setAction(action.toString());}
[ "public", "AttributeValueUpdate", "(", "AttributeValue", "value", ",", "AttributeAction", "action", ")", "{", "setValue", "(", "value", ")", ";", "setAction", "(", "action", ".", "toString", "(", ")", ")", ";", "}" ]
public AttributeValueUpdate(AttributeValue value, AttributeAction action){_value = value;_action = action;}
train
false
9,864
public DisassociateSkillFromSkillGroupResult disassociateSkillFromSkillGroup(DisassociateSkillFromSkillGroupRequest request) {request = beforeClientExecution(request);return executeDisassociateSkillFromSkillGroup(request);}
[ "public", "DisassociateSkillFromSkillGroupResult", "disassociateSkillFromSkillGroup", "(", "DisassociateSkillFromSkillGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDisassociateSkillFromSkillGroup", "(", "r...
public virtual DisassociateSkillFromSkillGroupResponse DisassociateSkillFromSkillGroup(DisassociateSkillFromSkillGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateSkillFromSkillGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateSkillFromSkillGroupRes...
train
true
9,866
public NameRecord getNameRecord(int index) {return _definedNames.get(index);}
[ "public", "NameRecord", "getNameRecord", "(", "int", "index", ")", "{", "return", "_definedNames", ".", "get", "(", "index", ")", ";", "}" ]
public NameRecord GetNameRecord(int index){return (NameRecord)_definedNames[index];}
train
false
9,867
public BottomMarginRecord clone() {return copy();}
[ "public", "BottomMarginRecord", "clone", "(", ")", "{", "return", "copy", "(", ")", ";", "}" ]
public override Object Clone(){BottomMarginRecord rec = new BottomMarginRecord();rec.field_1_margin = this.field_1_margin;return rec;}
train
false
9,868
@Override public V setValue(V object) {throw new UnsupportedOperationException();}
[ "@", "Override", "public", "V", "setValue", "(", "V", "object", ")", "{", "throw", "new", "UnsupportedOperationException", "(", ")", ";", "}" ]
public virtual V setValue(V @object){throw new System.NotSupportedException();}
train
false
9,869
public QuadPrefixTree(SpatialContext ctx, Rectangle bounds, int maxLevels) {super(ctx, maxLevels);this.xmin = bounds.getMinX();this.xmax = bounds.getMaxX();this.ymin = bounds.getMinY();this.ymax = bounds.getMaxY();levelW = new double[maxLevels + 1];levelH = new double[maxLevels + 1];gridW = xmax - xmin;gridH = ymax - y...
[ "public", "QuadPrefixTree", "(", "SpatialContext", "ctx", ",", "Rectangle", "bounds", ",", "int", "maxLevels", ")", "{", "super", "(", "ctx", ",", "maxLevels", ")", ";", "this", ".", "xmin", "=", "bounds", ".", "getMinX", "(", ")", ";", "this", ".", "x...
public QuadPrefixTree(SpatialContext ctx, IRectangle bounds, int maxLevels): base(ctx, maxLevels){xmin = bounds.MinX;xmax = bounds.MaxX;ymin = bounds.MinY;ymax = bounds.MaxY;levelW = new double[maxLevels];levelH = new double[maxLevels];levelS = new int[maxLevels];levelN = new int[maxLevels];gridW = xmax - xmin;gridH = ...
train
false
9,870
public static HSSFAnchor createAnchorFromEscher(EscherContainerRecord container){if (null != container.getChildById(EscherChildAnchorRecord.RECORD_ID)){return new HSSFChildAnchor(container.getChildById(EscherChildAnchorRecord.RECORD_ID));} else {if (null != container.getChildById(EscherClientAnchorRecord.RECORD_ID)){re...
[ "public", "static", "HSSFAnchor", "createAnchorFromEscher", "(", "EscherContainerRecord", "container", ")", "{", "if", "(", "null", "!=", "container", ".", "getChildById", "(", "EscherChildAnchorRecord", ".", "RECORD_ID", ")", ")", "{", "return", "new", "HSSFChildAn...
public static HSSFAnchor CreateAnchorFromEscher(EscherContainerRecord container){if (null != container.GetChildById(EscherChildAnchorRecord.RECORD_ID)){return new HSSFChildAnchor((EscherChildAnchorRecord)container.GetChildById(EscherChildAnchorRecord.RECORD_ID));}else{if (null != container.GetChildById(EscherClientAnch...
train
false
9,871
public void reset() {if ( _input !=null ) {_input.seek(0); }_token = null;_type = Token.INVALID_TYPE;_channel = Token.DEFAULT_CHANNEL;_tokenStartCharIndex = -1;_tokenStartCharPositionInLine = -1;_tokenStartLine = -1;_text = null;_hitEOF = false;_mode = Lexer.DEFAULT_MODE;_modeStack.clear();getInterpreter().reset();}
[ "public", "void", "reset", "(", ")", "{", "if", "(", "_input", "!=", "null", ")", "{", "_input", ".", "seek", "(", "0", ")", ";", "}", "_token", "=", "null", ";", "_type", "=", "Token", ".", "INVALID_TYPE", ";", "_channel", "=", "Token", ".", "DE...
public virtual void Reset(){if (_input != null){_input.Seek(0);}_token = null;_type = TokenConstants.InvalidType;_channel = TokenConstants.DefaultChannel;_tokenStartCharIndex = -1;_tokenStartColumn = -1;_tokenStartLine = -1;_text = null;_hitEOF = false;_mode = Antlr4.Runtime.Lexer.DEFAULT_MODE;_modeStack.Clear();Interp...
train
false
9,872
public ShortBuffer slice() {byteBuffer.limit(limit * SizeOf.SHORT);byteBuffer.position(position * SizeOf.SHORT);ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());ShortBuffer result = new ShortToByteBufferAdapter(bb);byteBuffer.clear();return result;}
[ "public", "ShortBuffer", "slice", "(", ")", "{", "byteBuffer", ".", "limit", "(", "limit", "*", "SizeOf", ".", "SHORT", ")", ";", "byteBuffer", ".", "position", "(", "position", "*", "SizeOf", ".", "SHORT", ")", ";", "ByteBuffer", "bb", "=", "byteBuffer"...
public override java.nio.ShortBuffer slice(){byteBuffer.limit(_limit * libcore.io.SizeOf.SHORT);byteBuffer.position(_position * libcore.io.SizeOf.SHORT);java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());java.nio.ShortBuffer result = new java.nio.ShortToByteBufferAdapter(bb);byteBuffer.clear();return...
train
false
9,873
public boolean isPackedGitMMAP() {return packedGitMMAP;}
[ "public", "boolean", "isPackedGitMMAP", "(", ")", "{", "return", "packedGitMMAP", ";", "}" ]
public virtual bool IsPackedGitMMAP(){return packedGitMMAP;}
train
false
9,874
public boolean equalsSameType(Object other) {assert exists || 0.0D == value;MutableValueDouble b = (MutableValueDouble)other;return value == b.value && exists == b.exists;}
[ "public", "boolean", "equalsSameType", "(", "Object", "other", ")", "{", "assert", "exists", "||", "0.0D", "==", "value", ";", "MutableValueDouble", "b", "=", "(", "MutableValueDouble", ")", "other", ";", "return", "value", "==", "b", ".", "value", "&&", "...
public override bool EqualsSameType(object other){MutableValueDouble b = (MutableValueDouble)other;return Value == b.Value && Exists == b.Exists;}
train
false