idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,321,701 | public void after(Object target, Object[] args, Object result, Throwable throwable) {<NEW_LINE>if (isDebug) {<NEW_LINE>logAfterInterceptor(target, args, result, throwable);<NEW_LINE>}<NEW_LINE>final boolean success = InterceptorUtils.isSuccess(throwable);<NEW_LINE>// Must not check if current transaction is trace targe... | = getHostList(args[0]); |
1,656,945 | public synchronized void drawGlyphVector(SunGraphics2D sg2d, GlyphVector glyphVector, float x, float y) {<NEW_LINE>OSXSurfaceData surfaceData = (OSXSurfaceData) sg2d.getSurfaceData();<NEW_LINE>Shape shape = glyphVector.getOutline(x, y);<NEW_LINE>// get final destination compositing bounds (after all transformations if ... | Graphics2D g = srcPixels.createGraphics(); |
479,368 | final DisassociateBudgetFromResourceResult executeDisassociateBudgetFromResource(DisassociateBudgetFromResourceRequest disassociateBudgetFromResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateBudgetFromResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DisassociateBudgetFromResource"); |
1,563,566 | public VoidResponse updatePort(String serverName, String userId, String portGUID, PortRequestBody requestBody) {<NEW_LINE>final String methodName = "updatePort";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCall(serverName, userId, methodName);<NEW_LINE>VoidResponse response = new VoidResponse();<NEW_LINE>Audit... | requestBody.getElementProperties(), methodName); |
1,634,398 | private int doStartService(Context context, Intent intent) {<NEW_LINE>// It seems that startService with intent without ClassName can fail due to a framework bug<NEW_LINE>// See: http://b/19873307 and http://b/24065801 for GCM<NEW_LINE>String className = resolveServiceClassName(context, intent);<NEW_LINE>if (className ... | d(TAG, "Restricting intent to a specific service: " + className); |
1,402,866 | public void adjustVolumeLevel(double adjustPercent) {<NEW_LINE>if (disableGestures) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// We are setting volume percent to a value that should be from -1.0 to 1.0. We need to limit it here for these values first<NEW_LINE>if (adjustPercent < -1.0f) {<NEW_LINE>adjustPercent = -1.0f;<NE... | curVolume = audioManager.getStreamVolume(STREAM); |
1,484,218 | final ExportConfigurationsResult executeExportConfigurations(ExportConfigurationsRequest exportConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(exportConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
398,693 | private String runApplicability(Properties ctx, String trxName, PO po, List<MFMFunctionalApplicability> applicabilityList, Map<String, Object> parameters) {<NEW_LINE>//<NEW_LINE>StringBuffer message = new StringBuffer();<NEW_LINE>try {<NEW_LINE>// Iterate applicability for run<NEW_LINE>for (MFMFunctionalApplicability a... | settingForRun.setParameter(PARAMETER_TRX_NAME, trxName); |
1,809,580 | private void sendVectors(PointSequence pointSequence) {<NEW_LINE>int totalRawVectors = (pointSequence.mPoints.size() * 2);<NEW_LINE>int outputSize = (totalRawVectors > 1000 ? 1000 : totalRawVectors);<NEW_LINE>// +2 for the 0xFFFFs<NEW_LINE>List<Object> outputData = new ArrayList<Object>(outputSize + 2);<NEW_LINE>for (P... | (Integer.valueOf(0xFFFF)); |
1,010,707 | protected void doService(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>logRequest(request);<NEW_LINE>// Keep a snapshot of the request attributes in case of an include,<NEW_LINE>// to be able to restore the original attributes after the include.<NEW_LINE>Map<String, Object> attri... | setAttribute(THEME_SOURCE_ATTRIBUTE, getThemeSource()); |
86,161 | private ConfigItem parseValue(String status, String data) {<NEW_LINE>ConfigItem config = new ConfigItem();<NEW_LINE>if ("C".equals(status)) {<NEW_LINE>if (StringUtils.isEmpty(data)) {<NEW_LINE>data = "1";<NEW_LINE>}<NEW_LINE>int count = (int) Double.parseDouble(data);<NEW_LINE>config.setCount(count);<NEW_LINE>config.se... | parseDouble(datas[1])); |
100,058 | private Mono<PagedResponse<MetricSeriesDefinition>> listMetricSeriesDefinitionNextPageAsync(String nextPageLink, OffsetDateTime activeSince, ListMetricSeriesDefinitionOptions options, Context context) {<NEW_LINE>if (CoreUtils.isNullOrEmpty(nextPageLink)) {<NEW_LINE>return Mono.empty();<NEW_LINE>}<NEW_LINE>if (activeSin... | -> MetricSeriesDefinitionTransforms.fromInnerResponse(res)); |
1,391,810 | final UpdateParallelDataResult executeUpdateParallelData(UpdateParallelDataRequest updateParallelDataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateParallelDataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
365,728 | private static serverObjects genUrlProfile(final Segment segment, final URIMetadataNode entry, final String urlhash, final String nextTransactionToken) {<NEW_LINE>final serverObjects prop = new serverObjects();<NEW_LINE>if (entry == null) {<NEW_LINE>prop.put("genUrlProfile", "1");<NEW_LINE>prop.put("genUrlProfile_urlha... | "genUrlProfile_language", entry.language()); |
838,952 | // GEN-LAST:event_codenameOneTabsActionPerformed<NEW_LINE>private void propertiesMouseClicked(java.awt.event.MouseEvent evt) {<NEW_LINE>// GEN-FIRST:event_propertiesMouseClicked<NEW_LINE>if (BaseForm.isRightClick(evt)) {<NEW_LINE>AbstractAction clearModified = new AbstractAction() {<NEW_LINE><NEW_LINE>public void actio... | [0], propertyId, propertyName); |
657,310 | // This exposes onCreateWindow to JS with a similar API to Android:<NEW_LINE>// If the end-developer sets the 'onCreateWindow' property of the WebViewProxy<NEW_LINE>// to a callback function, then it gets executed when a new window is created<NEW_LINE>// by the WebView (generally, when a link is clicked that has a non-... | put(TiC.EVENT_PROPERTY_IS_DIALOG, isDialog); |
60,538 | public MetricProcessingConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MetricProcessingConfig metricProcessingConfig = new MetricProcessingConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok... | String currentParentElement = context.getCurrentParentElement(); |
1,110,980 | private Mono<Response<Flux<ByteBuffer>>> updateTagsWithResponseAsync(String resourceGroupName, String loadBalancerName, TagsObject parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and... | this.client.mergeContext(context); |
1,762,827 | final ListTypeRegistrationsResult executeListTypeRegistrations(ListTypeRegistrationsRequest listTypeRegistrationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTypeRegistrationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,258,545 | public void doExecute(@Nonnull final Editor editor, @Nullable Caret caret, final DataContext dataContext) {<NEW_LINE>assert caret != null;<NEW_LINE>if (editor.isViewer() || !EditorModificationUtil.requestWriting(editor))<NEW_LINE>return;<NEW_LINE>if (!(editor.getDocument() instanceof DocumentEx)) {<NEW_LINE>myOriginalH... | doc, psiFile, line, indicator); |
2,593 | private MessageListenerContainer createAndConfigureContainer(ConsumerDestination consumerDestination, String group, ExtendedConsumerProperties<RabbitConsumerProperties> properties, String destination, RabbitConsumerProperties extension) {<NEW_LINE>if (extension.getContainerType().equals(ContainerType.STREAM)) {<NEW_LIN... | setDefaultRequeueRejected(extension.isRequeueRejected()); |
1,550,872 | private void startAckThread() {<NEW_LINE>ackConsumer = messageQueue.createConsumer();<NEW_LINE>executor.submit(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>String name = StringUtils.join(Lists.newArrayList(messageQueue.getName(), "Ack"), ":");<NEW_LINE>Thread.currentThread().setNa... | > messages = Lists.newArrayList(); |
965,594 | private INDArray derivativeLossStyleInLayer(INDArray styleGramFeatures, INDArray comboFeatures) {<NEW_LINE>comboFeatures = comboFeatures.dup();<NEW_LINE>double N = comboFeatures.shape()[0];<NEW_LINE>double M = comboFeatures.shape()[1] * comboFeatures.shape()[2];<NEW_LINE>double styleWeight = 1.0 / ((N * N) * (M * M));<... | posResult = product.muli(styleWeight); |
1,363,256 | public static int compareEventDates(Event one, Event two) {<NEW_LINE>ZonedDateTime now = ZonedDateTime.now();<NEW_LINE>ZonedDateTime startDate = DateUtils.getDate(one.getStartsAt());<NEW_LINE>ZonedDateTime endDate = DateUtils.getDate(one.getEndsAt());<NEW_LINE>ZonedDateTime otherStartDate = DateUtils.getDate(two.getSta... | getDate(two.getEndsAt()); |
1,803,380 | final RollbackStackResult executeRollbackStack(RollbackStackRequest rollbackStackRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rollbackStackRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<RollbackStackRequest> request = null;<NE... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,154,568 | void releaseSession(RWWriteCacheService cache) {<NEW_LINE>if (m_context != null) {<NEW_LINE>throw new IllegalStateException("Calling releaseSession on shadowed allocator");<NEW_LINE>}<NEW_LINE>if (this.m_sessionActive) {<NEW_LINE>final int start = m_sessionFrees.intValue();<NEW_LINE>// try {<NEW_LINE>if (s_islogTrace)<... | !m_store.isSessionProtected() : "releaseSession called with isSessionProtected: true"; |
99,114 | private void createSharedFieldSetter(Field field) {<NEW_LINE>String setterName = "set" + MetaClassHelper.capitalize(field.getName());<NEW_LINE>Parameter[] params = new Parameter[] { new Parameter(field.getAst().getType(), "$spock_value") };<NEW_LINE>MethodNode setter = spec.getAst().getMethod(setterName, params);<NEW_L... | params, ClassNode.EMPTY_ARRAY, setterBlock); |
918,383 | public static Image generateImage(RegionMCAFile mcaFile, int scale) {<NEW_LINE>int size = Tile.SIZE / scale;<NEW_LINE>int chunkSize = Tile.CHUNK_SIZE / scale;<NEW_LINE>int pixels = Tile.PIXELS / (scale * scale);<NEW_LINE>try {<NEW_LINE>WritableImage finalImage = new WritableImage(size, size);<NEW_LINE><MASK><NEW_LINE>i... | PixelWriter writer = finalImage.getPixelWriter(); |
1,787,030 | final PutIntegrationResult executePutIntegration(PutIntegrationRequest putIntegrationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putIntegrationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<PutIntegrat... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
489,196 | public void actionPerformed(ActionEvent e) {<NEW_LINE>// Do change in future for overall safety<NEW_LINE>SwingUtilities.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>document.addUndoPosition("Split cluster");<NEW_LINE>List<RocketComponent> listeners = new ArrayList<<MAS... | >(component.getConfigListeners()); |
40,859 | public boolean matchItems(Item[][] input, Item[][] output) {<NEW_LINE>if (!matchInputMap(cloneItemArray(input))) {<NEW_LINE>// Item[][] result = input;<NEW_LINE>for (int i = 0; i < input.length; i++) {<NEW_LINE>Item[] old = input[i];<NEW_LINE>Item[] newArray = new Item[old.length];<NEW_LINE>System.arraycopy(old, 0, new... | () && needItems.isEmpty(); |
331,350 | final UpdateContactChannelResult executeUpdateContactChannel(UpdateContactChannelRequest updateContactChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateContactChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | (super.beforeMarshalling(updateContactChannelRequest)); |
668,186 | public Optional<String> createTicketReservation(Event event, List<TicketReservationWithOptionalCodeModification> list, List<ASReservationWithOptionalCodeModification> additionalServices, Optional<String> promoCodeDiscount, Locale locale, BindingResult bindingResult, Principal principal) {<NEW_LINE>Date expiration = Dat... | log.error("missing payment methods", cannotProceedWithPayment); |
863,440 | private void sendModules(List<NetData.ModuleRequest> moduleRequestList) {<NEW_LINE>for (NetData.ModuleRequest request : moduleRequestList) {<NEW_LINE>NetData.ModuleDataHeader.Builder result = NetData.ModuleDataHeader.newBuilder();<NEW_LINE>result.setId(request.getModuleId());<NEW_LINE>Module module = moduleManager.getE... | ByteString.readFrom(stream, 1024); |
648,626 | public Map<Integer, BigDecimal> retrieveIolAndQty(final PPOrderId ppOrderId) {<NEW_LINE>final IPPCostCollectorBL ppCostCollectorBL = Services.get(IPPCostCollectorBL.class);<NEW_LINE>final IPPCostCollectorDAO ppCostCollectorDAO = Services.get(IPPCostCollectorDAO.class);<NEW_LINE>final IHUAssignmentDAO huAssignmentDAO = ... | Services.get(IHUAssignmentDAO.class); |
816,240 | public List<DcListDcModel> findAllDcsRichInfo() {<NEW_LINE>try {<NEW_LINE>List<DcTbl> dcTbls = findAllDcs();<NEW_LINE>if (dcTbls == null || dcTbls.size() == 0)<NEW_LINE>return Collections.emptyList();<NEW_LINE>List<DcListDcModel> result = new LinkedList<>();<NEW_LINE>dcTbls.forEach(dcTbl -> {<NEW_LINE>DcMeta dcMeta = d... | typeClusters = new HashMap<>(); |
648,824 | private static void executeSendMessage(@NonNull Context context, @NonNull Parcelable session, @NonNull byte[] data, @NonNull ViewGroup aioRootView, @NonNull AppRuntime rt) {<NEW_LINE>int uinType = SessionInfoImpl.getUinType(session);<NEW_LINE>String uin = SessionInfoImpl.getUin(session);<NEW_LINE>File file;<NEW_LINE>tr... | intent.putExtra("forward_type", 1); |
535,288 | public void batchInsert(String index, String type, List<?> objects) {<NEW_LINE>try {<NEW_LINE>BulkRequestBuilder bulkRequest = client.prepareBulk();<NEW_LINE>for (Object object : objects) {<NEW_LINE>XContentBuilder builder = jsonBuilder().startObject();<NEW_LINE>String<MASK><NEW_LINE>for (String fileName : fileNames) {... | [] fileNames = getFiledName(object); |
1,687,286 | public ScanSchemaTracker build() {<NEW_LINE>if (errorContext == null) {<NEW_LINE>errorContext = EmptyErrorContext.INSTANCE;<NEW_LINE>}<NEW_LINE>// Parse the projection list<NEW_LINE>ProjectionParseResult result;<NEW_LINE>if (projectionList == null) {<NEW_LINE>result = null;<NEW_LINE>} else {<NEW_LINE>result = ScanProje... | ProjectionSchemaTracker(result, allowSchemaChange, errorContext); |
1,575,426 | private void addToGenotypes(final List<Genotype> genotypes, final VariantContext ctx, final String inputSampleName, final String outputSampleName, final List<Allele> allAlleles, final List<Allele> ctxAlleles, final boolean missingSitesHomRef) {<NEW_LINE>if (ctx != null && !ctxAlleles.isEmpty()) {<NEW_LINE>final Genotyp... | add(genotypeBuilder.make()); |
860,519 | public void bind(@NonNull Items.LocalExpertItem item) {<NEW_LINE>super.bind(item);<NEW_LINE>Glide.with(mAvatar.getContext()).load(item.getPhotoUrl()).asBitmap().centerCrop().placeholder(R.drawable.ic_local_expert_default).into(new BitmapImageViewTarget(mAvatar) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void set... | (float) item.getRating(); |
62,521 | private void onRotationUpdate(EntityData dataLeech, EntityFlag negativeXToggle, EntityFlag negativeYToggle, EntityFlag negativeZToggle, Rotation rotation) {<NEW_LINE>// Indicate that rotation should be checked<NEW_LINE><MASK><NEW_LINE>int rotationX = getRotation(rotation.getPitch());<NEW_LINE>int rotationY = getRotatio... | setFlag(EntityFlag.BRIBED, true); |
763,060 | public GeoResults<GeoLocation<byte[]>> geoRadiusByMember(byte[] key, byte[] member, Distance radius, GeoRadiusCommandArgs args) {<NEW_LINE>Assert.notNull(key, "Key must not be null!");<NEW_LINE>Assert.notNull(member, "Member must not be null!");<NEW_LINE>Assert.notNull(radius, "Radius must not be null!");<NEW_LINE><MAS... | Assert.notNull(args, "Args must not be null!"); |
583,914 | public int nextClearBit(int fromIndex) {<NEW_LINE>if (fromIndex < 0) {<NEW_LINE>throw new IndexOutOfBoundsException("fromIndex < 0: " + fromIndex);<NEW_LINE>}<NEW_LINE>int arrayIndex = arrayIndex(fromIndex);<NEW_LINE>AtomicLongArray array = arrays.get(arrayIndex);<NEW_LINE>int wordIndexInArray = wordIndexInArray(fromIn... | BITS_PER_WORD + Long.numberOfTrailingZeros(word); |
1,358,878 | final GetVpcAttachmentResult executeGetVpcAttachment(GetVpcAttachmentRequest getVpcAttachmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getVpcAttachmentRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetVpcAttachmentRequest> ... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
562,239 | private PrimaryKey buildOldPrimaryKey(Map<String, Object> map, Map<String, MappingConfig.ColumnItem> typeMap, Map<String, String> columnMap, LinkedHashMap<String, String> targetPk, Map<String, Object> old) {<NEW_LINE>List <MASK><NEW_LINE>for (Map.Entry<String, String> entry : targetPk.entrySet()) {<NEW_LINE>// build pr... | primaryKeyList = new ArrayList<>(); |
645,913 | public static List<LimitOrder> createOrders(final CurrencyPair currencyPair, final OrderType orderType, final List<RippleOrder> orders, final String baseCounterparty, final String counterCounterparty) {<NEW_LINE>final List<LimitOrder> <MASK><NEW_LINE>for (final RippleOrder rippleOrder : orders) {<NEW_LINE>// Taker Pays... | limitOrders = new ArrayList<>(); |
1,231,738 | public ContextKeyValue remove(ContextKey contextKey) {<NEW_LINE>if (contextKey == null || StringUtils.isBlank(contextKey.getKey())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ContextKeyValue contextKeyValue = getContextValueMapSet().remove(contextKey.getKey(), contextKey.getContextType());<NEW_LINE>if (null == context... | "Succeed to remove contextKey of {}", contextKey.getKey()); |
1,594,251 | public void accept(CSVRecord theRecord) {<NEW_LINE>String code = trim(theRecord.get(CODE));<NEW_LINE>String key = trim(theRecord.get(KEY));<NEW_LINE>if (isNotBlank(code) && isNotBlank(KEY)) {<NEW_LINE>String value = trim(theRecord.get(VALUE));<NEW_LINE>String type = trim(theRecord.get(TYPE));<NEW_LINE>List<TermConceptP... | conceptProperties = myCode2Properties.get(code); |
1,395,126 | public void createSchema(PhysicalPlan plan) throws MetadataException, CheckConsistencyException {<NEW_LINE>List<PartialPath> storageGroups = new ArrayList<>();<NEW_LINE>// for InsertPlan, try to just use deviceIds to get related storage groups because there's no<NEW_LINE>// need to call getPaths to concat deviceId and ... | ).getDevicePath()))); |
231,088 | /* Answer true if the method use is considered deprecated.<NEW_LINE>* An access in the same compilation unit is allowed.<NEW_LINE>*/<NEW_LINE>public final boolean isMethodUseDeprecated(MethodBinding method, Scope scope, boolean isExplicitUse) {<NEW_LINE>// ignore references insing Javadoc comments<NEW_LINE>if ((this.bi... | ().modifiers |= ExtraCompilerModifiers.AccLocallyUsed; |
1,371,894 | void unpackAttributes(Map<String, Object> attributes) {<NEW_LINE>this.enabled = (Boolean) attributes.get("enabled");<NEW_LINE>this.notBefore = epochToOffsetDateTime(attributes.get("nbf"));<NEW_LINE>this.expiresOn = epochToOffsetDateTime(attributes.get("exp"));<NEW_LINE>this.createdOn = epochToOffsetDateTime(attributes.... | ("contentType"), this.contentType); |
617,851 | private static void analyseWinMem(String resultString, Map<String, Map<String, String>> resultMap, Map<String, List<Long>> timeRecord) {<NEW_LINE>long sysTime = System.currentTimeMillis() * 10000;<NEW_LINE>OperatingSystemMXBean osmb = <MASK><NEW_LINE>long totalMem = osmb.getTotalPhysicalMemorySize();<NEW_LINE>String[] ... | (OperatingSystemMXBean) ManagementFactory.getOperatingSystemMXBean(); |
407,778 | private static void printNodeInternal(List<TreeNode> list, int level, int maxLevel) {<NEW_LINE>if (list.isEmpty() || CommonUtils.isAllElementsNull(list)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int floor = maxLevel - level;<NEW_LINE>int endgeLines = (int) Math.pow(2, (Math.max(floor - 1, 0)));<NEW_LINE>int firstSpaces =... | printWhitespaces(endgeLines + endgeLines - i); |
328,793 | protected void onCreate(final Bundle savedInstanceState) {<NEW_LINE>getLayoutInflater().setFactory2(new MaterialEmojiLayoutFactory((LayoutInflater.Factory2) getDelegate()));<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main_autocompletetextview);<NEW_LINE>chatAdapter = new Chat... | findViewById(R.id.main_activity_chat_bottom_message_edittext); |
613,637 | protected Key copyPartialKey(Key key, PartialKey part) {<NEW_LINE>Key keyCopy;<NEW_LINE>switch(part) {<NEW_LINE>case ROW:<NEW_LINE>keyCopy = new <MASK><NEW_LINE>break;<NEW_LINE>case ROW_COLFAM:<NEW_LINE>keyCopy = new Key(key.getRow(), key.getColumnFamily());<NEW_LINE>break;<NEW_LINE>case ROW_COLFAM_COLQUAL:<NEW_LINE>ke... | Key(key.getRow()); |
1,205,000 | private GotoCompletionProvider createTranslationGotoCompletionWithLabelSwitch(@NotNull PsiElement origin, @NotNull ArrayCreationExpression choices, Processor<ArrayCreationExpression> processor) {<NEW_LINE>PsiElement choicesArrayValue = choices.getParent();<NEW_LINE>if (choicesArrayValue.getNode().getElementType() == Ph... | PsiElement choicesKey = transKey.getParent(); |
961,045 | protected Response extractResponse(Invocation invocation, HttpServletResponseEx responseEx) {<NEW_LINE>Object result = invocation.getHandlerContext().get(RestConst.READ_STREAM_PART);<NEW_LINE>if (result != null) {<NEW_LINE>return Response.create(responseEx.getStatusType(), result);<NEW_LINE>}<NEW_LINE>OperationMeta ope... | CommonExceptionData(msg), e)); |
1,232,404 | public void drawU(UGraphic ug) {<NEW_LINE>double delta = 0;<NEW_LINE>if (index > 0) {<NEW_LINE>delta = page.getNewpage1() - page.getHeaderHeight();<NEW_LINE>}<NEW_LINE>if (delta < 0) {<NEW_LINE>delta = 0;<NEW_LINE>}<NEW_LINE>if (compTitle != null) {<NEW_LINE>final HColor back = diagram.calculateBackColor();<NEW_LINE>co... | core = annotatedWorker.addFrame(core); |
969,263 | protected CompiledST load(String name) {<NEW_LINE>if (verbose)<NEW_LINE>System.out.println("STGroupDir.load(" + name + ")");<NEW_LINE>// must have parent; it's fully-qualified<NEW_LINE>String parent = Misc.getParent(name);<NEW_LINE>String prefix = Misc.getPrefix(name);<NEW_LINE>// if (parent.isEmpty()) {<NEW_LINE>// //... | null, "can't close template file stream " + name, ioe); |
1,237,454 | public static void main(String[] args) {<NEW_LINE>Exercise24_ReverseDeleteAlgorithm reverseDeleteAlgorithm = new Exercise24_ReverseDeleteAlgorithm();<NEW_LINE>EdgeWeightedGraphWithDelete edgeWeightedGraph1 = new EdgeWeightedGraphWithDelete(5);<NEW_LINE>edgeWeightedGraph1.addEdge(new Edge(0, 1, 0.42));<NEW_LINE>edgeWeig... | (5, 3, 0.11)); |
760,710 | private Applications fetchRemoteRegistry(boolean delta) {<NEW_LINE>logger.info("Getting instance registry info from the eureka server : {} , delta : {}", this.remoteRegionURL, delta);<NEW_LINE>if (shouldUseExperimentalTransport()) {<NEW_LINE>try {<NEW_LINE>EurekaHttpResponse<Applications> httpResponse = delta ? eurekaH... | "Can't get a response from {}", this.remoteRegionURL, t); |
607,936 | protected void createSampleArea(Composite container) {<NEW_LINE>Composite composite = new Composite(container, SWT.NONE);<NEW_LINE>Label labelLatestPrice = new Label(composite, SWT.NONE);<NEW_LINE>labelLatestPrice.setText(Messages.ColumnLatestPrice);<NEW_LINE>valueLatestPrices = new Label(composite, SWT.RIGHT);<NEW_LIN... | Label(composite, SWT.NONE); |
522,190 | public boolean restoreBackupVolumeAndAttachToVM(final String backedUpVolumeUuid, final Long backupId, final Long vmId) throws Exception {<NEW_LINE>if (StringUtils.isEmpty(backedUpVolumeUuid)) {<NEW_LINE>throw new CloudRuntimeException("Invalid volume ID passed");<NEW_LINE>}<NEW_LINE>final BackupVO backup = backupDao.fi... | throw new CloudRuntimeException("Error restoring volume " + backedUpVolumeUuid); |
56,067 | private void showEnterCoordinateDialog(final MainActivity.NotationType type, final String currentValue) {<NEW_LINE>String title = "";<NEW_LINE>switch(type) {<NEW_LINE>case DMS:<NEW_LINE>case DD:<NEW_LINE>title = getString(R.string.enter_latlong_message);<NEW_LINE>break;<NEW_LINE>case UTM:<NEW_LINE>title = getString(R.s... | BaseTransientBottomBar.LENGTH_SHORT).show(); |
984,596 | public synchronized void updateCurrentReleases() {<NEW_LINE>Map<String, Object> currentReleases = getReleaseMetadata();<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>currentReleases.forEach((version, object) -> {<NEW_LINE>ReleaseMetadata rm = metadataFromObject(object);<NEW_LINE>// update packages if possible<NEW_LINE>i... | updatedReleases = new HashMap<>(); |
490,077 | public void visit(NodeTraversal t, Node n, Node parent) {<NEW_LINE>if (!n.isName()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Var var = t.getScope().getVar(n.getString());<NEW_LINE>if (var == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (declNameNode == null || declNameNode == n || !NodeUtil.isDeclarati... | Node declNameNode = var.getNameNode(); |
889,190 | public void evaluate(Evaluation evaluation) {<NEW_LINE>DecisionResultCollector decision = new DecisionResultCollector() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void onComplete(Result result) {<NEW_LINE>if (isGranted(result.getResults().iterator().next())) {<NEW_LINE>evaluation.grant();<NEW_LINE>} else {<NEW_L... | Policy policy = evaluation.getPolicy(); |
1,085,313 | private void createClosureMapUpdateExpression(BLangClassDefinition classDef, BVarSymbol blockMap, BVarSymbol classMapSymbol) {<NEW_LINE>OCEDynamicEnvironmentData oceEnvData = classDef.oceEnvData;<NEW_LINE>BVarSymbol oceMap = oceEnvData.mapBlockMapSymbol;<NEW_LINE>BLangFunction function = classDef.generatedInitFunction;... | createVariableRef(function.pos, selfSymbol); |
629,682 | public void jpa_jpa20_cache_testCache013() throws Exception {<NEW_LINE>int testEntryId = 13000;<NEW_LINE>Cache l2cache = em_CACHE_JEE_DCFALSE.getEntityManagerFactory().getCache();<NEW_LINE>// 1. Test when shared-cache-mode is NONE, no entities are in the L2 cache<NEW_LINE>CacheEntitySimple1 newEntitySimple1 = new Cache... | (CacheEntitySimple1.class, testEntryId)); |
1,513,052 | public void updateInvoicePayments(Reconcile reconcile) throws AxelorException {<NEW_LINE>MoveLine debitMoveLine = reconcile.getDebitMoveLine();<NEW_LINE><MASK><NEW_LINE>Move debitMove = debitMoveLine.getMove();<NEW_LINE>Move creditMove = creditMoveLine.getMove();<NEW_LINE>Invoice debitInvoice = debitMove.getInvoice();<... | MoveLine creditMoveLine = reconcile.getCreditMoveLine(); |
405,220 | public <T> Evaluator<T> create(QueryMetadata metadata, List<? extends Expression<?>> sources, Expression<T> projection) {<NEW_LINE>final CollQuerySerializer serializer = new CollQuerySerializer(templates);<NEW_LINE>serializer.append("return ");<NEW_LINE>if (projection instanceof FactoryExpression<?>) {<NEW_LINE>seriali... | get(i).toString(); |
938 | // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static boolean isSynchronized(com.sun.jdi.Method a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExcep... | new Object[] { a }); |
930,983 | public static void deserializeChannelCommon(JSONObject channel, ColibriConferenceIQ.ChannelCommon channelIQ) {<NEW_LINE>Object id = channel.get(ColibriConferenceIQ.Channel.ID_ATTR_NAME);<NEW_LINE>Object channelBundleId = channel.get(ColibriConferenceIQ.ChannelCommon.CHANNEL_BUNDLE_ID_ATTR_NAME);<NEW_LINE>Object endpoin... | setID(id.toString()); |
555,263 | public void redraw(boolean recalcSize) {<NEW_LINE>if (tempInvalid) {<NEW_LINE>List<GridElement<MASK><NEW_LINE>if (recalcSize) {<NEW_LINE>if (scrollPanel == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Rectangle diagramRect = GridElementUtils.getGridElementsRectangle(gridElements);<NEW_LINE>Rectangle visibleRect = getVi... | > gridElements = diagram.getGridElementsByLayerLowestToHighest(); |
606,036 | public Builder mergeFrom(com.alibaba.alink.operator.batch.dl.ctr.protos.Esmm.ESMM other) {<NEW_LINE>if (other == com.alibaba.alink.operator.batch.dl.ctr.protos.Esmm.ESMM.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (groupsBuilder_ == null) {<NEW_LINE>if (!other.groups_.isEmpty()) {<NEW_LINE>if (groups_.isEmp... | mergeCvrTower(other.getCvrTower()); |
1,687,902 | public void writeDatasetRun(JRDatasetRun datasetRun, String parentName) {<NEW_LINE>if (datasetRun != null) {<NEW_LINE>String runName = parentName + "Run";<NEW_LINE>write("JRDesignDatasetRun " + runName + " = new JRDesignDatasetRun();\n");<NEW_LINE>write(runName + ".setDatasetName(\"{0}\");\n", JRStringUtil.escapeJavaSt... | ] parameters = datasetRun.getParameters(); |
74,095 | private List<TimeValuePair> calculateSeriesLastRemotely(PartitionGroup group, List<PartialPath> seriesPaths, QueryContext context) {<NEW_LINE>for (Node node : group) {<NEW_LINE>try {<NEW_LINE>ByteBuffer buffer;<NEW_LINE>if (ClusterDescriptor.getInstance().getConfig().isUseAsyncServer()) {<NEW_LINE><MASK><NEW_LINE>} els... | buffer = lastAsync(node, context); |
1,519,645 | public DataFetcher<Iterable<VehicleRentalPlace>> bikeRentalStations() {<NEW_LINE>return environment -> {<NEW_LINE>VehicleRentalStationService vehicleRentalStationService = <MASK><NEW_LINE>if (vehicleRentalStationService == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>var args = new LegacyGraphQLTypes.LegacyGraphQL... | getRoutingService(environment).getVehicleRentalStationService(); |
1,851,792 | public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.userId, convLabelName("User Id"));<NEW_LINE>if (err... | .no, convLabelName("No")); |
39,175 | public static void executeCommand(String[] args) throws IOException {<NEW_LINE>OptionParser parser = getParser();<NEW_LINE>// declare parameters<NEW_LINE>List<String> jobIds = null;<NEW_LINE>Integer nodeId = null;<NEW_LINE>String url = null;<NEW_LINE>Boolean confirm = false;<NEW_LINE>// parse command-line input<NEW_LIN... | AdminParserUtils.checkRequired(options, OPT_HEAD_SCHEDULED_STOP); |
1,767,952 | private void sendFile(FileField f, PrintStream printStream) throws IOException {<NEW_LINE>String fileName = f.getFile().getName();<NEW_LINE>printStream.append("--").append(boundary).append(LINE_FEED);<NEW_LINE>printStream.append("Content-Disposition: form-data; name=\"").append(f.getName()).append("\"; filename=\"").ap... | write(buffer, 0, bytesRead); |
1,139,836 | public static boolean showInstance(@NonNull MapActivity mapActivity, @NonNull String searchQuery, @Nullable Object object, QuickSearchType searchType, QuickSearchTab showSearchTab, @Nullable LatLon latLon) {<NEW_LINE>FragmentManager fragmentManager = mapActivity.getSupportFragmentManager();<NEW_LINE>if (AndroidUtils.is... | SearchResult sr = new SearchResult(phrase); |
1,395,940 | public SequenceNumberHandlerFactory createFactory() {<NEW_LINE>SequenceNumberHandlerFactory result = null;<NEW_LINE>switch(_type) {<NEW_LINE>case FILE:<NEW_LINE>try {<NEW_LINE>FileMaxSCNHandler.Config configBuilder = new FileMaxSCNHandler.Config();<NEW_LINE>configBuilder.setFlushItvl(_file.getFlushItvl());<NEW_LINE>con... | setInitVal(_file.getInitVal()); |
125,192 | private static TranslationResult extractRegister(final ITranslationEnvironment environment, final long offset, final String subRegister) throws InternalTranslationException {<NEW_LINE>final ArrayList<ReilInstruction> instructions = new ArrayList<ReilInstruction>();<NEW_LINE>final String parentRegister = getParentRegist... | String shiftResult = environment.getNextVariableString(); |
394,565 | public void apply(final ChatbotContext ctx, final Functional next) {<NEW_LINE><MASK><NEW_LINE>if (MainContext.ChannelType.MESSENGER.toString().equals(resp.getChannel())) {<NEW_LINE>final OnlineUser onlineUser = onlineUserRes.findOneByUseridAndOrgi(resp.getUserid(), Constants.SYSTEM_ORGI);<NEW_LINE>Map<String, String> c... | ChatMessage resp = ctx.getResp(); |
1,374,676 | private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati... | TypeAlias.intptr_t, NativeType.SINT); |
589,141 | public static DescribeSlowLogRecordsResponse unmarshall(DescribeSlowLogRecordsResponse describeSlowLogRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSlowLogRecordsResponse.setRequestId(_ctx.stringValue("DescribeSlowLogRecordsResponse.RequestId"));<NEW_LINE>describeSlowLogRecordsResponse.setTotalRecordCou... | = new ArrayList<SQLSlowRecord>(); |
59,089 | static boolean tryInlineInNodeRecord(NodeRecord node, long[] ids, List<DynamicRecord> changedDynamicRecords) {<NEW_LINE>// We reserve the high header bit for future extensions of the format of the in-lined label bits<NEW_LINE>// i.e. the 0-valued high header bit can allow for 0-7 in-lined labels in the bit-packed forma... | / ids.length) : LABEL_BITS); |
506,202 | public static ResetAgentStateResponse unmarshall(ResetAgentStateResponse resetAgentStateResponse, UnmarshallerContext _ctx) {<NEW_LINE>resetAgentStateResponse.setRequestId(_ctx.stringValue("ResetAgentStateResponse.RequestId"));<NEW_LINE>resetAgentStateResponse.setCode(_ctx.stringValue("ResetAgentStateResponse.Code"));<... | (_ctx.stringValue("ResetAgentStateResponse.Data.JobId")); |
978,405 | public void run(Collection<ITestRunListener> listeners) throws TimeoutException, AdbCommandRejectedException, ShellCommandUnresponsiveException, IOException {<NEW_LINE>final String runCaseCommandStr = String.format("monkey -v -v -v %1$s %2$s", buildArgsCommand(), Long.toString(eventCount));<NEW_LINE>Log.i(LOG_TAG, Stri... | handleTestRunFailed(e.toString()); |
1,463,222 | static void flush(BaggageField field, String value) {<NEW_LINE>Set<CorrelationContext> syncedContexts = new LinkedHashSet<>();<NEW_LINE>for (Object o : updateScopeStack()) {<NEW_LINE>CorrelationUpdateScope <MASK><NEW_LINE>String name = next.name(field);<NEW_LINE>if (name == null)<NEW_LINE>continue;<NEW_LINE>// Since th... | next = ((CorrelationUpdateScope) o); |
1,327,533 | public static void preInit() {<NEW_LINE>laser = HELPER.addBlockAndItem(new BlockLaser(Material.IRON, "block.laser"));<NEW_LINE>assemblyTable = createLaserTable(EnumLaserTableType.ASSEMBLY_TABLE, "block.assembly_table");<NEW_LINE>advancedCraftingTable = createLaserTable(EnumLaserTableType.ADVANCED_CRAFTING_TABLE, "block... | createLaserTable(EnumLaserTableType.INTEGRATION_TABLE, "block.integration_table"); |
242,407 | protected List<SlimAssertion> assertionsFromScenario(int row) throws TestExecutionException {<NEW_LINE>int lastCol = table.getColumnCountInRow(row) - 1;<NEW_LINE>String scenarioName = getScenarioNameFromAlternatingCells(lastCol, row);<NEW_LINE>ScenarioTable scenario = getTestContext().getScenario(scenarioName);<NEW_LIN... | (args, this, row)); |
1,376,203 | public boolean hasPermissionToCreateWorklog(java.lang.String in0, java.lang.String in1) throws java.rmi.RemoteException, com.atlassian.jira.rpc.exception.RemoteValidationException, com.atlassian.jira.rpc.exception.RemoteException {<NEW_LINE>if (super.cachedEndpoint == null) {<NEW_LINE>throw new org.apache.axis.NoEndPoi... | [] { in0, in1 }); |
842,396 | public Transaction userCancelWithdrawal(String token) throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'token' is set<NEW_LINE>if (token == null) {<NEW_LINE>VolleyError error = new VolleyError("Missing the requir... | 0 ? contentTypes[0] : "application/json"; |
1,720,272 | public void endElement(final String namespaceURI, final String localName, final String qName) throws SAXException {<NEW_LINE>handleCharacters();<NEW_LINE>final String tagLower = localName.toLowerCase(Locale.ROOT);<NEW_LINE>if (page_.isParsingHtmlSnippet()) {<NEW_LINE>if ("html".equals(tagLower) || "body".equals(tagLowe... | = !"p".equals(tagLower); |
1,552,996 | public boolean refreshTTL(RefreshOfferMessage refreshTTLMessage, @Nullable NodeAddress sender) {<NEW_LINE>try {<NEW_LINE>ByteArray hashOfPayload = new ByteArray(refreshTTLMessage.getHashOfPayload());<NEW_LINE>ProtectedStorageEntry <MASK><NEW_LINE>if (storedData == null) {<NEW_LINE>log.debug("We don't have data for that... | storedData = map.get(hashOfPayload); |
1,023,484 | private TableMetaData findTableMetaData(@Nullable String schemaName, @Nullable String tableName, Map<String, TableMetaData> tableMeta) {<NEW_LINE>if (schemaName != null) {<NEW_LINE>TableMetaData tmd = tableMeta.get(schemaName.toUpperCase());<NEW_LINE>if (tmd == null) {<NEW_LINE>throw new DataAccessResourceFailureExcept... | tableMeta.get(getDefaultSchema()); |
266,838 | public static void regionBorders(GrayS32 pixelToRegion, int borderColor, Bitmap output, @Nullable DogArray_I8 _storage) {<NEW_LINE>_storage = ConvertBitmap.resizeStorage(output, _storage);<NEW_LINE>final byte[] storage = _storage.data;<NEW_LINE>GrayU8 binary = new GrayU8(<MASK><NEW_LINE>ImageSegmentationOps.markRegionB... | pixelToRegion.width, pixelToRegion.height); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.