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
1,181
public String getSchemeSpecificPart() {return decode(schemeSpecificPart);}
[ "public", "String", "getSchemeSpecificPart", "(", ")", "{", "return", "decode", "(", "schemeSpecificPart", ")", ";", "}" ]
public string getSchemeSpecificPart(){return decode(schemeSpecificPart);}
train
false
1,182
public DeleteSkillAuthorizationResult deleteSkillAuthorization(DeleteSkillAuthorizationRequest request) {request = beforeClientExecution(request);return executeDeleteSkillAuthorization(request);}
[ "public", "DeleteSkillAuthorizationResult", "deleteSkillAuthorization", "(", "DeleteSkillAuthorizationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteSkillAuthorization", "(", "request", ")", ";", "}" ]
public virtual DeleteSkillAuthorizationResponse DeleteSkillAuthorization(DeleteSkillAuthorizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSkillAuthorizationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSkillAuthorizationResponseUnmarshaller.Instance;return Invoke<DeleteSkillAuthorizationResponse>(request, options);}
train
true
1,183
public QuerySyncPicScheduleRequest() {super("LinkFace", "2018-07-20", "QuerySyncPicSchedule");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
[ "public", "QuerySyncPicScheduleRequest", "(", ")", "{", "super", "(", "\"LinkFace\"", ",", "\"2018-07-20\"", ",", "\"QuerySyncPicSchedule\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public QuerySyncPicScheduleRequest(): base("LinkFace", "2018-07-20", "QuerySyncPicSchedule"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
train
false
1,184
public SheetRecordCollectingListener(HSSFListener childListener) {this.childListener = childListener;}
[ "public", "SheetRecordCollectingListener", "(", "HSSFListener", "childListener", ")", "{", "this", ".", "childListener", "=", "childListener", ";", "}" ]
public SheetRecordCollectingListener(IHSSFListener childListener){this.childListener = childListener;}
train
false
1,185
public boolean equals( Object o ) {return o instanceof RussianStemmer;}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "return", "o", "instanceof", "RussianStemmer", ";", "}" ]
public override bool Equals(object o){return o is RussianStemmer;}
train
false
1,186
public void clear() {ArrayList <HSSFShape> copy = new ArrayList<>(_shapes);for (HSSFShape shape: copy){removeShape(shape);}}
[ "public", "void", "clear", "(", ")", "{", "ArrayList", "<", "HSSFShape", ">", "copy", "=", "new", "ArrayList", "<", ">", "(", "_shapes", ")", ";", "for", "(", "HSSFShape", "shape", ":", "copy", ")", "{", "removeShape", "(", "shape", ")", ";", "}", "}" ]
public void Clear(){List<HSSFShape> copy = new List<HSSFShape>(_shapes);foreach (HSSFShape shape in copy){RemoveShape(shape);}}
train
false
1,187
public AddTagsToVaultResult addTagsToVault(AddTagsToVaultRequest request) {request = beforeClientExecution(request);return executeAddTagsToVault(request);}
[ "public", "AddTagsToVaultResult", "addTagsToVault", "(", "AddTagsToVaultRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAddTagsToVault", "(", "request", ")", ";", "}" ]
public virtual AddTagsToVaultResponse AddTagsToVault(AddTagsToVaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddTagsToVaultRequestMarshaller.Instance;options.ResponseUnmarshaller = AddTagsToVaultResponseUnmarshaller.Instance;return Invoke<AddTagsToVaultResponse>(request, options);}
train
true
1,188
public String toString() {return getClass().getSimpleName() + '@' + Integer.toHexString(hashCode());}
[ "public", "String", "toString", "(", ")", "{", "return", "getClass", "(", ")", ".", "getSimpleName", "(", ")", "+", "'@'", "+", "Integer", ".", "toHexString", "(", "hashCode", "(", ")", ")", ";", "}" ]
public override string ToString(){return this.GetType().Name + '@' + GetHashCode().ToString("x") + " lockFactory=" + LockFactory;}
train
false
1,189
public final boolean equals(Object obj) {if (obj instanceof Charset) {Charset that = (Charset) obj;return this.canonicalName.equals(that.canonicalName);}return false;}
[ "public", "final", "boolean", "equals", "(", "Object", "obj", ")", "{", "if", "(", "obj", "instanceof", "Charset", ")", "{", "Charset", "that", "=", "(", "Charset", ")", "obj", ";", "return", "this", ".", "canonicalName", ".", "equals", "(", "that", ".", "canonicalName", ")", ";", "}", "return", "false", ";", "}" ]
public sealed override bool Equals(object obj){if (obj is java.nio.charset.Charset){java.nio.charset.Charset that = (java.nio.charset.Charset)obj;return this.canonicalName.Equals(that.canonicalName);}return false;}
train
false
1,190
public String toString() {return source + " --> " + dest + " " + (char) min + "-" + (char) max;}
[ "public", "String", "toString", "(", ")", "{", "return", "source", "+", "\" --> \"", "+", "dest", "+", "\" \"", "+", "(", "char", ")", "min", "+", "\"-\"", "+", "(", "char", ")", "max", ";", "}" ]
public override string ToString(){StringBuilder b = new StringBuilder();AppendCharString(min, b);if (min != max){b.Append("-");AppendCharString(max, b);}b.Append(" -> ").Append(to.number);return b.ToString();}
train
false
1,191
public DeleteDirectoryConfigResult deleteDirectoryConfig(DeleteDirectoryConfigRequest request) {request = beforeClientExecution(request);return executeDeleteDirectoryConfig(request);}
[ "public", "DeleteDirectoryConfigResult", "deleteDirectoryConfig", "(", "DeleteDirectoryConfigRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteDirectoryConfig", "(", "request", ")", ";", "}" ]
public virtual DeleteDirectoryConfigResponse DeleteDirectoryConfig(DeleteDirectoryConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDirectoryConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDirectoryConfigResponseUnmarshaller.Instance;return Invoke<DeleteDirectoryConfigResponse>(request, options);}
train
true
1,192
public static DVConstraint createTimeConstraint(int comparisonOperator, String expr1, String expr2) {if (expr1 == null) {throw new IllegalArgumentException("expr1 must be supplied");}OperatorType.validateSecondArg(comparisonOperator, expr1);String formula1 = getFormulaFromTextExpression(expr1);Double value1 = formula1 == null ? convertTime(expr1) : null;String formula2 = getFormulaFromTextExpression(expr2);Double value2 = formula2 == null ? convertTime(expr2) : null;return new DVConstraint(ValidationType.TIME, comparisonOperator, formula1, formula2, value1, value2, null);}
[ "public", "static", "DVConstraint", "createTimeConstraint", "(", "int", "comparisonOperator", ",", "String", "expr1", ",", "String", "expr2", ")", "{", "if", "(", "expr1", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"expr1 must be supplied\"", ")", ";", "}", "OperatorType", ".", "validateSecondArg", "(", "comparisonOperator", ",", "expr1", ")", ";", "String", "formula1", "=", "getFormulaFromTextExpression", "(", "expr1", ")", ";", "Double", "value1", "=", "formula1", "==", "null", "?", "convertTime", "(", "expr1", ")", ":", "null", ";", "String", "formula2", "=", "getFormulaFromTextExpression", "(", "expr2", ")", ";", "Double", "value2", "=", "formula2", "==", "null", "?", "convertTime", "(", "expr2", ")", ":", "null", ";", "return", "new", "DVConstraint", "(", "ValidationType", ".", "TIME", ",", "comparisonOperator", ",", "formula1", ",", "formula2", ",", "value1", ",", "value2", ",", "null", ")", ";", "}" ]
public static DVConstraint CreateTimeConstraint(int comparisonOperator, String expr1, String expr2){if (expr1 == null){throw new ArgumentException("expr1 must be supplied");}OperatorType.ValidateSecondArg(comparisonOperator, expr1);String formula1 = GetFormulaFromTextExpression(expr1);Double value1 = formula1 == null ? ConvertTime(expr1) : Double.NaN;String formula2 = GetFormulaFromTextExpression(expr2);Double value2 = formula2 == null ? ConvertTime(expr2) : Double.NaN;return new DVConstraint(ValidationType.TIME, comparisonOperator, formula1, formula2, value1, value2, null);}
train
false
1,193
public String toString() {return ".";}
[ "public", "String", "toString", "(", ")", "{", "return", "\".\"", ";", "}" ]
public override string ToString(){return ".";}
train
false
1,194
public RestoreDBInstanceFromDBSnapshotRequest(String dBInstanceIdentifier, String dBSnapshotIdentifier) {setDBInstanceIdentifier(dBInstanceIdentifier);setDBSnapshotIdentifier(dBSnapshotIdentifier);}
[ "public", "RestoreDBInstanceFromDBSnapshotRequest", "(", "String", "dBInstanceIdentifier", ",", "String", "dBSnapshotIdentifier", ")", "{", "setDBInstanceIdentifier", "(", "dBInstanceIdentifier", ")", ";", "setDBSnapshotIdentifier", "(", "dBSnapshotIdentifier", ")", ";", "}" ]
public RestoreDBInstanceFromDBSnapshotRequest(string dbInstanceIdentifier, string dbSnapshotIdentifier){_dbInstanceIdentifier = dbInstanceIdentifier;_dbSnapshotIdentifier = dbSnapshotIdentifier;}
train
false
1,195
public String getName() {return seqName; }
[ "public", "String", "getName", "(", ")", "{", "return", "seqName", ";", "}" ]
public override string GetName(){return seqName; }
train
false
1,196
public void readFully(byte[] buf) {readFully(buf, 0, buf.length);}
[ "public", "void", "readFully", "(", "byte", "[", "]", "buf", ")", "{", "readFully", "(", "buf", ",", "0", ",", "buf", ".", "length", ")", ";", "}" ]
public virtual void ReadFully(byte[] buf){ReadFully(buf, 0, buf.Length);}
train
false
1,197
public boolean containsKey(Object o) {if(o == null)throw new NullPointerException();return false;}
[ "public", "boolean", "containsKey", "(", "Object", "o", ")", "{", "if", "(", "o", "==", "null", ")", "throw", "new", "NullPointerException", "(", ")", ";", "return", "false", ";", "}" ]
public override bool ContainsKey(char[] text){if (text == null){throw new ArgumentNullException("text");}return false;}
train
false
1,199
public History getWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest request) {request = beforeClientExecution(request);return executeGetWorkflowExecutionHistory(request);}
[ "public", "History", "getWorkflowExecutionHistory", "(", "GetWorkflowExecutionHistoryRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetWorkflowExecutionHistory", "(", "request", ")", ";", "}" ]
public virtual GetWorkflowExecutionHistoryResponse GetWorkflowExecutionHistory(GetWorkflowExecutionHistoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetWorkflowExecutionHistoryRequestMarshaller.Instance;options.ResponseUnmarshaller = GetWorkflowExecutionHistoryResponseUnmarshaller.Instance;return Invoke<GetWorkflowExecutionHistoryResponse>(request, options);}
train
true
1,200
public DeleteFileSystemPolicyResult deleteFileSystemPolicy(DeleteFileSystemPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteFileSystemPolicy(request);}
[ "public", "DeleteFileSystemPolicyResult", "deleteFileSystemPolicy", "(", "DeleteFileSystemPolicyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteFileSystemPolicy", "(", "request", ")", ";", "}" ]
public virtual DeleteFileSystemPolicyResponse DeleteFileSystemPolicy(DeleteFileSystemPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFileSystemPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFileSystemPolicyResponseUnmarshaller.Instance;return Invoke<DeleteFileSystemPolicyResponse>(request, options);}
train
false
1,202
public String getFormat(short index) {if (_movedBuiltins) {return _formats.get(index);}if(index == -1) {return null;}String fmt = _formats.size() > index ? _formats.get(index) : null;if (_builtinFormats.length > index && _builtinFormats[index] != null) {if (fmt != null) {return fmt;} else {return _builtinFormats[index];}}return fmt;}
[ "public", "String", "getFormat", "(", "short", "index", ")", "{", "if", "(", "_movedBuiltins", ")", "{", "return", "_formats", ".", "get", "(", "index", ")", ";", "}", "if", "(", "index", "==", "-", "1", ")", "{", "return", "null", ";", "}", "String", "fmt", "=", "_formats", ".", "size", "(", ")", ">", "index", "?", "_formats", ".", "get", "(", "index", ")", ":", "null", ";", "if", "(", "_builtinFormats", ".", "length", ">", "index", "&&", "_builtinFormats", "[", "index", "]", "!=", "null", ")", "{", "if", "(", "fmt", "!=", "null", ")", "{", "return", "fmt", ";", "}", "else", "{", "return", "_builtinFormats", "[", "index", "]", ";", "}", "}", "return", "fmt", ";", "}" ]
public String GetFormat(short index){if (movedBuiltins)return (String)formats[index];if (index == -1)return null;String fmt = formats.Count > index ? formats[index] : null;if (builtinFormats.Count > index&& builtinFormats[index] != null){if (fmt != null){return fmt;}else{return builtinFormats[index];}}return fmt;}
train
false
1,203
public boolean include(RevWalk walker, RevCommit cmit)throws StopWalkException, MissingObjectException,IncorrectObjectTypeException, IOException {count++;if (count > maxCount)throw StopWalkException.INSTANCE;return true;}
[ "public", "boolean", "include", "(", "RevWalk", "walker", ",", "RevCommit", "cmit", ")", "throws", "StopWalkException", ",", "MissingObjectException", ",", "IncorrectObjectTypeException", ",", "IOException", "{", "count", "++", ";", "if", "(", "count", ">", "maxCount", ")", "throw", "StopWalkException", ".", "INSTANCE", ";", "return", "true", ";", "}" ]
public override bool Include(RevWalk walker, RevCommit cmit){count++;if (count > maxCount){throw StopWalkException.INSTANCE;}return true;}
train
false
1,204
public final Buffer mark() {mark = position;return this;}
[ "public", "final", "Buffer", "mark", "(", ")", "{", "mark", "=", "position", ";", "return", "this", ";", "}" ]
public java.nio.Buffer mark(){_mark = _position;return this;}
train
false
1,205
public ModifyClientPropertiesResult modifyClientProperties(ModifyClientPropertiesRequest request) {request = beforeClientExecution(request);return executeModifyClientProperties(request);}
[ "public", "ModifyClientPropertiesResult", "modifyClientProperties", "(", "ModifyClientPropertiesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyClientProperties", "(", "request", ")", ";", "}" ]
public virtual ModifyClientPropertiesResponse ModifyClientProperties(ModifyClientPropertiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClientPropertiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClientPropertiesResponseUnmarshaller.Instance;return Invoke<ModifyClientPropertiesResponse>(request, options);}
train
true
1,206
public void stopWalk() {if (parent != null)parent.stopWalk();}
[ "public", "void", "stopWalk", "(", ")", "{", "if", "(", "parent", "!=", "null", ")", "parent", ".", "stopWalk", "(", ")", ";", "}" ]
public override void StopWalk(){if (parent != null){parent.StopWalk();}}
train
false
1,207
public ObjectId toObjectId() {return isComplete() ? new ObjectId(w1, w2, w3, w4, w5) : null;}
[ "public", "ObjectId", "toObjectId", "(", ")", "{", "return", "isComplete", "(", ")", "?", "new", "ObjectId", "(", "w1", ",", "w2", ",", "w3", ",", "w4", ",", "w5", ")", ":", "null", ";", "}" ]
public ObjectId ToObjectId(){return IsComplete ? new ObjectId(w1, w2, w3, w4, w5) : null;}
train
false
1,208
public UpdateIntegrationResult updateIntegration(UpdateIntegrationRequest request) {request = beforeClientExecution(request);return executeUpdateIntegration(request);}
[ "public", "UpdateIntegrationResult", "updateIntegration", "(", "UpdateIntegrationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateIntegration", "(", "request", ")", ";", "}" ]
public virtual UpdateIntegrationResponse UpdateIntegration(UpdateIntegrationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateIntegrationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateIntegrationResponseUnmarshaller.Instance;return Invoke<UpdateIntegrationResponse>(request, options);}
train
true
1,209
public PutDetectorResult putDetector(PutDetectorRequest request) {request = beforeClientExecution(request);return executePutDetector(request);}
[ "public", "PutDetectorResult", "putDetector", "(", "PutDetectorRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutDetector", "(", "request", ")", ";", "}" ]
public virtual PutDetectorResponse PutDetector(PutDetectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutDetectorRequestMarshaller.Instance;options.ResponseUnmarshaller = PutDetectorResponseUnmarshaller.Instance;return Invoke<PutDetectorResponse>(request, options);}
train
false
1,210
public long getLong(String section, String name, long defaultValue) {return typedGetter.getLong(this, section, null, name, defaultValue);}
[ "public", "long", "getLong", "(", "String", "section", ",", "String", "name", ",", "long", "defaultValue", ")", "{", "return", "typedGetter", ".", "getLong", "(", "this", ",", "section", ",", "null", ",", "name", ",", "defaultValue", ")", ";", "}" ]
public virtual long GetLong(string section, string name, long defaultValue){return GetLong(section, null, name, defaultValue);}
train
false
1,211
public void resetBackgroundImage(){EscherSimpleProperty property = getOptRecord().lookup(EscherPropertyTypes.FILL__PATTERNTEXTURE);if (null != property){EscherBSERecord bse = getPatriarch().getSheet().getWorkbook().getWorkbook().getBSERecord(property.getPropertyValue());bse.setRef(bse.getRef() - 1);getOptRecord().removeEscherProperty(EscherPropertyTypes.FILL__PATTERNTEXTURE);}setPropertyValue(new EscherSimpleProperty( EscherPropertyTypes.FILL__FILLTYPE, false, false, FILL_TYPE_SOLID));}
[ "public", "void", "resetBackgroundImage", "(", ")", "{", "EscherSimpleProperty", "property", "=", "getOptRecord", "(", ")", ".", "lookup", "(", "EscherPropertyTypes", ".", "FILL__PATTERNTEXTURE", ")", ";", "if", "(", "null", "!=", "property", ")", "{", "EscherBSERecord", "bse", "=", "getPatriarch", "(", ")", ".", "getSheet", "(", ")", ".", "getWorkbook", "(", ")", ".", "getWorkbook", "(", ")", ".", "getBSERecord", "(", "property", ".", "getPropertyValue", "(", ")", ")", ";", "bse", ".", "setRef", "(", "bse", ".", "getRef", "(", ")", "-", "1", ")", ";", "getOptRecord", "(", ")", ".", "removeEscherProperty", "(", "EscherPropertyTypes", ".", "FILL__PATTERNTEXTURE", ")", ";", "}", "setPropertyValue", "(", "new", "EscherSimpleProperty", "(", "EscherPropertyTypes", ".", "FILL__FILLTYPE", ",", "false", ",", "false", ",", "FILL_TYPE_SOLID", ")", ")", ";", "}" ]
public void ResetBackgroundImage(){EscherSimpleProperty property = (EscherSimpleProperty)GetOptRecord().Lookup(EscherProperties.FILL__PATTERNTEXTURE);if (null != property){EscherBSERecord bse = ((HSSFWorkbook)((HSSFPatriarch)Patriarch).Sheet.Workbook).Workbook.GetBSERecord(property.PropertyValue);bse.Ref = (bse.Ref - 1);GetOptRecord().RemoveEscherProperty(EscherProperties.FILL__PATTERNTEXTURE);}SetPropertyValue(new EscherSimpleProperty(EscherProperties.FILL__FILLTYPE, false, false, FILL_TYPE_SOLID));}
train
false
1,212
public void reset(DataInput in, long valueCount) {this.in = in;assert valueCount >= 0;this.valueCount = valueCount;off = blockSize;ord = 0;}
[ "public", "void", "reset", "(", "DataInput", "in", ",", "long", "valueCount", ")", "{", "this", ".", "in", "=", "in", ";", "assert", "valueCount", ">=", "0", ";", "this", ".", "valueCount", "=", "valueCount", ";", "off", "=", "blockSize", ";", "ord", "=", "0", ";", "}" ]
public void Reset(DataInput @in, long valueCount){this.@in = @in;Debug.Assert(valueCount >= 0);this.valueCount = valueCount;off = blockSize;ord = 0;}
train
false
1,213
public ResetSnapshotAttributeResult resetSnapshotAttribute(ResetSnapshotAttributeRequest request) {request = beforeClientExecution(request);return executeResetSnapshotAttribute(request);}
[ "public", "ResetSnapshotAttributeResult", "resetSnapshotAttribute", "(", "ResetSnapshotAttributeRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeResetSnapshotAttribute", "(", "request", ")", ";", "}" ]
public virtual ResetSnapshotAttributeResponse ResetSnapshotAttribute(ResetSnapshotAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetSnapshotAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetSnapshotAttributeResponseUnmarshaller.Instance;return Invoke<ResetSnapshotAttributeResponse>(request, options);}
train
true
1,214
public MutableValue duplicate() {MutableValueStr v = new MutableValueStr();v.value.copyBytes(value);v.exists = this.exists;return v;}
[ "public", "MutableValue", "duplicate", "(", ")", "{", "MutableValueStr", "v", "=", "new", "MutableValueStr", "(", ")", ";", "v", ".", "value", ".", "copyBytes", "(", "value", ")", ";", "v", ".", "exists", "=", "this", ".", "exists", ";", "return", "v", ";", "}" ]
public override MutableValue Duplicate(){MutableValueStr v = new MutableValueStr();v.Value.CopyBytes(Value);v.Exists = this.Exists;return v;}
train
false
1,215
public int getColumnNumber() { return column; }
[ "public", "int", "getColumnNumber", "(", ")", "{", "return", "column", ";", "}" ]
public virtual int getColumnNumber(){return column;}
train
false
1,216
public TokenStream create(TokenStream input) {if (pattern != null) {input = new PatternKeywordMarkerFilter(input, pattern);}if (protectedWords != null) {input = new SetKeywordMarkerFilter(input, protectedWords);}return input;}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "if", "(", "pattern", "!=", "null", ")", "{", "input", "=", "new", "PatternKeywordMarkerFilter", "(", "input", ",", "pattern", ")", ";", "}", "if", "(", "protectedWords", "!=", "null", ")", "{", "input", "=", "new", "SetKeywordMarkerFilter", "(", "input", ",", "protectedWords", ")", ";", "}", "return", "input", ";", "}" ]
public override TokenStream Create(TokenStream input){if (pattern != null){input = new PatternKeywordMarkerFilter(input, pattern);}if (protectedWords != null){input = new SetKeywordMarkerFilter(input, protectedWords);}return input;}
train
false
1,217
public ElisionFilter(TokenStream input, CharArraySet articles) {super(input);this.articles = articles;}
[ "public", "ElisionFilter", "(", "TokenStream", "input", ",", "CharArraySet", "articles", ")", "{", "super", "(", "input", ")", ";", "this", ".", "articles", "=", "articles", ";", "}" ]
public ElisionFilter(TokenStream input, CharArraySet articles): base(input){this.articles = articles;termAtt = AddAttribute<ICharTermAttribute>();}
train
false
1,218
public static int strcmp(String str, char[] a, int start) {int i, d, len = str.length();for (i = 0; i < len; i++) {d = (int) str.charAt(i) - a[start + i];if (d != 0) {return d;}if (a[start + i] == 0) {return d;}}if (a[start + i] != 0) {return -a[start + i];}return 0;}
[ "public", "static", "int", "strcmp", "(", "String", "str", ",", "char", "[", "]", "a", ",", "int", "start", ")", "{", "int", "i", ",", "d", ",", "len", "=", "str", ".", "length", "(", ")", ";", "for", "(", "i", "=", "0", ";", "i", "<", "len", ";", "i", "++", ")", "{", "d", "=", "(", "int", ")", "str", ".", "charAt", "(", "i", ")", "-", "a", "[", "start", "+", "i", "]", ";", "if", "(", "d", "!=", "0", ")", "{", "return", "d", ";", "}", "if", "(", "a", "[", "start", "+", "i", "]", "==", "0", ")", "{", "return", "d", ";", "}", "}", "if", "(", "a", "[", "start", "+", "i", "]", "!=", "0", ")", "{", "return", "-", "a", "[", "start", "+", "i", "]", ";", "}", "return", "0", ";", "}" ]
public static int StrCmp(string str, char[] a, int start){int i, d, len = str.Length;for (i = 0; i < len; i++){d = (int)str[i] - a[start + i];if (d != 0){return d;}if (a[start + i] == 0){return d;}}if (a[start + i] != 0){return -a[start + i];}return 0;}
train
true
1,219
public NavigableSet<E> descendingSet() {return (descendingSet != null) ? descendingSet: (descendingSet = new TreeSet<E>(backingMap.descendingMap()));}
[ "public", "NavigableSet", "<", "E", ">", "descendingSet", "(", ")", "{", "return", "(", "descendingSet", "!=", "null", ")", "?", "descendingSet", ":", "(", "descendingSet", "=", "new", "TreeSet", "<", "E", ">", "(", "backingMap", ".", "descendingMap", "(", ")", ")", ")", ";", "}" ]
public virtual java.util.NavigableSet<E> descendingSet(){return (_descendingSet != null) ? _descendingSet : (_descendingSet = new java.util.TreeSet<E>(backingMap.descendingMap()));}
train
false
1,220
public DecisionInfo[] getDecisionInfo() {return decisions;}
[ "public", "DecisionInfo", "[", "]", "getDecisionInfo", "(", ")", "{", "return", "decisions", ";", "}" ]
public DecisionInfo[] getDecisionInfo(){return decisions;}
train
false
1,221
public PushConnection openPush() throws NotSupportedException {throw new NotSupportedException(JGitText.get().pushIsNotSupportedForBundleTransport);}
[ "public", "PushConnection", "openPush", "(", ")", "throws", "NotSupportedException", "{", "throw", "new", "NotSupportedException", "(", "JGitText", ".", "get", "(", ")", ".", "pushIsNotSupportedForBundleTransport", ")", ";", "}" ]
public override PushConnection OpenPush(){throw new NGit.Errors.NotSupportedException(JGitText.Get().pushIsNotSupportedForBundleTransport);}
train
false
1,222
public PutRecordResult putRecord(PutRecordRequest request) {request = beforeClientExecution(request);return executePutRecord(request);}
[ "public", "PutRecordResult", "putRecord", "(", "PutRecordRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutRecord", "(", "request", ")", ";", "}" ]
public virtual PutRecordResponse PutRecord(PutRecordRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRecordRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRecordResponseUnmarshaller.Instance;return Invoke<PutRecordResponse>(request, options);}
train
true
1,223
public List<? extends Token> getAllTokens() {List<Token> tokens = new ArrayList<Token>();Token t = nextToken();while ( t.getType()!=Token.EOF ) {tokens.add(t);t = nextToken();}return tokens;}
[ "public", "List", "<", "?", "extends", "Token", ">", "getAllTokens", "(", ")", "{", "List", "<", "Token", ">", "tokens", "=", "new", "ArrayList", "<", "Token", ">", "(", ")", ";", "Token", "t", "=", "nextToken", "(", ")", ";", "while", "(", "t", ".", "getType", "(", ")", "!=", "Token", ".", "EOF", ")", "{", "tokens", ".", "add", "(", "t", ")", ";", "t", "=", "nextToken", "(", ")", ";", "}", "return", "tokens", ";", "}" ]
public virtual IList<IToken> GetAllTokens(){IList<IToken> tokens = new List<IToken>();IToken t = NextToken();while (t.Type != TokenConstants.EOF){tokens.Add(t);t = NextToken();}return tokens;}
train
false
1,224
public ModifyInstanceCapacityReservationAttributesResult modifyInstanceCapacityReservationAttributes(ModifyInstanceCapacityReservationAttributesRequest request) {request = beforeClientExecution(request);return executeModifyInstanceCapacityReservationAttributes(request);}
[ "public", "ModifyInstanceCapacityReservationAttributesResult", "modifyInstanceCapacityReservationAttributes", "(", "ModifyInstanceCapacityReservationAttributesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyInstanceCapacityReservationAttributes", "(", "request", ")", ";", "}" ]
public virtual ModifyInstanceCapacityReservationAttributesResponse ModifyInstanceCapacityReservationAttributes(ModifyInstanceCapacityReservationAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstanceCapacityReservationAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstanceCapacityReservationAttributesResponseUnmarshaller.Instance;return Invoke<ModifyInstanceCapacityReservationAttributesResponse>(request, options);}
train
true
1,225
public MoveFacePhotosRequest() {super("CloudPhoto", "2017-07-11", "MoveFacePhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
[ "public", "MoveFacePhotosRequest", "(", ")", "{", "super", "(", "\"CloudPhoto\"", ",", "\"2017-07-11\"", ",", "\"MoveFacePhotos\"", ",", "\"cloudphoto\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "}" ]
public MoveFacePhotosRequest(): base("CloudPhoto", "2017-07-11", "MoveFacePhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
train
false
1,226
public RequestSpotFleetResult requestSpotFleet(RequestSpotFleetRequest request) {request = beforeClientExecution(request);return executeRequestSpotFleet(request);}
[ "public", "RequestSpotFleetResult", "requestSpotFleet", "(", "RequestSpotFleetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRequestSpotFleet", "(", "request", ")", ";", "}" ]
public virtual RequestSpotFleetResponse RequestSpotFleet(RequestSpotFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = RequestSpotFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = RequestSpotFleetResponseUnmarshaller.Instance;return Invoke<RequestSpotFleetResponse>(request, options);}
train
true
1,227
public ListApplicationSnapshotsResult listApplicationSnapshots(ListApplicationSnapshotsRequest request) {request = beforeClientExecution(request);return executeListApplicationSnapshots(request);}
[ "public", "ListApplicationSnapshotsResult", "listApplicationSnapshots", "(", "ListApplicationSnapshotsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListApplicationSnapshots", "(", "request", ")", ";", "}" ]
public virtual ListApplicationSnapshotsResponse ListApplicationSnapshots(ListApplicationSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListApplicationSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListApplicationSnapshotsResponseUnmarshaller.Instance;return Invoke<ListApplicationSnapshotsResponse>(request, options);}
train
true
1,228
public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentials credentials) {this(profile, new StaticCredentialsProvider(credentials));}
[ "public", "DefaultAcsClient", "(", "IClientProfile", "profile", ",", "AlibabaCloudCredentials", "credentials", ")", "{", "this", "(", "profile", ",", "new", "StaticCredentialsProvider", "(", "credentials", ")", ")", ";", "}" ]
public DefaultAcsClient(IClientProfile profile, AlibabaCloudCredentials credentials) : this(){clientProfile = profile;credentialsProvider = new StaticCredentialsProvider(credentials);clientProfile.SetCredentialsProvider(credentialsProvider);}
train
false
1,229
public ConcurrentRefUpdateException(String message, Ref ref,RefUpdate.Result rc) {super((rc == null) ? message : message + ". " + MessageFormat.format(JGitText.get().refUpdateReturnCodeWas, rc));this.rc = rc;this.ref = ref;}
[ "public", "ConcurrentRefUpdateException", "(", "String", "message", ",", "Ref", "ref", ",", "RefUpdate", ".", "Result", "rc", ")", "{", "super", "(", "(", "rc", "==", "null", ")", "?", "message", ":", "message", "+", "\". \"", "+", "MessageFormat", ".", "format", "(", "JGitText", ".", "get", "(", ")", ".", "refUpdateReturnCodeWas", ",", "rc", ")", ")", ";", "this", ".", "rc", "=", "rc", ";", "this", ".", "ref", "=", "ref", ";", "}" ]
public ConcurrentRefUpdateException(string message, Ref @ref, RefUpdate.Result rc) : base((rc == null) ? message : message + ". " + MessageFormat.Format(JGitText.Get().refUpdateReturnCodeWas, rc)){this.rc = rc;this.@ref = @ref;}
train
false
1,230
public DeleteNetworkAclResult deleteNetworkAcl(DeleteNetworkAclRequest request) {request = beforeClientExecution(request);return executeDeleteNetworkAcl(request);}
[ "public", "DeleteNetworkAclResult", "deleteNetworkAcl", "(", "DeleteNetworkAclRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteNetworkAcl", "(", "request", ")", ";", "}" ]
public virtual DeleteNetworkAclResponse DeleteNetworkAcl(DeleteNetworkAclRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNetworkAclRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNetworkAclResponseUnmarshaller.Instance;return Invoke<DeleteNetworkAclResponse>(request, options);}
train
true
1,231
public ShortBuffer get(short[] dst, int dstOffset, int shortCount) {Arrays.checkOffsetAndCount(dst.length, dstOffset, shortCount);if (shortCount > remaining()) {throw new BufferUnderflowException();}for (int i = dstOffset; i < dstOffset + shortCount; ++i) {dst[i] = get();}return this;}
[ "public", "ShortBuffer", "get", "(", "short", "[", "]", "dst", ",", "int", "dstOffset", ",", "int", "shortCount", ")", "{", "Arrays", ".", "checkOffsetAndCount", "(", "dst", ".", "length", ",", "dstOffset", ",", "shortCount", ")", ";", "if", "(", "shortCount", ">", "remaining", "(", ")", ")", "{", "throw", "new", "BufferUnderflowException", "(", ")", ";", "}", "for", "(", "int", "i", "=", "dstOffset", ";", "i", "<", "dstOffset", "+", "shortCount", ";", "++", "i", ")", "{", "dst", "[", "i", "]", "=", "get", "(", ")", ";", "}", "return", "this", ";", "}" ]
public virtual java.nio.ShortBuffer get(short[] dst, int dstOffset, int shortCount){java.util.Arrays.checkOffsetAndCount(dst.Length, dstOffset, shortCount);if (shortCount > remaining()){throw new java.nio.BufferUnderflowException();}{for (int i = dstOffset; i < dstOffset + shortCount; ++i){dst[i] = get();}}return this;}
train
false
1,232
public static SharedValueManager createEmpty() {return new SharedValueManager(new SharedFormulaRecord[0], new CellReference[0], new ArrayRecord[0], new TableRecord[0]);}
[ "public", "static", "SharedValueManager", "createEmpty", "(", ")", "{", "return", "new", "SharedValueManager", "(", "new", "SharedFormulaRecord", "[", "0", "]", ",", "new", "CellReference", "[", "0", "]", ",", "new", "ArrayRecord", "[", "0", "]", ",", "new", "TableRecord", "[", "0", "]", ")", ";", "}" ]
public static SharedValueManager CreateEmpty(){return new SharedValueManager(new SharedFormulaRecord[0], new CellReference[0], new List<ArrayRecord>(), new List<TableRecord>());}
train
false
1,233
public DeleteCacheSecurityGroupResult deleteCacheSecurityGroup(DeleteCacheSecurityGroupRequest request) {request = beforeClientExecution(request);return executeDeleteCacheSecurityGroup(request);}
[ "public", "DeleteCacheSecurityGroupResult", "deleteCacheSecurityGroup", "(", "DeleteCacheSecurityGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteCacheSecurityGroup", "(", "request", ")", ";", "}" ]
public virtual DeleteCacheSecurityGroupResponse DeleteCacheSecurityGroup(DeleteCacheSecurityGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCacheSecurityGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCacheSecurityGroupResponseUnmarshaller.Instance;return Invoke<DeleteCacheSecurityGroupResponse>(request, options);}
train
true
1,234
public CreateGroupRequest(String groupName) {setGroupName(groupName);}
[ "public", "CreateGroupRequest", "(", "String", "groupName", ")", "{", "setGroupName", "(", "groupName", ")", ";", "}" ]
public CreateGroupRequest(string groupName){_groupName = groupName;}
train
false
1,235
public void setParentId(AnyObjectId newParent) {parentIds = new ObjectId[] { newParent.copy() };}
[ "public", "void", "setParentId", "(", "AnyObjectId", "newParent", ")", "{", "parentIds", "=", "new", "ObjectId", "[", "]", "{", "newParent", ".", "copy", "(", ")", "}", ";", "}" ]
public virtual void SetParentId(AnyObjectId newParent){parentIds = new ObjectId[] { newParent.Copy() };}
train
false
1,236
public static boolean hasConflictingAltSet(Collection<BitSet> altsets) {for (BitSet alts : altsets) {if ( alts.cardinality()>1 ) {return true;}}return false;}
[ "public", "static", "boolean", "hasConflictingAltSet", "(", "Collection", "<", "BitSet", ">", "altsets", ")", "{", "for", "(", "BitSet", "alts", ":", "altsets", ")", "{", "if", "(", "alts", ".", "cardinality", "(", ")", ">", "1", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}" ]
public static bool HasConflictingAltSet(IEnumerable<BitSet> altsets){foreach (BitSet alts in altsets){if (alts.Cardinality() > 1){return true;}}return false;}
train
false
1,237
public CommonRpcRequest(String product) {super(product);setAcceptFormat(FormatType.JSON);}
[ "public", "CommonRpcRequest", "(", "String", "product", ")", "{", "super", "(", "product", ")", ";", "setAcceptFormat", "(", "FormatType", ".", "JSON", ")", ";", "}" ]
public CommonRpcRequest(string product) : base(product){AcceptFormat = FormatType.JSON;}
train
false
1,238
public K next() { return super.nextEntry().key; }
[ "public", "K", "next", "(", ")", "{", "return", "super", ".", "nextEntry", "(", ")", ".", "key", ";", "}" ]
public override K next(){return this.nextEntry().key;}
train
false
1,239
public DeleteTransitGatewayMulticastDomainResult deleteTransitGatewayMulticastDomain(DeleteTransitGatewayMulticastDomainRequest request) {request = beforeClientExecution(request);return executeDeleteTransitGatewayMulticastDomain(request);}
[ "public", "DeleteTransitGatewayMulticastDomainResult", "deleteTransitGatewayMulticastDomain", "(", "DeleteTransitGatewayMulticastDomainRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteTransitGatewayMulticastDomain", "(", "request", ")", ";", "}" ]
public virtual DeleteTransitGatewayMulticastDomainResponse DeleteTransitGatewayMulticastDomain(DeleteTransitGatewayMulticastDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTransitGatewayMulticastDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTransitGatewayMulticastDomainResponseUnmarshaller.Instance;return Invoke<DeleteTransitGatewayMulticastDomainResponse>(request, options);}
train
false
1,240
public DescribeEventsResult describeEvents(DescribeEventsRequest request) {request = beforeClientExecution(request);return executeDescribeEvents(request);}
[ "public", "DescribeEventsResult", "describeEvents", "(", "DescribeEventsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeEvents", "(", "request", ")", ";", "}" ]
public virtual DescribeEventsResponse DescribeEvents(DescribeEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEventsResponseUnmarshaller.Instance;return Invoke<DescribeEventsResponse>(request, options);}
train
true
1,241
public DescribeFleetsResult describeFleets(DescribeFleetsRequest request) {request = beforeClientExecution(request);return executeDescribeFleets(request);}
[ "public", "DescribeFleetsResult", "describeFleets", "(", "DescribeFleetsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeFleets", "(", "request", ")", ";", "}" ]
public virtual DescribeFleetsResponse DescribeFleets(DescribeFleetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetsResponseUnmarshaller.Instance;return Invoke<DescribeFleetsResponse>(request, options);}
train
true
1,242
public DescribeDataRepositoryTasksResult describeDataRepositoryTasks(DescribeDataRepositoryTasksRequest request) {request = beforeClientExecution(request);return executeDescribeDataRepositoryTasks(request);}
[ "public", "DescribeDataRepositoryTasksResult", "describeDataRepositoryTasks", "(", "DescribeDataRepositoryTasksRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDataRepositoryTasks", "(", "request", ")", ";", "}" ]
public virtual DescribeDataRepositoryTasksResponse DescribeDataRepositoryTasks(DescribeDataRepositoryTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDataRepositoryTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDataRepositoryTasksResponseUnmarshaller.Instance;return Invoke<DescribeDataRepositoryTasksResponse>(request, options);}
train
false
1,243
public StartLabelDetectionResult startLabelDetection(StartLabelDetectionRequest request) {request = beforeClientExecution(request);return executeStartLabelDetection(request);}
[ "public", "StartLabelDetectionResult", "startLabelDetection", "(", "StartLabelDetectionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartLabelDetection", "(", "request", ")", ";", "}" ]
public virtual StartLabelDetectionResponse StartLabelDetection(StartLabelDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartLabelDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartLabelDetectionResponseUnmarshaller.Instance;return Invoke<StartLabelDetectionResponse>(request, options);}
train
true
1,244
public static long getLastCommitGeneration(String[] files) {long max = -1;for (String file : files) {if (file.startsWith(IndexFileNames.SEGMENTS) &&file.startsWith(OLD_SEGMENTS_GEN) == false) {long gen = generationFromSegmentsFileName(file);if (gen > max) {max = gen;}}}return max;}
[ "public", "static", "long", "getLastCommitGeneration", "(", "String", "[", "]", "files", ")", "{", "long", "max", "=", "-", "1", ";", "for", "(", "String", "file", ":", "files", ")", "{", "if", "(", "file", ".", "startsWith", "(", "IndexFileNames", ".", "SEGMENTS", ")", "&&", "file", ".", "startsWith", "(", "OLD_SEGMENTS_GEN", ")", "==", "false", ")", "{", "long", "gen", "=", "generationFromSegmentsFileName", "(", "file", ")", ";", "if", "(", "gen", ">", "max", ")", "{", "max", "=", "gen", ";", "}", "}", "}", "return", "max", ";", "}" ]
public static long GetLastCommitGeneration(string[] files){if (files == null){return -1;}long max = -1;foreach (var file in files){if (file.StartsWith(IndexFileNames.SEGMENTS, StringComparison.Ordinal) && !file.Equals(IndexFileNames.SEGMENTS_GEN, StringComparison.Ordinal)){long gen = GenerationFromSegmentsFileName(file);if (gen > max){max = gen;}}}return max;}
train
false
1,245
public EnableFastSnapshotRestoresResult enableFastSnapshotRestores(EnableFastSnapshotRestoresRequest request) {request = beforeClientExecution(request);return executeEnableFastSnapshotRestores(request);}
[ "public", "EnableFastSnapshotRestoresResult", "enableFastSnapshotRestores", "(", "EnableFastSnapshotRestoresRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeEnableFastSnapshotRestores", "(", "request", ")", ";", "}" ]
public virtual EnableFastSnapshotRestoresResponse EnableFastSnapshotRestores(EnableFastSnapshotRestoresRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableFastSnapshotRestoresRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableFastSnapshotRestoresResponseUnmarshaller.Instance;return Invoke<EnableFastSnapshotRestoresResponse>(request, options);}
train
false
1,246
public ListVPCAssociationAuthorizationsResult listVPCAssociationAuthorizations(ListVPCAssociationAuthorizationsRequest request) {request = beforeClientExecution(request);return executeListVPCAssociationAuthorizations(request);}
[ "public", "ListVPCAssociationAuthorizationsResult", "listVPCAssociationAuthorizations", "(", "ListVPCAssociationAuthorizationsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListVPCAssociationAuthorizations", "(", "request", ")", ";", "}" ]
public virtual ListVPCAssociationAuthorizationsResponse ListVPCAssociationAuthorizations(ListVPCAssociationAuthorizationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListVPCAssociationAuthorizationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListVPCAssociationAuthorizationsResponseUnmarshaller.Instance;return Invoke<ListVPCAssociationAuthorizationsResponse>(request, options);}
train
true
1,247
public Thumbnail(final byte[] thumbnailData){this._thumbnailData = thumbnailData;}
[ "public", "Thumbnail", "(", "final", "byte", "[", "]", "thumbnailData", ")", "{", "this", ".", "_thumbnailData", "=", "thumbnailData", ";", "}" ]
public Thumbnail(byte[] thumbnailData){this.thumbnailData = thumbnailData;}
train
false
1,248
public final Explanation explain(BasicStats stats, double tfn) {return Explanation.match((float) (scoreTimes1pTfn(stats) / (1 + tfn)),getClass().getSimpleName() + ", computed as 1 / (tfn + 1) from:",Explanation.match((float) tfn, "tfn, normalized term frequency"));}
[ "public", "final", "Explanation", "explain", "(", "BasicStats", "stats", ",", "double", "tfn", ")", "{", "return", "Explanation", ".", "match", "(", "(", "float", ")", "(", "scoreTimes1pTfn", "(", "stats", ")", "/", "(", "1", "+", "tfn", ")", ")", ",", "getClass", "(", ")", ".", "getSimpleName", "(", ")", "+", "\", computed as 1 / (tfn + 1) from:\"", ",", "Explanation", ".", "match", "(", "(", "float", ")", "tfn", ",", "\"tfn, normalized term frequency\"", ")", ")", ";", "}" ]
public override sealed Explanation Explain(BasicStats stats, float tfn){Explanation result = new Explanation();result.Description = this.GetType().Name + ", computed from: ";result.Value = Score(stats, tfn);result.AddDetail(new Explanation(tfn, "tfn"));return result;}
train
false
1,250
public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append("mask(");buffer.append(maskedQuery.toString(field));buffer.append(")");buffer.append(" as ");buffer.append(this.field);return buffer.toString();}
[ "public", "String", "toString", "(", "String", "field", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"mask(\"", ")", ";", "buffer", ".", "append", "(", "maskedQuery", ".", "toString", "(", "field", ")", ")", ";", "buffer", ".", "append", "(", "\")\"", ")", ";", "buffer", ".", "append", "(", "\" as \"", ")", ";", "buffer", ".", "append", "(", "this", ".", "field", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append("mask(");buffer.Append(maskedQuery.ToString(field));buffer.Append(")");buffer.Append(ToStringUtils.Boost(Boost));buffer.Append(" as ");buffer.Append(this.field);return buffer.ToString();}
train
false
1,252
public NotImplementedFunctionException(String functionName) {super(functionName);this.functionName = functionName;}
[ "public", "NotImplementedFunctionException", "(", "String", "functionName", ")", "{", "super", "(", "functionName", ")", ";", "this", ".", "functionName", "=", "functionName", ";", "}" ]
public NotImplementedFunctionException(string functionName): base(functionName){this.functionName = functionName;}
train
false
1,253
public DeleteResourceResult deleteResource(DeleteResourceRequest request) {request = beforeClientExecution(request);return executeDeleteResource(request);}
[ "public", "DeleteResourceResult", "deleteResource", "(", "DeleteResourceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteResource", "(", "request", ")", ";", "}" ]
public virtual DeleteResourceResponse DeleteResource(DeleteResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteResourceResponseUnmarshaller.Instance;return Invoke<DeleteResourceResponse>(request, options);}
train
true
1,254
public PaletteRecord() {PColor[] defaultPalette = createDefaultPalette();_colors.ensureCapacity(defaultPalette.length);Collections.addAll(_colors, defaultPalette);}
[ "public", "PaletteRecord", "(", ")", "{", "PColor", "[", "]", "defaultPalette", "=", "createDefaultPalette", "(", ")", ";", "_colors", ".", "ensureCapacity", "(", "defaultPalette", ".", "length", ")", ";", "Collections", ".", "addAll", "(", "_colors", ",", "defaultPalette", ")", ";", "}" ]
public PaletteRecord(){PColor[] defaultPalette = CreateDefaultPalette();field_2_colors = new List<PColor>(defaultPalette.Length);for (int i = 0; i < defaultPalette.Length; i++){field_2_colors.Add(defaultPalette[i]);}}
train
false
1,255
public GetRepoBuildLogsRequest() {super("cr", "2016-06-07", "GetRepoBuildLogs", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/logs");setMethod(MethodType.GET);}
[ "public", "GetRepoBuildLogsRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"GetRepoBuildLogs\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/logs\"", ")", ";", "setMethod", "(", "MethodType", ".", "GET", ")", ";", "}" ]
public GetRepoBuildLogsRequest(): base("cr", "2016-06-07", "GetRepoBuildLogs", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/logs";Method = MethodType.GET;}
train
false
1,256
public String toString() {return "SortedSetDocValuesFacetField(dim=" + dim + " label=" + label + ")";}
[ "public", "String", "toString", "(", ")", "{", "return", "\"SortedSetDocValuesFacetField(dim=\"", "+", "dim", "+", "\" label=\"", "+", "label", "+", "\")\"", ";", "}" ]
public override string ToString(){return "SortedSetDocValuesFacetField(dim=" + Dim + " label=" + Label + ")";}
train
false
1,257
public Break(int main, int subFrom, int subTo) {this.main = main;this.subFrom = subFrom;this.subTo = subTo;}
[ "public", "Break", "(", "int", "main", ",", "int", "subFrom", ",", "int", "subTo", ")", "{", "this", ".", "main", "=", "main", ";", "this", ".", "subFrom", "=", "subFrom", ";", "this", ".", "subTo", "=", "subTo", ";", "}" ]
public Break(int main, int subFrom, int subTo){this.main = main;this.subFrom = subFrom;this.subTo = subTo;}
train
false
1,258
public void setParams(String params) {super.setParams(params);docSize = (int) Float.parseFloat(params);}
[ "public", "void", "setParams", "(", "String", "params", ")", "{", "super", ".", "setParams", "(", "params", ")", ";", "docSize", "=", "(", "int", ")", "Float", ".", "parseFloat", "(", "params", ")", ";", "}" ]
public override void SetParams(string @params){base.SetParams(@params);docSize = (int)float.Parse(@params, CultureInfo.InvariantCulture);}
train
false
1,259
public static double pv(double r, double n, double y, double f, boolean t) {double retval = 0;if (r == 0) {retval = -1*((n*y)+f);}else {double r1 = r + 1;retval =(( ( 1 - Math.pow(r1, n) ) / r ) * (t ? r1 : 1) * y - f)/Math.pow(r1, n);}return retval;}
[ "public", "static", "double", "pv", "(", "double", "r", ",", "double", "n", ",", "double", "y", ",", "double", "f", ",", "boolean", "t", ")", "{", "double", "retval", "=", "0", ";", "if", "(", "r", "==", "0", ")", "{", "retval", "=", "-", "1", "*", "(", "(", "n", "*", "y", ")", "+", "f", ")", ";", "}", "else", "{", "double", "r1", "=", "r", "+", "1", ";", "retval", "=", "(", "(", "(", "1", "-", "Math", ".", "pow", "(", "r1", ",", "n", ")", ")", "/", "r", ")", "*", "(", "t", "?", "r1", ":", "1", ")", "*", "y", "-", "f", ")", "/", "Math", ".", "pow", "(", "r1", ",", "n", ")", ";", "}", "return", "retval", ";", "}" ]
public static double pv(double r, double n, double y, double f, bool t){double retval = 0;if (r == 0){retval = -1 * ((n * y) + f);}else{double r1 = r + 1;retval = (((1 - Math.Pow(r1, n)) / r) * (t ? r1 : 1) * y - f)/Math.Pow(r1, n);}return retval;}
train
false
1,260
public int compareTo(File another) {return this.getPath().compareTo(another.getPath());}
[ "public", "int", "compareTo", "(", "File", "another", ")", "{", "return", "this", ".", "getPath", "(", ")", ".", "compareTo", "(", "another", ".", "getPath", "(", ")", ")", ";", "}" ]
public int compareTo(java.io.File another){return string.CompareOrdinal(this.getPath(), another.getPath());}
train
false
1,261
public void writeByte(int value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeByte(value);}
[ "public", "void", "writeByte", "(", "int", "value", ")", "throws", "IOException", "{", "checkWritePrimitiveTypes", "(", ")", ";", "primitiveTypes", ".", "writeByte", "(", "value", ")", ";", "}" ]
public virtual void writeByte(int value){throw new System.NotImplementedException();}
train
false
1,262
public String toString() {StringBuilder buffer = new StringBuilder("[Data Table - Parent cell is an interior cell in a data table]\n");buffer.append("top left row = ").append(getRow()).append("\n");buffer.append("top left col = ").append(getColumn()).append("\n");return buffer.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", "\"[Data Table - Parent cell is an interior cell in a data table]\\n\"", ")", ";", "buffer", ".", "append", "(", "\"top left row = \"", ")", ".", "append", "(", "getRow", "(", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\"top left col = \"", ")", ".", "append", "(", "getColumn", "(", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder buffer = new StringBuilder("[Data Table - Parent cell is an interior cell in a data table]\n");buffer.Append("top left row = ").Append(Row).Append("\n");buffer.Append("top left col = ").Append(Column).Append("\n");return buffer.ToString();}
train
false
1,263
public Credential() {this.refreshDate = new Date();}
[ "public", "Credential", "(", ")", "{", "this", ".", "refreshDate", "=", "new", "Date", "(", ")", ";", "}" ]
public Credential(){RefreshDate = DateTime.UtcNow;}
train
false
1,264
public NavigableMap<K, V> subMap(K fromInclusive, K toExclusive) {return subMap(fromInclusive, INCLUSIVE, toExclusive, EXCLUSIVE);}
[ "public", "NavigableMap", "<", "K", ",", "V", ">", "subMap", "(", "K", "fromInclusive", ",", "K", "toExclusive", ")", "{", "return", "subMap", "(", "fromInclusive", ",", "INCLUSIVE", ",", "toExclusive", ",", "EXCLUSIVE", ")", ";", "}" ]
public java.util.NavigableMap<K, V> subMap(K fromInclusive, K toExclusive){return this.subMap(fromInclusive, java.util.TreeMap.Bound.INCLUSIVE, toExclusive,java.util.TreeMap.Bound.EXCLUSIVE);}
train
false
1,265
public DescribeLedgerResult describeLedger(DescribeLedgerRequest request) {request = beforeClientExecution(request);return executeDescribeLedger(request);}
[ "public", "DescribeLedgerResult", "describeLedger", "(", "DescribeLedgerRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeLedger", "(", "request", ")", ";", "}" ]
public virtual DescribeLedgerResponse DescribeLedger(DescribeLedgerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLedgerRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLedgerResponseUnmarshaller.Instance;return Invoke<DescribeLedgerResponse>(request, options);}
train
false
1,266
public boolean isNoPrefix() {return noPrefix;}
[ "public", "boolean", "isNoPrefix", "(", ")", "{", "return", "noPrefix", ";", "}" ]
public virtual bool IsNoPrefix(){return noPrefix;}
train
false
1,267
public static Policy fromJson(String jsonString) {return fromJson(jsonString, new PolicyReaderOptions());}
[ "public", "static", "Policy", "fromJson", "(", "String", "jsonString", ")", "{", "return", "fromJson", "(", "jsonString", ",", "new", "PolicyReaderOptions", "(", ")", ")", ";", "}" ]
public static Policy FromJson(string json){return JsonPolicyReader.ReadJsonStringToPolicy(json);}
train
false
1,268
public GetPhoneNumberResult getPhoneNumber(GetPhoneNumberRequest request) {request = beforeClientExecution(request);return executeGetPhoneNumber(request);}
[ "public", "GetPhoneNumberResult", "getPhoneNumber", "(", "GetPhoneNumberRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetPhoneNumber", "(", "request", ")", ";", "}" ]
public virtual GetPhoneNumberResponse GetPhoneNumber(GetPhoneNumberRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPhoneNumberRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPhoneNumberResponseUnmarshaller.Instance;return Invoke<GetPhoneNumberResponse>(request, options);}
train
true
1,269
public static void writeUnicodeString(LittleEndianOutput out, String value) {int nChars = value.length();out.writeShort(nChars);boolean is16Bit = hasMultibyte(value);out.writeByte(is16Bit ? 0x01 : 0x00);if (is16Bit) {putUnicodeLE(value, out);} else {putCompressedUnicode(value, out);}}
[ "public", "static", "void", "writeUnicodeString", "(", "LittleEndianOutput", "out", ",", "String", "value", ")", "{", "int", "nChars", "=", "value", ".", "length", "(", ")", ";", "out", ".", "writeShort", "(", "nChars", ")", ";", "boolean", "is16Bit", "=", "hasMultibyte", "(", "value", ")", ";", "out", ".", "writeByte", "(", "is16Bit", "?", "0x01", ":", "0x00", ")", ";", "if", "(", "is16Bit", ")", "{", "putUnicodeLE", "(", "value", ",", "out", ")", ";", "}", "else", "{", "putCompressedUnicode", "(", "value", ",", "out", ")", ";", "}", "}" ]
public static void WriteUnicodeString(ILittleEndianOutput out1, String value){int nChars = value.Length;out1.WriteShort(nChars);bool is16Bit = HasMultibyte(value);out1.WriteByte(is16Bit ? 0x01 : 0x00);if (is16Bit){PutUnicodeLE(value, out1);}else{PutCompressedUnicode(value, out1);}}
train
false
1,270
public DescribeCoipPoolsResult describeCoipPools(DescribeCoipPoolsRequest request) {request = beforeClientExecution(request);return executeDescribeCoipPools(request);}
[ "public", "DescribeCoipPoolsResult", "describeCoipPools", "(", "DescribeCoipPoolsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeCoipPools", "(", "request", ")", ";", "}" ]
public virtual DescribeCoipPoolsResponse DescribeCoipPools(DescribeCoipPoolsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCoipPoolsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCoipPoolsResponseUnmarshaller.Instance;return Invoke<DescribeCoipPoolsResponse>(request, options);}
train
false
1,271
public void removeRow(Row row) {HSSFRow hrow = (HSSFRow) row;if (row.getSheet() != this) {throw new IllegalArgumentException("Specified row does not belong to this sheet");}for (Cell cell : row) {HSSFCell xcell = (HSSFCell) cell;if (xcell.isPartOfArrayFormulaGroup()) {String msg = "Row[rownum=" + row.getRowNum() + "] contains cell(s) included in a multi-cell array formula. You cannot change part of an array.";xcell.tryToDeleteArrayFormula(msg);}}if (_rows.size() > 0) {Integer key = Integer.valueOf(row.getRowNum());HSSFRow removedRow = _rows.remove(key);if (removedRow != row) {throw new IllegalArgumentException("Specified row does not belong to this sheet");}if (hrow.getRowNum() == getLastRowNum()) {_lastrow = findLastRow(_lastrow);}if (hrow.getRowNum() == getFirstRowNum()) {_firstrow = findFirstRow(_firstrow);}_sheet.removeRow(hrow.getRowRecord());if(_rows.size() == 0) {_firstrow = -1;_lastrow = -1;}}}
[ "public", "void", "removeRow", "(", "Row", "row", ")", "{", "HSSFRow", "hrow", "=", "(", "HSSFRow", ")", "row", ";", "if", "(", "row", ".", "getSheet", "(", ")", "!=", "this", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Specified row does not belong to this sheet\"", ")", ";", "}", "for", "(", "Cell", "cell", ":", "row", ")", "{", "HSSFCell", "xcell", "=", "(", "HSSFCell", ")", "cell", ";", "if", "(", "xcell", ".", "isPartOfArrayFormulaGroup", "(", ")", ")", "{", "String", "msg", "=", "\"Row[rownum=\"", "+", "row", ".", "getRowNum", "(", ")", "+", "\"] contains cell(s) included in a multi-cell array formula. You cannot change part of an array.\"", ";", "xcell", ".", "tryToDeleteArrayFormula", "(", "msg", ")", ";", "}", "}", "if", "(", "_rows", ".", "size", "(", ")", ">", "0", ")", "{", "Integer", "key", "=", "Integer", ".", "valueOf", "(", "row", ".", "getRowNum", "(", ")", ")", ";", "HSSFRow", "removedRow", "=", "_rows", ".", "remove", "(", "key", ")", ";", "if", "(", "removedRow", "!=", "row", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Specified row does not belong to this sheet\"", ")", ";", "}", "if", "(", "hrow", ".", "getRowNum", "(", ")", "==", "getLastRowNum", "(", ")", ")", "{", "_lastrow", "=", "findLastRow", "(", "_lastrow", ")", ";", "}", "if", "(", "hrow", ".", "getRowNum", "(", ")", "==", "getFirstRowNum", "(", ")", ")", "{", "_firstrow", "=", "findFirstRow", "(", "_firstrow", ")", ";", "}", "_sheet", ".", "removeRow", "(", "hrow", ".", "getRowRecord", "(", ")", ")", ";", "if", "(", "_rows", ".", "size", "(", ")", "==", "0", ")", "{", "_firstrow", "=", "-", "1", ";", "_lastrow", "=", "-", "1", ";", "}", "}", "}" ]
public void RemoveRow(IRow row){if (row.Sheet != this){throw new ArgumentException("Specified row does not belong to this sheet");}foreach (ICell cell in row){HSSFCell xcell = (HSSFCell)cell;if (xcell.IsPartOfArrayFormulaGroup){String msg = "Row[rownum=" + row.RowNum + "] contains cell(s) included in a multi-cell array formula. You cannot change part of an array.";xcell.NotifyArrayFormulaChanging(msg);}}if (rows.Count > 0){int key = row.RowNum;HSSFRow removedRow = (HSSFRow)rows[key];rows.Remove(key);if (removedRow != row){if (removedRow != null){rows[key] = removedRow;}throw new InvalidOperationException("Specified row does not belong to this _sheet");}if (row.RowNum == LastRowNum){lastrow = FindLastRow(lastrow);}if (row.RowNum == FirstRowNum){firstrow = FindFirstRow(firstrow);}CellValueRecordInterface[] cellvaluerecods = _sheet.GetValueRecords();for (int i = 0; i < cellvaluerecods.Length; i++){if (cellvaluerecods[i].Row == key){_sheet.RemoveValueRecord(key, cellvaluerecods[i]);}}_sheet.RemoveRow(((HSSFRow)row).RowRecord);}}
train
false
1,273
public SpanOrTermsBuilder(Analyzer analyzer) {this.analyzer = analyzer;}
[ "public", "SpanOrTermsBuilder", "(", "Analyzer", "analyzer", ")", "{", "this", ".", "analyzer", "=", "analyzer", ";", "}" ]
public SpanOrTermsBuilder(Analyzer analyzer){this.analyzer = analyzer;}
train
false
1,274
public boolean isReadOnly() {return byteBuffer.isReadOnly();}
[ "public", "boolean", "isReadOnly", "(", ")", "{", "return", "byteBuffer", ".", "isReadOnly", "(", ")", ";", "}" ]
public override bool isReadOnly(){return byteBuffer.isReadOnly();}
train
false
1,275
public void setValuesCellRange(CellRangeAddressBase range) {Integer count = setVerticalCellRange(dataValues, range);if (count == null){return;}series.setNumValues((short)(int)count);}
[ "public", "void", "setValuesCellRange", "(", "CellRangeAddressBase", "range", ")", "{", "Integer", "count", "=", "setVerticalCellRange", "(", "dataValues", ",", "range", ")", ";", "if", "(", "count", "==", "null", ")", "{", "return", ";", "}", "series", ".", "setNumValues", "(", "(", "short", ")", "(", "int", ")", "count", ")", ";", "}" ]
public void SetValuesCellRange(CellRangeAddressBase range){int count = SetVerticalCellRange(dataValues, range);series.NumValues = (short)count;}
train
false
1,276
public GlobalReplicationGroup modifyGlobalReplicationGroup(ModifyGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeModifyGlobalReplicationGroup(request);}
[ "public", "GlobalReplicationGroup", "modifyGlobalReplicationGroup", "(", "ModifyGlobalReplicationGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyGlobalReplicationGroup", "(", "request", ")", ";", "}" ]
public virtual ModifyGlobalReplicationGroupResponse ModifyGlobalReplicationGroup(ModifyGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyGlobalReplicationGroupResponseUnmarshaller.Instance;return Invoke<ModifyGlobalReplicationGroupResponse>(request, options);}
train
false
1,277
public CreateTrialResult createTrial(CreateTrialRequest request) {request = beforeClientExecution(request);return executeCreateTrial(request);}
[ "public", "CreateTrialResult", "createTrial", "(", "CreateTrialRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateTrial", "(", "request", ")", ";", "}" ]
public virtual CreateTrialResponse CreateTrial(CreateTrialRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTrialRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTrialResponseUnmarshaller.Instance;return Invoke<CreateTrialResponse>(request, options);}
train
false
1,278
public void preWrite() {List<Property> pList = new ArrayList<>();int i=0;for (Property p : _properties) {if (p == null) continue;p.setIndex(i++);pList.add(p);}for (Property p : pList) p.preWrite();}
[ "public", "void", "preWrite", "(", ")", "{", "List", "<", "Property", ">", "pList", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "int", "i", "=", "0", ";", "for", "(", "Property", "p", ":", "_properties", ")", "{", "if", "(", "p", "==", "null", ")", "continue", ";", "p", ".", "setIndex", "(", "i", "++", ")", ";", "pList", ".", "add", "(", "p", ")", ";", "}", "for", "(", "Property", "p", ":", "pList", ")", "p", ".", "preWrite", "(", ")", ";", "}" ]
public void PreWrite(){List<Property> properties = new List<Property>(_properties.Count);for (int i = 0; i < _properties.Count; i++)properties.Add(_properties[i]);for (int k = 0; k < properties.Count; k++){properties[ k ].Index = k;}_blocks = PropertyBlock.CreatePropertyBlockArray(_bigBigBlockSize, properties);for (int k = 0; k < properties.Count; k++){properties[ k ].PreWrite();}}
train
false
1,279
public E first() {return backingMap.firstKey();}
[ "public", "E", "first", "(", ")", "{", "return", "backingMap", ".", "firstKey", "(", ")", ";", "}" ]
public virtual E first(){return backingMap.firstKey();}
train
false
1,280
public int available() {return data.length - ptr;}
[ "public", "int", "available", "(", ")", "{", "return", "data", ".", "length", "-", "ptr", ";", "}" ]
public override int Available(){return data.Length - ptr;}
train
false
1,281
public GetHostedZoneCountResult getHostedZoneCount(GetHostedZoneCountRequest request) {request = beforeClientExecution(request);return executeGetHostedZoneCount(request);}
[ "public", "GetHostedZoneCountResult", "getHostedZoneCount", "(", "GetHostedZoneCountRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetHostedZoneCount", "(", "request", ")", ";", "}" ]
public virtual GetHostedZoneCountResponse GetHostedZoneCount(GetHostedZoneCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHostedZoneCountRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHostedZoneCountResponseUnmarshaller.Instance;return Invoke<GetHostedZoneCountResponse>(request, options);}
train
true
1,282
public LookupResult[] getResults() {int size = size();LookupResult[] res = new LookupResult[size];for (int i = size - 1; i >= 0; i--) {res[i] = pop();}return res;}
[ "public", "LookupResult", "[", "]", "getResults", "(", ")", "{", "int", "size", "=", "size", "(", ")", ";", "LookupResult", "[", "]", "res", "=", "new", "LookupResult", "[", "size", "]", ";", "for", "(", "int", "i", "=", "size", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "res", "[", "i", "]", "=", "pop", "(", ")", ";", "}", "return", "res", ";", "}" ]
public LookupResult[] GetResults(){int size = Count;var res = new LookupResult[size];for (int i = size - 1; i >= 0; i--){res[i] = Pop();}return res;}
train
false
1,283
public void add(Transition t) {if (transitions.length < next+3) {transitions = ArrayUtil.grow(transitions, next+3);}transitions[next] = t.dest;transitions[next+1] = t.min;transitions[next+2] = t.max;next += 3;}
[ "public", "void", "add", "(", "Transition", "t", ")", "{", "if", "(", "transitions", ".", "length", "<", "next", "+", "3", ")", "{", "transitions", "=", "ArrayUtil", ".", "grow", "(", "transitions", ",", "next", "+", "3", ")", ";", "}", "transitions", "[", "next", "]", "=", "t", ".", "dest", ";", "transitions", "[", "next", "+", "1", "]", "=", "t", ".", "min", ";", "transitions", "[", "next", "+", "2", "]", "=", "t", ".", "max", ";", "next", "+=", "3", ";", "}" ]
public void Add(Transition t){if (transitions.Length == count){Transition[] newArray = new Transition[ArrayUtil.Oversize(1 + count, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];Array.Copy(transitions, 0, newArray, 0, count);transitions = newArray;}transitions[count++] = t;}
train
false
1,284
public String getFormatString(int formatIndex) {String format = null;if (formatIndex >= HSSFDataFormat.getNumberOfBuiltinBuiltinFormats()) {FormatRecord tfr = _customFormatRecords.get(Integer.valueOf(formatIndex));if (tfr == null) {logger.log( POILogger.ERROR, "Requested format at index " + formatIndex+ ", but it wasn't found");} else {format = tfr.getFormatString();}} else {format = HSSFDataFormat.getBuiltinFormat((short) formatIndex);}return format;}
[ "public", "String", "getFormatString", "(", "int", "formatIndex", ")", "{", "String", "format", "=", "null", ";", "if", "(", "formatIndex", ">=", "HSSFDataFormat", ".", "getNumberOfBuiltinBuiltinFormats", "(", ")", ")", "{", "FormatRecord", "tfr", "=", "_customFormatRecords", ".", "get", "(", "Integer", ".", "valueOf", "(", "formatIndex", ")", ")", ";", "if", "(", "tfr", "==", "null", ")", "{", "logger", ".", "log", "(", "POILogger", ".", "ERROR", ",", "\"Requested format at index \"", "+", "formatIndex", "+", "\", but it wasn't found\"", ")", ";", "}", "else", "{", "format", "=", "tfr", ".", "getFormatString", "(", ")", ";", "}", "}", "else", "{", "format", "=", "HSSFDataFormat", ".", "getBuiltinFormat", "(", "(", "short", ")", "formatIndex", ")", ";", "}", "return", "format", ";", "}" ]
public String GetFormatString(int formatIndex){String format = null;if (formatIndex >= HSSFDataFormat.NumberOfBuiltinBuiltinFormats){FormatRecord tfr = (FormatRecord)customFormatRecords[formatIndex];if (tfr == null){logger.Log(POILogger.ERROR, "Requested format at index " + formatIndex + ", but it wasn't found");}else{format = tfr.FormatString;}}else{format = HSSFDataFormat.GetBuiltinFormat((short)formatIndex);}return format;}
train
true
1,285
public DisassociateDelegateFromResourceResult disassociateDelegateFromResource(DisassociateDelegateFromResourceRequest request) {request = beforeClientExecution(request);return executeDisassociateDelegateFromResource(request);}
[ "public", "DisassociateDelegateFromResourceResult", "disassociateDelegateFromResource", "(", "DisassociateDelegateFromResourceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDisassociateDelegateFromResource", "(", "request", ")", ";", "}" ]
public virtual DisassociateDelegateFromResourceResponse DisassociateDelegateFromResource(DisassociateDelegateFromResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateDelegateFromResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateDelegateFromResourceResponseUnmarshaller.Instance;return Invoke<DisassociateDelegateFromResourceResponse>(request, options);}
train
true