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 |
|---|---|---|---|---|---|
8,175
|
public UnlinkDeveloperIdentityResult unlinkDeveloperIdentity(UnlinkDeveloperIdentityRequest request) {request = beforeClientExecution(request);return executeUnlinkDeveloperIdentity(request);}
|
[
"public",
"UnlinkDeveloperIdentityResult",
"unlinkDeveloperIdentity",
"(",
"UnlinkDeveloperIdentityRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUnlinkDeveloperIdentity",
"(",
"request",
")",
";",
"}"
] |
public virtual UnlinkDeveloperIdentityResponse UnlinkDeveloperIdentity(UnlinkDeveloperIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnlinkDeveloperIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = UnlinkDeveloperIdentityResponseUnmarshaller.Instance;return Invoke<UnlinkDeveloperIdentityResponse>(request, options);}
|
train
| true
|
8,176
|
public SimpleBoundaryScanner( int maxScan, Character[] boundaryChars ){this.maxScan = maxScan;this.boundaryChars = new HashSet<>();this.boundaryChars.addAll(Arrays.asList(boundaryChars));}
|
[
"public",
"SimpleBoundaryScanner",
"(",
"int",
"maxScan",
",",
"Character",
"[",
"]",
"boundaryChars",
")",
"{",
"this",
".",
"maxScan",
"=",
"maxScan",
";",
"this",
".",
"boundaryChars",
"=",
"new",
"HashSet",
"<",
">",
"(",
")",
";",
"this",
".",
"boundaryChars",
".",
"addAll",
"(",
"Arrays",
".",
"asList",
"(",
"boundaryChars",
")",
")",
";",
"}"
] |
public SimpleBoundaryScanner(int maxScan, char[] boundaryChars){this.m_maxScan = maxScan;this.m_boundaryChars = new JCG.HashSet<char>();this.m_boundaryChars.UnionWith(boundaryChars);}
|
train
| false
|
8,177
|
public CreateLogGroupRequest(String logGroupName) {setLogGroupName(logGroupName);}
|
[
"public",
"CreateLogGroupRequest",
"(",
"String",
"logGroupName",
")",
"{",
"setLogGroupName",
"(",
"logGroupName",
")",
";",
"}"
] |
public CreateLogGroupRequest(string logGroupName){_logGroupName = logGroupName;}
|
train
| false
|
8,178
|
public static Set<String> getDefaultStopTags(){return DefaultSetHolder.DEFAULT_STOP_TAGS;}
|
[
"public",
"static",
"Set",
"<",
"String",
">",
"getDefaultStopTags",
"(",
")",
"{",
"return",
"DefaultSetHolder",
".",
"DEFAULT_STOP_TAGS",
";",
"}"
] |
public static ISet<string> GetDefaultStopTags(){return DefaultSetHolder.DEFAULT_STOP_TAGS;}
|
train
| false
|
8,179
|
public ModifyInstanceFleetResult modifyInstanceFleet(ModifyInstanceFleetRequest request) {request = beforeClientExecution(request);return executeModifyInstanceFleet(request);}
|
[
"public",
"ModifyInstanceFleetResult",
"modifyInstanceFleet",
"(",
"ModifyInstanceFleetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyInstanceFleet",
"(",
"request",
")",
";",
"}"
] |
public virtual ModifyInstanceFleetResponse ModifyInstanceFleet(ModifyInstanceFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstanceFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstanceFleetResponseUnmarshaller.Instance;return Invoke<ModifyInstanceFleetResponse>(request, options);}
|
train
| true
|
8,180
|
public void addRule(ConditionalFormattingRule cfRule){addRule((HSSFConditionalFormattingRule)cfRule);}
|
[
"public",
"void",
"addRule",
"(",
"ConditionalFormattingRule",
"cfRule",
")",
"{",
"addRule",
"(",
"(",
"HSSFConditionalFormattingRule",
")",
"cfRule",
")",
";",
"}"
] |
public void AddRule(IConditionalFormattingRule cfRule){AddRule((HSSFConditionalFormattingRule)cfRule);}
|
train
| false
|
8,182
|
public void removeCharCount() {remove1stProperty(PropertyIDMap.PID_CHARCOUNT);}
|
[
"public",
"void",
"removeCharCount",
"(",
")",
"{",
"remove1stProperty",
"(",
"PropertyIDMap",
".",
"PID_CHARCOUNT",
")",
";",
"}"
] |
public void RemoveCharCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_CHARCOUNT);}
|
train
| false
|
8,183
|
public CreateCapacityReservationResult createCapacityReservation(CreateCapacityReservationRequest request) {request = beforeClientExecution(request);return executeCreateCapacityReservation(request);}
|
[
"public",
"CreateCapacityReservationResult",
"createCapacityReservation",
"(",
"CreateCapacityReservationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateCapacityReservation",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateCapacityReservationResponse CreateCapacityReservation(CreateCapacityReservationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCapacityReservationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCapacityReservationResponseUnmarshaller.Instance;return Invoke<CreateCapacityReservationResponse>(request, options);}
|
train
| true
|
8,185
|
public void sync(Parser recognizer) throws RecognitionException {ATNState s = recognizer.getInterpreter().atn.states.get(recognizer.getState());if (inErrorRecoveryMode(recognizer)) {return;}TokenStream tokens = recognizer.getInputStream();int la = tokens.LA(1);IntervalSet nextTokens = recognizer.getATN().nextTokens(s);if (nextTokens.contains(la)) {nextTokensContext = null;nextTokensState = ATNState.INVALID_STATE_NUMBER;return;}if (nextTokens.contains(Token.EPSILON)) {if (nextTokensContext == null) {nextTokensContext = recognizer.getContext();nextTokensState = recognizer.getState();}return;}switch (s.getStateType()) {case ATNState.BLOCK_START:case ATNState.STAR_BLOCK_START:case ATNState.PLUS_BLOCK_START:case ATNState.STAR_LOOP_ENTRY:if ( singleTokenDeletion(recognizer)!=null ) {return;}throw new InputMismatchException(recognizer);case ATNState.PLUS_LOOP_BACK:case ATNState.STAR_LOOP_BACK:reportUnwantedToken(recognizer);IntervalSet expecting = recognizer.getExpectedTokens();IntervalSet whatFollowsLoopIterationOrRule =expecting.or(getErrorRecoverySet(recognizer));consumeUntil(recognizer, whatFollowsLoopIterationOrRule);break;default:break;}}
|
[
"public",
"void",
"sync",
"(",
"Parser",
"recognizer",
")",
"throws",
"RecognitionException",
"{",
"ATNState",
"s",
"=",
"recognizer",
".",
"getInterpreter",
"(",
")",
".",
"atn",
".",
"states",
".",
"get",
"(",
"recognizer",
".",
"getState",
"(",
")",
")",
";",
"if",
"(",
"inErrorRecoveryMode",
"(",
"recognizer",
")",
")",
"{",
"return",
";",
"}",
"TokenStream",
"tokens",
"=",
"recognizer",
".",
"getInputStream",
"(",
")",
";",
"int",
"la",
"=",
"tokens",
".",
"LA",
"(",
"1",
")",
";",
"IntervalSet",
"nextTokens",
"=",
"recognizer",
".",
"getATN",
"(",
")",
".",
"nextTokens",
"(",
"s",
")",
";",
"if",
"(",
"nextTokens",
".",
"contains",
"(",
"la",
")",
")",
"{",
"nextTokensContext",
"=",
"null",
";",
"nextTokensState",
"=",
"ATNState",
".",
"INVALID_STATE_NUMBER",
";",
"return",
";",
"}",
"if",
"(",
"nextTokens",
".",
"contains",
"(",
"Token",
".",
"EPSILON",
")",
")",
"{",
"if",
"(",
"nextTokensContext",
"==",
"null",
")",
"{",
"nextTokensContext",
"=",
"recognizer",
".",
"getContext",
"(",
")",
";",
"nextTokensState",
"=",
"recognizer",
".",
"getState",
"(",
")",
";",
"}",
"return",
";",
"}",
"switch",
"(",
"s",
".",
"getStateType",
"(",
")",
")",
"{",
"case",
"ATNState",
".",
"BLOCK_START",
":",
"case",
"ATNState",
".",
"STAR_BLOCK_START",
":",
"case",
"ATNState",
".",
"PLUS_BLOCK_START",
":",
"case",
"ATNState",
".",
"STAR_LOOP_ENTRY",
":",
"if",
"(",
"singleTokenDeletion",
"(",
"recognizer",
")",
"!=",
"null",
")",
"{",
"return",
";",
"}",
"throw",
"new",
"InputMismatchException",
"(",
"recognizer",
")",
";",
"case",
"ATNState",
".",
"PLUS_LOOP_BACK",
":",
"case",
"ATNState",
".",
"STAR_LOOP_BACK",
":",
"reportUnwantedToken",
"(",
"recognizer",
")",
";",
"IntervalSet",
"expecting",
"=",
"recognizer",
".",
"getExpectedTokens",
"(",
")",
";",
"IntervalSet",
"whatFollowsLoopIterationOrRule",
"=",
"expecting",
".",
"or",
"(",
"getErrorRecoverySet",
"(",
"recognizer",
")",
")",
";",
"consumeUntil",
"(",
"recognizer",
",",
"whatFollowsLoopIterationOrRule",
")",
";",
"break",
";",
"default",
":",
"break",
";",
"}",
"}"
] |
public virtual void Sync(Parser recognizer){ATNState s = recognizer.Interpreter.atn.states[recognizer.State];if (InErrorRecoveryMode(recognizer)){return;}ITokenStream tokens = ((ITokenStream)recognizer.InputStream);int la = tokens.LA(1);var nextTokens = recognizer.Atn.NextTokens(s);if (nextTokens.Contains(TokenConstants.EPSILON) || nextTokens.Contains(la)){return;}switch (s.StateType){case StateType.BlockStart:case StateType.StarBlockStart:case StateType.PlusBlockStart:case StateType.StarLoopEntry:{if (SingleTokenDeletion(recognizer) != null){return;}throw new InputMismatchException(recognizer);}case StateType.PlusLoopBack:case StateType.StarLoopBack:{ReportUnwantedToken(recognizer);IntervalSet expecting = recognizer.GetExpectedTokens();IntervalSet whatFollowsLoopIterationOrRule = expecting.Or(GetErrorRecoverySet(recognizer));ConsumeUntil(recognizer, whatFollowsLoopIterationOrRule);break;}default:{break;}}}
|
train
| false
|
8,186
|
public int nextDoc() {if (!didNext) {didNext = true;return (doc = 0);} else {return (doc = NO_MORE_DOCS);}}
|
[
"public",
"int",
"nextDoc",
"(",
")",
"{",
"if",
"(",
"!",
"didNext",
")",
"{",
"didNext",
"=",
"true",
";",
"return",
"(",
"doc",
"=",
"0",
")",
";",
"}",
"else",
"{",
"return",
"(",
"doc",
"=",
"NO_MORE_DOCS",
")",
";",
"}",
"}"
] |
public override int NextDoc(){if (_didNext || (_liveDocs != null && !_liveDocs.Get(0))) return (_doc = NO_MORE_DOCS);_didNext = true;return (_doc = 0);}
|
train
| false
|
8,187
|
public static Charset parseEncoding(byte[] b) {String enc = parseEncodingName(b);if (enc == null) {return UTF_8;}String name = enc.trim();try {return Charset.forName(name);} catch (IllegalCharsetNameException| UnsupportedCharsetException badName) {Charset aliased = charsetForAlias(name);if (aliased != null) {return aliased;}throw badName;}}
|
[
"public",
"static",
"Charset",
"parseEncoding",
"(",
"byte",
"[",
"]",
"b",
")",
"{",
"String",
"enc",
"=",
"parseEncodingName",
"(",
"b",
")",
";",
"if",
"(",
"enc",
"==",
"null",
")",
"{",
"return",
"UTF_8",
";",
"}",
"String",
"name",
"=",
"enc",
".",
"trim",
"(",
")",
";",
"try",
"{",
"return",
"Charset",
".",
"forName",
"(",
"name",
")",
";",
"}",
"catch",
"(",
"IllegalCharsetNameException",
"|",
"UnsupportedCharsetException",
"badName",
")",
"{",
"Charset",
"aliased",
"=",
"charsetForAlias",
"(",
"name",
")",
";",
"if",
"(",
"aliased",
"!=",
"null",
")",
"{",
"return",
"aliased",
";",
"}",
"throw",
"badName",
";",
"}",
"}"
] |
public static System.Text.Encoding ParseEncoding(byte[] b){int enc = Encoding(b, 0);if (enc < 0){return Constants.CHARSET;}int lf = NextLF(b, enc);string decoded = Decode(Constants.CHARSET, b, enc, lf - 1);try{return Sharpen.Extensions.GetEncoding(decoded);}catch (IllegalCharsetNameException badName){System.Text.Encoding aliased = CharsetForAlias(decoded);if (aliased != null){return aliased;}throw;}catch (UnsupportedCharsetException badName){System.Text.Encoding aliased = CharsetForAlias(decoded);if (aliased != null){return aliased;}throw;}}
|
train
| false
|
8,188
|
public FloatBuffer put(float[] src, int srcOffset, int floatCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, floatCount);if (floatCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + floatCount; ++i) {put(src[i]);}return this;}
|
[
"public",
"FloatBuffer",
"put",
"(",
"float",
"[",
"]",
"src",
",",
"int",
"srcOffset",
",",
"int",
"floatCount",
")",
"{",
"Arrays",
".",
"checkOffsetAndCount",
"(",
"src",
".",
"length",
",",
"srcOffset",
",",
"floatCount",
")",
";",
"if",
"(",
"floatCount",
">",
"remaining",
"(",
")",
")",
"{",
"throw",
"new",
"BufferOverflowException",
"(",
")",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"srcOffset",
";",
"i",
"<",
"srcOffset",
"+",
"floatCount",
";",
"++",
"i",
")",
"{",
"put",
"(",
"src",
"[",
"i",
"]",
")",
";",
"}",
"return",
"this",
";",
"}"
] |
public virtual java.nio.FloatBuffer put(float[] src, int srcOffset, int floatCount){java.util.Arrays.checkOffsetAndCount(src.Length, srcOffset, floatCount);if (floatCount > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = srcOffset; i < srcOffset + floatCount; ++i){put(src[i]);}}return this;}
|
train
| false
|
8,189
|
public BatchGetVariableResult batchGetVariable(BatchGetVariableRequest request) {request = beforeClientExecution(request);return executeBatchGetVariable(request);}
|
[
"public",
"BatchGetVariableResult",
"batchGetVariable",
"(",
"BatchGetVariableRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchGetVariable",
"(",
"request",
")",
";",
"}"
] |
public virtual BatchGetVariableResponse BatchGetVariable(BatchGetVariableRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetVariableRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetVariableResponseUnmarshaller.Instance;return Invoke<BatchGetVariableResponse>(request, options);}
|
train
| false
|
8,190
|
public void setRepetitions(int repetitions) throws Exception {fixedTime = false;this.repetitions = repetitions;if (repetitions==REPEAT_EXHAUST) {if (isParallel()) {throw new Exception("REPEAT_EXHAUST is not allowed for parallel tasks");}}setSequenceName();}
|
[
"public",
"void",
"setRepetitions",
"(",
"int",
"repetitions",
")",
"throws",
"Exception",
"{",
"fixedTime",
"=",
"false",
";",
"this",
".",
"repetitions",
"=",
"repetitions",
";",
"if",
"(",
"repetitions",
"==",
"REPEAT_EXHAUST",
")",
"{",
"if",
"(",
"isParallel",
"(",
")",
")",
"{",
"throw",
"new",
"Exception",
"(",
"\"REPEAT_EXHAUST is not allowed for parallel tasks\"",
")",
";",
"}",
"}",
"setSequenceName",
"(",
")",
";",
"}"
] |
public virtual void SetRepetitions(int repetitions){fixedTime = false;this.repetitions = repetitions;if (repetitions == REPEAT_EXHAUST){if (IsParallel){throw new Exception("REPEAT_EXHAUST is not allowed for parallel tasks");}}SetSequenceName();}
|
train
| false
|
8,191
|
public synchronized static DefaultProfile getProfile() {if (null == profile) {profile = new DefaultProfile();}return profile;}
|
[
"public",
"synchronized",
"static",
"DefaultProfile",
"getProfile",
"(",
")",
"{",
"if",
"(",
"null",
"==",
"profile",
")",
"{",
"profile",
"=",
"new",
"DefaultProfile",
"(",
")",
";",
"}",
"return",
"profile",
";",
"}"
] |
public static DefaultProfile GetProfile(){if (null == _profile){_profile = new DefaultProfile();}return _profile;}
|
train
| false
|
8,192
|
public String dequote(byte[] in, int inPtr, int inEnd) {if (2 <= inEnd - inPtr && in[inPtr] == '"' && in[inEnd - 1] == '"')return dq(in, inPtr + 1, inEnd - 1);return RawParseUtils.decode(UTF_8, in, inPtr, inEnd);}
|
[
"public",
"String",
"dequote",
"(",
"byte",
"[",
"]",
"in",
",",
"int",
"inPtr",
",",
"int",
"inEnd",
")",
"{",
"if",
"(",
"2",
"<=",
"inEnd",
"-",
"inPtr",
"&&",
"in",
"[",
"inPtr",
"]",
"==",
"'\"'",
"&&",
"in",
"[",
"inEnd",
"-",
"1",
"]",
"==",
"'\"'",
")",
"return",
"dq",
"(",
"in",
",",
"inPtr",
"+",
"1",
",",
"inEnd",
"-",
"1",
")",
";",
"return",
"RawParseUtils",
".",
"decode",
"(",
"UTF_8",
",",
"in",
",",
"inPtr",
",",
"inEnd",
")",
";",
"}"
] |
public override string Dequote(byte[] @in, int inPtr, int inEnd){if (2 <= inEnd - inPtr && @in[inPtr] == '"' && @in[inEnd - 1] == '"'){return Dq(@in, inPtr + 1, inEnd - 1);}return RawParseUtils.Decode(Constants.CHARSET, @in, inPtr, inEnd);}
|
train
| false
|
8,193
|
public CacheCluster modifyCacheCluster(ModifyCacheClusterRequest request) {request = beforeClientExecution(request);return executeModifyCacheCluster(request);}
|
[
"public",
"CacheCluster",
"modifyCacheCluster",
"(",
"ModifyCacheClusterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyCacheCluster",
"(",
"request",
")",
";",
"}"
] |
public virtual ModifyCacheClusterResponse ModifyCacheCluster(ModifyCacheClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyCacheClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyCacheClusterResponseUnmarshaller.Instance;return Invoke<ModifyCacheClusterResponse>(request, options);}
|
train
| true
|
8,194
|
public TreeFormatter(int size) {buf = new byte[size];}
|
[
"public",
"TreeFormatter",
"(",
"int",
"size",
")",
"{",
"buf",
"=",
"new",
"byte",
"[",
"size",
"]",
";",
"}"
] |
public TreeFormatter(int size){buf = new byte[size];}
|
train
| false
|
8,195
|
public void setMaxDeltaDepth(int maxDeltaDepth) {this.maxDeltaDepth = maxDeltaDepth;}
|
[
"public",
"void",
"setMaxDeltaDepth",
"(",
"int",
"maxDeltaDepth",
")",
"{",
"this",
".",
"maxDeltaDepth",
"=",
"maxDeltaDepth",
";",
"}"
] |
public virtual void SetMaxDeltaDepth(int maxDeltaDepth){this.maxDeltaDepth = maxDeltaDepth;}
|
train
| false
|
8,196
|
public int serialize(int offset, byte[] data, EscherSerializationListener listener) {listener.beforeRecordSerialize( offset, getRecordId(), this );int pos = offset;LittleEndian.putShort( data, pos, getOptions() ); pos += 2;LittleEndian.putShort( data, pos, getRecordId() ); pos += 2;int remainingBytes = getRecordSize() - 8;LittleEndian.putInt( data, pos, remainingBytes ); pos += 4;LittleEndian.putInt( data, pos, field_1_shapeIdMax ); pos += 4;LittleEndian.putInt( data, pos, getNumIdClusters() ); pos += 4;LittleEndian.putInt( data, pos, field_3_numShapesSaved ); pos += 4;LittleEndian.putInt( data, pos, field_4_drawingsSaved ); pos += 4;for (FileIdCluster fic : field_5_fileIdClusters) {LittleEndian.putInt( data, pos, fic.getDrawingGroupId() ); pos += 4;LittleEndian.putInt( data, pos, fic.getNumShapeIdsUsed() ); pos += 4;}listener.afterRecordSerialize( pos, getRecordId(), getRecordSize(), this );return getRecordSize();}
|
[
"public",
"int",
"serialize",
"(",
"int",
"offset",
",",
"byte",
"[",
"]",
"data",
",",
"EscherSerializationListener",
"listener",
")",
"{",
"listener",
".",
"beforeRecordSerialize",
"(",
"offset",
",",
"getRecordId",
"(",
")",
",",
"this",
")",
";",
"int",
"pos",
"=",
"offset",
";",
"LittleEndian",
".",
"putShort",
"(",
"data",
",",
"pos",
",",
"getOptions",
"(",
")",
")",
";",
"pos",
"+=",
"2",
";",
"LittleEndian",
".",
"putShort",
"(",
"data",
",",
"pos",
",",
"getRecordId",
"(",
")",
")",
";",
"pos",
"+=",
"2",
";",
"int",
"remainingBytes",
"=",
"getRecordSize",
"(",
")",
"-",
"8",
";",
"LittleEndian",
".",
"putInt",
"(",
"data",
",",
"pos",
",",
"remainingBytes",
")",
";",
"pos",
"+=",
"4",
";",
"LittleEndian",
".",
"putInt",
"(",
"data",
",",
"pos",
",",
"field_1_shapeIdMax",
")",
";",
"pos",
"+=",
"4",
";",
"LittleEndian",
".",
"putInt",
"(",
"data",
",",
"pos",
",",
"getNumIdClusters",
"(",
")",
")",
";",
"pos",
"+=",
"4",
";",
"LittleEndian",
".",
"putInt",
"(",
"data",
",",
"pos",
",",
"field_3_numShapesSaved",
")",
";",
"pos",
"+=",
"4",
";",
"LittleEndian",
".",
"putInt",
"(",
"data",
",",
"pos",
",",
"field_4_drawingsSaved",
")",
";",
"pos",
"+=",
"4",
";",
"for",
"(",
"FileIdCluster",
"fic",
":",
"field_5_fileIdClusters",
")",
"{",
"LittleEndian",
".",
"putInt",
"(",
"data",
",",
"pos",
",",
"fic",
".",
"getDrawingGroupId",
"(",
")",
")",
";",
"pos",
"+=",
"4",
";",
"LittleEndian",
".",
"putInt",
"(",
"data",
",",
"pos",
",",
"fic",
".",
"getNumShapeIdsUsed",
"(",
")",
")",
";",
"pos",
"+=",
"4",
";",
"}",
"listener",
".",
"afterRecordSerialize",
"(",
"pos",
",",
"getRecordId",
"(",
")",
",",
"getRecordSize",
"(",
")",
",",
"this",
")",
";",
"return",
"getRecordSize",
"(",
")",
";",
"}"
] |
public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);int pos = offset;LittleEndian.PutShort(data, pos, Options); pos += 2;LittleEndian.PutShort(data, pos, RecordId); pos += 2;int remainingBytes = RecordSize - 8;LittleEndian.PutInt(data, pos, remainingBytes); pos += 4;LittleEndian.PutInt(data, pos, field_1_shapeIdMax); pos += 4;LittleEndian.PutInt(data, pos, NumIdClusters); pos += 4;LittleEndian.PutInt(data, pos, field_3_numShapesSaved); pos += 4;LittleEndian.PutInt(data, pos, field_4_drawingsSaved); pos += 4;for (int i = 0; i < field_5_fileIdClusters.Length; i++){LittleEndian.PutInt(data, pos, field_5_fileIdClusters[i].DrawingGroupId); pos += 4;LittleEndian.PutInt(data, pos, field_5_fileIdClusters[i].NumShapeIdsUsed); pos += 4;}listener.AfterRecordSerialize(pos, RecordId, RecordSize, this);return RecordSize;}
|
train
| false
|
8,197
|
public LogDocMergePolicy() {minMergeSize = DEFAULT_MIN_MERGE_DOCS;maxMergeSize = Long.MAX_VALUE;maxMergeSizeForForcedMerge = Long.MAX_VALUE;}
|
[
"public",
"LogDocMergePolicy",
"(",
")",
"{",
"minMergeSize",
"=",
"DEFAULT_MIN_MERGE_DOCS",
";",
"maxMergeSize",
"=",
"Long",
".",
"MAX_VALUE",
";",
"maxMergeSizeForForcedMerge",
"=",
"Long",
".",
"MAX_VALUE",
";",
"}"
] |
public LogDocMergePolicy(){m_minMergeSize = DEFAULT_MIN_MERGE_DOCS;m_maxMergeSize = long.MaxValue;m_maxMergeSizeForForcedMerge = long.MaxValue;}
|
train
| false
|
8,198
|
public BM25Similarity() {this(1.2f, 0.75f);}
|
[
"public",
"BM25Similarity",
"(",
")",
"{",
"this",
"(",
"1.2f",
",",
"0.75f",
")",
";",
"}"
] |
public BM25Similarity(){this.k1 = 1.2f;this.b = 0.75f;}
|
train
| false
|
8,199
|
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(getExternSheetIndex());writeCoordinates(out);}
|
[
"public",
"void",
"write",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeByte",
"(",
"sid",
"+",
"getPtgClass",
"(",
")",
")",
";",
"out",
".",
"writeShort",
"(",
"getExternSheetIndex",
"(",
")",
")",
";",
"writeCoordinates",
"(",
"out",
")",
";",
"}"
] |
public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(ExternSheetIndex);WriteCoordinates(out1);}
|
train
| false
|
8,200
|
public String getAccessKeyId() {return accessKeyId;}
|
[
"public",
"String",
"getAccessKeyId",
"(",
")",
"{",
"return",
"accessKeyId",
";",
"}"
] |
public string GetAccessKeyId(){return AccessKeyId;}
|
train
| false
|
8,201
|
public PutLifecycleHookResult putLifecycleHook(PutLifecycleHookRequest request) {request = beforeClientExecution(request);return executePutLifecycleHook(request);}
|
[
"public",
"PutLifecycleHookResult",
"putLifecycleHook",
"(",
"PutLifecycleHookRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutLifecycleHook",
"(",
"request",
")",
";",
"}"
] |
public virtual PutLifecycleHookResponse PutLifecycleHook(PutLifecycleHookRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutLifecycleHookRequestMarshaller.Instance;options.ResponseUnmarshaller = PutLifecycleHookResponseUnmarshaller.Instance;return Invoke<PutLifecycleHookResponse>(request, options);}
|
train
| true
|
8,202
|
public String toString() {return "[GRIDSET]\n" +" .gridset = " + getGridset() +"\n" +"[/GRIDSET]\n";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"[GRIDSET]\\n\"",
"+",
"\" .gridset = \"",
"+",
"getGridset",
"(",
")",
"+",
"\"\\n\"",
"+",
"\"[/GRIDSET]\\n\"",
";",
"}"
] |
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[GRIDSET]\n");buffer.Append(" .gridset = ").Append(Gridset).Append("\n");buffer.Append("[/GRIDSET]\n");return buffer.ToString();}
|
train
| false
|
8,203
|
public static int idealLongArraySize(int need) {return idealByteArraySize(need * 8) / 8;}
|
[
"public",
"static",
"int",
"idealLongArraySize",
"(",
"int",
"need",
")",
"{",
"return",
"idealByteArraySize",
"(",
"need",
"*",
"8",
")",
"/",
"8",
";",
"}"
] |
public static int idealLongArraySize(int need){return idealByteArraySize(need * 8) / 8;}
|
train
| false
|
8,204
|
public int size() {return mSize;}
|
[
"public",
"int",
"size",
"(",
")",
"{",
"return",
"mSize",
";",
"}"
] |
public virtual int size(){return mSize;}
|
train
| false
|
8,205
|
public String toString() {String biffName = getBiffName(_sid);if (biffName == null) {biffName = "UNKNOWNRECORD";}StringBuilder sb = new StringBuilder();sb.append('[').append(biffName).append("] (0x");sb.append(Integer.toHexString(_sid).toUpperCase(Locale.ROOT)).append(")\n");if (_rawData.length > 0) {sb.append(" rawData=").append(HexDump.toHex(_rawData)).append("\n");}sb.append("[/").append(biffName).append("]\n");return sb.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"String",
"biffName",
"=",
"getBiffName",
"(",
"_sid",
")",
";",
"if",
"(",
"biffName",
"==",
"null",
")",
"{",
"biffName",
"=",
"\"UNKNOWNRECORD\"",
";",
"}",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"'['",
")",
".",
"append",
"(",
"biffName",
")",
".",
"append",
"(",
"\"] (0x\"",
")",
";",
"sb",
".",
"append",
"(",
"Integer",
".",
"toHexString",
"(",
"_sid",
")",
".",
"toUpperCase",
"(",
"Locale",
".",
"ROOT",
")",
")",
".",
"append",
"(",
"\")\\n\"",
")",
";",
"if",
"(",
"_rawData",
".",
"length",
">",
"0",
")",
"{",
"sb",
".",
"append",
"(",
"\" rawData=\"",
")",
".",
"append",
"(",
"HexDump",
".",
"toHex",
"(",
"_rawData",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"}",
"sb",
".",
"append",
"(",
"\"[/\"",
")",
".",
"append",
"(",
"biffName",
")",
".",
"append",
"(",
"\"]\\n\"",
")",
";",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){String biffName = GetBiffName(_sid);if (biffName == null){biffName = "UNKNOWNRECORD";}StringBuilder sb = new StringBuilder();sb.Append("[").Append(biffName).Append("] (0x");sb.Append(StringUtil.ToHexString(_sid).ToUpper() + ")\n");if (_rawData.Length > 0){sb.Append(" rawData=").Append(HexDump.ToHex(_rawData)).Append("\n");}sb.Append("[/").Append(biffName).Append("]\n");return sb.ToString();}
|
train
| false
|
8,206
|
public int nextPosition() throws IOException {if (doc != 0) {throw new IllegalStateException();} else if (i >= termFreq - 1) {throw new IllegalStateException("Read past last position");}++i;if (payloadIndex != null) {payload.offset = basePayloadOffset + payloadIndex[positionIndex + i];payload.length = payloadIndex[positionIndex + i + 1] - payloadIndex[positionIndex + i];}if (positions == null) {return -1;} else {return positions[positionIndex + i];}}
|
[
"public",
"int",
"nextPosition",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"doc",
"!=",
"0",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
")",
";",
"}",
"else",
"if",
"(",
"i",
">=",
"termFreq",
"-",
"1",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"\"Read past last position\"",
")",
";",
"}",
"++",
"i",
";",
"if",
"(",
"payloadIndex",
"!=",
"null",
")",
"{",
"payload",
".",
"offset",
"=",
"basePayloadOffset",
"+",
"payloadIndex",
"[",
"positionIndex",
"+",
"i",
"]",
";",
"payload",
".",
"length",
"=",
"payloadIndex",
"[",
"positionIndex",
"+",
"i",
"+",
"1",
"]",
"-",
"payloadIndex",
"[",
"positionIndex",
"+",
"i",
"]",
";",
"}",
"if",
"(",
"positions",
"==",
"null",
")",
"{",
"return",
"-",
"1",
";",
"}",
"else",
"{",
"return",
"positions",
"[",
"positionIndex",
"+",
"i",
"]",
";",
"}",
"}"
] |
public override int NextPosition(){if (doc != 0){throw new Exception();}else if (i >= termFreq - 1){throw new Exception("Read past last position");}++i;if (payloadIndex != null){payload.Offset = basePayloadOffset + payloadIndex[positionIndex + i];payload.Length = payloadIndex[positionIndex + i + 1] - payloadIndex[positionIndex + i];}if (positions == null){return -1;}else{return positions[positionIndex + i];}}
|
train
| false
|
8,207
|
public MergeDeveloperIdentitiesResult mergeDeveloperIdentities(MergeDeveloperIdentitiesRequest request) {request = beforeClientExecution(request);return executeMergeDeveloperIdentities(request);}
|
[
"public",
"MergeDeveloperIdentitiesResult",
"mergeDeveloperIdentities",
"(",
"MergeDeveloperIdentitiesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeMergeDeveloperIdentities",
"(",
"request",
")",
";",
"}"
] |
public virtual MergeDeveloperIdentitiesResponse MergeDeveloperIdentities(MergeDeveloperIdentitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = MergeDeveloperIdentitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = MergeDeveloperIdentitiesResponseUnmarshaller.Instance;return Invoke<MergeDeveloperIdentitiesResponse>(request, options);}
|
train
| true
|
8,208
|
public CreateUserRequest(String userName) {setUserName(userName);}
|
[
"public",
"CreateUserRequest",
"(",
"String",
"userName",
")",
"{",
"setUserName",
"(",
"userName",
")",
";",
"}"
] |
public CreateUserRequest(string userName){_userName = userName;}
|
train
| false
|
8,209
|
public ReplaceNetworkAclEntryResult replaceNetworkAclEntry(ReplaceNetworkAclEntryRequest request) {request = beforeClientExecution(request);return executeReplaceNetworkAclEntry(request);}
|
[
"public",
"ReplaceNetworkAclEntryResult",
"replaceNetworkAclEntry",
"(",
"ReplaceNetworkAclEntryRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeReplaceNetworkAclEntry",
"(",
"request",
")",
";",
"}"
] |
public virtual ReplaceNetworkAclEntryResponse ReplaceNetworkAclEntry(ReplaceNetworkAclEntryRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReplaceNetworkAclEntryRequestMarshaller.Instance;options.ResponseUnmarshaller = ReplaceNetworkAclEntryResponseUnmarshaller.Instance;return Invoke<ReplaceNetworkAclEntryResponse>(request, options);}
|
train
| true
|
8,210
|
public boolean isFastForward() {return fastForward;}
|
[
"public",
"boolean",
"isFastForward",
"(",
")",
"{",
"return",
"fastForward",
";",
"}"
] |
public virtual bool IsFastForward(){return fastForward;}
|
train
| false
|
8,211
|
public List<Integer> getLLDecisions() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();List<Integer> LL = new ArrayList<Integer>();for (int i=0; i<decisions.length; i++) {long fallBack = decisions[i].LL_Fallback;if ( fallBack>0 ) LL.add(i);}return LL;}
|
[
"public",
"List",
"<",
"Integer",
">",
"getLLDecisions",
"(",
")",
"{",
"DecisionInfo",
"[",
"]",
"decisions",
"=",
"atnSimulator",
".",
"getDecisionInfo",
"(",
")",
";",
"List",
"<",
"Integer",
">",
"LL",
"=",
"new",
"ArrayList",
"<",
"Integer",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"decisions",
".",
"length",
";",
"i",
"++",
")",
"{",
"long",
"fallBack",
"=",
"decisions",
"[",
"i",
"]",
".",
"LL_Fallback",
";",
"if",
"(",
"fallBack",
">",
"0",
")",
"LL",
".",
"add",
"(",
"i",
")",
";",
"}",
"return",
"LL",
";",
"}"
] |
public List<int> getLLDecisions(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();List<int> LL = new List<int>();for (int i = 0; i < decisions.Length; i++){long fallBack = decisions[i].LL_Fallback;if (fallBack > 0) LL.Add(i);}return LL;}
|
train
| false
|
8,212
|
public UpdateModelResult updateModel(UpdateModelRequest request) {request = beforeClientExecution(request);return executeUpdateModel(request);}
|
[
"public",
"UpdateModelResult",
"updateModel",
"(",
"UpdateModelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateModel",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateModelResponse UpdateModel(UpdateModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateModelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateModelResponseUnmarshaller.Instance;return Invoke<UpdateModelResponse>(request, options);}
|
train
| true
|
8,213
|
public int getEndIndex() {return end;}
|
[
"public",
"int",
"getEndIndex",
"(",
")",
"{",
"return",
"end",
";",
"}"
] |
public int getEndIndex(){return end;}
|
train
| false
|
8,214
|
public DeleteVPCAssociationAuthorizationResult deleteVPCAssociationAuthorization(DeleteVPCAssociationAuthorizationRequest request) {request = beforeClientExecution(request);return executeDeleteVPCAssociationAuthorization(request);}
|
[
"public",
"DeleteVPCAssociationAuthorizationResult",
"deleteVPCAssociationAuthorization",
"(",
"DeleteVPCAssociationAuthorizationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteVPCAssociationAuthorization",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteVPCAssociationAuthorizationResponse DeleteVPCAssociationAuthorization(DeleteVPCAssociationAuthorizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVPCAssociationAuthorizationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVPCAssociationAuthorizationResponseUnmarshaller.Instance;return Invoke<DeleteVPCAssociationAuthorizationResponse>(request, options);}
|
train
| true
|
8,215
|
public GetMediaResult getMedia(GetMediaRequest request) {request = beforeClientExecution(request);return executeGetMedia(request);}
|
[
"public",
"GetMediaResult",
"getMedia",
"(",
"GetMediaRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetMedia",
"(",
"request",
")",
";",
"}"
] |
public virtual GetMediaResponse GetMedia(GetMediaRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMediaRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMediaResponseUnmarshaller.Instance;return Invoke<GetMediaResponse>(request, options);}
|
train
| true
|
8,216
|
public DeltaRecord clone() {return copy();}
|
[
"public",
"DeltaRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] |
public override Object Clone(){return this;}
|
train
| false
|
8,217
|
public TableRestoreStatus restoreTableFromClusterSnapshot(RestoreTableFromClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeRestoreTableFromClusterSnapshot(request);}
|
[
"public",
"TableRestoreStatus",
"restoreTableFromClusterSnapshot",
"(",
"RestoreTableFromClusterSnapshotRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRestoreTableFromClusterSnapshot",
"(",
"request",
")",
";",
"}"
] |
public virtual RestoreTableFromClusterSnapshotResponse RestoreTableFromClusterSnapshot(RestoreTableFromClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = RestoreTableFromClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreTableFromClusterSnapshotResponseUnmarshaller.Instance;return Invoke<RestoreTableFromClusterSnapshotResponse>(request, options);}
|
train
| true
|
8,218
|
public void writeInt(int v) {int b3 = (v >>> 24) & 0xFF;int b2 = (v >>> 16) & 0xFF;int b1 = (v >>> 8) & 0xFF;int b0 = (v) & 0xFF;try {out.write(b0);out.write(b1);out.write(b2);out.write(b3);} catch (IOException e) {throw new RuntimeException(e);}}
|
[
"public",
"void",
"writeInt",
"(",
"int",
"v",
")",
"{",
"int",
"b3",
"=",
"(",
"v",
">",
">",
">",
"24",
")",
"&",
"0xFF",
";",
"int",
"b2",
"=",
"(",
"v",
">",
">",
">",
"16",
")",
"&",
"0xFF",
";",
"int",
"b1",
"=",
"(",
"v",
">",
">",
">",
"8",
")",
"&",
"0xFF",
";",
"int",
"b0",
"=",
"(",
"v",
")",
"&",
"0xFF",
";",
"try",
"{",
"out",
".",
"write",
"(",
"b0",
")",
";",
"out",
".",
"write",
"(",
"b1",
")",
";",
"out",
".",
"write",
"(",
"b2",
")",
";",
"out",
".",
"write",
"(",
"b3",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"e",
")",
";",
"}",
"}"
] |
public void WriteInt(int v){int b3 = (v >> 24) & 0xFF;int b2 = (v >> 16) & 0xFF;int b1 = (v >> 8) & 0xFF;int b0 = (v >> 0) & 0xFF;try{out1.WriteByte((byte)b0);out1.WriteByte((byte)b1);out1.WriteByte((byte)b2);out1.WriteByte((byte)b3);}catch (IOException e){throw new RuntimeException(e);}}
|
train
| false
|
8,219
|
public static Query parse(String[] queries, String[] fields, Analyzer analyzer)throws QueryNodeException {if (queries.length != fields.length)throw new IllegalArgumentException("queries.length != fields.length");BooleanQuery.Builder bQuery = new BooleanQuery.Builder();StandardQueryParser qp = new StandardQueryParser();qp.setAnalyzer(analyzer);for (int i = 0; i < fields.length; i++) {Query q = qp.parse(queries[i], fields[i]);if (q != null) { bQuery.add(q, BooleanClause.Occur.SHOULD);}}return bQuery.build();}
|
[
"public",
"static",
"Query",
"parse",
"(",
"String",
"[",
"]",
"queries",
",",
"String",
"[",
"]",
"fields",
",",
"Analyzer",
"analyzer",
")",
"throws",
"QueryNodeException",
"{",
"if",
"(",
"queries",
".",
"length",
"!=",
"fields",
".",
"length",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"queries.length != fields.length\"",
")",
";",
"BooleanQuery",
".",
"Builder",
"bQuery",
"=",
"new",
"BooleanQuery",
".",
"Builder",
"(",
")",
";",
"StandardQueryParser",
"qp",
"=",
"new",
"StandardQueryParser",
"(",
")",
";",
"qp",
".",
"setAnalyzer",
"(",
"analyzer",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"fields",
".",
"length",
";",
"i",
"++",
")",
"{",
"Query",
"q",
"=",
"qp",
".",
"parse",
"(",
"queries",
"[",
"i",
"]",
",",
"fields",
"[",
"i",
"]",
")",
";",
"if",
"(",
"q",
"!=",
"null",
")",
"{",
"bQuery",
".",
"add",
"(",
"q",
",",
"BooleanClause",
".",
"Occur",
".",
"SHOULD",
")",
";",
"}",
"}",
"return",
"bQuery",
".",
"build",
"(",
")",
";",
"}"
] |
public static Query Parse(string[] queries, string[] fields, Analyzer analyzer){if (queries.Length != fields.Length)throw new ArgumentException("queries.length != fields.length");BooleanQuery bQuery = new BooleanQuery();StandardQueryParser qp = new StandardQueryParser();qp.Analyzer = analyzer;for (int i = 0; i < fields.Length; i++){Query q = qp.Parse(queries[i], fields[i]);if (q != null && (!(q is BooleanQuery) || ((BooleanQuery)q).Clauses.Count > 0)){bQuery.Add(q, Occur.SHOULD);}}return bQuery;}
|
train
| false
|
8,220
|
public UpdateQualificationTypeResult updateQualificationType(UpdateQualificationTypeRequest request) {request = beforeClientExecution(request);return executeUpdateQualificationType(request);}
|
[
"public",
"UpdateQualificationTypeResult",
"updateQualificationType",
"(",
"UpdateQualificationTypeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateQualificationType",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateQualificationTypeResponse UpdateQualificationType(UpdateQualificationTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateQualificationTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateQualificationTypeResponseUnmarshaller.Instance;return Invoke<UpdateQualificationTypeResponse>(request, options);}
|
train
| true
|
8,221
|
public void removeTemplate() {remove1stProperty(PropertyIDMap.PID_TEMPLATE);}
|
[
"public",
"void",
"removeTemplate",
"(",
")",
"{",
"remove1stProperty",
"(",
"PropertyIDMap",
".",
"PID_TEMPLATE",
")",
";",
"}"
] |
public void RemoveTemplate(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_TEMPLATE);}
|
train
| false
|
8,222
|
public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {int nInnerArgs = args.length-1; if (nInnerArgs < 1) {return ErrorEval.VALUE_INVALID;}final Function innerFunc;int functionCode = 0;try {ValueEval ve = OperandResolver.getSingleValue(args[0], srcRowIndex, srcColumnIndex);functionCode = OperandResolver.coerceValueToInt(ve);innerFunc = findFunction(functionCode);} catch (EvaluationException e) {return e.getErrorEval();}final List<ValueEval> list = new ArrayList<>(Arrays.asList(args).subList(1, args.length));Iterator<ValueEval> it = list.iterator();while(it.hasNext()) {ValueEval eval = it.next();if(eval instanceof LazyRefEval) {LazyRefEval lazyRefEval = (LazyRefEval) eval;if(lazyRefEval.isSubTotal()) {it.remove();}if (functionCode > 100 && lazyRefEval.isRowHidden()) {it.remove();}}}return innerFunc.evaluate(list.toArray(new ValueEval[0]), srcRowIndex, srcColumnIndex);}
|
[
"public",
"ValueEval",
"evaluate",
"(",
"ValueEval",
"[",
"]",
"args",
",",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
")",
"{",
"int",
"nInnerArgs",
"=",
"args",
".",
"length",
"-",
"1",
";",
"if",
"(",
"nInnerArgs",
"<",
"1",
")",
"{",
"return",
"ErrorEval",
".",
"VALUE_INVALID",
";",
"}",
"final",
"Function",
"innerFunc",
";",
"int",
"functionCode",
"=",
"0",
";",
"try",
"{",
"ValueEval",
"ve",
"=",
"OperandResolver",
".",
"getSingleValue",
"(",
"args",
"[",
"0",
"]",
",",
"srcRowIndex",
",",
"srcColumnIndex",
")",
";",
"functionCode",
"=",
"OperandResolver",
".",
"coerceValueToInt",
"(",
"ve",
")",
";",
"innerFunc",
"=",
"findFunction",
"(",
"functionCode",
")",
";",
"}",
"catch",
"(",
"EvaluationException",
"e",
")",
"{",
"return",
"e",
".",
"getErrorEval",
"(",
")",
";",
"}",
"final",
"List",
"<",
"ValueEval",
">",
"list",
"=",
"new",
"ArrayList",
"<",
">",
"(",
"Arrays",
".",
"asList",
"(",
"args",
")",
".",
"subList",
"(",
"1",
",",
"args",
".",
"length",
")",
")",
";",
"Iterator",
"<",
"ValueEval",
">",
"it",
"=",
"list",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"it",
".",
"hasNext",
"(",
")",
")",
"{",
"ValueEval",
"eval",
"=",
"it",
".",
"next",
"(",
")",
";",
"if",
"(",
"eval",
"instanceof",
"LazyRefEval",
")",
"{",
"LazyRefEval",
"lazyRefEval",
"=",
"(",
"LazyRefEval",
")",
"eval",
";",
"if",
"(",
"lazyRefEval",
".",
"isSubTotal",
"(",
")",
")",
"{",
"it",
".",
"remove",
"(",
")",
";",
"}",
"if",
"(",
"functionCode",
">",
"100",
"&&",
"lazyRefEval",
".",
"isRowHidden",
"(",
")",
")",
"{",
"it",
".",
"remove",
"(",
")",
";",
"}",
"}",
"}",
"return",
"innerFunc",
".",
"evaluate",
"(",
"list",
".",
"toArray",
"(",
"new",
"ValueEval",
"[",
"0",
"]",
")",
",",
"srcRowIndex",
",",
"srcColumnIndex",
")",
";",
"}"
] |
public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){int nInnerArgs = args.Length - 1; if (nInnerArgs < 1){return ErrorEval.VALUE_INVALID;}Function innerFunc;try{ValueEval ve = OperandResolver.GetSingleValue(args[0], srcRowIndex, srcColumnIndex);int functionCode = OperandResolver.CoerceValueToInt(ve);innerFunc = FindFunction(functionCode);}catch (EvaluationException e){return e.GetErrorEval();}ValueEval[] innerArgs = new ValueEval[nInnerArgs];Array.Copy(args, 1, innerArgs, 0, nInnerArgs);return innerFunc.Evaluate(innerArgs, srcRowIndex, srcColumnIndex);}
|
train
| false
|
8,223
|
public InstanceGroupConfig(InstanceRoleType instanceRole, String instanceType, Integer instanceCount) {setInstanceRole(instanceRole.toString());setInstanceType(instanceType);setInstanceCount(instanceCount);}
|
[
"public",
"InstanceGroupConfig",
"(",
"InstanceRoleType",
"instanceRole",
",",
"String",
"instanceType",
",",
"Integer",
"instanceCount",
")",
"{",
"setInstanceRole",
"(",
"instanceRole",
".",
"toString",
"(",
")",
")",
";",
"setInstanceType",
"(",
"instanceType",
")",
";",
"setInstanceCount",
"(",
"instanceCount",
")",
";",
"}"
] |
public InstanceGroupConfig(InstanceRoleType instanceRole, string instanceType, int instanceCount){_instanceRole = instanceRole;_instanceType = instanceType;_instanceCount = instanceCount;}
|
train
| false
|
8,224
|
public LeftMarginRecord(RecordInputStream in) {field_1_margin = in.readDouble();}
|
[
"public",
"LeftMarginRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_margin",
"=",
"in",
".",
"readDouble",
"(",
")",
";",
"}"
] |
public LeftMarginRecord(RecordInputStream in1){field_1_margin = in1.ReadDouble();}
|
train
| false
|
8,225
|
public DescribeTrialComponentResult describeTrialComponent(DescribeTrialComponentRequest request) {request = beforeClientExecution(request);return executeDescribeTrialComponent(request);}
|
[
"public",
"DescribeTrialComponentResult",
"describeTrialComponent",
"(",
"DescribeTrialComponentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeTrialComponent",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeTrialComponentResponse DescribeTrialComponent(DescribeTrialComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTrialComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTrialComponentResponseUnmarshaller.Instance;return Invoke<DescribeTrialComponentResponse>(request, options);}
|
train
| false
|
8,226
|
public AssociateSubnetCidrBlockResult associateSubnetCidrBlock(AssociateSubnetCidrBlockRequest request) {request = beforeClientExecution(request);return executeAssociateSubnetCidrBlock(request);}
|
[
"public",
"AssociateSubnetCidrBlockResult",
"associateSubnetCidrBlock",
"(",
"AssociateSubnetCidrBlockRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateSubnetCidrBlock",
"(",
"request",
")",
";",
"}"
] |
public virtual AssociateSubnetCidrBlockResponse AssociateSubnetCidrBlock(AssociateSubnetCidrBlockRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateSubnetCidrBlockRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateSubnetCidrBlockResponseUnmarshaller.Instance;return Invoke<AssociateSubnetCidrBlockResponse>(request, options);}
|
train
| true
|
8,227
|
@Override public Iterator<E> iterator() {return new MapBasedMultisetIterator();}
|
[
"@",
"Override",
"public",
"Iterator",
"<",
"E",
">",
"iterator",
"(",
")",
"{",
"return",
"new",
"MapBasedMultisetIterator",
"(",
")",
";",
"}"
] |
public override java.util.Iterator<java.util.MapClass.Entry<K, V>> iterator(){return new java.util.Hashtable<K, V>.EntryIterator(this._enclosing);}
|
train
| false
|
8,228
|
public GetQueueAttributesResult getQueueAttributes(String queueUrl, java.util.List<String> attributeNames) {return getQueueAttributes(new GetQueueAttributesRequest().withQueueUrl(queueUrl).withAttributeNames(attributeNames));}
|
[
"public",
"GetQueueAttributesResult",
"getQueueAttributes",
"(",
"String",
"queueUrl",
",",
"java",
".",
"util",
".",
"List",
"<",
"String",
">",
"attributeNames",
")",
"{",
"return",
"getQueueAttributes",
"(",
"new",
"GetQueueAttributesRequest",
"(",
")",
".",
"withQueueUrl",
"(",
"queueUrl",
")",
".",
"withAttributeNames",
"(",
"attributeNames",
")",
")",
";",
"}"
] |
public virtual GetQueueAttributesResponse GetQueueAttributes(string queueUrl, List<string> attributeNames){var request = new GetQueueAttributesRequest();request.QueueUrl = queueUrl;request.AttributeNames = attributeNames;return GetQueueAttributes(request);}
|
train
| true
|
8,229
|
public final int getBeginA() {return beginA;}
|
[
"public",
"final",
"int",
"getBeginA",
"(",
")",
"{",
"return",
"beginA",
";",
"}"
] |
public int GetBeginA(){return beginA;}
|
train
| false
|
8,230
|
public String toString() {return "NoLock";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"NoLock\"",
";",
"}"
] |
public override string ToString(){return "NoLock";}
|
train
| false
|
8,231
|
public boolean contains(Object object) {return backingMap.containsKey(object);}
|
[
"public",
"boolean",
"contains",
"(",
"Object",
"object",
")",
"{",
"return",
"backingMap",
".",
"containsKey",
"(",
"object",
")",
";",
"}"
] |
public override bool contains(object @object){return backingMap.containsKey(@object);}
|
train
| false
|
8,232
|
public String toString() {return "arc=" + fstArc + " state=" + fsaState;}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"arc=\"",
"+",
"fstArc",
"+",
"\" state=\"",
"+",
"fsaState",
";",
"}"
] |
public override string ToString(){return "arc=" + arc + " state=" + state;}
|
train
| false
|
8,233
|
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
|
8,234
|
public String toString() {return "PerFieldAnalyzerWrapper(" + fieldAnalyzers + ", default=" + defaultAnalyzer + ")";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"PerFieldAnalyzerWrapper(\"",
"+",
"fieldAnalyzers",
"+",
"\", default=\"",
"+",
"defaultAnalyzer",
"+",
"\")\"",
";",
"}"
] |
public override string ToString(){return "PerFieldAnalyzerWrapper(" + fieldAnalyzers + ", default=" + defaultAnalyzer + ")";}
|
train
| false
|
8,235
|
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader( data, offset );int available = data.length - (offset + 8);if (bytesRemaining > available) {bytesRemaining = available;}if (isContainerRecord()) {int bytesWritten = 0;thedata = new byte[0];offset += 8;bytesWritten += 8;while ( bytesRemaining > 0 ) {EscherRecord child = recordFactory.createRecord( data, offset );int childBytesWritten = child.fillFields( data, offset, recordFactory );bytesWritten += childBytesWritten;offset += childBytesWritten;bytesRemaining -= childBytesWritten;getChildRecords().add( child );}return bytesWritten;}if (bytesRemaining < 0) {bytesRemaining = 0;}thedata = IOUtils.safelyAllocate(bytesRemaining, MAX_RECORD_LENGTH);System.arraycopy( data, offset + 8, thedata, 0, bytesRemaining );return bytesRemaining + 8;}
|
[
"public",
"int",
"fillFields",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"offset",
",",
"EscherRecordFactory",
"recordFactory",
")",
"{",
"int",
"bytesRemaining",
"=",
"readHeader",
"(",
"data",
",",
"offset",
")",
";",
"int",
"available",
"=",
"data",
".",
"length",
"-",
"(",
"offset",
"+",
"8",
")",
";",
"if",
"(",
"bytesRemaining",
">",
"available",
")",
"{",
"bytesRemaining",
"=",
"available",
";",
"}",
"if",
"(",
"isContainerRecord",
"(",
")",
")",
"{",
"int",
"bytesWritten",
"=",
"0",
";",
"thedata",
"=",
"new",
"byte",
"[",
"0",
"]",
";",
"offset",
"+=",
"8",
";",
"bytesWritten",
"+=",
"8",
";",
"while",
"(",
"bytesRemaining",
">",
"0",
")",
"{",
"EscherRecord",
"child",
"=",
"recordFactory",
".",
"createRecord",
"(",
"data",
",",
"offset",
")",
";",
"int",
"childBytesWritten",
"=",
"child",
".",
"fillFields",
"(",
"data",
",",
"offset",
",",
"recordFactory",
")",
";",
"bytesWritten",
"+=",
"childBytesWritten",
";",
"offset",
"+=",
"childBytesWritten",
";",
"bytesRemaining",
"-=",
"childBytesWritten",
";",
"getChildRecords",
"(",
")",
".",
"add",
"(",
"child",
")",
";",
"}",
"return",
"bytesWritten",
";",
"}",
"if",
"(",
"bytesRemaining",
"<",
"0",
")",
"{",
"bytesRemaining",
"=",
"0",
";",
"}",
"thedata",
"=",
"IOUtils",
".",
"safelyAllocate",
"(",
"bytesRemaining",
",",
"MAX_RECORD_LENGTH",
")",
";",
"System",
".",
"arraycopy",
"(",
"data",
",",
"offset",
"+",
"8",
",",
"thedata",
",",
"0",
",",
"bytesRemaining",
")",
";",
"return",
"bytesRemaining",
"+",
"8",
";",
"}"
] |
public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);int avaliable = data.Length - (offset + 8);if (bytesRemaining > avaliable){bytesRemaining = avaliable;}if (IsContainerRecord){int bytesWritten = 0;_thedata = new byte[0];offset += 8;bytesWritten += 8;while (bytesRemaining > 0){EscherRecord child = recordFactory.CreateRecord(data, offset);int childBytesWritten = child.FillFields(data, offset, recordFactory);bytesWritten += childBytesWritten;offset += childBytesWritten;bytesRemaining -= childBytesWritten;ChildRecords.Add(child);}return bytesWritten;}else{_thedata = new byte[bytesRemaining];Array.Copy(data, offset + 8, _thedata, 0, bytesRemaining);return bytesRemaining + 8;}}
|
train
| false
|
8,236
|
public AssociatePhoneNumberWithUserResult associatePhoneNumberWithUser(AssociatePhoneNumberWithUserRequest request) {request = beforeClientExecution(request);return executeAssociatePhoneNumberWithUser(request);}
|
[
"public",
"AssociatePhoneNumberWithUserResult",
"associatePhoneNumberWithUser",
"(",
"AssociatePhoneNumberWithUserRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociatePhoneNumberWithUser",
"(",
"request",
")",
";",
"}"
] |
public virtual AssociatePhoneNumberWithUserResponse AssociatePhoneNumberWithUser(AssociatePhoneNumberWithUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociatePhoneNumberWithUserRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociatePhoneNumberWithUserResponseUnmarshaller.Instance;return Invoke<AssociatePhoneNumberWithUserResponse>(request, options);}
|
train
| true
|
8,237
|
public FieldQuery getFieldQuery( Query query ) {try {return getFieldQuery(query, null);} catch (IOException e) {throw new RuntimeException (e);}}
|
[
"public",
"FieldQuery",
"getFieldQuery",
"(",
"Query",
"query",
")",
"{",
"try",
"{",
"return",
"getFieldQuery",
"(",
"query",
",",
"null",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"e",
")",
";",
"}",
"}"
] |
public virtual FieldQuery GetFieldQuery(Query query){try{return new FieldQuery(query, null, phraseHighlight, fieldMatch);}catch (IOException e){throw new Exception(e.ToString(), e);}}
|
train
| false
|
8,238
|
public int getXBATEntriesPerBlock() {return getBATEntriesPerBlock() - 1;}
|
[
"public",
"int",
"getXBATEntriesPerBlock",
"(",
")",
"{",
"return",
"getBATEntriesPerBlock",
"(",
")",
"-",
"1",
";",
"}"
] |
public int GetXBATEntriesPerBlock(){return GetBATEntriesPerBlock() - 1;}
|
train
| false
|
8,239
|
public static CellRangeAddress createEnclosingCellRange(CellRangeAddress crA, CellRangeAddress crB) {if( crB == null) {return crA.copy();}int minRow = lt(crB.getFirstRow(), crA.getFirstRow()) ?crB.getFirstRow() :crA.getFirstRow();int maxRow = gt(crB.getLastRow(), crA.getLastRow()) ?crB.getLastRow() :crA.getLastRow();int minCol = lt(crB.getFirstColumn(),crA.getFirstColumn())?crB.getFirstColumn():crA.getFirstColumn();int maxCol = gt(crB.getLastColumn(), crA.getLastColumn()) ?crB.getLastColumn() :crA.getLastColumn();return new CellRangeAddress(minRow, maxRow, minCol, maxCol);}
|
[
"public",
"static",
"CellRangeAddress",
"createEnclosingCellRange",
"(",
"CellRangeAddress",
"crA",
",",
"CellRangeAddress",
"crB",
")",
"{",
"if",
"(",
"crB",
"==",
"null",
")",
"{",
"return",
"crA",
".",
"copy",
"(",
")",
";",
"}",
"int",
"minRow",
"=",
"lt",
"(",
"crB",
".",
"getFirstRow",
"(",
")",
",",
"crA",
".",
"getFirstRow",
"(",
")",
")",
"?",
"crB",
".",
"getFirstRow",
"(",
")",
":",
"crA",
".",
"getFirstRow",
"(",
")",
";",
"int",
"maxRow",
"=",
"gt",
"(",
"crB",
".",
"getLastRow",
"(",
")",
",",
"crA",
".",
"getLastRow",
"(",
")",
")",
"?",
"crB",
".",
"getLastRow",
"(",
")",
":",
"crA",
".",
"getLastRow",
"(",
")",
";",
"int",
"minCol",
"=",
"lt",
"(",
"crB",
".",
"getFirstColumn",
"(",
")",
",",
"crA",
".",
"getFirstColumn",
"(",
")",
")",
"?",
"crB",
".",
"getFirstColumn",
"(",
")",
":",
"crA",
".",
"getFirstColumn",
"(",
")",
";",
"int",
"maxCol",
"=",
"gt",
"(",
"crB",
".",
"getLastColumn",
"(",
")",
",",
"crA",
".",
"getLastColumn",
"(",
")",
")",
"?",
"crB",
".",
"getLastColumn",
"(",
")",
":",
"crA",
".",
"getLastColumn",
"(",
")",
";",
"return",
"new",
"CellRangeAddress",
"(",
"minRow",
",",
"maxRow",
",",
"minCol",
",",
"maxCol",
")",
";",
"}"
] |
public static CellRangeAddress CreateEnclosingCellRange(CellRangeAddress crA, CellRangeAddress crB){if (crB == null){return crA.Copy();}return new CellRangeAddress(lt(crB.FirstRow, crA.FirstRow) ? crB.FirstRow : crA.FirstRow,gt(crB.LastRow, crA.LastRow) ? crB.LastRow : crA.LastRow,lt(crB.FirstColumn, crA.FirstColumn) ? crB.FirstColumn : crA.FirstColumn,gt(crB.LastColumn, crA.LastColumn) ? crB.LastColumn : crA.LastColumn);}
|
train
| false
|
8,241
|
public void setLineStyleColor(int red, int green, int blue) {int lineStyleColor = ((blue) << 16) | ((green) << 8) | red;setPropertyValue(new EscherRGBProperty(EscherPropertyTypes.LINESTYLE__COLOR, lineStyleColor));}
|
[
"public",
"void",
"setLineStyleColor",
"(",
"int",
"red",
",",
"int",
"green",
",",
"int",
"blue",
")",
"{",
"int",
"lineStyleColor",
"=",
"(",
"(",
"blue",
")",
"<<",
"16",
")",
"|",
"(",
"(",
"green",
")",
"<<",
"8",
")",
"|",
"red",
";",
"setPropertyValue",
"(",
"new",
"EscherRGBProperty",
"(",
"EscherPropertyTypes",
".",
"LINESTYLE__COLOR",
",",
"lineStyleColor",
")",
")",
";",
"}"
] |
public void SetLineStyleColor(int red, int green, int blue){int lineStyleColor = ((blue) << 16) | ((green) << 8) | red;SetPropertyValue(new EscherRGBProperty(EscherProperties.LINESTYLE__COLOR, lineStyleColor));}
|
train
| false
|
8,242
|
public CreateFileSystemResult createFileSystem(CreateFileSystemRequest request) {request = beforeClientExecution(request);return executeCreateFileSystem(request);}
|
[
"public",
"CreateFileSystemResult",
"createFileSystem",
"(",
"CreateFileSystemRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateFileSystem",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateFileSystemResponse CreateFileSystem(CreateFileSystemRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFileSystemRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFileSystemResponseUnmarshaller.Instance;return Invoke<CreateFileSystemResponse>(request, options);}
|
train
| true
|
8,243
|
public DeleteVaultRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}
|
[
"public",
"DeleteVaultRequest",
"(",
"String",
"accountId",
",",
"String",
"vaultName",
")",
"{",
"setAccountId",
"(",
"accountId",
")",
";",
"setVaultName",
"(",
"vaultName",
")",
";",
"}"
] |
public DeleteVaultRequest(string accountId, string vaultName){_accountId = accountId;_vaultName = vaultName;}
|
train
| false
|
8,244
|
public ByteBuffer read(int length, long position) {if(position >= size) {throw new IndexOutOfBoundsException("Unable to read " + length + " bytes from " +position + " in stream of length " + size);}int toRead = (int)Math.min(length, size - position);return ByteBuffer.wrap(buffer, (int)position, toRead);}
|
[
"public",
"ByteBuffer",
"read",
"(",
"int",
"length",
",",
"long",
"position",
")",
"{",
"if",
"(",
"position",
">=",
"size",
")",
"{",
"throw",
"new",
"IndexOutOfBoundsException",
"(",
"\"Unable to read \"",
"+",
"length",
"+",
"\" bytes from \"",
"+",
"position",
"+",
"\" in stream of length \"",
"+",
"size",
")",
";",
"}",
"int",
"toRead",
"=",
"(",
"int",
")",
"Math",
".",
"min",
"(",
"length",
",",
"size",
"-",
"position",
")",
";",
"return",
"ByteBuffer",
".",
"wrap",
"(",
"buffer",
",",
"(",
"int",
")",
"position",
",",
"toRead",
")",
";",
"}"
] |
public override ByteBuffer Read(int length, long position){if (position >= size){throw new IndexOutOfRangeException("Unable to read " + length + " bytes from " +position + " in stream of length " + size);}int toRead = (int)Math.Min(length, size - position);return ByteBuffer.CreateBuffer(buffer, (int)position, toRead);}
|
train
| false
|
8,245
|
public boolean addPushRefSpec(RefSpec s) {if (push.contains(s))return false;return push.add(s);}
|
[
"public",
"boolean",
"addPushRefSpec",
"(",
"RefSpec",
"s",
")",
"{",
"if",
"(",
"push",
".",
"contains",
"(",
"s",
")",
")",
"return",
"false",
";",
"return",
"push",
".",
"add",
"(",
"s",
")",
";",
"}"
] |
public virtual bool AddPushRefSpec(RefSpec s){if (push.Contains(s)){return false;}return push.AddItem(s);}
|
train
| false
|
8,246
|
public ViewBillingResult viewBilling(ViewBillingRequest request) {request = beforeClientExecution(request);return executeViewBilling(request);}
|
[
"public",
"ViewBillingResult",
"viewBilling",
"(",
"ViewBillingRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeViewBilling",
"(",
"request",
")",
";",
"}"
] |
public virtual ViewBillingResponse ViewBilling(ViewBillingRequest request){var options = new InvokeOptions();options.RequestMarshaller = ViewBillingRequestMarshaller.Instance;options.ResponseUnmarshaller = ViewBillingResponseUnmarshaller.Instance;return Invoke<ViewBillingResponse>(request, options);}
|
train
| true
|
8,247
|
public final char getChar() {int newPosition = position + SizeOf.CHAR;if (newPosition > limit) {throw new BufferUnderflowException();}char result = (char) Memory.peekShort(backingArray, offset + position, order);position = newPosition;return result;}
|
[
"public",
"final",
"char",
"getChar",
"(",
")",
"{",
"int",
"newPosition",
"=",
"position",
"+",
"SizeOf",
".",
"CHAR",
";",
"if",
"(",
"newPosition",
">",
"limit",
")",
"{",
"throw",
"new",
"BufferUnderflowException",
"(",
")",
";",
"}",
"char",
"result",
"=",
"(",
"char",
")",
"Memory",
".",
"peekShort",
"(",
"backingArray",
",",
"offset",
"+",
"position",
",",
"order",
")",
";",
"position",
"=",
"newPosition",
";",
"return",
"result",
";",
"}"
] |
public sealed override char getChar(){int newPosition = _position + libcore.io.SizeOf.CHAR;if (newPosition > _limit){throw new java.nio.BufferUnderflowException();}char result = (char)libcore.io.Memory.peekShort(backingArray, offset + _position,_order);_position = newPosition;return result;}
|
train
| false
|
8,248
|
public SpanQuery getSpanQuery(Element e) throws ParserException {String fieldName = DOMUtils.getAttributeWithInheritanceOrFail(e, "fieldName");String value = DOMUtils.getNonBlankTextOrFail(e);List<SpanQuery> clausesList = new ArrayList<>();try (TokenStream ts = analyzer.tokenStream(fieldName, value)) {TermToBytesRefAttribute termAtt = ts.addAttribute(TermToBytesRefAttribute.class);ts.reset();while (ts.incrementToken()) {SpanTermQuery stq = new SpanTermQuery(new Term(fieldName, BytesRef.deepCopyOf(termAtt.getBytesRef())));clausesList.add(stq);}ts.end();SpanOrQuery soq = new SpanOrQuery(clausesList.toArray(new SpanQuery[clausesList.size()]));float boost = DOMUtils.getAttribute(e, "boost", 1.0f);return new SpanBoostQuery(soq, boost);}catch (IOException ioe) {throw new ParserException("IOException parsing value:" + value);}}
|
[
"public",
"SpanQuery",
"getSpanQuery",
"(",
"Element",
"e",
")",
"throws",
"ParserException",
"{",
"String",
"fieldName",
"=",
"DOMUtils",
".",
"getAttributeWithInheritanceOrFail",
"(",
"e",
",",
"\"fieldName\"",
")",
";",
"String",
"value",
"=",
"DOMUtils",
".",
"getNonBlankTextOrFail",
"(",
"e",
")",
";",
"List",
"<",
"SpanQuery",
">",
"clausesList",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"try",
"(",
"TokenStream",
"ts",
"=",
"analyzer",
".",
"tokenStream",
"(",
"fieldName",
",",
"value",
")",
")",
"{",
"TermToBytesRefAttribute",
"termAtt",
"=",
"ts",
".",
"addAttribute",
"(",
"TermToBytesRefAttribute",
".",
"class",
")",
";",
"ts",
".",
"reset",
"(",
")",
";",
"while",
"(",
"ts",
".",
"incrementToken",
"(",
")",
")",
"{",
"SpanTermQuery",
"stq",
"=",
"new",
"SpanTermQuery",
"(",
"new",
"Term",
"(",
"fieldName",
",",
"BytesRef",
".",
"deepCopyOf",
"(",
"termAtt",
".",
"getBytesRef",
"(",
")",
")",
")",
")",
";",
"clausesList",
".",
"add",
"(",
"stq",
")",
";",
"}",
"ts",
".",
"end",
"(",
")",
";",
"SpanOrQuery",
"soq",
"=",
"new",
"SpanOrQuery",
"(",
"clausesList",
".",
"toArray",
"(",
"new",
"SpanQuery",
"[",
"clausesList",
".",
"size",
"(",
")",
"]",
")",
")",
";",
"float",
"boost",
"=",
"DOMUtils",
".",
"getAttribute",
"(",
"e",
",",
"\"boost\"",
",",
"1.0f",
")",
";",
"return",
"new",
"SpanBoostQuery",
"(",
"soq",
",",
"boost",
")",
";",
"}",
"catch",
"(",
"IOException",
"ioe",
")",
"{",
"throw",
"new",
"ParserException",
"(",
"\"IOException parsing value:\"",
"+",
"value",
")",
";",
"}",
"}"
] |
public override SpanQuery GetSpanQuery(XmlElement e){string fieldName = DOMUtils.GetAttributeWithInheritanceOrFail(e, "fieldName");string value = DOMUtils.GetNonBlankTextOrFail(e);List<SpanQuery> clausesList = new List<SpanQuery>();TokenStream ts = null;try{ts = analyzer.GetTokenStream(fieldName, value);ITermToBytesRefAttribute termAtt = ts.AddAttribute<ITermToBytesRefAttribute>();BytesRef bytes = termAtt.BytesRef;ts.Reset();while (ts.IncrementToken()){termAtt.FillBytesRef();SpanTermQuery stq = new SpanTermQuery(new Term(fieldName, BytesRef.DeepCopyOf(bytes)));clausesList.Add(stq);}ts.End();SpanOrQuery soq = new SpanOrQuery(clausesList.ToArray());soq.Boost = DOMUtils.GetAttribute(e, "boost", 1.0f);return soq;}catch (IOException ioe){throw new ParserException("IOException parsing value:" + value);}finally{IOUtils.DisposeWhileHandlingException(ts);}}
|
train
| false
|
8,249
|
public UpdateGatewayResult updateGateway(UpdateGatewayRequest request) {request = beforeClientExecution(request);return executeUpdateGateway(request);}
|
[
"public",
"UpdateGatewayResult",
"updateGateway",
"(",
"UpdateGatewayRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateGateway",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateGatewayResponse UpdateGateway(UpdateGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGatewayResponseUnmarshaller.Instance;return Invoke<UpdateGatewayResponse>(request, options);}
|
train
| true
|
8,250
|
public boolean getCachedBooleanValue() {return specialCachedValue.getBooleanValue();}
|
[
"public",
"boolean",
"getCachedBooleanValue",
"(",
")",
"{",
"return",
"specialCachedValue",
".",
"getBooleanValue",
"(",
")",
";",
"}"
] |
public bool GetCachedBooleanValue(){return specialCachedValue.GetBooleanValue();}
|
train
| false
|
8,251
|
public DeleteIdentityPoolResult deleteIdentityPool(DeleteIdentityPoolRequest request) {request = beforeClientExecution(request);return executeDeleteIdentityPool(request);}
|
[
"public",
"DeleteIdentityPoolResult",
"deleteIdentityPool",
"(",
"DeleteIdentityPoolRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteIdentityPool",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteIdentityPoolResponse DeleteIdentityPool(DeleteIdentityPoolRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIdentityPoolRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIdentityPoolResponseUnmarshaller.Instance;return Invoke<DeleteIdentityPoolResponse>(request, options);}
|
train
| true
|
8,252
|
public PutSuppressedDestinationResult putSuppressedDestination(PutSuppressedDestinationRequest request) {request = beforeClientExecution(request);return executePutSuppressedDestination(request);}
|
[
"public",
"PutSuppressedDestinationResult",
"putSuppressedDestination",
"(",
"PutSuppressedDestinationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutSuppressedDestination",
"(",
"request",
")",
";",
"}"
] |
public virtual PutSuppressedDestinationResponse PutSuppressedDestination(PutSuppressedDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutSuppressedDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutSuppressedDestinationResponseUnmarshaller.Instance;return Invoke<PutSuppressedDestinationResponse>(request, options);}
|
train
| false
|
8,253
|
public PutEventsResult putEvents(PutEventsRequest request) {request = beforeClientExecution(request);return executePutEvents(request);}
|
[
"public",
"PutEventsResult",
"putEvents",
"(",
"PutEventsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutEvents",
"(",
"request",
")",
";",
"}"
] |
public virtual PutEventsResponse PutEvents(PutEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEventsResponseUnmarshaller.Instance;return Invoke<PutEventsResponse>(request, options);}
|
train
| true
|
8,254
|
public GetRecommendationsResult getRecommendations(GetRecommendationsRequest request) {request = beforeClientExecution(request);return executeGetRecommendations(request);}
|
[
"public",
"GetRecommendationsResult",
"getRecommendations",
"(",
"GetRecommendationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRecommendations",
"(",
"request",
")",
";",
"}"
] |
public virtual GetRecommendationsResponse GetRecommendations(GetRecommendationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRecommendationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRecommendationsResponseUnmarshaller.Instance;return Invoke<GetRecommendationsResponse>(request, options);}
|
train
| false
|
8,255
|
public boolean equals(Object obj) {if (this == obj) return true;if (obj instanceof SegmentInfo) {final SegmentInfo other = (SegmentInfo) obj;return other.dir == dir && other.name.equals(name);} else {return false;}}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"this",
"==",
"obj",
")",
"return",
"true",
";",
"if",
"(",
"obj",
"instanceof",
"SegmentInfo",
")",
"{",
"final",
"SegmentInfo",
"other",
"=",
"(",
"SegmentInfo",
")",
"obj",
";",
"return",
"other",
".",
"dir",
"==",
"dir",
"&&",
"other",
".",
"name",
".",
"equals",
"(",
"name",
")",
";",
"}",
"else",
"{",
"return",
"false",
";",
"}",
"}"
] |
public override bool Equals(object obj){if (this == obj){return true;}if (obj is SegmentInfo){SegmentInfo other = (SegmentInfo)obj;return other.Dir == Dir && other.Name.Equals(Name, StringComparison.Ordinal);}else{return false;}}
|
train
| false
|
8,256
|
public HSSFDataFormat createDataFormat() {if (formatter == null) {formatter = new HSSFDataFormat(workbook);}return formatter;}
|
[
"public",
"HSSFDataFormat",
"createDataFormat",
"(",
")",
"{",
"if",
"(",
"formatter",
"==",
"null",
")",
"{",
"formatter",
"=",
"new",
"HSSFDataFormat",
"(",
"workbook",
")",
";",
"}",
"return",
"formatter",
";",
"}"
] |
public NPOI.SS.UserModel.IDataFormat CreateDataFormat(){if (formatter == null)formatter = new HSSFDataFormat(workbook);return formatter;}
|
train
| false
|
8,257
|
public UpdateFaceRequest() {super("LinkFace", "2018-07-20", "UpdateFace");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
|
[
"public",
"UpdateFaceRequest",
"(",
")",
"{",
"super",
"(",
"\"LinkFace\"",
",",
"\"2018-07-20\"",
",",
"\"UpdateFace\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] |
public UpdateFaceRequest(): base("LinkFace", "2018-07-20", "UpdateFace"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
|
train
| false
|
8,258
|
public void serialize(LittleEndianOutput out) {out.writeDouble(getMaxChange());}
|
[
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeDouble",
"(",
"getMaxChange",
"(",
")",
")",
";",
"}"
] |
public override void Serialize(ILittleEndianOutput out1){out1.WriteDouble(MaxChange);}
|
train
| false
|
8,259
|
public ModifyVpcEndpointServicePermissionsResult modifyVpcEndpointServicePermissions(ModifyVpcEndpointServicePermissionsRequest request) {request = beforeClientExecution(request);return executeModifyVpcEndpointServicePermissions(request);}
|
[
"public",
"ModifyVpcEndpointServicePermissionsResult",
"modifyVpcEndpointServicePermissions",
"(",
"ModifyVpcEndpointServicePermissionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyVpcEndpointServicePermissions",
"(",
"request",
")",
";",
"}"
] |
public virtual ModifyVpcEndpointServicePermissionsResponse ModifyVpcEndpointServicePermissions(ModifyVpcEndpointServicePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpcEndpointServicePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpcEndpointServicePermissionsResponseUnmarshaller.Instance;return Invoke<ModifyVpcEndpointServicePermissionsResponse>(request, options);}
|
train
| true
|
8,260
|
public IntervalSet nextTokens(ATNState s) {if ( s.nextTokenWithinRule != null ) return s.nextTokenWithinRule;s.nextTokenWithinRule = nextTokens(s, null);s.nextTokenWithinRule.setReadonly(true);return s.nextTokenWithinRule;}
|
[
"public",
"IntervalSet",
"nextTokens",
"(",
"ATNState",
"s",
")",
"{",
"if",
"(",
"s",
".",
"nextTokenWithinRule",
"!=",
"null",
")",
"return",
"s",
".",
"nextTokenWithinRule",
";",
"s",
".",
"nextTokenWithinRule",
"=",
"nextTokens",
"(",
"s",
",",
"null",
")",
";",
"s",
".",
"nextTokenWithinRule",
".",
"setReadonly",
"(",
"true",
")",
";",
"return",
"s",
".",
"nextTokenWithinRule",
";",
"}"
] |
public virtual IntervalSet NextTokens(ATNState s){if (s.nextTokenWithinRule != null){return s.nextTokenWithinRule;}s.nextTokenWithinRule = NextTokens(s, null);s.nextTokenWithinRule.SetReadonly(true);return s.nextTokenWithinRule;}
|
train
| false
|
8,261
|
public GetResourceResult getResource(GetResourceRequest request) {request = beforeClientExecution(request);return executeGetResource(request);}
|
[
"public",
"GetResourceResult",
"getResource",
"(",
"GetResourceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetResource",
"(",
"request",
")",
";",
"}"
] |
public virtual GetResourceResponse GetResource(GetResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetResourceResponseUnmarshaller.Instance;return Invoke<GetResourceResponse>(request, options);}
|
train
| true
|
8,262
|
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[HYPERLINK RECORD]\n");buffer.append(" .range = ").append(_range.formatAsString()).append("\n");buffer.append(" .guid = ").append(_guid.toString()).append("\n");buffer.append(" .linkOpts= ").append(HexDump.intToHex(_linkOpts)).append("\n");buffer.append(" .label = ").append(getLabel()).append("\n");if ((_linkOpts & HLINK_TARGET_FRAME) != 0) {buffer.append(" .targetFrame= ").append(getTargetFrame()).append("\n");}if((_linkOpts & HLINK_URL) != 0 && _moniker != null) {buffer.append(" .moniker = ").append(_moniker.toString()).append("\n");}if ((_linkOpts & HLINK_PLACE) != 0) {buffer.append(" .textMark= ").append(getTextMark()).append("\n");}buffer.append(" .address = ").append(getAddress()).append("\n");buffer.append("[/HYPERLINK RECORD]\n");return buffer.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[HYPERLINK RECORD]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .range = \"",
")",
".",
"append",
"(",
"_range",
".",
"formatAsString",
"(",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .guid = \"",
")",
".",
"append",
"(",
"_guid",
".",
"toString",
"(",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .linkOpts= \"",
")",
".",
"append",
"(",
"HexDump",
".",
"intToHex",
"(",
"_linkOpts",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .label = \"",
")",
".",
"append",
"(",
"getLabel",
"(",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"if",
"(",
"(",
"_linkOpts",
"&",
"HLINK_TARGET_FRAME",
")",
"!=",
"0",
")",
"{",
"buffer",
".",
"append",
"(",
"\" .targetFrame= \"",
")",
".",
"append",
"(",
"getTargetFrame",
"(",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"}",
"if",
"(",
"(",
"_linkOpts",
"&",
"HLINK_URL",
")",
"!=",
"0",
"&&",
"_moniker",
"!=",
"null",
")",
"{",
"buffer",
".",
"append",
"(",
"\" .moniker = \"",
")",
".",
"append",
"(",
"_moniker",
".",
"toString",
"(",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"}",
"if",
"(",
"(",
"_linkOpts",
"&",
"HLINK_PLACE",
")",
"!=",
"0",
")",
"{",
"buffer",
".",
"append",
"(",
"\" .textMark= \"",
")",
".",
"append",
"(",
"getTextMark",
"(",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"}",
"buffer",
".",
"append",
"(",
"\" .address = \"",
")",
".",
"append",
"(",
"getAddress",
"(",
")",
")",
".",
"append",
"(",
"\"\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\"[/HYPERLINK RECORD]\\n\"",
")",
";",
"return",
"buffer",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[HYPERLINK RECORD]\n");buffer.Append(" .range = ").Append(_range.FormatAsString()).Append("\n");buffer.Append(" .guid = ").Append(_guid.FormatAsString()).Append("\n");buffer.Append(" .linkOpts = ").Append(HexDump.IntToHex(this._linkOpts)).Append("\n");buffer.Append(" .label = ").Append(Label).Append("\n");if ((_linkOpts & HLINK_TARGET_FRAME) != 0){buffer.Append(" .targetFrame= ").Append(TargetFrame).Append("\n");}if((_linkOpts & HLINK_URL) != 0 && _moniker != null){buffer.Append(" .moniker = ").Append(_moniker.FormatAsString()).Append("\n");}if ((_linkOpts & HLINK_PLACE) != 0){buffer.Append(" .targetFrame= ").Append(TextMark).Append("\n");}buffer.Append(" .address = ").Append(Address).Append("\n");buffer.Append("[/HYPERLINK RECORD]\n");return buffer.ToString();}
|
train
| false
|
8,263
|
public CreateFacetResult createFacet(CreateFacetRequest request) {request = beforeClientExecution(request);return executeCreateFacet(request);}
|
[
"public",
"CreateFacetResult",
"createFacet",
"(",
"CreateFacetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateFacet",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateFacetResponse CreateFacet(CreateFacetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFacetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFacetResponseUnmarshaller.Instance;return Invoke<CreateFacetResponse>(request, options);}
|
train
| true
|
8,265
|
public static PrintOrientation valueOf(int value){return _table[value];}
|
[
"public",
"static",
"PrintOrientation",
"valueOf",
"(",
"int",
"value",
")",
"{",
"return",
"_table",
"[",
"value",
"]",
";",
"}"
] |
public static PrintOrientation ValueOf(int value){return _table[value];}
|
train
| false
|
8,266
|
public DefineExpressionResult defineExpression(DefineExpressionRequest request) {request = beforeClientExecution(request);return executeDefineExpression(request);}
|
[
"public",
"DefineExpressionResult",
"defineExpression",
"(",
"DefineExpressionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDefineExpression",
"(",
"request",
")",
";",
"}"
] |
public virtual DefineExpressionResponse DefineExpression(DefineExpressionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DefineExpressionRequestMarshaller.Instance;options.ResponseUnmarshaller = DefineExpressionResponseUnmarshaller.Instance;return Invoke<DefineExpressionResponse>(request, options);}
|
train
| true
|
8,267
|
public long getLastModified() {return attributes.getLastModifiedInstant().toEpochMilli();}
|
[
"public",
"long",
"getLastModified",
"(",
")",
"{",
"return",
"attributes",
".",
"getLastModifiedInstant",
"(",
")",
".",
"toEpochMilli",
"(",
")",
";",
"}"
] |
public override long GetLastModified(){if (lastModified == 0){lastModified = file.LastModified();}return lastModified;}
|
train
| false
|
8,268
|
public void close() {buffer = null;size = -1;}
|
[
"public",
"void",
"close",
"(",
")",
"{",
"buffer",
"=",
"null",
";",
"size",
"=",
"-",
"1",
";",
"}"
] |
public override void Close(){buffer = null;size = -1;}
|
train
| false
|
8,269
|
public StartEntitiesDetectionJobResult startEntitiesDetectionJob(StartEntitiesDetectionJobRequest request) {request = beforeClientExecution(request);return executeStartEntitiesDetectionJob(request);}
|
[
"public",
"StartEntitiesDetectionJobResult",
"startEntitiesDetectionJob",
"(",
"StartEntitiesDetectionJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartEntitiesDetectionJob",
"(",
"request",
")",
";",
"}"
] |
public virtual StartEntitiesDetectionJobResponse StartEntitiesDetectionJob(StartEntitiesDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartEntitiesDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StartEntitiesDetectionJobResponseUnmarshaller.Instance;return Invoke<StartEntitiesDetectionJobResponse>(request, options);}
|
train
| true
|
8,270
|
public boolean processMatch(ValueEval eval) {if(result == null) {result = eval;}else {if(result instanceof BlankEval) {result = eval;}else {if(!(eval instanceof BlankEval)) {result = ErrorEval.NUM_ERROR;return false;}}}return true;}
|
[
"public",
"boolean",
"processMatch",
"(",
"ValueEval",
"eval",
")",
"{",
"if",
"(",
"result",
"==",
"null",
")",
"{",
"result",
"=",
"eval",
";",
"}",
"else",
"{",
"if",
"(",
"result",
"instanceof",
"BlankEval",
")",
"{",
"result",
"=",
"eval",
";",
"}",
"else",
"{",
"if",
"(",
"!",
"(",
"eval",
"instanceof",
"BlankEval",
")",
")",
"{",
"result",
"=",
"ErrorEval",
".",
"NUM_ERROR",
";",
"return",
"false",
";",
"}",
"}",
"}",
"return",
"true",
";",
"}"
] |
public bool ProcessMatch(ValueEval eval){if (result == null) {result = eval;}else {result = ErrorEval.NUM_ERROR;return false;}return true;}
|
train
| false
|
8,271
|
public TokenTagToken(String tokenName, int type, String label) {super(type);this.tokenName = tokenName;this.label = label;}
|
[
"public",
"TokenTagToken",
"(",
"String",
"tokenName",
",",
"int",
"type",
",",
"String",
"label",
")",
"{",
"super",
"(",
"type",
")",
";",
"this",
".",
"tokenName",
"=",
"tokenName",
";",
"this",
".",
"label",
"=",
"label",
";",
"}"
] |
public TokenTagToken(string tokenName, int type, string label): base(type){this.tokenName = tokenName;this.label = label;}
|
train
| false
|
8,272
|
public void reset(boolean zeroFillBuffers, boolean reuseFirst) {if (bufferUpto != -1) {if (zeroFillBuffers) {for(int i=0;i<bufferUpto;i++) {Arrays.fill(buffers[i], (byte) 0);}Arrays.fill(buffers[bufferUpto], 0, byteUpto, (byte) 0);}if (bufferUpto > 0 || !reuseFirst) {final int offset = reuseFirst ? 1 : 0;allocator.recycleByteBlocks(buffers, offset, 1+bufferUpto);Arrays.fill(buffers, offset, 1+bufferUpto, null);}if (reuseFirst) {bufferUpto = 0;byteUpto = 0;byteOffset = 0;buffer = buffers[0];} else {bufferUpto = -1;byteUpto = BYTE_BLOCK_SIZE;byteOffset = -BYTE_BLOCK_SIZE;buffer = null;}}}
|
[
"public",
"void",
"reset",
"(",
"boolean",
"zeroFillBuffers",
",",
"boolean",
"reuseFirst",
")",
"{",
"if",
"(",
"bufferUpto",
"!=",
"-",
"1",
")",
"{",
"if",
"(",
"zeroFillBuffers",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"bufferUpto",
";",
"i",
"++",
")",
"{",
"Arrays",
".",
"fill",
"(",
"buffers",
"[",
"i",
"]",
",",
"(",
"byte",
")",
"0",
")",
";",
"}",
"Arrays",
".",
"fill",
"(",
"buffers",
"[",
"bufferUpto",
"]",
",",
"0",
",",
"byteUpto",
",",
"(",
"byte",
")",
"0",
")",
";",
"}",
"if",
"(",
"bufferUpto",
">",
"0",
"||",
"!",
"reuseFirst",
")",
"{",
"final",
"int",
"offset",
"=",
"reuseFirst",
"?",
"1",
":",
"0",
";",
"allocator",
".",
"recycleByteBlocks",
"(",
"buffers",
",",
"offset",
",",
"1",
"+",
"bufferUpto",
")",
";",
"Arrays",
".",
"fill",
"(",
"buffers",
",",
"offset",
",",
"1",
"+",
"bufferUpto",
",",
"null",
")",
";",
"}",
"if",
"(",
"reuseFirst",
")",
"{",
"bufferUpto",
"=",
"0",
";",
"byteUpto",
"=",
"0",
";",
"byteOffset",
"=",
"0",
";",
"buffer",
"=",
"buffers",
"[",
"0",
"]",
";",
"}",
"else",
"{",
"bufferUpto",
"=",
"-",
"1",
";",
"byteUpto",
"=",
"BYTE_BLOCK_SIZE",
";",
"byteOffset",
"=",
"-",
"BYTE_BLOCK_SIZE",
";",
"buffer",
"=",
"null",
";",
"}",
"}",
"}"
] |
public void Reset(bool zeroFillBuffers, bool reuseFirst){if (bufferUpto != -1){if (zeroFillBuffers){for (int i = 0; i < bufferUpto; i++){Arrays.Fill(buffers[i], (byte)0);}Arrays.Fill(buffers[bufferUpto], 0, ByteUpto, (byte)0);}if (bufferUpto > 0 || !reuseFirst){int offset = reuseFirst ? 1 : 0;allocator.RecycleByteBlocks(buffers, offset, 1 + bufferUpto);Arrays.Fill(buffers, offset, 1 + bufferUpto, null);}if (reuseFirst){bufferUpto = 0;ByteUpto = 0;ByteOffset = 0;buffer = buffers[0];}else{bufferUpto = -1;ByteUpto = BYTE_BLOCK_SIZE;ByteOffset = -BYTE_BLOCK_SIZE;buffer = null;}}}
|
train
| false
|
8,273
|
public UpdateExpirationForHITResult updateExpirationForHIT(UpdateExpirationForHITRequest request) {request = beforeClientExecution(request);return executeUpdateExpirationForHIT(request);}
|
[
"public",
"UpdateExpirationForHITResult",
"updateExpirationForHIT",
"(",
"UpdateExpirationForHITRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateExpirationForHIT",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateExpirationForHITResponse UpdateExpirationForHIT(UpdateExpirationForHITRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateExpirationForHITRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateExpirationForHITResponseUnmarshaller.Instance;return Invoke<UpdateExpirationForHITResponse>(request, options);}
|
train
| true
|
8,274
|
public Policy(String id) {this.id = id;}
|
[
"public",
"Policy",
"(",
"String",
"id",
")",
"{",
"this",
".",
"id",
"=",
"id",
";",
"}"
] |
public Policy(string id){this.id = id;}
|
train
| false
|
8,275
|
public UpdateApplicationVersionRequest(String applicationName, String versionLabel) {setApplicationName(applicationName);setVersionLabel(versionLabel);}
|
[
"public",
"UpdateApplicationVersionRequest",
"(",
"String",
"applicationName",
",",
"String",
"versionLabel",
")",
"{",
"setApplicationName",
"(",
"applicationName",
")",
";",
"setVersionLabel",
"(",
"versionLabel",
")",
";",
"}"
] |
public UpdateApplicationVersionRequest(string applicationName, string versionLabel){_applicationName = applicationName;_versionLabel = versionLabel;}
|
train
| false
|
8,276
|
public String getEmailAddress() {final int lt = RawParseUtils.nextLF(buffer, valStart, '<');if (valEnd <= lt) {final int at = RawParseUtils.nextLF(buffer, valStart, '@');if (valStart < at && at < valEnd)return getValue();return null;}final int gt = RawParseUtils.nextLF(buffer, lt, '>');if (valEnd < gt)return null;return RawParseUtils.decode(enc, buffer, lt, gt - 1);}
|
[
"public",
"String",
"getEmailAddress",
"(",
")",
"{",
"final",
"int",
"lt",
"=",
"RawParseUtils",
".",
"nextLF",
"(",
"buffer",
",",
"valStart",
",",
"'<'",
")",
";",
"if",
"(",
"valEnd",
"<=",
"lt",
")",
"{",
"final",
"int",
"at",
"=",
"RawParseUtils",
".",
"nextLF",
"(",
"buffer",
",",
"valStart",
",",
"'@'",
")",
";",
"if",
"(",
"valStart",
"<",
"at",
"&&",
"at",
"<",
"valEnd",
")",
"return",
"getValue",
"(",
")",
";",
"return",
"null",
";",
"}",
"final",
"int",
"gt",
"=",
"RawParseUtils",
".",
"nextLF",
"(",
"buffer",
",",
"lt",
",",
"'>'",
")",
";",
"if",
"(",
"valEnd",
"<",
"gt",
")",
"return",
"null",
";",
"return",
"RawParseUtils",
".",
"decode",
"(",
"enc",
",",
"buffer",
",",
"lt",
",",
"gt",
"-",
"1",
")",
";",
"}"
] |
public string GetEmailAddress(){int lt = RawParseUtils.NextLF(buffer, valStart, '<');if (valEnd <= lt){int at = RawParseUtils.NextLF(buffer, valStart, '@');if (valStart < at && at < valEnd){return GetValue();}return null;}int gt = RawParseUtils.NextLF(buffer, lt, '>');if (valEnd < gt){return null;}return RawParseUtils.Decode(enc, buffer, lt, gt - 1);}
|
train
| false
|
8,277
|
public String simpleFormat(Object value) {StringBuffer sb = new StringBuffer();simpleValue(sb, value);return sb.toString();}
|
[
"public",
"String",
"simpleFormat",
"(",
"Object",
"value",
")",
"{",
"StringBuffer",
"sb",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"simpleValue",
"(",
"sb",
",",
"value",
")",
";",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] |
public String SimpleFormat(Object value){StringBuilder sb = new StringBuilder();SimpleValue(sb, value);return sb.ToString();}
|
train
| false
|
8,278
|
public RevFilter clone() {return new NotRevFilter(a.clone());}
|
[
"public",
"RevFilter",
"clone",
"(",
")",
"{",
"return",
"new",
"NotRevFilter",
"(",
"a",
".",
"clone",
"(",
")",
")",
";",
"}"
] |
public override RevFilter Clone(){return new NGit.Revwalk.Filter.NotRevFilter(a.Clone());}
|
train
| false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.