idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,201,929 | public static QueryUserGroupListByParentIdResponse unmarshall(QueryUserGroupListByParentIdResponse queryUserGroupListByParentIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryUserGroupListByParentIdResponse.setRequestId(_ctx.stringValue("QueryUserGroupListByParentIdResponse.RequestId"));<NEW_LINE>queryUserGroupList... | ("QueryUserGroupListByParentIdResponse.Result[" + i + "].ParentUserGroupId")); |
1,553,574 | public void fetchOffset(SqlNode fetch, SqlNode offset) {<NEW_LINE>if (fetch == null && offset == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (dialect.supportsOffsetFetch()) {<NEW_LINE>if (offset != null) {<NEW_LINE>this.newlineAndIndent();<NEW_LINE>final Frame offsetFrame = this.startList(FrameTypeEnum.OFFSET);<NEW... | this.startList(FrameTypeEnum.OFFSET); |
694,918 | public Accordion.Tab addTab(String name, Component childComponent) {<NEW_LINE>if (childComponent.getParent() != null && childComponent.getParent() != this) {<NEW_LINE>throw new IllegalStateException("Component already has parent");<NEW_LINE>}<NEW_LINE>Tab tab = new Tab(name, childComponent);<NEW_LINE>this.tabs.put(name... | () + "." + name)); |
1,685,265 | public String combine(String pattern1, String pattern2) {<NEW_LINE>if (StrUtil.isEmpty(pattern1) && StrUtil.isEmpty(pattern2)) {<NEW_LINE>return StrUtil.EMPTY;<NEW_LINE>}<NEW_LINE>if (StrUtil.isEmpty(pattern1)) {<NEW_LINE>return pattern2;<NEW_LINE>}<NEW_LINE>if (StrUtil.isEmpty(pattern2)) {<NEW_LINE>return pattern1;<NE... | ) || ext1.isEmpty()); |
1,369,055 | private boolean suspectMemberIfNotHeartBeating(long now, Member member) {<NEW_LINE>if (clusterService.getMembershipManager().isMemberSuspected((MemberImpl) member)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>long lastHeartbeat = heartbeatFailureDetector.lastHeartbeat(member);<NEW_LINE>if (!heartbeatFailureDetector.isA... | (now), maxNoHeartbeatMillis, suspicionLevel); |
1,651,864 | private static AttributeInfo loadBody(short attributeNameIndex, ClassFile classFile, DataInputStream dis) throws IOException {<NEW_LINE>// max_stack<NEW_LINE>final short maxStack = dis.readShort();<NEW_LINE>// max_locals<NEW_LINE>final <MASK><NEW_LINE>// code_length, code<NEW_LINE>final byte[] code = ClassFile.readLeng... | short maxLocals = dis.readShort(); |
983,451 | public void write(org.apache.thrift.protocol.TProtocol prot, conditionalUpdate_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struct... | oprot.writeBitSet(optionals, 4); |
1,509,599 | public RemoveAttributesActivity unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RemoveAttributesActivity removeAttributesActivity = new RemoveAttributesActivity();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | JsonToken token = context.getCurrentToken(); |
1,455,228 | public <T> ISignalWriteStream putBinary(final String cacheKey, final T jsonObject, final long timeToLive) throws IOException {<NEW_LINE>final CacheEntry entry = new CacheEntry();<NEW_LINE>entry.setExpiresOn(System.currentTimeMillis() + (timeToLive * 1000));<NEW_LINE>entry.setHead(JSON_MAPPER.writeValueAsString(jsonObje... | put(cacheKey, entry, timeToLive); |
169,951 | public String solutionToString(int fractionDigits) {<NEW_LINE>if (!isSolvable()) {<NEW_LINE>throw new IllegalStateException("System is not solvable!");<NEW_LINE>}<NEW_LINE>DecimalFormat nf = new DecimalFormat();<NEW_LINE>nf.setMinimumFractionDigits(fractionDigits);<NEW_LINE>nf.setMaximumFractionDigits(fractionDigits);<... | StringBuilder buffer = new StringBuilder(1000); |
1,583,069 | public Map<GdbRegister, BigInteger> complete(GdbPendingCommand<?> pending) {<NEW_LINE>GdbCommandDoneEvent done = pending.checkCompletion(GdbCommandDoneEvent.class);<NEW_LINE>if (regs.isEmpty()) {<NEW_LINE>return Collections.emptyMap();<NEW_LINE>}<NEW_LINE>Map<Integer, GdbRegister> regsByNumber = regs.stream().collect(C... | , r.getSize())); |
1,665,628 | private void ajaxFetchFlowInfo(final HttpServletRequest req, final HttpServletResponse resp, final HashMap<String, Object> ret, final User user, final String projectName, final String flowId) throws ServletException {<NEW_LINE>final Project project = getProjectAjaxByPermission(ret, projectName, user, Type.READ);<NEW_LI... | "Error loading flow. Flow " + flowId + " doesn't exist in " + projectName); |
868,360 | private void handleDetermineSize(boolean detected) {<NEW_LINE>String message = "Determine Scale: Hold target in view and center";<NEW_LINE>if (detected) {<NEW_LINE>double stationaryTime = actions.getStationaryTime();<NEW_LINE>CalibrationObservation points;<NEW_LINE>synchronized (detectorLock) {<NEW_LINE>points = detect... | renderCalibrationPoints(stationaryTime, points.points); |
259,021 | public // false -> UDP<NEW_LINE>void // false -> UDP<NEW_LINE>addPortMapping(boolean tcp, int port, String description) throws UPnPException {<NEW_LINE>UPnPAction act = service.getAction("AddPortMapping");<NEW_LINE>if (act == null) {<NEW_LINE>log("Action 'AddPortMapping' not supported, binding not established");<NEW_LI... | add_inv.addArgument("NewLeaseDuration", "0"); |
934,008 | private JPanel expertSettings() {<NEW_LINE>JPanel panel = new JPanel(<MASK><NEW_LINE>panel.setOpaque(false);<NEW_LINE>JPanel header = new JPanel(new FlowLayout(FlowLayout.LEADING));<NEW_LINE>header.setOpaque(false);<NEW_LINE>header.add(new JLabel(MessageUtils.getLocalizedMessage("openindex.label.expert")));<NEW_LINE>pa... | new GridLayout(6, 1)); |
1,267,909 | private MessageType buildParquetSchema(final String group) throws SerialisationException {<NEW_LINE>SchemaElementDefinition groupGafferSchema;<NEW_LINE>final boolean isEntity = gafferSchema.getEntityGroups().contains(group);<NEW_LINE>final StringBuilder schemaString = new StringBuilder("message Element {\n");<NEW_LINE>... | DESTINATION)).append("\n"); |
999,893 | private int formatResultAndCountRows(String[] columns, Iterator<Record> records, LinePrinter output) {<NEW_LINE>List<Record> topRecords = take(records, numSampleRows);<NEW_LINE>int[] columnSizes = calculateColumnSizes(columns, <MASK><NEW_LINE>int totalWidth = 1;<NEW_LINE>for (int columnSize : columnSizes) {<NEW_LINE>to... | topRecords, records.hasNext()); |
1,100,742 | private static void queryLineMarkersForInjected(@Nonnull PsiElement element, @Nonnull final PsiFile containingFile, @Nonnull Set<? super PsiFile> visitedInjectedFiles, @Nonnull final PairConsumer<? super PsiElement, ? super LineMarkerInfo<PsiElement>> consumer) {<NEW_LINE>final InjectedLanguageManager manager = Injecte... | ? null : gutterRenderer.getIcon(); |
1,526,526 | public void notifyOfPartitionDeletion(final MetacatDeleteTablePartitionPostEvent event) {<NEW_LINE>log.debug("Received DeleteTablePartition event {}", event);<NEW_LINE>final String name = event.getName().toString();<NEW_LINE>final long timestamp = event.getRequestContext().getTimestamp();<NEW_LINE>final String requestI... | (event.getPartitions())); |
791,588 | public HttpConfirmIq parse(XmlPullParser parser, int initialDepth) throws Exception {<NEW_LINE>HttpConfirmIq httpConfirmIq = new HttpConfirmIq();<NEW_LINE>outerloop: while (true) {<NEW_LINE>int eventType = parser.getEventType();<NEW_LINE>switch(eventType) {<NEW_LINE>case XmlPullParser.START_TAG:<NEW_LINE>if (parser.get... | ("", HttpConfirmIq.PROP_METHOD)); |
1,583,420 | private User jsonToUser(JSONObject user) throws JSONException {<NEW_LINE>Uri picture = Uri.parse(user.getJSONObject("picture").getJSONObject("data").getString("url"));<NEW_LINE>String <MASK><NEW_LINE>String id = user.getString("id");<NEW_LINE>String email = null;<NEW_LINE>if (user.has("email")) {<NEW_LINE>email = user.... | name = user.getString("name"); |
126,675 | private Composite parseComposite() throws IOException {<NEW_LINE>Composite composite = new Composite();<NEW_LINE>String partData = readLine();<NEW_LINE>StringTokenizer tokenizer = new StringTokenizer(partData, " ;");<NEW_LINE>String cc = tokenizer.nextToken();<NEW_LINE>if (!cc.equals(CC)) {<NEW_LINE>throw new IOExcepti... | String name = tokenizer.nextToken(); |
889,391 | final CreateOutboundConnectionResult executeCreateOutboundConnection(CreateOutboundConnectionRequest createOutboundConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createOutboundConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,205,396 | public int compareTo(ClusterJoinResponseMessage other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetHeader(), other.isSetHeader());<N... | ), other.isSetNodeStore()); |
560,914 | public void maxLength(HippyTextInput view, int maxLength) {<NEW_LINE>InputFilter[] currentFilters = view.getFilters();<NEW_LINE>InputFilter[] newFilters = EMPTY_FILTERS;<NEW_LINE>if (maxLength == -1) {<NEW_LINE>if (currentFilters.length > 0) {<NEW_LINE>LinkedList<InputFilter> list = new LinkedList<>();<NEW_LINE>for (In... | = new InputFilter.LengthFilter(maxLength); |
873,499 | private JSModuleRecord tryLoadingAsCommonjsModule(TruffleString specifier) {<NEW_LINE>JSModuleRecord existingModule = moduleMap.get(specifier);<NEW_LINE>if (existingModule != null) {<NEW_LINE>log("IMPORT resolve built-in from cache ", specifier);<NEW_LINE>return existingModule;<NEW_LINE>}<NEW_LINE>JSFunctionObject requ... | Strings.builderAppend(moduleBody, "export const "); |
470,342 | public static Element svgCircleSegment(SVGPlot svgp, double centerx, double centery, double angleStart, double angleDelta, double innerRadius, double outerRadius) {<NEW_LINE>// To return cosine<NEW_LINE>final DoubleWrapper tmp = new DoubleWrapper();<NEW_LINE>double sin1st = FastMath.sinAndCos(angleStart, tmp);<NEW_LINE... | >= Math.PI ? 1 : 0; |
857,469 | public com.amazonaws.services.logs.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.logs.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.logs.model.ResourceNotFoundException(null);<NEW_LINE>in... | JsonToken token = context.getCurrentToken(); |
61,130 | private Mono<Response<CheckNameAvailabilityResultInner>> checkNameAvailabilityWithResponseAsync(CheckNameAvailability parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be nu... | ), parameters, accept, context); |
197,238 | public <T> T onServiceCreate(Class<T> interfaceClass, JbootrpcReferenceConfig config) {<NEW_LINE>ReferenceConfig<T> <MASK><NEW_LINE>reference.setInterface(interfaceClass);<NEW_LINE>String directUrl = rpcConfig.getUrl(interfaceClass.getName());<NEW_LINE>if (StrUtil.isNotBlank(directUrl)) {<NEW_LINE>if (URL.valueOf(direc... | reference = DubboUtil.toReferenceConfig(config); |
1,693,361 | public void bindView(View v, Context c, final Cursor cur) {<NEW_LINE>String listName = cur.getString(listNameColumn);<NEW_LINE>CheckableItem item = (CheckableItem) v.getTag();<NEW_LINE>String accountName = cur.getString(accountNameColumn);<NEW_LINE>String accountType = cur.getString(accountTypeColumn);<NEW_LINE>Model m... | btnSettings.setVisibility(View.GONE); |
1,353,607 | public List<char[]> listFieldsToBeGenerated(SingularData data, EclipseNode builderType) {<NEW_LINE>if (useGuavaInstead(builderType)) {<NEW_LINE>return guavaMapSingularizer.listFieldsToBeGenerated(data, builderType);<NEW_LINE>}<NEW_LINE>char[] p = data.getPluralName();<NEW_LINE>int len = p.length;<NEW_LINE>char[] k = ne... | v[len + 1] = 'v'; |
531,813 | public void testCustomContextIsPropagatedWhenConfigured() throws Exception {<NEW_LINE>ManagedExecutor executor = ManagedExecutor.builder().cleared(ThreadContext.SECURITY, ThreadContext.TRANSACTION).propagated(ThreadContext.ALL_REMAINING).build();<NEW_LINE>try {<NEW_LINE>CompletableFuture<String> initialStage = executor... | + " " + (defaultPriority - 2); |
1,258,176 | void writeHashPassword(String algorithm, String password) throws IOException {<NEW_LINE>writeln("<h1>Hash a password for the authorized-users parameter</h1>");<NEW_LINE>if (algorithm != null && password != null) {<NEW_LINE>write("<label for='hash'>Hash:</label> ");<NEW_LINE>final String hash = encodePassword(algorithm,... | REQUEST.getName() + "' id='password' required />"); |
1,339,648 | // GEN-LAST:event_bnTestMessageServiceActionPerformed<NEW_LINE>private void bnTestSolr8ActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_bnTestSolr8ActionPerformed<NEW_LINE>lbTestSolr8.setIcon(null);<NEW_LINE>lbTestSolr8.paintImmediately(lbTestSolr8.getVisibleRect());<NEW_LINE>lbWarning.setT... | (MultiUserSettingsPanel.class, "MultiUserSettingsPanel.Solr8ConnectionInfoMissing.error")); |
1,601,301 | void awaitFinish() throws OperationCanceledException {<NEW_LINE>try {<NEW_LINE>// remove markers<NEW_LINE>try {<NEW_LINE>if (inFile.exists()) {<NEW_LINE>inFile.deleteMarkers(PROBLEM_MARKER_TYPE, false, IResource.DEPTH_INFINITE);<NEW_LINE>}<NEW_LINE>} catch (CoreException e1) {<NEW_LINE>throw new RuntimeException(e1);<N... | outFile.setDerived(true, null); |
186,183 | public static String formatTime(long millis, int precision) {<NEW_LINE>long[] la = new long[5];<NEW_LINE>// days<NEW_LINE>la[0] = (millis / 86400000);<NEW_LINE>// hours<NEW_LINE>la[1] = (millis / 3600000) % 24;<NEW_LINE>// minutes<NEW_LINE>la[2] = (millis / 60000) % 60;<NEW_LINE>// seconds<NEW_LINE>la[3] = (millis / 10... | 4] = (millis % 1000); |
1,320,688 | final GetServiceQuotaIncreaseRequestFromTemplateResult executeGetServiceQuotaIncreaseRequestFromTemplate(GetServiceQuotaIncreaseRequestFromTemplateRequest getServiceQuotaIncreaseRequestFromTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getServiceQuotaIncreaseRequestFromTemplateRe... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,526,153 | private static LiteralRegexExecNode createLiteralNode(RegexLanguage language, RegexAST ast) {<NEW_LINE>PreCalcResultVisitor preCalcResultVisitor = PreCalcResultVisitor.run(ast, true);<NEW_LINE>boolean caret = ast.getRoot().startsWithCaret();<NEW_LINE>boolean dollar = ast.getRoot().endsWithDollar();<NEW_LINE>if (ast.get... | ast, new RegionMatches(preCalcResultVisitor)); |
1,040,620 | ASTNode clone0(AST target) {<NEW_LINE>MethodDeclaration result = new MethodDeclaration(target);<NEW_LINE>result.setSourceRange(getStartPosition(), getLength());<NEW_LINE>result.setJavadoc((Javadoc) ASTNode.copySubtree(target, getJavadoc()));<NEW_LINE>if (this.ast.apiLevel == AST.JLS2_INTERNAL) {<NEW_LINE>result.interna... | (target, getReturnType())); |
958,719 | public void enterCip_transform_set(Cip_transform_setContext ctx) {<NEW_LINE>if (_currentIpsecTransformSet != null) {<NEW_LINE>throw new BatfishException("IpsecTransformSet should be null!");<NEW_LINE>}<NEW_LINE>_currentIpsecTransformSet = new IpsecTransformSet(ctx.name.getText());<NEW_LINE>_configuration.defineStructur... | (ctx.ipsec_encryption())); |
1,820,402 | final UpdateMemberResult executeUpdateMember(UpdateMemberRequest updateMemberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateMemberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
377,259 | protected HandlerMethod handleNoMatch(Set<RequestMappingInfo> infos, ServerWebExchange exchange) throws Exception {<NEW_LINE>PartialMatchHelper helper = new PartialMatchHelper(infos, exchange);<NEW_LINE>if (helper.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ServerHttpRequest request = exchange.getRequest();<... | > mediaTypes = helper.getConsumableMediaTypes(); |
1,177,304 | public okhttp3.Call deleteAPIProductCall(String apiProductId, String ifMatch, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api-products/{apiProductId}".replaceAll("\\{" + "apiProductId" + "\\}", loc... | final String[] localVarContentTypes = {}; |
1,106,727 | // logger ////////////////////////////////////////////////////////////////////////////<NEW_LINE>protected void logRegistration(Set<String> deploymentIds, ProcessApplicationReference reference) {<NEW_LINE>if (!LOG.isInfoEnabled()) {<NEW_LINE>// building the log message is expensive (db queries) so we avoid it if we can<... | boolean cmmnEnabled = processEngineConfiguration.isCmmnEnabled(); |
958,693 | public int filterRGB(int x, int y, int rgb) {<NEW_LINE>// use NTSC conversion formula<NEW_LINE>int gray = (int) (0.30 * (rgb >> 16 & 0xff) + 0.59 * (rgb >> 8 & 0xff) + 0.11 * (rgb & 0xff));<NEW_LINE>if (brightness >= 0)<NEW_LINE>gray = (int) ((gray + brightness * 255) / (1 + brightness));<NEW_LINE>else<NEW_LINE>gray = ... | gray / (1 - brightness)); |
428,524 | public static HashMap<String, Object> convertV2TIMFriendInfoToMap(V2TIMFriendInfo info) {<NEW_LINE>HashMap<String, Object> rinfo = new HashMap<String, Object>();<NEW_LINE>List<String> ulists = info.getFriendGroups();<NEW_LINE>rinfo.put("friendGroups", ulists);<NEW_LINE>rinfo.put(<MASK><NEW_LINE>rinfo.put("userID", info... | "friendRemark", info.getFriendRemark()); |
1,125,714 | public com.amazonaws.services.workdocs.model.TooManySubscriptionsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.workdocs.model.TooManySubscriptionsException tooManySubscriptionsException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth =... | workdocs.model.TooManySubscriptionsException(null); |
955,135 | private static void submitTopologyToFile(TopologyAPI.Topology fTopology, Map<String, String> heronCmdOptions) {<NEW_LINE>String dirName = heronCmdOptions.get(CMD_TOPOLOGY_DEFN_TEMPDIR);<NEW_LINE>if (dirName == null || dirName.isEmpty()) {<NEW_LINE>throw new TopologySubmissionException("Topology definition temp director... | TopologySubmissionException("Error writing topology definition to temp directory: " + dirName, e); |
207,656 | public static String printErrorMessage(String format, String errorMessage, int startIndex, int endIndex, InputBuffer inputBuffer) {<NEW_LINE>checkArgNotNull(inputBuffer, "inputBuffer");<NEW_LINE>checkArgument(startIndex <= endIndex);<NEW_LINE>Position pos = inputBuffer.getPosition(startIndex);<NEW_LINE>StringBuilder sb... | .line, pos.column)); |
354,082 | public void testMultipleObtrude() throws Exception {<NEW_LINE>BlockableIncrementFunction increment = new BlockableIncrementFunction("testMultipleObtrude", null, null);<NEW_LINE>CompletableFuture<Integer> cf1 = defaultManagedExecutor.supplyAsync(() -> 80);<NEW_LINE>cf1.obtrudeValue(90);<NEW_LINE>CompletableFuture<Intege... | assertTrue(cf4.isCancelled()); |
432,489 | final DescribeMaintenanceWindowExecutionTaskInvocationsResult executeDescribeMaintenanceWindowExecutionTaskInvocations(DescribeMaintenanceWindowExecutionTaskInvocationsRequest describeMaintenanceWindowExecutionTaskInvocationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeMaintena... | false), new DescribeMaintenanceWindowExecutionTaskInvocationsResultJsonUnmarshaller()); |
312,803 | private ChannelBuffer header090() {<NEW_LINE>final byte[] buf = new byte[4 + 1 + 4 + 2 + 29 + 2 + 48 + 2 + 47];<NEW_LINE>final ChannelBuffer header = commonHeader(buf, HRPC3);<NEW_LINE>// Serialized UserGroupInformation to say who we are.<NEW_LINE>// We're not nice so we're not gonna say who we are and we'll just send<... | header.writerIndex() + 4); |
1,539,160 | public ItemStack extract(IStackFilter filter, int min, int max, boolean simulate) {<NEW_LINE>if (min < 1)<NEW_LINE>min = 1;<NEW_LINE>if (min > max)<NEW_LINE>return StackUtil.EMPTY;<NEW_LINE>if (max < 0)<NEW_LINE>return StackUtil.EMPTY;<NEW_LINE>if (filter == null) {<NEW_LINE>filter = StackFilter.ALL;<NEW_LINE>}<NEW_LIN... | total.getCount(), simulate); |
1,209,898 | public Xid[] recover(int flag) throws XAException {<NEW_LINE>svLogger.entering(CLASSNAME, "recover", new Object[] { this, ivMC, AdapterUtil.getXAResourceRecoverFlagString(flag) });<NEW_LINE>Xid[] xids = null;<NEW_LINE>try {<NEW_LINE>// LIDB1181.8.1<NEW_LINE>xids = ivXaRes.recover(flag);<NEW_LINE>if (xids.length == 0) {... | exiting(CLASSNAME, "recover", "Exception"); |
1,641,407 | public boolean onCreateOptionsMenu(final Menu menu) {<NEW_LINE>try (ContextLogger ignore = new ContextLogger(Log.LogLevel.DEBUG, "MainActivity.onCreateOptionsMenu")) {<NEW_LINE>getMenuInflater().inflate(R.menu.main_activity_options, menu);<NEW_LINE>MenuCompat.setGroupDividerEnabled(menu, true);<NEW_LINE>final SearchMan... | -> Log.d("Post after MainActivity.onCreateOptionsMenu")); |
1,384,072 | private void uninstallPlugins(Set<CordovaPlugin> pluginsToUninstall) {<NEW_LINE>for (CordovaPlugin plugin : pluginsToUninstall) {<NEW_LINE>log(getCordovaCommand() + " -d plugin remove " + plugin.getId());<NEW_LINE>ExecTask exec = (ExecTask) <MASK><NEW_LINE>final Environment.Variable variable = new Environment.Variable(... | getProject().createTask("exec"); |
89,639 | public void updateFromFieldAssignment(Node lhs, Node rhs) {<NEW_LINE>Element element;<NEW_LINE>String fieldName;<NEW_LINE>if (lhs instanceof FieldAccessNode) {<NEW_LINE>element = ((FieldAccessNode) lhs).getElement();<NEW_LINE>fieldName = ((FieldAccessNode) lhs).getFieldName();<NEW_LINE>} else if (lhs instanceof LocalVa... | ), element, fieldName, rhsATM); |
953,837 | public boolean onSingleTapConfirmed(MotionEvent e, MapView mapView) {<NEW_LINE>final Projection pj = mapView.getProjection();<NEW_LINE>final Rect screenRect = pj.getIntrinsicScreenRect();<NEW_LINE>final int size = this.size();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>final Item item = getItem(i);<NEW_LINE>pj.... | item.getPoint(), mCurScreenCoords); |
256,346 | // </editor-fold>//GEN-END:initComponents<NEW_LINE>private void removeButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_removeButtonActionPerformed<NEW_LINE>int[] selectedRows = selectedRolesTable.getSelectedRows();<NEW_LINE>DefaultTableModel allRolesTableModel = (DefaultTableModel) al... | (selectedRows[i], 0); |
1,559,727 | public static SettingsController create(Context context, String googleAppId, IdManager idManager, HttpRequestFactory httpRequestFactory, String versionCode, String versionName, FileStore fileStore, DataCollectionArbiter dataCollectionArbiter) {<NEW_LINE>final String installerPackageName = idManager.getInstallerPackageN... | determineFrom(installerPackageName).getId(); |
723,371 | ArrayList<Object> new138() /* reduce AAdynamicinvokeexpr3InvokeExpr */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList = new ArrayList<Object>();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList9 = pop();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>Arra... | TRParen) nodeArrayList5.get(0); |
1,050,121 | protected Future<Boolean> doConnect() {<NEW_LINE>if (oAuthGrant != null) {<NEW_LINE>LOG.fine("Retrieving OAuth access token: " + getClientUri());<NEW_LINE>ResteasyClient client = createClient(executorService, 1, CONNECTION_TIMEOUT_MILLISECONDS, null);<NEW_LINE>try {<NEW_LINE>OAuthFilter oAuthFilter = new OAuthFilter(cl... | "Failed to retrieve OAuth access token for '" + getClientUri() + "': Connection error"); |
1,697,161 | private Optional<CommissionPoints> extractForecastCommissionPoints(@NonNull final I_C_Invoice_Candidate icRecord) {<NEW_LINE>final Quantity forecastQtyStockUOM = invoiceCandBL.getQtyOrderedStockUOM(icRecord).subtract(invoiceCandBL.getQtyToInvoiceStockUOM(icRecord)).subtract<MASK><NEW_LINE>final ProductPrice priceActual... | (invoiceCandBL.getQtyInvoicedStockUOM(icRecord)); |
1,606,251 | public void startAnim() {<NEW_LINE>ObjectAnimator xAnim = ObjectAnimator.ofFloat(targetView, "x", fromViewInfo.getX(), toViewInfo.getX());<NEW_LINE>ObjectAnimator yAnim = ObjectAnimator.ofFloat(targetView, "y", fromViewInfo.getY(), toViewInfo.getY());<NEW_LINE>ValueAnimator widthAnim = ValueAnimator.ofInt(fromViewInfo.... | LayoutParams param = targetView.getLayoutParams(); |
1,016,703 | /* XXX: extends AggregateBuilder ? */<NEW_LINE>public static AnalysisEngineDescription createEngineDescription() throws ResourceInitializationException {<NEW_LINE>AggregateBuilder builder = new AggregateBuilder();<NEW_LINE>AnalysisEngineDescription primarySearch = AnalysisEngineFactory.createEngineDescription(SolrDocPr... | , FixedFlowController.PARAM_ACTION_AFTER_CAS_MULTIPLIER, "drop")); |
1,452,512 | static DataType fromString(String typeName) {<NEW_LINE>if (typeName.equals("BOOL")) {<NEW_LINE>return new DataType(rpc_data_type.RPC_BOOL, 1);<NEW_LINE>} else if (typeName.equals("CHAR")) {<NEW_LINE>return new DataType(rpc_data_type.RPC_CHAR, 1);<NEW_LINE>} else if (typeName.equals("UCHAR")) {<NEW_LINE>return new DataT... | DataType(rpc_data_type.RPC_USHORT, 2); |
279,087 | public okhttp3.Call connectHeadNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy... | localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); |
1,088,469 | private static void registerTimeTypeValue() {<NEW_LINE>BINLOG_PROTOCOL_VALUES.put(MySQLBinaryColumnType.MYSQL_TYPE_YEAR, new MySQLYearBinlogProtocolValue());<NEW_LINE>BINLOG_PROTOCOL_VALUES.put(MySQLBinaryColumnType.MYSQL_TYPE_DATE, new MySQLDateBinlogProtocolValue());<NEW_LINE>BINLOG_PROTOCOL_VALUES.put(MySQLBinaryCol... | .MYSQL_TYPE_DATETIME, new MySQLDatetimeBinlogProtocolValue()); |
1,195,572 | public void render(MatrixStack matrixStack, int mouseX, int mouseY, float partialTicks) {<NEW_LINE>renderBackground(matrixStack);<NEW_LINE>listGui.render(matrixStack, mouseX, mouseY, partialTicks);<NEW_LINE>Matrix4f matrix = matrixStack.peek().getPositionMatrix();<NEW_LINE>BufferBuilder bufferBuilder = Tessellator.getI... | 0, 0).next(); |
1,111,914 | public Tile tileFor(BoundingBox bbox) {<NEW_LINE><MASK><NEW_LINE>Coord ne = bbox.getNorthEast();<NEW_LINE>Coord c = projection().toWGS84(new Coord(ne.getLatitude() - bbox.latitudeDifference() / 2, ne.getLongitude() - bbox.longitudeDifference() / 2, true));<NEW_LINE>sb.append("center=");<NEW_LINE>sb.append(c.getLatitude... | StringBuilder sb = new StringBuilder(_url); |
64,224 | protected synchronized void updateData() {<NEW_LINE>logger.debug("Periodic update for '{}' ({})", getThing().getUID().toString(), getThing().getThingTypeUID());<NEW_LINE>final MiIoAsyncCommunication miioCom = getConnection();<NEW_LINE>try {<NEW_LINE>if (!hasConnection() || skipUpdate() || miioCom == null) {<NEW_LINE>re... | ).toString(), e); |
1,470,481 | private boolean checkClassInstanceCreation() {<NEW_LINE>if (topKnownElementKind(COMPLETION_OR_ASSIST_PARSER) == K_BETWEEN_NEW_AND_LEFT_BRACKET) {<NEW_LINE>int length = this.identifierLengthStack[this.identifierLengthPtr];<NEW_LINE>int numberOfIdentifiers = this.genericsIdentifiersLengthStack[this.genericsIdentifiersLen... | .lastCheckPoint = type.sourceEnd + 1; |
596,777 | public CellAppearanceEx forSdk(@Nullable final Sdk jdk, final boolean isInComboBox, final boolean selected, final boolean showVersion) {<NEW_LINE>if (jdk == null) {<NEW_LINE>return SimpleTextCellAppearance.invalid(ProjectBundle.message("unknown.sdk"), AllIcons.Actions.Help);<NEW_LINE>}<NEW_LINE>String name = jdk.getNam... | ending.addComment(versionString, textAttributes); |
1,370,336 | public LoggingConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>LoggingConfig loggingConfig = new LoggingConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_... | String currentParentElement = context.getCurrentParentElement(); |
43,603 | public static PsiElement findCommonParent(final PsiElement root, final int startOffset, final int endOffset) {<NEW_LINE>if (startOffset == endOffset)<NEW_LINE>return null;<NEW_LINE>final PsiElement left = findElementAtInRoot(root, startOffset);<NEW_LINE>PsiElement right = <MASK><NEW_LINE>if (left == null || right == nu... | findElementAtInRoot(root, endOffset - 1); |
157,108 | private void initUserComponents(SectionNodeView sectionNodeView) {<NEW_LINE>showAS90Fields(as90FeaturesVisible);<NEW_LINE>// if(theBean.getJ2EEModuleVersion().compareTo(ServletVersion.SERVLET_2_4) >= 0) {<NEW_LINE>// showWebServiceEndpointInformation();<NEW_LINE>// } else {<NEW_LINE>hideWebServiceEndpointInformation();... | Servlet.PRINCIPAL_NAME, ATTR_CLASSNAME))); |
86,827 | public static DescribeSslVpnServersResponse unmarshall(DescribeSslVpnServersResponse describeSslVpnServersResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSslVpnServersResponse.setRequestId(_ctx.stringValue("DescribeSslVpnServersResponse.RequestId"));<NEW_LINE>describeSslVpnServersResponse.setPageSize(_ctx.intege... | ("DescribeSslVpnServersResponse.SslVpnServers[" + i + "].Name")); |
1,493,800 | private static Pair<List<ErlangNamedElement>, List<ErlangNamedElement>> analyze(@NotNull List<? extends PsiElement> elements) {<NEW_LINE>PsiElement first = elements.get(0);<NEW_LINE>PsiElement scope = PsiTreeUtil.getTopmostParentOfType(first, ErlangFunction.class);<NEW_LINE>PsiElement lastElement = elements.get(element... | LocalSearchScope localSearchScope = new LocalSearchScope(scope); |
978,982 | public boolean upgrade(Request request, HttpFields.Mutable responseFields) {<NEW_LINE>if (HttpMethod.PRI.is(request.getMethod())) {<NEW_LINE>getParser().directUpgrade();<NEW_LINE>} else {<NEW_LINE>HttpField settingsField = request.getFields().getField(HttpHeader.HTTP2_SETTINGS);<NEW_LINE>if (settingsField == null)<NEW_... | put(HttpHeader.CONNECTION, "Upgrade"); |
121,938 | public okhttp3.Call readNamespacedResourceQuotaStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{nam... | localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); |
47,393 | private void drawOn(JPanel panel, String value) {<NEW_LINE>List<Image> images = new ArrayList<>();<NEW_LINE>value = value.toUpperCase(Locale.ENGLISH);<NEW_LINE>for (int i = 0; i < value.length(); i++) {<NEW_LINE>char <MASK><NEW_LINE>Image image = ManaSymbols.getSizedManaSymbol(String.valueOf(symbol));<NEW_LINE>if (imag... | symbol = value.charAt(i); |
1,368,031 | public void forget(Xid xid) throws XAException {<NEW_LINE>System.out.println("forget(" + _key + ", " + xid + ")");<NEW_LINE>_XAEvents.add(new XAEvent(XAEventCode.FORGET, _key));<NEW_LINE>final int forgetAction = self().getForgetAction();<NEW_LINE>if (forgetAction != XAResource.XA_OK) {<NEW_LINE>final int repeatCount <M... | = self().getForgetRepeatCount(); |
97,771 | public static MapMarker fromFavourite(@NonNull OsmandApplication app, @NonNull FavouritePoint point, @Nullable MapMarkersGroup group) {<NEW_LINE>int colorIndex = MapMarker.getColorIndex(app, point.getColor());<NEW_LINE>LatLon latLon = new LatLon(point.getLatitude(<MASK><NEW_LINE>PointDescription name = new PointDescrip... | ), point.getLongitude()); |
970,965 | public boolean containsValue(@CheckForNull Object value) {<NEW_LINE>// does not impact recency ordering<NEW_LINE>if (value == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// This implementation is patterned after ConcurrentHashMap, but without the locking. The only<NEW_LINE>// way for it to return a false negativ... | long now = ticker.read(); |
237,307 | private int createComplementDataCommand(Date scheduleDate) {<NEW_LINE>Command command = new Command();<NEW_LINE>command.setScheduleTime(scheduleDate);<NEW_LINE>command.setCommandType(CommandType.COMPLEMENT_DATA);<NEW_LINE>command.setProcessDefinitionCode(processInstance.getProcessDefinitionCode());<NEW_LINE>Map<String,... | setProcessInstancePriority(processInstance.getProcessInstancePriority()); |
1,768,613 | private void addInitializersToConstructors(ASTRewrite rewrite) throws CoreException {<NEW_LINE>Assert.isTrue(!isDeclaredInAnonymousClass());<NEW_LINE>final AbstractTypeDeclaration declaration = (AbstractTypeDeclaration) getMethodDeclaration().getParent();<NEW_LINE>final MethodDeclaration[] constructors = getAllConstruc... | MethodDeclaration newConstructor = ast.newMethodDeclaration(); |
411,806 | public void spew(final ResolveOptions resOpt, final StringSpewCatcher to, final String indent, final boolean nameSort) throws IOException {<NEW_LINE>to.spewLine(indent + "=====ENTITY=====");<NEW_LINE>to.spewLine(indent + getResolvedName());<NEW_LINE>to.spewLine(indent + "================");<NEW_LINE>to.spewLine(indent ... | spewProperties(to, indent + " "); |
121,121 | public Builder mergeFrom(emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify other) {<NEW_LINE>if (other == emu.grasscutter.net.proto.WorldPlayerInfoNotifyOuterClass.WorldPlayerInfoNotify.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (playerInfoListBuilder_ == null) {<NEW_LINE>if (... | bitField0_ = (bitField0_ & ~0x00000001); |
193,092 | private Map<String, Object> tableOrUserTypeToAvro(FieldInfo fieldInfo, UserTypeInfo typeInfo, boolean asSchema) {<NEW_LINE>Map<String, Object> field = new HashMap<String, Object>();<NEW_LINE>// Field name<NEW_LINE>String name = SchemaUtils.toCamelCase(fieldInfo.getFieldName());<NEW_LINE>field.put("name", name);<NEW_LIN... | .getFieldTypeInfo().getName(); |
657,921 | public boolean connectPhysicalDisksViaVmSpec(VirtualMachineTO vmSpec) {<NEW_LINE>boolean result = false;<NEW_LINE>final String vmName = vmSpec.getName();<NEW_LINE>List<DiskTO> disks = Arrays.asList(vmSpec.getDisks());<NEW_LINE>for (DiskTO disk : disks) {<NEW_LINE>if (disk.getType() == Volume.Type.ISO) {<NEW_LINE>result... | getStorageAdaptor(pool.getType()); |
1,853,649 | public void handle(PacketWrapper wrapper) throws Exception {<NEW_LINE>Position position = wrapper.<MASK><NEW_LINE>short action = wrapper.get(Type.UNSIGNED_BYTE, 0);<NEW_LINE>CompoundTag tag = wrapper.get(Type.NBT, 0);<NEW_LINE>BlockEntityProvider provider = Via.getManager().getProviders().get(BlockEntityProvider.class)... | get(Type.POSITION, 0); |
824,743 | public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("ftp_dir" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int size = 0;<NEW_LINE>FtpClientImpl client = null;<NEW_LINE>SFtpClientImpl sclient = null;<NEW_L... | MessageManager mm = EngineMessage.get(); |
1,666,419 | private void registerActions(final JComponent view) {<NEW_LINE>InputMap inputMap = getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);<NEW_LINE>ActionMap actionMap = getActionMap();<NEW_LINE>final String filterKey = org.netbeans.lib.profiler<MASK><NEW_LINE>Action filterAction = new AbstractAction() {<NEW_LINE><... | .ui.swing.FilterUtils.FILTER_ACTION_KEY; |
313,643 | private void putMediaWithSender(final Consumer<OutputStream> sender) {<NEW_LINE>final ParallelSimpleHttpClient.Builder clientBuilder = ParallelSimpleHttpClient.builder().uri(mBuilder.mUri).method(POST).log(log).header(STREAM_NAME_HEADER, mBuilder.mStreamName).header(TRANSFER_ENCODING, CHUNKED).header(CONNECTION, KEEP_A... | USER_AGENT, VersionUtil.getUserAgent()); |
1,657,960 | private boolean suggest(ApplicationId applicationId, ClusterSpec.Id clusterId, NodeList clusterNodes) {<NEW_LINE>Application application = applications().get(applicationId).orElse(Application.empty(applicationId));<NEW_LINE>Optional<Cluster> cluster = application.cluster(clusterId);<NEW_LINE>if (cluster.isEmpty())<NEW_... | retired().toResources()); |
670,651 | final DeleteTransitGatewayConnectResult executeDeleteTransitGatewayConnect(DeleteTransitGatewayConnectRequest deleteTransitGatewayConnectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTransitGatewayConnectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
811,174 | public int compareTo(getCompactionQueueInfo_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTinfo(<MASK><NEW_LINE>if (lastCo... | ), other.isSetTinfo()); |
101,388 | static void buildRecursiveScp(final SCPInterface scp, final INodeEntry nodeentry, final Project project, final String remotePath, final File sourceFolder, final SSHConnectionInfo sshConnectionInfo, final int loglevel, final PluginLogger logger) throws BuilderException {<NEW_LINE>if (null == sourceFolder) {<NEW_LINE>thr... | scp.setTodir(sshUriPrefix + remotePath); |
353,057 | final DeleteBusinessReportScheduleResult executeDeleteBusinessReportSchedule(DeleteBusinessReportScheduleRequest deleteBusinessReportScheduleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBusinessReportScheduleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.