idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
942,573 | private void sortTable(Table table) {<NEW_LINE>TableItem[] items = table.getItems();<NEW_LINE>Collator collator = Collator.getInstance(Locale.getDefault());<NEW_LINE>for (int i = 1; i < items.length; i++) {<NEW_LINE>String value1 = items[i].getText(0);<NEW_LINE>for (int j = 0; j < i; j++) {<NEW_LINE>String value2 = ite... | [i].getText(0); |
1,325,179 | final ModifyAuthenticationProfileResult executeModifyAuthenticationProfile(ModifyAuthenticationProfileRequest modifyAuthenticationProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyAuthenticationProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Redshift"); |
872,389 | public void savePoiFilter() {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(this);<NEW_LINE>builder.setTitle(R.string.edit_filter_save_as_menu_item);<NEW_LINE>final EditText editText = new EditText(this);<NEW_LINE>if (filter.isStandardFilter()) {<NEW_LINE>editText.setText((filter.getName() + " " + sear... | LinearLayout ll = new LinearLayout(this); |
1,024,610 | static void printTrait(CdmTraitReferenceBase trait) {<NEW_LINE>if (!com.microsoft.commondatamodel.objectmodel.utilities.StringUtils.isNullOrEmpty(trait.fetchObjectDefinitionName())) {<NEW_LINE>System.out.println(" " + trait.fetchObjectDefinitionName());<NEW_LINE>if (trait instanceof CdmTraitReference) {<NEW_LINE>f... | out.println(" " + constantValueList); |
1,000,776 | public void editMapping(StubMapping stubMapping) {<NEW_LINE>final Optional<StubMapping> optionalExistingMapping = tryFind(mappings, mappingMatchingUuid(stubMapping.getUuid()));<NEW_LINE>if (!optionalExistingMapping.isPresent()) {<NEW_LINE>String msg = "StubMapping with UUID: " + stubMapping.getUuid() + " not found";<NE... | setInsertionIndex(existingMapping.getInsertionIndex()); |
923,995 | private SAXSource readSAXSource(InputStream body, HttpInputMessage inputMessage) throws IOException {<NEW_LINE>try {<NEW_LINE>SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();<NEW_LINE>saxParserFactory.setNamespaceAware(true);<NEW_LINE>saxParserFactory.setFeature("http://apache.org/xml/features/disall... | XMLReader xmlReader = saxParser.getXMLReader(); |
147,010 | private void initInfo(int record_id, String value, String whereClause) {<NEW_LINE>//<NEW_LINE>if (!(record_id == 0) && value != null && value.length() > 0) {<NEW_LINE>log.severe("Received both a record_id and a value: " + record_id + " - " + value);<NEW_LINE>}<NEW_LINE>// Set Value and boolean criteria (if any)<NEW_LIN... | getCtx(), p_WindowNo, "A_Asset_ID"); |
1,826,087 | void transpileStatement(Node statement, @Nullable TranspilationContext.Case breakCase, @Nullable TranspilationContext.Case continueCase) {<NEW_LINE>checkState<MASK><NEW_LINE>checkState(statement.getParent() == null);<NEW_LINE>if (!statement.isGeneratorMarker()) {<NEW_LINE>transpileUnmarkedNode(statement);<NEW_LINE>retu... | (IR.mayBeStatement(statement)); |
274,103 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>Process process = bu... | .filterChoices(business, process)); |
1,758,822 | final UpdateAppInstanceUserResult executeUpdateAppInstanceUser(UpdateAppInstanceUserRequest updateAppInstanceUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAppInstanceUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | endClientExecution(awsRequestMetrics, request, response); |
479,592 | private void loadMenu() throws IOException {<NEW_LINE>StringBuffer whereClause = new StringBuffer("AD_Client_ID = " + getAD_Client_ID() + " AND IsSummary = 'N'");<NEW_LINE>if (getRecord_ID() > 0) {<NEW_LINE>whereClause.append(" AND ").append("AD_Menu_ID = ").append(getRecord_ID());<NEW_LINE>}<NEW_LINE>// Get Result<NEW... | fileName, indexConverter.toString()); |
1,173,256 | public CreateDomainResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateDomainResult createDomainResult = new CreateDomainResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =... | ().unmarshall(context)); |
911,960 | private String describeEverySecond(final int second) {<NEW_LINE>final double[] secondsLimit = { 1, 2 };<NEW_LINE>final String[] secondsStrings = { resourceBundle.getString("oneSecond"), resourceBundle.getString("multipleSeconds") };<NEW_LINE>final double[] everyLimit = { 1, 2 };<NEW_LINE>final String[] everyStrings = {... | = new ChoiceFormat(everyLimit, everyStrings); |
602,558 | public static Data createData(Program program, Address addr, DataType newType, int length, boolean stackPointers, ClearDataMode clearMode) throws CodeUnitInsertionException {<NEW_LINE>Listing listing = program.getListing();<NEW_LINE>ReferenceManager refMgr = program.getReferenceManager();<NEW_LINE>Data data = getData(a... | TypeDef) newType).getBaseDataType(); |
148,307 | void doSetValueAsQueryToken(FhirContext theContext, String theParamName, String theQualifier, String theValue) {<NEW_LINE>if (isBlank(theValue)) {<NEW_LINE>myLeftType.setValueAsQueryToken(theContext, theParamName, theQualifier, "");<NEW_LINE>myRightType.setValueAsQueryToken(theContext, theParamName, theQualifier, "");<... | , parts.get(1)); |
50,943 | private Object doAttributeValue(AttributeValue a) {<NEW_LINE>Object ret = null;<NEW_LINE>try {<NEW_LINE>if (a.getS() != null) {<NEW_LINE>ret = a.getS();<NEW_LINE>} else if (a.getBOOL() != null) {<NEW_LINE>ret = a.getBOOL();<NEW_LINE>} else if (a.getBOOL() != null) {<NEW_LINE>ret = a.getBOOL();<NEW_LINE>} else if (a.get... | [] { "key", "value" }); |
906,911 | public static ListTransitRouterVbrAttachmentsResponse unmarshall(ListTransitRouterVbrAttachmentsResponse listTransitRouterVbrAttachmentsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTransitRouterVbrAttachmentsResponse.setRequestId(_ctx.stringValue("ListTransitRouterVbrAttachmentsResponse.RequestId"));<NEW_LINE>lis... | ("ListTransitRouterVbrAttachmentsResponse.TransitRouterAttachments[" + i + "].Status")); |
22,376 | private void dumpSourceFile(String target, JavaFileObject sourceFile, CharSequence source) {<NEW_LINE>if (source.charAt(source.length() - 1) == '\u001A') {<NEW_LINE>// the java parser appends the ctrl+z char (end of file), remove it<NEW_LINE>source = source.subSequence(0, <MASK><NEW_LINE>}<NEW_LINE>File absoluteTarget ... | source.length() - 1); |
426,554 | private void loadCaptcha() {<NEW_LINE>Map<String, Object> params = new HashMap<>();<NEW_LINE>params.put("captchaType", "blockPuzzle");<NEW_LINE>JSONObject jsonObject = new JSONObject(params);<NEW_LINE>RequestBody body = RequestBody.create(MediaType.parse("application/json"), jsonObject.toString());<NEW_LINE>RetrofitUti... | Toast.LENGTH_SHORT).show(); |
533,439 | final DescribeStorageResult executeDescribeStorage(DescribeStorageRequest describeStorageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeStorageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
702,549 | private void doLayout() {<NEW_LINE>setContentView(R.layout.layout_main);<NEW_LINE>setTitle(R.string.app_name);<NEW_LINE>Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);<NEW_LINE>setSupportActionBar(toolbar);<NEW_LINE>mDrawer = (DrawerLayout) findViewById(R.id.drawer_layout);<NEW_LINE>mTxtOrbotLog = (TextView) fi... | (formatTotal(0) + " \u2191"); |
636,992 | protected DataStreamShardStats shardOperation(Request request, ShardRouting shardRouting) throws IOException {<NEW_LINE>IndexService indexService = indicesService.indexServiceSafe(shardRouting.shardId().getIndex());<NEW_LINE>IndexShard indexShard = indexService.getShard(shardRouting.shardId().id());<NEW_LINE>// if we d... | routingEntry(), storeStats, maxTimestamp); |
1,227,063 | public static GetCopyrightPersonListResponse unmarshall(GetCopyrightPersonListResponse getCopyrightPersonListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getCopyrightPersonListResponse.setRequestId(_ctx.stringValue("GetCopyrightPersonListResponse.RequestId"));<NEW_LINE>getCopyrightPersonListResponse.setPageNum(_ctx.i... | ("GetCopyrightPersonListResponse.Data[" + i + "].UserPk")); |
893,118 | int determineSizeHintColor(int imageWidth, int imageHeight, @Nullable ScaleType scaleType) {<NEW_LINE>int visibleDrawnAreaWidth = getBounds().width();<NEW_LINE>int visibleDrawnAreaHeight = getBounds().height();<NEW_LINE>if (visibleDrawnAreaWidth <= 0 || visibleDrawnAreaHeight <= 0 || imageWidth <= 0 || imageHeight <= 0... | (int) mRectF.height(); |
13,494 | public static DescribeAppsResponse unmarshall(DescribeAppsResponse describeAppsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAppsResponse.setRequestId(_ctx.stringValue("DescribeAppsResponse.RequestId"));<NEW_LINE>describeAppsResponse.setTotalCount(_ctx.integerValue("DescribeAppsResponse.TotalCount"));<NEW_LINE... | (_ctx.integerValue("DescribeAppsResponse.PageNumber")); |
1,193,749 | public void initialize() {<NEW_LINE>String authnChallengeRealm = OAuthAuthorityUtils.getProperty(OAuthAuthorityConsts.JA_PROP_AUTHN_CHALLENGE_REALM, "https://athenz.io");<NEW_LINE>this.authenticateChallenge = String.format("Bearer realm=\"%s\"", authnChallengeRealm);<NEW_LINE>// no need to load user domain<NEW_LINE>// ... | getProperty(OAuthAuthorityConsts.JA_PROP_PARSER_FACTORY_CLASS, "com.yahoo.athenz.auth.oauth.parser.DefaultOAuthJwtAccessTokenParserFactory"); |
774,481 | protected void visitPackage(int version, int access, String packageName) {<NEW_LINE>String useExternalName = getExternalName();<NEW_LINE>if (PackageInfoImpl.isPackageName(useExternalName)) {<NEW_LINE>useExternalName = PackageInfoImpl.stripPackageNameFromClassName(useExternalName);<NEW_LINE>}<NEW_LINE>if (this.logParms ... | .format("[ {0} ] [ {1} ] ENTER External name [ {2} ]", logParms)); |
782,509 | public AttackResult completed(@RequestParam String editor2) {<NEW_LINE>String editor = editor2.replaceAll("\\<.*?>", "");<NEW_LINE>log.debug(editor);<NEW_LINE>if ((editor.contains("Policy.getInstance(\"antisamy-slashdot.xml\"") || editor.contains(".scan(newComment, \"antisamy-slashdot.xml\"") || editor.contains(".scan(... | feedback("xss-mitigation-4-success").build(); |
966,210 | protected ScriptStructure saveToData() throws InvalidDataInputException {<NEW_LINE>ScriptStructure.Builder builder = new ScriptStructure.Builder(C.VERSION_CREATED_IN_RUNTIME);<NEW_LINE>builder.setName(mEditText_name.getText().toString());<NEW_LINE>String profile = sw_profile.getSelection();<NEW_LINE>builder.setProfileN... | String eventName = sw_event.getSelection(); |
204,603 | public void mergeCostRow(CostRow costRow) {<NEW_LINE>Set<RowField> resultRowFieldList = Sets.newHashSet();<NEW_LINE>if (fieldList.isEmpty()) {<NEW_LINE>resultRowFieldList = Sets.newHashSet(costRow.getFieldList());<NEW_LINE>} else {<NEW_LINE>for (RowField rowField : fieldList) {<NEW_LINE>if (costRow.getFieldList().isEmp... | newHashSet(rowField.getFieldList()); |
1,807,651 | protected void encodeContent(FacesContext context, ContentFlow cf) throws IOException {<NEW_LINE><MASK><NEW_LINE>String var = cf.getVar();<NEW_LINE>writer.startElement("div", null);<NEW_LINE>writer.writeAttribute("class", "flow", null);<NEW_LINE>if (var == null) {<NEW_LINE>for (UIComponent child : cf.getChildren()) {<N... | ResponseWriter writer = context.getResponseWriter(); |
1,440,302 | public boolean isTopicExist(String masterUrl, String topicName) {<NEW_LINE><MASK><NEW_LINE>String url = masterUrl + QUERY_TOPIC_PATH + TOPIC_NAME + topicName;<NEW_LINE>try {<NEW_LINE>TopicResponse topicView = HttpUtils.request(restTemplate, url, HttpMethod.GET, null, new HttpHeaders(), TopicResponse.class);<NEW_LINE>if... | LOGGER.info("begin to check if the tubemq topic {} exists", topicName); |
759,621 | synchronized final void parseUpperTransportPDU(final Message message) throws ExtendedInvalidCipherTextException {<NEW_LINE>try {<NEW_LINE>switch(message.getPduType()) {<NEW_LINE>case MeshManagerApi.PDU_TYPE_NETWORK:<NEW_LINE>if (message instanceof AccessMessage) {<NEW_LINE>// Access message<NEW_LINE>final AccessMessage... | buffer.capacity() - 1]; |
873,570 | private TreeNode convertEnum(ClassTree node, TreePath parent) {<NEW_LINE>TreePath path = getTreePath(parent, node);<NEW_LINE>TypeElement element = (TypeElement) getElement(path);<NEW_LINE>if (ElementUtil.isAnonymous(element)) {<NEW_LINE>return convertClassDeclaration(node, parent).setPosition(getPosition(node));<NEW_LI... | ((VariableTree) bodyDecl, path); |
1,463,475 | public Spliterator<A> trySplit() {<NEW_LINE>if (spliterators[splitPos] == null)<NEW_LINE>spliterators[splitPos] = <MASK><NEW_LINE>Spliterator<T> res = spliterators[splitPos].trySplit();<NEW_LINE>if (res == null) {<NEW_LINE>if (splitPos == spliterators.length - 1)<NEW_LINE>return null;<NEW_LINE>@SuppressWarnings("unchec... | collections[splitPos].spliterator(); |
50,348 | final DisassociatePricingRulesResult executeDisassociatePricingRules(DisassociatePricingRulesRequest disassociatePricingRulesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociatePricingRulesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | false), new DisassociatePricingRulesResultJsonUnmarshaller()); |
1,818,815 | public UUID rotateCerts(CertsRotateParams requestParams, Customer customer, Universe universe) {<NEW_LINE>log.debug("rotateCerts called with rootCA: {}", (requestParams.rootCA != null) ? requestParams.rootCA.toString() : "NULL");<NEW_LINE>// Verify request params<NEW_LINE>requestParams.verifyParams(universe);<NEW_LINE>... | CertificateInfo.get(requestParams.rootCA); |
134,382 | static final SecurityIdentity authorize(CallbackHandler callbackHandler, SamlPrincipal principal) {<NEW_LINE>try {<NEW_LINE>EvidenceVerifyCallback evidenceVerifyCallback = new EvidenceVerifyCallback(new Evidence() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Principal getPrincipal() {<NEW_LINE>return principal;<NEW_L... | new Callback[] { evidenceVerifyCallback }); |
668,189 | static Map<String, Object> deepCopy(Map<String, Object> mBeanInfo) {<NEW_LINE>// it's not really "deep" copy; it just copies deep enough<NEW_LINE>Map<String, Object> copy = new HashMap<>(mBeanInfo);<NEW_LINE>// copy "op" deep enough<NEW_LINE>Map<String, Object> ops = (Map<String, Object>) mBeanInfo.get("op");<NEW_LINE>... | op = ops.get(name); |
1,514,139 | public static Tensor toPTTensor(com.alibaba.alink.common.linalg.tensor.Tensor<?> tensor) {<NEW_LINE>long[] shape = tensor.shape();<NEW_LINE>int size = Math.toIntExact(tensor.size());<NEW_LINE>switch(tensor.getType()) {<NEW_LINE>case FLOAT:<NEW_LINE>FloatTensor floatTensor = (FloatTensor) tensor;<NEW_LINE>FloatBuffer fl... | Tensor.fromBlob(byteBuffer, shape); |
1,006,669 | /*<NEW_LINE>* declaringUniqueKey dot selector genericSignature<NEW_LINE>* p.X { <T> void bar(X<T> t) } --> Lp/X;.bar<T:Ljava/lang/Object;>(LX<TT;>;)V<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public char[] computeUniqueKey(boolean isLeaf) {<NEW_LINE>// declaring class<NEW_LINE>char[] declaringKey = this.declaringClass.co... | 1 + selectorLength + signatureLength + thrownExceptionsSignatureLength]; |
1,071,921 | public Object visitar(NoDeclaracaoVetor noDeclaracaoVetor) throws ExcecaoVisitaASA {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("<html>");<NEW_LINE>if (currentPortugolTreeNode.isDeclarado()) {<NEW_LINE>sb.append("<b>");<NEW_LINE>}<NEW_LINE>sb.append(noDeclaracaoVetor.getNome());<NEW_LINE>if (cu... | component.setForeground(Color.BLUE); |
84,119 | public void onChunkExecStateChanged(ChunkExecStateChangedEvent event) {<NEW_LINE>if (queue_ == null || event.getDocId() != queue_.getDocId())<NEW_LINE>return;<NEW_LINE>switch(event.getExecState()) {<NEW_LINE>case NotebookDocQueue.CHUNK_EXEC_STARTED:<NEW_LINE>// find the unit<NEW_LINE>executingUnit_ = getUnit(event.getC... | cleanChunkExecState(event.getChunkId()); |
805,208 | private <T> List<MetadataCopies> listCopies(Map<String, Future<List<T>>> futuresPerDatacenter, Function<T, String> idResolver) {<NEW_LINE>Map<String, MetadataCopies> copiesPerId = new HashMap<>();<NEW_LINE>Set<String> datacenters = futuresPerDatacenter.keySet();<NEW_LINE>for (Map.Entry<String, Future<List<T>>> entry : ... | String datacenter = entry.getKey(); |
1,268,490 | public AssociateS3ResourcesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssociateS3ResourcesResult associateS3ResourcesResult = new AssociateS3ResourcesResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | int originalDepth = context.getCurrentDepth(); |
514,314 | private void verificarCaracteresAposEscopoPrograma(String codigoFonte) {<NEW_LINE>Matcher m = padraoEscopoPrograma.matcher(codigoFonte);<NEW_LINE>if (m.find()) {<NEW_LINE>int escopo = 1;<NEW_LINE>int posicao = -1;<NEW_LINE>for (int i = m.end(); i < codigoFonte.length(); i++) {<NEW_LINE>if (codigoFonte.charAt(i) == '{')... | , ErroExpressoesForaEscopoPrograma.Local.DEPOIS)); |
1,297,301 | private static void insertTablet(Session session, String deviceId) throws IoTDBConnectionException, StatementExecutionException {<NEW_LINE>// The schema of measurements of one device<NEW_LINE>// only measurementId and data type in MeasurementSchema take effects in Tablet<NEW_LINE>List<MeasurementSchema> schemaList = ne... | ("s1", TSDataType.INT64)); |
1,260,959 | protected void runInternal() {<NEW_LINE>// Check once in a minute as earliest to avoid log bursts.<NEW_LINE>if (shouldCheckNow(mapContainer.getLastInvalidMergePolicyCheckTime())) {<NEW_LINE>try {<NEW_LINE>checkMapMergePolicy(mapContainer.getMapConfig(), mergePolicy.getClass().getName(), getNodeEngine().getSplitBrainMer... | hasMapListener = mapEventPublisher.hasEventListener(name); |
1,728,921 | public synchronized Key generateKey(final String aesEncryptionKeyAlias) throws KeyNotGeneratedException {<NEW_LINE>try {<NEW_LINE>// Generate the AES Encryption key<NEW_LINE>SecureRandom secureRandom = new SecureRandom();<NEW_LINE>KeyGenerator generator = KeyGenerator.getInstance(AES_KEY_ALGORITHM);<NEW_LINE>generator.... | SecretKey aesEncryptionKey = generator.generateKey(); |
385,224 | public static MoPenQueryCanvasResponse unmarshall(MoPenQueryCanvasResponse moPenQueryCanvasResponse, UnmarshallerContext context) {<NEW_LINE>moPenQueryCanvasResponse.setRequestId<MASK><NEW_LINE>moPenQueryCanvasResponse.setCode(context.stringValue("MoPenQueryCanvasResponse.Code"));<NEW_LINE>moPenQueryCanvasResponse.setM... | (context.stringValue("MoPenQueryCanvasResponse.RequestId")); |
1,063,628 | public List<? extends CodeGenerator> create(Lookup context) {<NEW_LINE>ArrayList<CodeGenerator> ret = new ArrayList<CodeGenerator>();<NEW_LINE>JTextComponent component = context.lookup(JTextComponent.class);<NEW_LINE>CompilationController controller = context.lookup(CompilationController.class);<NEW_LINE>TreePath path ... | getTrees().getElement(path); |
1,299,103 | public StreamingHttpServiceFilter create(final StreamingHttpService service) {<NEW_LINE>return new StreamingHttpServiceFilter(service) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Single<StreamingHttpResponse> handle(final HttpServiceContext ctx, final StreamingHttpRequest request, final StreamingHttpResponseFactory ... | "Request failed for service={}, connection={}", service, this, cause); |
1,597,954 | public void paintComponent(Graphics g) {<NEW_LINE>if (!paintAnimation) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int width = getWidth();<NEW_LINE>int height = getHeight();<NEW_LINE>double maxY = 0.0;<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setRenderingHints(hints);<NEW_LINE>g2.setColor(new Color(255, 255, 255... | Rectangle2D bounds = element.getBounds2D(); |
971,044 | public ListGatewayGroupsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListGatewayGroupsResult listGatewayGroupsResult = new ListGatewayGroupsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI... | class).unmarshall(context)); |
103,386 | protected boolean treatMessage(NetworkEnvelope networkEnvelope, Connection connection) {<NEW_LINE>checkNotNull(connection.getPeersNodeAddressProperty(), "although the property is nullable, we need it to not be null");<NEW_LINE>if (networkEnvelope instanceof GetDataResponse) {<NEW_LINE>Statistics result = new MyStatisti... | ()).log(networkEnvelope); |
1,390,148 | private void renameRequest(RequestContainer request) {<NEW_LINE>StringInputDialog inputDialog = new StringInputDialog();<NEW_LINE>inputDialog.showAndWait("Rename Request", "New Name", request.getName());<NEW_LINE>if (!inputDialog.isCancelled() && inputDialog.wasChanged()) {<NEW_LINE>String newName = inputDialog.getInpu... | -> r.setName(newName)); |
212,680 | public static void solve(int no_of_process, int[] burst_time) {<NEW_LINE>int[] wait_time = new int[no_of_process];<NEW_LINE>int[] turnaround_time = new int[no_of_process];<NEW_LINE>// wait time of 1st process is 0.<NEW_LINE>wait_time[0] = 0;<NEW_LINE>for (int i = 1; i < no_of_process; i++) {<NEW_LINE>wait_time[i] = wai... | [i] + wait_time[i]; |
949,329 | public void uploadFile(final AccountJid account, final UserJid user, final List<String> filePaths, final List<Uri> fileUris, String existMessageId, Context context) {<NEW_LINE>if (isUploading) {<NEW_LINE>progressSubscribe.onNext(new ProgressData(0, 0, "Uploading already started", false, null));<NEW_LINE>return;<NEW_LIN... | , "Upload server not found", false, null)); |
69,325 | private /* static */<NEW_LINE>boolean isPushForType(AbstractInsnNode insn, Type type) {<NEW_LINE>int opcode = insn.getOpcode();<NEW_LINE>if (opcode == type.getOpcode(Opcodes.ILOAD)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// b/62060793: AsyncAwait rewrites bytecode to convert java methods into state machine with<NE... | .FCONST_1 || opcode == Opcodes.FCONST_2; |
1,434,184 | public void authenticate(RoutingContext context, Handler<AsyncResult<User>> handler) {<NEW_LINE>parseAuthorization(context, parseAuthorization -> {<NEW_LINE>if (parseAuthorization.failed()) {<NEW_LINE>handler.handle(Future.failedFuture(parseAuthorization.cause()));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>i... | String token = parseAuthorization.result(); |
1,087,139 | private void scheduleSyncJobs() throws IOException {<NEW_LINE>int jobsScheduled = 0;<NEW_LINE>final <MASK><NEW_LINE>final List<StandardSync> activeConnections = getAllActiveConnections();<NEW_LINE>final var queryEnd = System.currentTimeMillis();<NEW_LINE>LOGGER.debug("Total active connections: {}", activeConnections.si... | var start = System.currentTimeMillis(); |
284,916 | final DisassociateTrunkInterfaceResult executeDisassociateTrunkInterface(DisassociateTrunkInterfaceRequest disassociateTrunkInterfaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateTrunkInterfaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | (super.beforeMarshalling(disassociateTrunkInterfaceRequest)); |
932,142 | public boolean loadBPartner(int C_BPartner_ID) {<NEW_LINE>log.config("C_BPartner_ID=" + C_BPartner_ID);<NEW_LINE>// New bpartner<NEW_LINE>if (C_BPartner_ID == 0) {<NEW_LINE>m_partner = null;<NEW_LINE>m_pLocation = null;<NEW_LINE>m_user = null;<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>m_partner = new MBPartner(Env.getC... | setText(m_partner.getTaxID()); |
289,137 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<TagResourceRequest> reques... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
599,325 | public void corruptedParNewBody(GCLogTrace trace, String line) {<NEW_LINE>ParNewPromotionFailed parNewPromotionFailed = new ParNewPromotionFailed(scavengeTimeStamp, GCCause.PROMOTION_FAILED, trace.getPauseTime() - trace.getDoubleGroup(16));<NEW_LINE>MemoryPoolSummary heap = getTotalOccupancyBeforeAfterWithTotalHeapPool... | , trace.getDoubleGroup(16)); |
444,557 | private void detectAndUpgrade(long streamType) {<NEW_LINE>if (streamType == ControlStreamConnection.STREAM_TYPE) {<NEW_LINE>ControlParser parser = new ControlParser(listener);<NEW_LINE>ControlStreamConnection newConnection = new ControlStreamConnection(getEndPoint(), getExecutor(), byteBufferPool, parser);<NEW_LINE><MA... | newConnection.setInputBufferSize(getInputBufferSize()); |
237,315 | protected Home resolveExHome() {<NEW_LINE>String exHomeFromEnv = System.getenv("NGRINDER_EX_HOME");<NEW_LINE>String exHomeFromProperty = System.getProperty("ngrinder.ex_home");<NEW_LINE>if (!StringUtils.equals(exHomeFromEnv, exHomeFromProperty)) {<NEW_LINE>CoreLogger.LOGGER.warn("The path to ngrinder ex home is ambiguo... | warn(" '" + exHomeFromProperty + "' is accepted."); |
723,514 | public RBMBackedTimestampSet deserialise(final byte[] allBytes, final int offset, final int length) throws SerialisationException {<NEW_LINE>if (allBytes.length == 0 || length == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final int bucketInt = (int) CompactRawSerialisationUtils.readLong(allBytes, offset);<NEW_LINE>... | offset + numBytesForInt, length - numBytesForInt); |
478,814 | final BatchDisassociateResourcesFromCustomLineItemResult executeBatchDisassociateResourcesFromCustomLineItem(BatchDisassociateResourcesFromCustomLineItemRequest batchDisassociateResourcesFromCustomLineItemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDisassociateResourcesFromCustom... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
622,721 | int scrollBy(int delta, RecyclerView.Recycler recycler, RecyclerView.State state) {<NEW_LINE>if (getChildCount() == 0 || delta == 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>ensureLayoutState();<NEW_LINE>mLayoutState.mRecycle = true;<NEW_LINE>final int layoutDirection = delta > 0 ? LayoutState.LAYOUT_END : LayoutState.... | > consumed ? layoutDirection * consumed : delta; |
1,066,609 | public void onClick() {<NEW_LINE>EditText uriInput = findViewById(R.id.uriInput);<NEW_LINE>String uri = uriInput.getText().toString();<NEW_LINE>EditText requestInput = findViewById(R.id.requestInput);<NEW_LINE>byte[] requestBody = requestInput.getText().toString().getBytes(UTF_8);<NEW_LINE>Request request = Request.new... | .currentThread().interrupt(); |
1,770,007 | public static int aiGetMaterialFloatArray(@NativeType("struct aiMaterial const *") AIMaterial pMat, @NativeType("char const *") CharSequence pKey, @NativeType("unsigned int") int type, @NativeType("unsigned int") int index, @NativeType("float *") float[] pOut, @Nullable @NativeType("unsigned int *") int[] pMax) {<NEW_L... | index, pOut, pMax, __functionAddress); |
490,166 | public String addMapping(String context, String className, String reference, String newReference) {<NEW_LINE>if (this.readOnly || reference == null || newReference == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String conformedReference = <MASK><NEW_LINE>if (conformedReference.equals(newReference)) {<NEW_LINE>ret... | reference.replaceAll("\\s", ""); |
1,230,993 | private void migrateAccountsToDefaultRoles(final Connection conn) {<NEW_LINE>try (final PreparedStatement selectStatement = conn.prepareStatement("SELECT `id`, `type` FROM `cloud`.`account`;");<NEW_LINE>final ResultSet selectResultSet = selectStatement.executeQuery()) {<NEW_LINE>while (selectResultSet.next()) {<NEW_LIN... | updateStatement.setLong(1, roleId); |
1,789,091 | private void loadCreditMemo() {<NEW_LINE>creditMemoPanel = new CPanel(layout);<NEW_LINE>// Add label credit note<NEW_LINE>labelCreditMemo = new CLabel(Msg.translate(Env.getCtx(), "CreditMemo") + ":");<NEW_LINE>labelCreditMemo.setPreferredSize(new Dimension(FIELD_WIDTH, FIELD_HEIGHT));<NEW_LINE>// For Credit Memo<NEW_LI... | 2), 0, 0)); |
610,097 | public void marshall(ExportAssetToSignedUrlResponseDetails exportAssetToSignedUrlResponseDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (exportAssetToSignedUrlResponseDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>p... | exportAssetToSignedUrlResponseDetails.getDataSetId(), DATASETID_BINDING); |
1,626,241 | public void acceptAllChanges() {<NEW_LINE>Set<Object> visited = new HashSet<>();<NEW_LINE>Queue<Object> toVisit = new LinkedList<>(getStructuredSelection().toList());<NEW_LINE>// To avoid problems with currently opened TextMergeViewer close whatever was opened<NEW_LINE>fireOpen(new OpenEvent(this, StructuredSelection.E... | n.setState(DiffNodeState.ALL); |
1,104,576 | private static DistinctTypeParsingData parse(String signature, int startIndex) {<NEW_LINE>int openBracketIndex = signature.indexOf("{", startIndex);<NEW_LINE>if (openBracketIndex == -1) {<NEW_LINE>throw new IllegalStateException(format("Cannot parse distinct type definition(%s), expected '{' after position %s", signatu... | otherAncestors = new ArrayList<>(); |
269,820 | public Object call(ExecutionContext context, Object self, Object... args) {<NEW_LINE>if (!(self instanceof DynDate)) {<NEW_LINE>throw new ThrowException(context, context.createTypeError("setUTCHours(...) may only be used with Dates"));<NEW_LINE>}<NEW_LINE>DynDate dateObj = (DynDate) self;<NEW_LINE>long t = dateObj.getT... | u = timeClip(context, date); |
330,595 | private final Field<?> parseFieldJSONObjectConstructorIf() {<NEW_LINE>boolean jsonb = false;<NEW_LINE>if (parseFunctionNameIf("JSON_OBJECT", "JSON_BUILD_OBJECT") || (jsonb = parseFunctionNameIf("JSONB_BUILD_OBJECT"))) {<NEW_LINE>parse('(');<NEW_LINE>if (parseIf(')'))<NEW_LINE>return jsonb ? jsonbObject() : jsonObject()... | List<JSONEntry<?>> result; |
238,841 | public Column averageNumberMerge(Table table, Column[] columnsToMerge, String newColumnTitle) {<NEW_LINE>checkTableAndColumnsAreNumberOrNumberList(table, columnsToMerge);<NEW_LINE>AttributeColumnsController ac = Lookup.getDefault().lookup(AttributeColumnsController.class);<NEW_LINE>Column newColumn;<NEW_LINE>newColumn ... | row.setAttribute(newColumn, average); |
160,121 | private void worker() throws Exception {<NEW_LINE>NameRegContract nameRegContract = new NameRegContract();<NEW_LINE>if (!nameRegContract.isExist()) {<NEW_LINE>throw new RuntimeException("Namereg contract not exist on the blockchain");<NEW_LINE>}<NEW_LINE>String priceFeedAddress = Hex.toHexString(nameRegContract.address... | = { "BTC_ETH", "USDT_BTC", "USDT_ETH" }; |
416,159 | private MultiPoint parseMultiPoint(StreamTokenizer stream) throws IOException, ParseException {<NEW_LINE>String token = nextEmptyOrOpen(stream);<NEW_LINE>if (token.equals(EMPTY)) {<NEW_LINE>return MultiPoint.EMPTY;<NEW_LINE>}<NEW_LINE>ArrayList<Double> lats = new ArrayList<>();<NEW_LINE>ArrayList<Double> lons = new Arr... | stream, lats, lons, alts); |
1,684,280 | public void newConnectionPointData(byte[] hash) {<NEW_LINE>boolean knownBlock = isKnownBlock(hash);<NEW_LINE>Optional<Long<MASK><NEW_LINE>if (cp.isPresent()) {<NEW_LINE>if (knownBlock) {<NEW_LINE>syncEventsHandler.startDownloadingSkeleton(cp.get(), selectedPeer);<NEW_LINE>} else {<NEW_LINE>syncEventsHandler.onSyncIssue... | > cp = connectionPointFinder.getConnectionPoint(); |
1,003,675 | public Object execute(Object iThis, final OIdentifiable iRecord, final Object iCurrentResult, final Object[] iParams, OCommandContext iContext) {<NEW_LINE>Object inputValue = iParams[0];<NEW_LINE>if (inputValue == null) {<NEW_LINE>result = null;<NEW_LINE>} else if (inputValue instanceof BigDecimal) {<NEW_LINE>result = ... | BigInteger) inputValue).abs(); |
867,715 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next(... | KEY_INPUT, parser.nextInt()); |
1,852,175 | final DeleteFolderContentsResult executeDeleteFolderContents(DeleteFolderContentsRequest deleteFolderContentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteFolderContentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | endClientExecution(awsRequestMetrics, request, response); |
1,570,048 | private void handleProperty(PropertyNode p, boolean classElement) {<NEW_LINE>int offset = -1;<NEW_LINE>if ((p.getValue() instanceof FunctionNode) && ((FunctionNode) p.getValue()).isAsync()) {<NEW_LINE>TokenSequence<? extends JsTokenId> ts = LexUtilities.getJsPositionedSequence(result.getSnapshot(), p.getStart() - 1);<N... | p.getStart() - 1); |
78,313 | public ProductAttribute merge(PersistableProductAttribute source, ProductAttribute destination, MerchantStore store, Language language) {<NEW_LINE>ProductOption productOption = null;<NEW_LINE>if (!StringUtils.isBlank(source.getOption().getCode())) {<NEW_LINE>productOption = productOptionService.getByCode(store, source.... | getOption().getId()); |
1,474,090 | public void write(final ChannelHandlerContext ctx, final Object msg, final ChannelPromise promise) {<NEW_LINE>if (msg instanceof RequestContext) {<NEW_LINE>final RequestContext<?, ?> requestContext = (RequestContext) msg;<NEW_LINE>final int sequenceId = requestContext.getSequenceId();<NEW_LINE>final ThriftFrame frame =... | getProcessor().onError(t); |
793,671 | public BigInteger bruteForceWithAdditionalOracleEquations(int[] usedOracleEquations, BigInteger[] congs, BigInteger[] modulis, int pointer) {<NEW_LINE>int[] eq = Arrays.copyOf(usedOracleEquations, usedOracleEquations.length);<NEW_LINE>int maxValue = (pointer == usedOracleEquations.length - 1) ? (congs.length) : (usedOr... | LOGGER.info("Guessing the following result: {}", r); |
1,627,949 | final PutProtocolsListResult executePutProtocolsList(PutProtocolsListRequest putProtocolsListRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putProtocolsListRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
919,049 | public void writeBundleDocuments(XMLStreamWriter xout, final ArrayList<BundleDocument> bundleDocuments, int indentationDepth) throws XMLStreamException {<NEW_LINE>writeIndentation(xout, indentationDepth);<NEW_LINE>xout.writeStartElement(ARRAY_TAG);<NEW_LINE>xout.writeCharacters("\n");<NEW_LINE>for (BundleDocument bundl... | getIcon(), indentationDepth + 2); |
1,600,756 | protected void drawPoints(Canvas canvas, Paint paint, List<Float> pointsList, XYSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, int startIndex) {<NEW_LINE>if (isRenderPoints(seriesRenderer)) {<NEW_LINE>ScatterChart pointsChart = getPointsChart();<NEW_LINE>if (pointsChart != null) {<NEW_LINE>int length... | (int) mPathMeasure.getLength(); |
860,202 | protected Bundle doInBackground(Bundle... params) {<NEW_LINE>Bundle args = params[0];<NEW_LINE>Bundle result = new Bundle(args);<NEW_LINE>String userID = args.getString(PARAM_USER_ID);<NEW_LINE>String token = mSharedPreferences.getString(SAVE_STATE_KEY_OAUTH_TOKEN, null);<NEW_LINE>String urlString = INSTAGRAM_APIURL + ... | OutputStreamWriter(connection.getOutputStream()); |
1,078,468 | private void updateProfiler() {<NEW_LINE>if (!TornadoOptions.isProfilerEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!TornadoOptions.PROFILER_LOGS_ACCUMULATE) {<NEW_LINE>timeProfiler.dumpJson(new StringBuffer(), this.getId());<NEW_LINE>} else {<NEW_LINE>bufferLogProfiler.append(timeProfiler.createJson(new Strin... | ), this.getId()); |
796,425 | private IRubyObject arefCommon(IRubyObject arg0) {<NEW_LINE>Ruby runtime = metaClass.runtime;<NEW_LINE>if (arg0 instanceof RubyRange) {<NEW_LINE>long[] beglen = ((RubyRange) arg0).begLen(realLength, 0);<NEW_LINE>return beglen == null ? runtime.getNil() : subseq(beglen[<MASK><NEW_LINE>} else {<NEW_LINE>ThreadContext con... | 0], beglen[1]); |
1,610,009 | public String combine(String pattern1, String pattern2) {<NEW_LINE>if (!StringUtils.hasText(pattern1) && !StringUtils.hasText(pattern2)) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>if (!StringUtils.hasText(pattern1)) {<NEW_LINE>return pattern2;<NEW_LINE>}<NEW_LINE>if (!StringUtils.hasText(pattern2)) {<NEW_LINE>return pat... | : pattern2.substring(dotPos2)); |
243,410 | public void onParameterChanged(final String parameterName) {<NEW_LINE>if (PARAM_AD_ORG_TARGET_ID.equals(parameterName) || PARAM_DATE_ORG_CHANGE.equals(parameterName)) {<NEW_LINE>if (p_orgTargetId == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final BPartnerId partnerId = <MASK><NEW_LINE>final Instant orgChangeDate = C... | BPartnerId.ofRepoId(getRecord_ID()); |
986,018 | public static ListAlarmHistoriesResponse unmarshall(ListAlarmHistoriesResponse listAlarmHistoriesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAlarmHistoriesResponse.setRequestId(_ctx.stringValue("ListAlarmHistoriesResponse.RequestId"));<NEW_LINE>listAlarmHistoriesResponse.setHttpCode<MASK><NEW_LINE>listAlarmHisto... | (_ctx.stringValue("ListAlarmHistoriesResponse.HttpCode")); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.