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
6,580
public DeleteFlowLogsResult deleteFlowLogs(DeleteFlowLogsRequest request) {request = beforeClientExecution(request);return executeDeleteFlowLogs(request);}
[ "public", "DeleteFlowLogsResult", "deleteFlowLogs", "(", "DeleteFlowLogsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteFlowLogs", "(", "request", ")", ";", "}" ]
public virtual DeleteFlowLogsResponse DeleteFlowLogs(DeleteFlowLogsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFlowLogsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFlowLogsResponseUnmarshaller.Instance;return Invoke<DeleteFlowLogsResponse>(request, options);}
train
true
6,581
public CreateIdentityPoolResult createIdentityPool(CreateIdentityPoolRequest request) {request = beforeClientExecution(request);return executeCreateIdentityPool(request);}
[ "public", "CreateIdentityPoolResult", "createIdentityPool", "(", "CreateIdentityPoolRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateIdentityPool", "(", "request", ")", ";", "}" ]
public virtual CreateIdentityPoolResponse CreateIdentityPool(CreateIdentityPoolRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIdentityPoolRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIdentityPoolResponseUnmarshaller.Instance;return Invoke<CreateIdentityPoolRespon...
train
true
6,582
public String distanceSubQueryNotAllowed() {Iterator<?> sqi = getSubQueriesIterator();while (sqi.hasNext()) {Object leq = sqi.next();if (leq instanceof DistanceSubQuery) {DistanceSubQuery dsq = (DistanceSubQuery) leq;String m = dsq.distanceSubQueryNotAllowed();if (m != null) {return m;}} else {return "Operator " + getO...
[ "public", "String", "distanceSubQueryNotAllowed", "(", ")", "{", "Iterator", "<", "?", ">", "sqi", "=", "getSubQueriesIterator", "(", ")", ";", "while", "(", "sqi", ".", "hasNext", "(", ")", ")", "{", "Object", "leq", "=", "sqi", ".", "next", "(", ")",...
public virtual string DistanceSubQueryNotAllowed(){var sqi = GetSubQueriesEnumerator();while (sqi.MoveNext()){var leq = sqi.Current;if (leq is IDistanceSubQuery){var dsq = sqi.Current as IDistanceSubQuery;string m = dsq.DistanceSubQueryNotAllowed();if (m != null){return m;}}else{return "Operator " + OperatorName + " do...
train
false
6,583
public static String getNodeText(Tree t, List<String> ruleNames) {if ( ruleNames!=null ) {if ( t instanceof RuleContext ) {int ruleIndex = ((RuleContext)t).getRuleContext().getRuleIndex();String ruleName = ruleNames.get(ruleIndex);int altNumber = ((RuleContext) t).getAltNumber();if ( altNumber!=ATN.INVALID_ALT_NUMBER )...
[ "public", "static", "String", "getNodeText", "(", "Tree", "t", ",", "List", "<", "String", ">", "ruleNames", ")", "{", "if", "(", "ruleNames", "!=", "null", ")", "{", "if", "(", "t", "instanceof", "RuleContext", ")", "{", "int", "ruleIndex", "=", "(", ...
public static string GetNodeText(ITree t, IList<string> ruleNames){if (ruleNames != null){if (t is RuleContext){int ruleIndex = ((RuleContext)t).RuleIndex;string ruleName = ruleNames[ruleIndex];int altNumber = ((RuleContext)t).getAltNumber();if ( altNumber!=Atn.ATN.INVALID_ALT_NUMBER ) {return ruleName+":"+altNumber;}r...
train
false
6,584
public int last() {if (sentenceStarts.length > 0) {currentSentence = sentenceStarts.length - 1;text.setIndex(text.getEndIndex());} else { currentSentence = 0;text.setIndex(text.getBeginIndex());}return current();}
[ "public", "int", "last", "(", ")", "{", "if", "(", "sentenceStarts", ".", "length", ">", "0", ")", "{", "currentSentence", "=", "sentenceStarts", ".", "length", "-", "1", ";", "text", ".", "setIndex", "(", "text", ".", "getEndIndex", "(", ")", ")", "...
public override int Last(){if (sentenceStarts.Length > 0){currentSentence = sentenceStarts.Length - 1;text.SetIndex(text.EndIndex);}else{ currentSentence = 0;text.SetIndex(text.BeginIndex);}return Current;}
train
false
6,585
public HSSFRichTextString createRichTextString(String text) {return new HSSFRichTextString(text);}
[ "public", "HSSFRichTextString", "createRichTextString", "(", "String", "text", ")", "{", "return", "new", "HSSFRichTextString", "(", "text", ")", ";", "}" ]
public NPOI.SS.UserModel.IRichTextString CreateRichTextString(String text){return new HSSFRichTextString(text);}
train
false
6,586
public PushbackReader(Reader in) {super(in);buf = new char[1];pos = 1;}
[ "public", "PushbackReader", "(", "Reader", "in", ")", "{", "super", "(", "in", ")", ";", "buf", "=", "new", "char", "[", "1", "]", ";", "pos", "=", "1", ";", "}" ]
public PushbackReader(java.io.Reader @in) : base(@in){buf = new char[1];pos = 1;}
train
false
6,587
public List<ParseTree> getAll(String label) {List<ParseTree> nodes = labels.get(label);if ( nodes==null ) {return Collections.emptyList();}return nodes;}
[ "public", "List", "<", "ParseTree", ">", "getAll", "(", "String", "label", ")", "{", "List", "<", "ParseTree", ">", "nodes", "=", "labels", ".", "get", "(", "label", ")", ";", "if", "(", "nodes", "==", "null", ")", "{", "return", "Collections", ".", ...
public virtual IList<IParseTree> GetAll(string label){IList<IParseTree> nodes = labels.Get(label);if (nodes == null){return Sharpen.Collections.EmptyList<IParseTree>();}return nodes;}
train
false
6,588
public InternalWorkbook getStubWorkbook() {return createStubWorkbook(getExternSheetRecords(), getBoundSheetRecords(),getSSTRecord());}
[ "public", "InternalWorkbook", "getStubWorkbook", "(", ")", "{", "return", "createStubWorkbook", "(", "getExternSheetRecords", "(", ")", ",", "getBoundSheetRecords", "(", ")", ",", "getSSTRecord", "(", ")", ")", ";", "}" ]
public InternalWorkbook GetStubWorkbook(){return CreateStubWorkbook(GetExternSheetRecords(), GetBoundSheetRecords(),GetSSTRecord());}
train
false
6,589
public ReactivatePhotosRequest() {super("CloudPhoto", "2017-07-11", "ReactivatePhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
[ "public", "ReactivatePhotosRequest", "(", ")", "{", "super", "(", "\"CloudPhoto\"", ",", "\"2017-07-11\"", ",", "\"ReactivatePhotos\"", ",", "\"cloudphoto\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "}" ]
public ReactivatePhotosRequest(): base("CloudPhoto", "2017-07-11", "ReactivatePhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
train
false
6,590
public DecisionTask pollForDecisionTask(PollForDecisionTaskRequest request) {request = beforeClientExecution(request);return executePollForDecisionTask(request);}
[ "public", "DecisionTask", "pollForDecisionTask", "(", "PollForDecisionTaskRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePollForDecisionTask", "(", "request", ")", ";", "}" ]
public virtual PollForDecisionTaskResponse PollForDecisionTask(PollForDecisionTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = PollForDecisionTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = PollForDecisionTaskResponseUnmarshaller.Instance;return Invoke<PollForDecisionTask...
train
true
6,591
public void write(LittleEndianOutput out) {out.writeByte(getSid() + getPtgClass());writeCoordinates(out);}
[ "public", "void", "write", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeByte", "(", "getSid", "(", ")", "+", "getPtgClass", "(", ")", ")", ";", "writeCoordinates", "(", "out", ")", ";", "}" ]
public override void Write(ILittleEndianOutput out1){out1.WriteByte(Sid + PtgClass);WriteCoordinates(out1);}
train
false
6,592
public Ref getTarget() {return target;}
[ "public", "Ref", "getTarget", "(", ")", "{", "return", "target", ";", "}" ]
public virtual Ref GetTarget(){return target;}
train
false
6,593
public CreateTagsResult createTags(CreateTagsRequest request) {request = beforeClientExecution(request);return executeCreateTags(request);}
[ "public", "CreateTagsResult", "createTags", "(", "CreateTagsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateTags", "(", "request", ")", ";", "}" ]
public virtual CreateTagsResponse CreateTags(CreateTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTagsResponseUnmarshaller.Instance;return Invoke<CreateTagsResponse>(request, options);}
train
true
6,594
public UpdateUserPhoneConfigResult updateUserPhoneConfig(UpdateUserPhoneConfigRequest request) {request = beforeClientExecution(request);return executeUpdateUserPhoneConfig(request);}
[ "public", "UpdateUserPhoneConfigResult", "updateUserPhoneConfig", "(", "UpdateUserPhoneConfigRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateUserPhoneConfig", "(", "request", ")", ";", "}" ]
public virtual UpdateUserPhoneConfigResponse UpdateUserPhoneConfig(UpdateUserPhoneConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUserPhoneConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUserPhoneConfigResponseUnmarshaller.Instance;return Invoke<UpdateUse...
train
true
6,595
public PersonIdent getSourceAuthor(int idx) {return sourceAuthors[idx];}
[ "public", "PersonIdent", "getSourceAuthor", "(", "int", "idx", ")", "{", "return", "sourceAuthors", "[", "idx", "]", ";", "}" ]
public virtual PersonIdent GetSourceAuthor(int idx){return sourceAuthors[idx];}
train
false
6,596
public void setLength(long sz) {setLength((int) sz);}
[ "public", "void", "setLength", "(", "long", "sz", ")", "{", "setLength", "(", "(", "int", ")", "sz", ")", ";", "}" ]
public virtual void SetLength(int sz){NB.EncodeInt32(info, infoOffset + P_SIZE, sz);}
train
false
6,597
public GetServerCertificateRequest(String serverCertificateName) {setServerCertificateName(serverCertificateName);}
[ "public", "GetServerCertificateRequest", "(", "String", "serverCertificateName", ")", "{", "setServerCertificateName", "(", "serverCertificateName", ")", ";", "}" ]
public GetServerCertificateRequest(string serverCertificateName){_serverCertificateName = serverCertificateName;}
train
false
6,598
public CreateStreamingDistributionWithTagsResult createStreamingDistributionWithTags(CreateStreamingDistributionWithTagsRequest request) {request = beforeClientExecution(request);return executeCreateStreamingDistributionWithTags(request);}
[ "public", "CreateStreamingDistributionWithTagsResult", "createStreamingDistributionWithTags", "(", "CreateStreamingDistributionWithTagsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateStreamingDistributionWithTa...
public virtual CreateStreamingDistributionWithTagsResponse CreateStreamingDistributionWithTags(CreateStreamingDistributionWithTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStreamingDistributionWithTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStreamingDis...
train
true
6,599
public DescribeNotificationSubscriptionsResult describeNotificationSubscriptions(DescribeNotificationSubscriptionsRequest request) {request = beforeClientExecution(request);return executeDescribeNotificationSubscriptions(request);}
[ "public", "DescribeNotificationSubscriptionsResult", "describeNotificationSubscriptions", "(", "DescribeNotificationSubscriptionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeNotificationSubscriptions", "...
public virtual DescribeNotificationSubscriptionsResponse DescribeNotificationSubscriptions(DescribeNotificationSubscriptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNotificationSubscriptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNotificationSubscr...
train
true
6,600
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[CHARTFRTINFO]\n");buffer.append(" .rt =").append(HexDump.shortToHex(rt)).append('\n');buffer.append(" .grbitFrt =").append(HexDump.shortToHex(grbitFrt)).append('\n');buffer.append(" .verOriginator=").append(HexDu...
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"[CHARTFRTINFO]\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .rt =\"", ")", ".", "append", ...
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[CHARTFRTINFO]\n");buffer.Append(" .rt =").Append(HexDump.ShortToHex(rt)).Append('\n');buffer.Append(" .grbitFrt =").Append(HexDump.ShortToHex(grbitFrt)).Append('\n');buffer.Append(" .verOriginator=").Appe...
train
false
6,601
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {double result;if (arg0 instanceof RefEval) {result = CountUtils.countMatchingCellsInRef((RefEval) arg0, predicate);} else if (arg0 instanceof ThreeDEval) {result = CountUtils.countMatchingCellsInArea((ThreeDEval) arg0, predicate);} else {th...
[ "public", "ValueEval", "evaluate", "(", "int", "srcRowIndex", ",", "int", "srcColumnIndex", ",", "ValueEval", "arg0", ")", "{", "double", "result", ";", "if", "(", "arg0", "instanceof", "RefEval", ")", "{", "result", "=", "CountUtils", ".", "countMatchingCells...
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){double result;if (arg0 is RefEval){result = CountUtils.CountMatchingCellsInRef((RefEval)arg0, predicate);}else if (arg0 is ThreeDEval){result = CountUtils.CountMatchingCellsInArea((ThreeDEval)arg0, predicate);}else{throw new Argumen...
train
false
6,602
public UpdateRestApiResult updateRestApi(UpdateRestApiRequest request) {request = beforeClientExecution(request);return executeUpdateRestApi(request);}
[ "public", "UpdateRestApiResult", "updateRestApi", "(", "UpdateRestApiRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateRestApi", "(", "request", ")", ";", "}" ]
public virtual UpdateRestApiResponse UpdateRestApi(UpdateRestApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRestApiRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRestApiResponseUnmarshaller.Instance;return Invoke<UpdateRestApiResponse>(request, options);}
train
true
6,603
public int size() {return ConcurrentHashMap.this.size();}
[ "public", "int", "size", "(", ")", "{", "return", "ConcurrentHashMap", ".", "this", ".", "size", "(", ")", ";", "}" ]
public override int size(){return this._enclosing._size;}
train
false
6,604
public EscherSimpleProperty( short propertyNumber, boolean isComplex, boolean isBlipId, int propertyValue ) {super( propertyNumber, isComplex, isBlipId );this.propertyValue = propertyValue;}
[ "public", "EscherSimpleProperty", "(", "short", "propertyNumber", ",", "boolean", "isComplex", ",", "boolean", "isBlipId", ",", "int", "propertyValue", ")", "{", "super", "(", "propertyNumber", ",", "isComplex", ",", "isBlipId", ")", ";", "this", ".", "propertyV...
public EscherSimpleProperty(short propertyNumber, bool isComplex, bool isBlipId, int propertyValue):base(propertyNumber, isComplex, isBlipId){this.propertyValue = propertyValue;}
train
false
6,605
public static boolean isEndOfRowBlock(int sid) {switch(sid) {case ViewDefinitionRecord.sid:case DrawingRecord.sid:case DrawingSelectionRecord.sid:case ObjRecord.sid:case TextObjectRecord.sid:case ColumnInfoRecord.sid: case GutsRecord.sid: case WindowOneRecord.sid:case WindowTwoRecord.sid:return true;case DVALRecord.s...
[ "public", "static", "boolean", "isEndOfRowBlock", "(", "int", "sid", ")", "{", "switch", "(", "sid", ")", "{", "case", "ViewDefinitionRecord", ".", "sid", ":", "case", "DrawingRecord", ".", "sid", ":", "case", "DrawingSelectionRecord", ".", "sid", ":", "case...
public static bool IsEndOfRowBlock(int sid){switch (sid){case ViewDefinitionRecord.sid: case DrawingRecord.sid:case DrawingSelectionRecord.sid:case ObjRecord.sid:case TextObjectRecord.sid:case ColumnInfoRecord.sid: case GutsRecord.sid: case WindowOneRecord.sid:case WindowTwoRecord.sid:return true;case ...
train
false
6,606
public RegistrantProfileRealNameVerificationRequest() {super("Domain-intl", "2017-12-18", "RegistrantProfileRealNameVerification", "domain");setMethod(MethodType.POST);}
[ "public", "RegistrantProfileRealNameVerificationRequest", "(", ")", "{", "super", "(", "\"Domain-intl\"", ",", "\"2017-12-18\"", ",", "\"RegistrantProfileRealNameVerification\"", ",", "\"domain\"", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public RegistrantProfileRealNameVerificationRequest(): base("Domain-intl", "2017-12-18", "RegistrantProfileRealNameVerification", "domain", "openAPI"){Method = MethodType.POST;}
train
false
6,607
public CreateProfileResult createProfile(CreateProfileRequest request) {request = beforeClientExecution(request);return executeCreateProfile(request);}
[ "public", "CreateProfileResult", "createProfile", "(", "CreateProfileRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateProfile", "(", "request", ")", ";", "}" ]
public virtual CreateProfileResponse CreateProfile(CreateProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateProfileResponseUnmarshaller.Instance;return Invoke<CreateProfileResponse>(request, options);}
train
true
6,608
public ObjectId idFor(int type, byte[] data, int off, int len) {SHA1 md = SHA1.newInstance();md.update(Constants.encodedTypeString(type));md.update((byte) ' ');md.update(Constants.encodeASCII(len));md.update((byte) 0);md.update(data, off, len);return md.toObjectId();}
[ "public", "ObjectId", "idFor", "(", "int", "type", ",", "byte", "[", "]", "data", ",", "int", "off", ",", "int", "len", ")", "{", "SHA1", "md", "=", "SHA1", ".", "newInstance", "(", ")", ";", "md", ".", "update", "(", "Constants", ".", "encodedType...
public virtual ObjectId IdFor(int type, byte[] data, int off, int len){MessageDigest md = Digest();md.Update(Constants.EncodedTypeString(type));md.Update(unchecked((byte)' '));md.Update(Constants.EncodeASCII(len));md.Update(unchecked((byte)0));md.Update(data, off, len);return ObjectId.FromRaw(md.Digest());}
train
false
6,609
public EndSubRecord clone() {return copy();}
[ "public", "EndSubRecord", "clone", "(", ")", "{", "return", "copy", "(", ")", ";", "}" ]
public override Object Clone(){EndSubRecord rec = new EndSubRecord();return rec;}
train
false
6,610
public SearchRepoRequest() {super("cr", "2016-06-07", "SearchRepo", "cr");setUriPattern("/search");setMethod(MethodType.GET);}
[ "public", "SearchRepoRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"SearchRepo\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/search\"", ")", ";", "setMethod", "(", "MethodType", ".", "GET", ")", ";", "}" ]
public SearchRepoRequest(): base("cr", "2016-06-07", "SearchRepo", "cr", "openAPI"){UriPattern = "/search";Method = MethodType.GET;}
train
false
6,611
public InputIterator getEntryIterator() {try {return new FileIterator();} catch (IOException e) {throw new RuntimeException(e);}}
[ "public", "InputIterator", "getEntryIterator", "(", ")", "{", "try", "{", "return", "new", "FileIterator", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "throw", "new", "RuntimeException", "(", "e", ")", ";", "}", "}" ]
public virtual IInputIterator GetEntryIterator(){try{return new FileIterator(this);}catch (IOException e){throw new Exception(e.ToString(), e);}}
train
false
6,613
public void setThumbOffset(int thumbOffset) {mThumbOffset = thumbOffset;invalidate();}
[ "public", "void", "setThumbOffset", "(", "int", "thumbOffset", ")", "{", "mThumbOffset", "=", "thumbOffset", ";", "invalidate", "(", ")", ";", "}" ]
public virtual void setThumbOffset(int thumbOffset){mThumbOffset = thumbOffset;invalidate();}
train
false
6,615
public GetFilterResult getFilter(GetFilterRequest request) {request = beforeClientExecution(request);return executeGetFilter(request);}
[ "public", "GetFilterResult", "getFilter", "(", "GetFilterRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetFilter", "(", "request", ")", ";", "}" ]
public virtual GetFilterResponse GetFilter(GetFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFilterResponseUnmarshaller.Instance;return Invoke<GetFilterResponse>(request, options);}
train
true
6,616
public static FontDetails create( String fontName, Properties fontMetricsProps ){String heightStr = fontMetricsProps.getProperty( buildFontHeightProperty(fontName) );String widthsStr = fontMetricsProps.getProperty( buildFontWidthsProperty(fontName) );String charactersStr = fontMetricsProps.getProperty( buildFontCharact...
[ "public", "static", "FontDetails", "create", "(", "String", "fontName", ",", "Properties", "fontMetricsProps", ")", "{", "String", "heightStr", "=", "fontMetricsProps", ".", "getProperty", "(", "buildFontHeightProperty", "(", "fontName", ")", ")", ";", "String", "...
public static FontDetails Create(String fontName, Properties fontMetricsProps){String heightStr = fontMetricsProps[BuildFontHeightProperty(fontName)];String widthsStr = fontMetricsProps[BuildFontWidthsProperty(fontName)];String CharsStr = fontMetricsProps[BuildFontCharsProperty(fontName)];if (heightStr == null || width...
train
false
6,617
public static void registerFunction(String name, Function func){FunctionMetadata metaData = FunctionMetadataRegistry.getFunctionByName(name);if(metaData == null) {if(AnalysisToolPak.isATPFunction(name)) {throw new IllegalArgumentException(name + " is a function from the Excel Analysis Toolpack. " +"Use AnalysisToolpack...
[ "public", "static", "void", "registerFunction", "(", "String", "name", ",", "Function", "func", ")", "{", "FunctionMetadata", "metaData", "=", "FunctionMetadataRegistry", ".", "getFunctionByName", "(", "name", ")", ";", "if", "(", "metaData", "==", "null", ")", ...
public static void RegisterFunction(String name, Function func){FunctionMetadata metaData = FunctionMetadataRegistry.GetFunctionByName(name);if (metaData == null){if (AnalysisToolPak.IsATPFunction(name)){throw new ArgumentException(name + " is a function from the Excel Analysis Toolpack. " +"Use AnalysisToolpack.Regist...
train
false
6,618
public SortedSetDocValuesField(String name, BytesRef bytes) {super(name, TYPE);fieldsData = bytes;}
[ "public", "SortedSetDocValuesField", "(", "String", "name", ",", "BytesRef", "bytes", ")", "{", "super", "(", "name", ",", "TYPE", ")", ";", "fieldsData", "=", "bytes", ";", "}" ]
public SortedSetDocValuesField(string name, BytesRef bytes): base(name, TYPE){FieldsData = bytes;}
train
false
6,620
public V get(Object key) {if (key == null) {HashMapEntry<K, V> e = entryForNullKey;return e == null ? null : e.value;}int hash = key.hashCode();hash ^= (hash >>> 20) ^ (hash >>> 12);hash ^= (hash >>> 7) ^ (hash >>> 4);HashMapEntry<K, V>[] tab = table;for (HashMapEntry<K, V> e = tab[hash & (tab.length - 1)];e != null; e...
[ "public", "V", "get", "(", "Object", "key", ")", "{", "if", "(", "key", "==", "null", ")", "{", "HashMapEntry", "<", "K", ",", "V", ">", "e", "=", "entryForNullKey", ";", "return", "e", "==", "null", "?", "null", ":", "e", ".", "value", ";", "}...
public override V get(object key){if (key == null){java.util.HashMap.HashMapEntry<K, V> e = entryForNullKey;return e == null ? default(V) : e.value;}int hash = key.GetHashCode();hash ^= ((int)(((uint)hash) >> 20)) ^ ((int)(((uint)hash) >> 12));hash ^= ((int)(((uint)hash) >> 7)) ^ ((int)(((uint)hash) >> 4));java.util.Ha...
train
false
6,621
public boolean hasSourceData(int idx) {return sourceLines[idx] != 0;}
[ "public", "boolean", "hasSourceData", "(", "int", "idx", ")", "{", "return", "sourceLines", "[", "idx", "]", "!=", "0", ";", "}" ]
public virtual bool HasSourceData(int idx){return sourceLines[idx] != 0;}
train
false
6,622
public CreateBotResult createBot(CreateBotRequest request) {request = beforeClientExecution(request);return executeCreateBot(request);}
[ "public", "CreateBotResult", "createBot", "(", "CreateBotRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateBot", "(", "request", ")", ";", "}" ]
public virtual CreateBotResponse CreateBot(CreateBotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBotResponseUnmarshaller.Instance;return Invoke<CreateBotResponse>(request, options);}
train
false
6,623
public UpdateMethodResponseResult updateMethodResponse(UpdateMethodResponseRequest request) {request = beforeClientExecution(request);return executeUpdateMethodResponse(request);}
[ "public", "UpdateMethodResponseResult", "updateMethodResponse", "(", "UpdateMethodResponseRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateMethodResponse", "(", "request", ")", ";", "}" ]
public virtual UpdateMethodResponseResponse UpdateMethodResponse(UpdateMethodResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMethodResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMethodResponseResponseUnmarshaller.Instance;return Invoke<UpdateMethodRe...
train
true
6,625
public String toString(Vocabulary vocabulary) {if (s0 == null) {return "";}DFASerializer serializer = new DFASerializer(this, vocabulary);return serializer.toString();}
[ "public", "String", "toString", "(", "Vocabulary", "vocabulary", ")", "{", "if", "(", "s0", "==", "null", ")", "{", "return", "\"\"", ";", "}", "DFASerializer", "serializer", "=", "new", "DFASerializer", "(", "this", ",", "vocabulary", ")", ";", "return", ...
public String ToString(IVocabulary vocabulary){if (s0 == null){return "";}DFASerializer serializer = new DFASerializer(this, vocabulary);return serializer.ToString();}
train
false
6,626
public CreateApiKeyResult createApiKey(CreateApiKeyRequest request) {request = beforeClientExecution(request);return executeCreateApiKey(request);}
[ "public", "CreateApiKeyResult", "createApiKey", "(", "CreateApiKeyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateApiKey", "(", "request", ")", ";", "}" ]
public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateApiKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateApiKeyResponseUnmarshaller.Instance;return Invoke<CreateApiKeyResponse>(request, options);}
train
true
6,627
public DetachTypedLinkResult detachTypedLink(DetachTypedLinkRequest request) {request = beforeClientExecution(request);return executeDetachTypedLink(request);}
[ "public", "DetachTypedLinkResult", "detachTypedLink", "(", "DetachTypedLinkRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDetachTypedLink", "(", "request", ")", ";", "}" ]
public virtual DetachTypedLinkResponse DetachTypedLink(DetachTypedLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachTypedLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachTypedLinkResponseUnmarshaller.Instance;return Invoke<DetachTypedLinkResponse>(request, optio...
train
true
6,628
public ExternSheetRecord[] getExternSheetRecords() {return externSheetRecords.toArray(new ExternSheetRecord[0]);}
[ "public", "ExternSheetRecord", "[", "]", "getExternSheetRecords", "(", ")", "{", "return", "externSheetRecords", ".", "toArray", "(", "new", "ExternSheetRecord", "[", "0", "]", ")", ";", "}" ]
public ExternSheetRecord[] GetExternSheetRecords(){return (ExternSheetRecord[])externSheetRecords.ToArray(typeof(ExternSheetRecord));}
train
false
6,629
public DescribeNetworkInterfaceAttributeResult describeNetworkInterfaceAttribute(DescribeNetworkInterfaceAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeNetworkInterfaceAttribute(request);}
[ "public", "DescribeNetworkInterfaceAttributeResult", "describeNetworkInterfaceAttribute", "(", "DescribeNetworkInterfaceAttributeRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeNetworkInterfaceAttribute", "...
public virtual DescribeNetworkInterfaceAttributeResponse DescribeNetworkInterfaceAttribute(DescribeNetworkInterfaceAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNetworkInterfaceAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNetworkInterfaceAt...
train
true
6,630
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[TABID]\n");buffer.append(" .elements = ").append(_tabids.length).append("\n");for (int i = 0; i < _tabids.length; i++) {buffer.append(" .element_").append(i).append(" = ").append(_tabids[i]).append("\n");}buffer.append("[/...
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"[TABID]\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .elements = \"", ")", ".", "append", "...
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[TABID]\n");buffer.Append(" .elements = ").Append(_tabids.Length).Append("\n");for (int k = 0; k < _tabids.Length; k++){buffer.Append(" .element_" + k + " = ").Append(_tabids[k]).Append("\n");}buffer.Append("[...
train
false
6,631
public long ramBytesUsed() {long ramBytesUsed = BASE_RAM_BYTES_USED;ramBytesUsed += (postingsReader!=null) ? postingsReader.ramBytesUsed() : 0;ramBytesUsed += (indexReader!=null) ? indexReader.ramBytesUsed() : 0;ramBytesUsed += fields.size() * 2L * RamUsageEstimator.NUM_BYTES_OBJECT_REF;for (FieldReader reader : fields...
[ "public", "long", "ramBytesUsed", "(", ")", "{", "long", "ramBytesUsed", "=", "BASE_RAM_BYTES_USED", ";", "ramBytesUsed", "+=", "(", "postingsReader", "!=", "null", ")", "?", "postingsReader", ".", "ramBytesUsed", "(", ")", ":", "0", ";", "ramBytesUsed", "+=",...
public override long RamBytesUsed(){long sizeInBytes = (postingsReader != null) ? postingsReader.RamBytesUsed() : 0;sizeInBytes += (indexReader != null) ? indexReader.RamBytesUsed() : 0;return sizeInBytes;}
train
false
6,633
public RecognizePetRequest() {super("visionai-poc", "2020-04-08", "RecognizePet");setMethod(MethodType.POST);}
[ "public", "RecognizePetRequest", "(", ")", "{", "super", "(", "\"visionai-poc\"", ",", "\"2020-04-08\"", ",", "\"RecognizePet\"", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public RecognizePetRequest(): base("visionai-poc", "2020-04-08", "RecognizePet"){Method = MethodType.POST;}
train
false
6,634
public ImportRestApiResult importRestApi(ImportRestApiRequest request) {request = beforeClientExecution(request);return executeImportRestApi(request);}
[ "public", "ImportRestApiResult", "importRestApi", "(", "ImportRestApiRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeImportRestApi", "(", "request", ")", ";", "}" ]
public virtual ImportRestApiResponse ImportRestApi(ImportRestApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportRestApiRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportRestApiResponseUnmarshaller.Instance;return Invoke<ImportRestApiResponse>(request, options);}
train
true
6,635
public void serialize(LittleEndianOutput out) {out.writeShort(field_1_anchorId);out.writeShort(field_2_link1);out.writeShort(field_3_link2);}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeShort", "(", "field_1_anchorId", ")", ";", "out", ".", "writeShort", "(", "field_2_link1", ")", ";", "out", ".", "writeShort", "(", "field_3_link2", ")", ";", "}" ]
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_anchorId);out1.WriteShort(field_2_link1);out1.WriteShort(field_3_link2);}
train
false
6,636
public DescribeSnapshotAttributeRequest(String snapshotId, SnapshotAttributeName attribute) {setSnapshotId(snapshotId);setAttribute(attribute.toString());}
[ "public", "DescribeSnapshotAttributeRequest", "(", "String", "snapshotId", ",", "SnapshotAttributeName", "attribute", ")", "{", "setSnapshotId", "(", "snapshotId", ")", ";", "setAttribute", "(", "attribute", ".", "toString", "(", ")", ")", ";", "}" ]
public DescribeSnapshotAttributeRequest(string snapshotId, SnapshotAttributeName attribute){_snapshotId = snapshotId;_attribute = attribute;}
train
false
6,637
public Token recoverInline(Parser recognizer)throws RecognitionException{Token matchedSymbol = singleTokenDeletion(recognizer);if ( matchedSymbol!=null ) {recognizer.consume();return matchedSymbol;}if ( singleTokenInsertion(recognizer) ) {return getMissingSymbol(recognizer);}InputMismatchException e;if (nextTokensConte...
[ "public", "Token", "recoverInline", "(", "Parser", "recognizer", ")", "throws", "RecognitionException", "{", "Token", "matchedSymbol", "=", "singleTokenDeletion", "(", "recognizer", ")", ";", "if", "(", "matchedSymbol", "!=", "null", ")", "{", "recognizer", ".", ...
public virtual IToken RecoverInline(Parser recognizer){IToken matchedSymbol = SingleTokenDeletion(recognizer);if (matchedSymbol != null){recognizer.Consume();return matchedSymbol;}if (SingleTokenInsertion(recognizer)){return GetMissingSymbol(recognizer);}throw new InputMismatchException(recognizer);}
train
false
6,638
public MultiCategoryListsFacetsExample() {config.setIndexFieldName("Author", "author");config.setIndexFieldName("Publish Date", "pubdate");config.setHierarchical("Publish Date", true);}
[ "public", "MultiCategoryListsFacetsExample", "(", ")", "{", "config", ".", "setIndexFieldName", "(", "\"Author\"", ",", "\"author\"", ")", ";", "config", ".", "setIndexFieldName", "(", "\"Publish Date\"", ",", "\"pubdate\"", ")", ";", "config", ".", "setHierarchical...
public MultiCategoryListsFacetsExample(){config.SetIndexFieldName("Author", "author");config.SetIndexFieldName("Publish Date", "pubdate");config.SetHierarchical("Publish Date", true);}
train
false
6,639
public GetAddressBookResult getAddressBook(GetAddressBookRequest request) {request = beforeClientExecution(request);return executeGetAddressBook(request);}
[ "public", "GetAddressBookResult", "getAddressBook", "(", "GetAddressBookRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetAddressBook", "(", "request", ")", ";", "}" ]
public virtual GetAddressBookResponse GetAddressBook(GetAddressBookRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAddressBookRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAddressBookResponseUnmarshaller.Instance;return Invoke<GetAddressBookResponse>(request, options);}
train
true
6,640
public PatternFormatting() {field_15_pattern_style = 0;field_16_pattern_color_indexes = 0;}
[ "public", "PatternFormatting", "(", ")", "{", "field_15_pattern_style", "=", "0", ";", "field_16_pattern_color_indexes", "=", "0", ";", "}" ]
public PatternFormatting(){field_15_pattern_style = (short)0;field_16_pattern_color_indexes = (short)0;}
train
false
6,641
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg1, ValueEval arg2) {try {Double number1 = evaluateValue(arg1, srcRowIndex, srcColumnIndex);if (number1 == null) {return ErrorEval.VALUE_INVALID;}Double number2 = evaluateValue(arg2, srcRowIndex, srcColumnIndex);if (number2 == null) {return Erro...
[ "public", "ValueEval", "evaluate", "(", "int", "srcRowIndex", ",", "int", "srcColumnIndex", ",", "ValueEval", "arg1", ",", "ValueEval", "arg2", ")", "{", "try", "{", "Double", "number1", "=", "evaluateValue", "(", "arg1", ",", "srcRowIndex", ",", "srcColumnInd...
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg1, ValueEval arg2){ValueEval veText1;try{veText1 = OperandResolver.GetSingleValue(arg1, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}String strText1 = OperandResolver.CoerceValueToString(veText1)...
train
false
6,642
public final double getDouble() {return Double.longBitsToDouble(getLong());}
[ "public", "final", "double", "getDouble", "(", ")", "{", "return", "Double", ".", "longBitsToDouble", "(", "getLong", "(", ")", ")", ";", "}" ]
public sealed override double getDouble(){return Sharpen.Util.LongBitsToDouble(getLong());}
train
false
6,643
public Principal(String provider, String id, boolean stripHyphen) {this.provider = provider;this.id = stripHyphen ?id.replace("-", "") : id;}
[ "public", "Principal", "(", "String", "provider", ",", "String", "id", ",", "boolean", "stripHyphen", ")", "{", "this", ".", "provider", "=", "provider", ";", "this", ".", "id", "=", "stripHyphen", "?", "id", ".", "replace", "(", "\"-\"", ",", "\"\"", ...
public Principal(string provider, string id, bool stripHyphen){this.provider = provider;if (stripHyphen){id = id.Replace("-", "");}this.id = id;}
train
false
6,644
public ListJobsResult listJobs() {return listJobs(new ListJobsRequest());}
[ "public", "ListJobsResult", "listJobs", "(", ")", "{", "return", "listJobs", "(", "new", "ListJobsRequest", "(", ")", ")", ";", "}" ]
public virtual ListJobsResponse ListJobs(){return ListJobs(new ListJobsRequest());}
train
false
6,645
public CharBuffer slice() {byteBuffer.limit(limit * SizeOf.CHAR);byteBuffer.position(position * SizeOf.CHAR);ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());CharBuffer result = new CharToByteBufferAdapter(bb);byteBuffer.clear();return result;}
[ "public", "CharBuffer", "slice", "(", ")", "{", "byteBuffer", ".", "limit", "(", "limit", "*", "SizeOf", ".", "CHAR", ")", ";", "byteBuffer", ".", "position", "(", "position", "*", "SizeOf", ".", "CHAR", ")", ";", "ByteBuffer", "bb", "=", "byteBuffer", ...
public override java.nio.CharBuffer slice(){byteBuffer.limit(_limit * libcore.io.SizeOf.CHAR);byteBuffer.position(_position * libcore.io.SizeOf.CHAR);java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());java.nio.CharBuffer result = new java.nio.CharToByteBufferAdapter(bb);byteBuffer.clear();return resu...
train
false
6,646
public static final int tagMessage(byte[] b, int ptr) {final int sz = b.length;if (ptr == 0)ptr += 48; while (ptr < sz && b[ptr] != '\n')ptr = nextLF(b, ptr);if (ptr < sz && b[ptr] == '\n')return ptr + 1;return -1;}
[ "public", "static", "final", "int", "tagMessage", "(", "byte", "[", "]", "b", ",", "int", "ptr", ")", "{", "final", "int", "sz", "=", "b", ".", "length", ";", "if", "(", "ptr", "==", "0", ")", "ptr", "+=", "48", ";", "while", "(", "ptr", "<", ...
public static int TagMessage(byte[] b, int ptr){int sz = b.Length;if (ptr == 0){ptr += 48;}while (ptr < sz && b[ptr] != '\n'){ptr = NextLF(b, ptr);}if (ptr < sz && b[ptr] == '\n'){return ptr + 1;}return -1;}
train
false
6,647
public RebootBrokerResult rebootBroker(RebootBrokerRequest request) {request = beforeClientExecution(request);return executeRebootBroker(request);}
[ "public", "RebootBrokerResult", "rebootBroker", "(", "RebootBrokerRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRebootBroker", "(", "request", ")", ";", "}" ]
public virtual RebootBrokerResponse RebootBroker(RebootBrokerRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootBrokerRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootBrokerResponseUnmarshaller.Instance;return Invoke<RebootBrokerResponse>(request, options);}
train
true
6,648
public int getLastInternalSheetIndexForExtIndex(int extRefIndex) {if (extRefIndex >= _externSheetRecord.getNumOfRefs() || extRefIndex < 0) {return -1;}return _externSheetRecord.getLastSheetIndexFromRefIndex(extRefIndex);}
[ "public", "int", "getLastInternalSheetIndexForExtIndex", "(", "int", "extRefIndex", ")", "{", "if", "(", "extRefIndex", ">=", "_externSheetRecord", ".", "getNumOfRefs", "(", ")", "||", "extRefIndex", "<", "0", ")", "{", "return", "-", "1", ";", "}", "return", ...
public int GetLastInternalSheetIndexForExtIndex(int extRefIndex){if (extRefIndex >= _externSheetRecord.NumOfRefs || extRefIndex < 0){return -1;}return _externSheetRecord.GetLastSheetIndexFromRefIndex(extRefIndex);}
train
false
6,649
public RemoveTagsFromOnPremisesInstancesResult removeTagsFromOnPremisesInstances(RemoveTagsFromOnPremisesInstancesRequest request) {request = beforeClientExecution(request);return executeRemoveTagsFromOnPremisesInstances(request);}
[ "public", "RemoveTagsFromOnPremisesInstancesResult", "removeTagsFromOnPremisesInstances", "(", "RemoveTagsFromOnPremisesInstancesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRemoveTagsFromOnPremisesInstances", "...
public virtual RemoveTagsFromOnPremisesInstancesResponse RemoveTagsFromOnPremisesInstances(RemoveTagsFromOnPremisesInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveTagsFromOnPremisesInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveTagsFromOnPremisesIn...
train
true
6,650
public static final int nextLF(byte[] b, int ptr) {return next(b, ptr, '\n');}
[ "public", "static", "final", "int", "nextLF", "(", "byte", "[", "]", "b", ",", "int", "ptr", ")", "{", "return", "next", "(", "b", ",", "ptr", ",", "'\\n'", ")", ";", "}" ]
public static int NextLF(byte[] b, int ptr){return Next(b, ptr, '\n');}
train
false
6,651
public boolean equals(Object other) {return sameClassAs(other) &&equalsTo(getClass().cast(other));}
[ "public", "boolean", "equals", "(", "Object", "other", ")", "{", "return", "sameClassAs", "(", "other", ")", "&&", "equalsTo", "(", "getClass", "(", ")", ".", "cast", "(", "other", ")", ")", ";", "}" ]
public override bool Equals(object obj){if (!(obj is DrillDownQuery)){return false;}DrillDownQuery other = (DrillDownQuery)obj;return query.Equals(other.query) && base.Equals(other);}
train
false
6,652
public void setResult(ReceiveCommand.Result status) {result = decode(status);super.setResult(status);}
[ "public", "void", "setResult", "(", "ReceiveCommand", ".", "Result", "status", ")", "{", "result", "=", "decode", "(", "status", ")", ";", "super", ".", "setResult", "(", "status", ")", ";", "}" ]
public override void SetResult(ReceiveCommand.Result status){this._enclosing.result = this.Decode(status);base.SetResult(status);}
train
false
6,653
public UpdateIAMPolicyAssignmentResult updateIAMPolicyAssignment(UpdateIAMPolicyAssignmentRequest request) {request = beforeClientExecution(request);return executeUpdateIAMPolicyAssignment(request);}
[ "public", "UpdateIAMPolicyAssignmentResult", "updateIAMPolicyAssignment", "(", "UpdateIAMPolicyAssignmentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateIAMPolicyAssignment", "(", "request", ")", ";", ...
public virtual UpdateIAMPolicyAssignmentResponse UpdateIAMPolicyAssignment(UpdateIAMPolicyAssignmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateIAMPolicyAssignmentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateIAMPolicyAssignmentResponseUnmarshaller.Instance;ret...
train
false
6,654
public ExportImageResult exportImage(ExportImageRequest request) {request = beforeClientExecution(request);return executeExportImage(request);}
[ "public", "ExportImageResult", "exportImage", "(", "ExportImageRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeExportImage", "(", "request", ")", ";", "}" ]
public virtual ExportImageResponse ExportImage(ExportImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExportImageRequestMarshaller.Instance;options.ResponseUnmarshaller = ExportImageResponseUnmarshaller.Instance;return Invoke<ExportImageResponse>(request, options);}
train
false
6,655
public ListTopicsDetectionJobsResult listTopicsDetectionJobs(ListTopicsDetectionJobsRequest request) {request = beforeClientExecution(request);return executeListTopicsDetectionJobs(request);}
[ "public", "ListTopicsDetectionJobsResult", "listTopicsDetectionJobs", "(", "ListTopicsDetectionJobsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListTopicsDetectionJobs", "(", "request", ")", ";", "}" ]
public virtual ListTopicsDetectionJobsResponse ListTopicsDetectionJobs(ListTopicsDetectionJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTopicsDetectionJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTopicsDetectionJobsResponseUnmarshaller.Instance;return Invoke...
train
true
6,656
public static IntBuffer wrap(int[] array, int start, int intCount) {Arrays.checkOffsetAndCount(array.length, start, intCount);IntBuffer buf = new ReadWriteIntArrayBuffer(array);buf.position = start;buf.limit = start + intCount;return buf;}
[ "public", "static", "IntBuffer", "wrap", "(", "int", "[", "]", "array", ",", "int", "start", ",", "int", "intCount", ")", "{", "Arrays", ".", "checkOffsetAndCount", "(", "array", ".", "length", ",", "start", ",", "intCount", ")", ";", "IntBuffer", "buf",...
public static java.nio.IntBuffer wrap(int[] array_1, int start, int intCount){java.util.Arrays.checkOffsetAndCount(array_1.Length, start, intCount);java.nio.IntBuffer buf = new java.nio.ReadWriteIntArrayBuffer(array_1);buf._position = start;buf._limit = start + intCount;return buf;}
train
false
6,657
public ListDeploymentTargetsResult listDeploymentTargets(ListDeploymentTargetsRequest request) {request = beforeClientExecution(request);return executeListDeploymentTargets(request);}
[ "public", "ListDeploymentTargetsResult", "listDeploymentTargets", "(", "ListDeploymentTargetsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListDeploymentTargets", "(", "request", ")", ";", "}" ]
public virtual ListDeploymentTargetsResponse ListDeploymentTargets(ListDeploymentTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeploymentTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeploymentTargetsResponseUnmarshaller.Instance;return Invoke<ListDeplo...
train
true
6,658
public HSSFTextbox createTextbox(HSSFChildAnchor anchor) {HSSFTextbox shape = new HSSFTextbox(this, anchor);shape.setParent(this);shape.setAnchor(anchor);shapes.add(shape);onCreate(shape);return shape;}
[ "public", "HSSFTextbox", "createTextbox", "(", "HSSFChildAnchor", "anchor", ")", "{", "HSSFTextbox", "shape", "=", "new", "HSSFTextbox", "(", "this", ",", "anchor", ")", ";", "shape", ".", "setParent", "(", "this", ")", ";", "shape", ".", "setAnchor", "(", ...
public HSSFTextbox CreateTextbox(HSSFChildAnchor anchor){HSSFTextbox shape = new HSSFTextbox(this, anchor);shape.Parent = this;shape.Anchor = anchor;shapes.Add(shape);OnCreate(shape);return shape;}
train
false
6,659
public CreateStreamProcessorResult createStreamProcessor(CreateStreamProcessorRequest request) {request = beforeClientExecution(request);return executeCreateStreamProcessor(request);}
[ "public", "CreateStreamProcessorResult", "createStreamProcessor", "(", "CreateStreamProcessorRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateStreamProcessor", "(", "request", ")", ";", "}" ]
public virtual CreateStreamProcessorResponse CreateStreamProcessor(CreateStreamProcessorRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStreamProcessorRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStreamProcessorResponseUnmarshaller.Instance;return Invoke<CreateStr...
train
true
6,660
public boolean matches(char s[], int len) {return (len - suffix.length >= min && endsWith(s, len, suffix));}
[ "public", "boolean", "matches", "(", "char", "s", "[", "]", ",", "int", "len", ")", "{", "return", "(", "len", "-", "suffix", ".", "length", ">=", "min", "&&", "endsWith", "(", "s", ",", "len", ",", "suffix", ")", ")", ";", "}" ]
public virtual bool Matches(char[] s, int len){return (len - m_suffix.Length >= m_min && StemmerUtil.EndsWith(s, len, m_suffix));}
train
false
6,661
public void setFontStyle(boolean italic, boolean bold){boolean modified = italic || bold;fontFormatting.setItalic(italic);fontFormatting.setBold(bold);fontFormatting.setFontStyleModified(modified);fontFormatting.setFontWieghtModified(modified);}
[ "public", "void", "setFontStyle", "(", "boolean", "italic", ",", "boolean", "bold", ")", "{", "boolean", "modified", "=", "italic", "||", "bold", ";", "fontFormatting", ".", "setItalic", "(", "italic", ")", ";", "fontFormatting", ".", "setBold", "(", "bold",...
public void SetFontStyle(bool italic, bool bold){bool modified = italic || bold;fontFormatting.IsItalic=italic;fontFormatting.IsBold=bold;fontFormatting.IsFontStyleModified=modified;fontFormatting.IsFontWeightModified=modified;}
train
false
6,662
public void writeShort(int value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeShort(value);}
[ "public", "void", "writeShort", "(", "int", "value", ")", "throws", "IOException", "{", "checkWritePrimitiveTypes", "(", ")", ";", "primitiveTypes", ".", "writeShort", "(", "value", ")", ";", "}" ]
public virtual void writeShort(int value){throw new System.NotImplementedException();}
train
false
6,663
public CreateEntityRecognizerResult createEntityRecognizer(CreateEntityRecognizerRequest request) {request = beforeClientExecution(request);return executeCreateEntityRecognizer(request);}
[ "public", "CreateEntityRecognizerResult", "createEntityRecognizer", "(", "CreateEntityRecognizerRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateEntityRecognizer", "(", "request", ")", ";", "}" ]
public virtual CreateEntityRecognizerResponse CreateEntityRecognizer(CreateEntityRecognizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEntityRecognizerRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEntityRecognizerResponseUnmarshaller.Instance;return Invoke<Crea...
train
true
6,664
public DescribeContributorInsightsResult describeContributorInsights(DescribeContributorInsightsRequest request) {request = beforeClientExecution(request);return executeDescribeContributorInsights(request);}
[ "public", "DescribeContributorInsightsResult", "describeContributorInsights", "(", "DescribeContributorInsightsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeContributorInsights", "(", "request", ")", ...
public virtual DescribeContributorInsightsResponse DescribeContributorInsights(DescribeContributorInsightsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeContributorInsightsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeContributorInsightsResponseUnmarshaller.In...
train
false
6,665
public CreateLaunchConfigurationResult createLaunchConfiguration(CreateLaunchConfigurationRequest request) {request = beforeClientExecution(request);return executeCreateLaunchConfiguration(request);}
[ "public", "CreateLaunchConfigurationResult", "createLaunchConfiguration", "(", "CreateLaunchConfigurationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateLaunchConfiguration", "(", "request", ")", ";", ...
public virtual CreateLaunchConfigurationResponse CreateLaunchConfiguration(CreateLaunchConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLaunchConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLaunchConfigurationResponseUnmarshaller.Instance;ret...
train
true
6,666
public int read() throws IOException {checkReadPrimitiveTypes();return primitiveData.read();}
[ "public", "int", "read", "(", ")", "throws", "IOException", "{", "checkReadPrimitiveTypes", "(", ")", ";", "return", "primitiveData", ".", "read", "(", ")", ";", "}" ]
public override int read(){throw new System.NotImplementedException();}
train
false
6,667
public TokenStream create(TokenStream input) {return new LimitTokenCountFilter(input, maxTokenCount, consumeAllTokens);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "LimitTokenCountFilter", "(", "input", ",", "maxTokenCount", ",", "consumeAllTokens", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new LimitTokenCountFilter(input, maxTokenCount, consumeAllTokens);}
train
false
6,668
public CharBuffer asReadOnlyBuffer() {return duplicate();}
[ "public", "CharBuffer", "asReadOnlyBuffer", "(", ")", "{", "return", "duplicate", "(", ")", ";", "}" ]
public override java.nio.CharBuffer asReadOnlyBuffer(){return duplicate();}
train
false
6,669
public GetConsoleScreenshotResult getConsoleScreenshot(GetConsoleScreenshotRequest request) {request = beforeClientExecution(request);return executeGetConsoleScreenshot(request);}
[ "public", "GetConsoleScreenshotResult", "getConsoleScreenshot", "(", "GetConsoleScreenshotRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetConsoleScreenshot", "(", "request", ")", ";", "}" ]
public virtual GetConsoleScreenshotResponse GetConsoleScreenshot(GetConsoleScreenshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConsoleScreenshotRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConsoleScreenshotResponseUnmarshaller.Instance;return Invoke<GetConsoleScre...
train
true
6,670
public DrawingRecordForBiffViewer(DrawingRecord r){super(convertToInputStream(r));convertRawBytesToEscherRecords();}
[ "public", "DrawingRecordForBiffViewer", "(", "DrawingRecord", "r", ")", "{", "super", "(", "convertToInputStream", "(", "r", ")", ")", ";", "convertRawBytesToEscherRecords", "(", ")", ";", "}" ]
public DrawingRecordForBiffViewer(DrawingRecord r): base(ConvertToInputStream(r)){ConvertRawBytesToEscherRecords();}
train
false
6,671
public boolean hasPrevious() {return pos >= 0;}
[ "public", "boolean", "hasPrevious", "(", ")", "{", "return", "pos", ">=", "0", ";", "}" ]
public bool hasPrevious(){return this.pos >= 0;}
train
false
6,672
public NotImplemented(String functionName) {_functionName = functionName;}
[ "public", "NotImplemented", "(", "String", "functionName", ")", "{", "_functionName", "=", "functionName", ";", "}" ]
public NotImplemented(String functionName){_functionName = functionName;}
train
false
6,673
public UpdateDirectoryConfigResult updateDirectoryConfig(UpdateDirectoryConfigRequest request) {request = beforeClientExecution(request);return executeUpdateDirectoryConfig(request);}
[ "public", "UpdateDirectoryConfigResult", "updateDirectoryConfig", "(", "UpdateDirectoryConfigRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateDirectoryConfig", "(", "request", ")", ";", "}" ]
public virtual UpdateDirectoryConfigResponse UpdateDirectoryConfig(UpdateDirectoryConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDirectoryConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDirectoryConfigResponseUnmarshaller.Instance;return Invoke<UpdateDir...
train
true
6,674
public DeleteQualificationTypeResult deleteQualificationType(DeleteQualificationTypeRequest request) {request = beforeClientExecution(request);return executeDeleteQualificationType(request);}
[ "public", "DeleteQualificationTypeResult", "deleteQualificationType", "(", "DeleteQualificationTypeRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteQualificationType", "(", "request", ")", ";", "}" ]
public virtual DeleteQualificationTypeResponse DeleteQualificationType(DeleteQualificationTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteQualificationTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteQualificationTypeResponseUnmarshaller.Instance;return Invoke...
train
true
6,675
@Override public void clear() {throw new UnsupportedOperationException();}
[ "@", "Override", "public", "void", "clear", "(", ")", "{", "throw", "new", "UnsupportedOperationException", "(", ")", ";", "}" ]
public virtual void clear(){throw new System.NotSupportedException();}
train
false
6,676
public int startNewSlice() {return offset = pool.newSlice(FIRST_LEVEL_SIZE) + pool.intOffset;}
[ "public", "int", "startNewSlice", "(", ")", "{", "return", "offset", "=", "pool", ".", "newSlice", "(", "FIRST_LEVEL_SIZE", ")", "+", "pool", ".", "intOffset", ";", "}" ]
public virtual int StartNewSlice(){return offset = pool.NewSlice(FIRST_LEVEL_SIZE) + pool.Int32Offset;}
train
false
6,677
public void postInvalidate() {if (!mNoInvalidate) {super.postInvalidate();}}
[ "public", "void", "postInvalidate", "(", ")", "{", "if", "(", "!", "mNoInvalidate", ")", "{", "super", ".", "postInvalidate", "(", ")", ";", "}", "}" ]
public override void postInvalidate(){if (!mNoInvalidate){base.postInvalidate();}}
train
false
6,678
public List<FacetEntry> getFacetEntries(int offset, int limit) {List<FacetEntry> entries = new LinkedList<>();int skipped = 0;int included = 0;for (FacetEntry facetEntry : facetEntries) {if (skipped < offset) {skipped++;continue;}if (included++ >= limit) {break;}entries.add(facetEntry);}return entries;}
[ "public", "List", "<", "FacetEntry", ">", "getFacetEntries", "(", "int", "offset", ",", "int", "limit", ")", "{", "List", "<", "FacetEntry", ">", "entries", "=", "new", "LinkedList", "<", ">", "(", ")", ";", "int", "skipped", "=", "0", ";", "int", "i...
public virtual IList<FacetEntry> GetFacetEntries(int offset, int limit){List<FacetEntry> entries = new List<FacetEntry>();int skipped = 0;int included = 0;foreach (FacetEntry facetEntry in facetEntries){if (skipped < offset){skipped++;continue;}if (included++ >= limit){break;}entries.Add(facetEntry);}return entries;}
train
false
6,679
public static synchronized CoderResult unmappableForLength(int length)throws IllegalArgumentException {if (length > 0) {Integer key = Integer.valueOf(length);synchronized (_unmappableErrors) {CoderResult r = _unmappableErrors.get(key);if (r == null) {r = new CoderResult(TYPE_UNMAPPABLE_CHAR, length);_unmappableErrors.p...
[ "public", "static", "synchronized", "CoderResult", "unmappableForLength", "(", "int", "length", ")", "throws", "IllegalArgumentException", "{", "if", "(", "length", ">", "0", ")", "{", "Integer", "key", "=", "Integer", ".", "valueOf", "(", "length", ")", ";", ...
public static java.nio.charset.CoderResult unmappableForLength(int length_1){lock (typeof(CoderResult)){if (length_1 > 0){int key = Sharpen.Util.IntValueOf(length_1);lock (_unmappableErrors){java.nio.charset.CoderResult r = _unmappableErrors.get(key);if (r == null){r = new java.nio.charset.CoderResult(TYPE_UNMAPPABLE_C...
train
true
6,680
public UpdateDetectorVersionStatusResult updateDetectorVersionStatus(UpdateDetectorVersionStatusRequest request) {request = beforeClientExecution(request);return executeUpdateDetectorVersionStatus(request);}
[ "public", "UpdateDetectorVersionStatusResult", "updateDetectorVersionStatus", "(", "UpdateDetectorVersionStatusRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateDetectorVersionStatus", "(", "request", ")", ...
public virtual UpdateDetectorVersionStatusResponse UpdateDetectorVersionStatus(UpdateDetectorVersionStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDetectorVersionStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDetectorVersionStatusResponseUnmarshaller.In...
train
false
6,681
public void remove() {iterator.remove();subList.sizeChanged(false);end--;}
[ "public", "void", "remove", "(", ")", "{", "iterator", ".", "remove", "(", ")", ";", "subList", ".", "sizeChanged", "(", "false", ")", ";", "end", "--", ";", "}" ]
public void remove(){iterator.remove();subList.sizeChanged(false);end--;}
train
false
6,682
public void setRef(Character way, int ref) {Cell c = at(way);if (c == null) {c = new Cell();c.ref = ref;cells.put(way, c);} else {c.ref = ref;}}
[ "public", "void", "setRef", "(", "Character", "way", ",", "int", "ref", ")", "{", "Cell", "c", "=", "at", "(", "way", ")", ";", "if", "(", "c", "==", "null", ")", "{", "c", "=", "new", "Cell", "(", ")", ";", "c", ".", "ref", "=", "ref", ";"...
public void SetRef(char way, int @ref){Cell c = At(way);if (c == null){c = new Cell();c.@ref = @ref;cells[way] = c;}else{c.@ref = @ref;}}
train
false
6,683
public QueryNodeProcessorPipeline(QueryConfigHandler queryConfigHandler) {this.queryConfig = queryConfigHandler;}
[ "public", "QueryNodeProcessorPipeline", "(", "QueryConfigHandler", "queryConfigHandler", ")", "{", "this", ".", "queryConfig", "=", "queryConfigHandler", ";", "}" ]
public QueryNodeProcessorPipeline(QueryConfigHandler queryConfigHandler){this.queryConfig = queryConfigHandler;}
train
false
6,684
public IllegalFormatPrecisionException(int p) {this.p = p;}
[ "public", "IllegalFormatPrecisionException", "(", "int", "p", ")", "{", "this", ".", "p", "=", "p", ";", "}" ]
public IllegalFormatPrecisionException(int p){this.p = p;}
train
false