idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
253,959 | public ListTargetedSentimentDetectionJobsResult listTargetedSentimentDetectionJobs(ListTargetedSentimentDetectionJobsRequest listTargetedSentimentDetectionJobsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTargetedSentimentDetectio... | JsonUnmarshallerContext> unmarshaller = new ListTargetedSentimentDetectionJobsResultJsonUnmarshaller(); |
418,528 | public static Map<String, AttributeValue> toAttributeValueMap(Onboarding onboarding) {<NEW_LINE>Map<String, AttributeValue> item = new HashMap<>();<NEW_LINE>item.put("id", AttributeValue.builder().s(onboarding.getId().toString()).build());<NEW_LINE>if (onboarding.getCreated() != null) {<NEW_LINE>item.put("created", Att... | ISO_LOCAL_DATE_TIME)).build()); |
770,882 | protected String doInBackground(Void... params) {<NEW_LINE>if (!NetworkUtils.isOnline(mCtx)) {<NEW_LINE>return "No connection available!";<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>JSONObject j = new JSONObject();<NEW_LINE>try {<NEW_LINE>j.put("username", "username");<NEW_LINE>j.put("password", "pass");<NEW_LINE>j.put("buid",... | pois_type = json.getString("pois_type"); |
1,653,210 | public static void invokeConfigMethods(ObjectDef bean, Object instance, ExecutionContext context) throws InvocationTargetException, IllegalAccessException {<NEW_LINE>List<ConfigMethodDef> methodDefs = bean.getConfigMethods();<NEW_LINE>if (methodDefs == null || methodDefs.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_L... | args = resolveReferences(args, context); |
267,321 | private void generateHtmlResponse(HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>StringBuilder display = new StringBuilder();<NEW_LINE>display.append("<html>").append("<head><meta charset=\"UTF-8\"></head>").append("<body>").append("<h1>About</h1>");<NEW_LINE>display.append(newTable());<NEW_LINE>J... | "Exception occurred loading html page {}", e.getMessage()); |
669,055 | private void updateAudioManagerReference(GuildImpl guild) {<NEW_LINE>JDAImpl api = getController().getJDA();<NEW_LINE>AbstractCacheView<AudioManager> managerView = api.getAudioManagersView();<NEW_LINE>try (UnlockHook hook = managerView.writeLock()) {<NEW_LINE>TLongObjectMap<AudioManager> audioManagerMap = managerView.g... | AudioManagerImpl newMng = new AudioManagerImpl(guild); |
911,543 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String cardid, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NE... | permissionSetting().pick(cardid); |
243,593 | public void marshall(ExplainabilitySummary explainabilitySummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (explainabilitySummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(explainabilitySummary... | explainabilitySummary.getResourceArn(), RESOURCEARN_BINDING); |
1,676,272 | final DeleteApplicationOutputResult executeDeleteApplicationOutput(DeleteApplicationOutputRequest deleteApplicationOutputRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApplicationOutputRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteApplicationOutput"); |
10,496 | void addResource(String type, String name, TypedResource value) {<NEW_LINE>ResName resName = new ResName(packageName, type, name);<NEW_LINE>// compound style names were previously registered with underscores (TextAppearance_Small)<NEW_LINE>// because they came from R.style; re-register with dots.<NEW_LINE>ResName resNa... | resourceTable.forcePut(oldId, resName); |
876,460 | // beforeSave<NEW_LINE>@Override<NEW_LINE>protected boolean afterSave(final boolean newRecord, final boolean success) {<NEW_LINE>if (!success || newRecord) {<NEW_LINE>return success;<NEW_LINE>}<NEW_LINE>// Propagate Description changes<NEW_LINE>if (is_ValueChanged("Description") || is_ValueChanged("POReference")) {<NEW... | log.debug("Payment -> #" + no); |
465,833 | private static void unknownValue(JsonGenerator generator, Object value, boolean ensureNoSelfReferences) throws IOException {<NEW_LINE>if (value == null) {<NEW_LINE>generator.writeNull();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Writer writer = WRITERS.<MASK><NEW_LINE>if (writer != null) {<NEW_LINE>writer.write(generator, v... | get(value.getClass()); |
1,186,933 | private AckEvent drillbitUnregistered(DrillbitEndpoint dbe) {<NEW_LINE>String key = toKey(dbe);<NEW_LINE>DrillbitTracker tracker = registry.get(key);<NEW_LINE>assert tracker != null;<NEW_LINE>if (tracker == null) {<NEW_LINE>// Something is terribly wrong.<NEW_LINE>// Have seen this when a user kills the Drillbit just a... | releaseHost(dbe.getAddress()); |
1,039,963 | final ListTopicsDetectionJobsResult executeListTopicsDetectionJobs(ListTopicsDetectionJobsRequest listTopicsDetectionJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTopicsDetectionJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
772,571 | private static StatementSpecRaw map(EPStatementObjectModel sodaStatement, StatementSpecMapContext mapContext) {<NEW_LINE>SelectClauseStreamSelectorEnum defaultStreamSelector = StatementSpecMapper.mapFromSODA(mapContext.getConfiguration().getCompiler().getStreamSelection().getDefaultStreamSelector());<NEW_LINE>Statement... | getFromClause(), raw, mapContext); |
335,571 | public static String updatePlayerResult(String ApplicationRoot, String moduleId, String userId, String extra, int before, int after, int difficulty) {<NEW_LINE>log.debug("*** Setter.updatePlayerResult ***");<NEW_LINE>String result = null;<NEW_LINE>boolean isOpen;<NEW_LINE>Boolean isRunning;<NEW_LINE>try {<NEW_LINE>isOp... | callstmnt.setBoolean(6, isOpen); |
1,392,178 | // Finishes all terms in this field<NEW_LINE>public void finish() throws IOException {<NEW_LINE>if (numTerms > 0) {<NEW_LINE>// TODO: if pending.size() is already 1 with a non-zero prefix length<NEW_LINE>// we can save writing a "degenerate" root block, but we have to<NEW_LINE>// fix all the places that assume the root... | = new BytesRef(firstPendingTerm.termBytes); |
726,145 | public static void main(String[] args) {<NEW_LINE>Loader.loadNativeLibraries();<NEW_LINE>// [START solver]<NEW_LINE>MPSolver <MASK><NEW_LINE>// [END solver]<NEW_LINE>// [START variables]<NEW_LINE>double infinity = java.lang.Double.POSITIVE_INFINITY;<NEW_LINE>// x and y are continuous non-negative variables.<NEW_LINE>MP... | solver = MPSolver.createSolver("GLOP"); |
764,095 | public ApiResponse<Object> keyInQueryWithHttpInfo() throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/query";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>Map<String, String> loc... | = new String[] { "api_key_query" }; |
1,185,737 | Stream.Listener onPush(Stream stream, PushPromiseFrame frame) {<NEW_LINE>HttpExchange exchange = getHttpExchange();<NEW_LINE>if (exchange == null)<NEW_LINE>return null;<NEW_LINE>HttpRequest request = exchange.getRequest();<NEW_LINE>MetaData.Request metaData = frame.getMetaData();<NEW_LINE>HttpRequest pushRequest = (Htt... | , List.of(listener)); |
1,317,146 | public void marshall(AssistantAssociationData assistantAssociationData, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (assistantAssociationData == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_L... | assistantAssociationData.getAssistantArn(), ASSISTANTARN_BINDING); |
995,878 | private static org.jreleaser.model.Mail convertMail(Mail mail) {<NEW_LINE>org.jreleaser.model.Mail a = new org.jreleaser.model.Mail();<NEW_LINE>convertAnnouncer(mail, a);<NEW_LINE>if (mail.isAuthSet())<NEW_LINE>a.<MASK><NEW_LINE>if (null != mail.getTransport())<NEW_LINE>a.setTransport(mail.getTransport().name());<NEW_L... | setAuth(mail.isAuth()); |
1,285,589 | private RefactoringStatus checkSelection(IProgressMonitor pm) throws JavaModelException {<NEW_LINE>try {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>pm.beginTask("", 8);<NEW_LINE>IExpressionFragment selectedExpression = getSelectedExpression();<NEW_LINE>if (selectedExpression == null) {<NEW_LINE>String message = RefactoringCoreMe... | RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.ExtractTempRefactoring_refers_to_for_variable); |
885,526 | public void run() {<NEW_LINE>// stop or detach from any profiling in progress<NEW_LINE>final int state = Profiler<MASK><NEW_LINE>final int mode = Profiler.getDefault().getProfilingMode();<NEW_LINE>if ((state == Profiler.PROFILING_PAUSED) || (state == Profiler.PROFILING_RUNNING)) {<NEW_LINE>if (mode == Profiler.MODE_PRO... | .getDefault().getProfilingState(); |
420,388 | public PyObject __call__(PyObject arga, PyObject argb, PyObject argc) {<NEW_LINE>switch(index) {<NEW_LINE>case 1:<NEW_LINE>int year = ((Number) arga.__tojava__(Number.class)).intValue();<NEW_LINE>int month = ((Number) argb.__tojava__(Number.class)).intValue();<NEW_LINE>int day = ((Number) argc.__tojava__(Number.class))... | Date(year, month, day); |
230,040 | public static void switchBranch(final GitRepository repo, final String branchName) {<NEW_LINE>String text = MessageFormat.format(Messages.SwitchBranchAction_BranchSwitch_Msg, branchName);<NEW_LINE>IStatus switchStatus = repo.switchBranch(branchName, new NullProgressMonitor());<NEW_LINE>if (!switchStatus.isOK()) {<NEW_L... | return new Point(xCoord, yCoord); |
1,463,026 | private void processEvent(final ProcessInstanceIntent intent, final BpmnElementProcessor<ExecutableFlowElement> processor, final ExecutableFlowElement element) {<NEW_LINE>switch(intent) {<NEW_LINE>case ACTIVATE_ELEMENT:<NEW_LINE>final var activatingContext = stateTransitionBehavior.transitionToActivating(context);<NEW_... | processor.onComplete(element, completingContext); |
89,615 | public void onBackPressed() {<NEW_LINE>if (contributionsFragment != null && activeFragment == ActiveFragment.CONTRIBUTIONS) {<NEW_LINE>// Means that contribution fragment is visible<NEW_LINE>if (!contributionsFragment.backButtonClicked()) {<NEW_LINE>// If this one does not wan't to handle<NEW_LINE>// the back press, le... | NavTab.CONTRIBUTIONS.code()); |
639,806 | final GetTransitGatewayMulticastDomainAssociationsResult executeGetTransitGatewayMulticastDomainAssociations(GetTransitGatewayMulticastDomainAssociationsRequest getTransitGatewayMulticastDomainAssociationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTransitGatewayMulticastDomainAsso... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
78,721 | public void refreshNode(Component nodeComponent) {<NEW_LINE>if (nodeComponent == null) {<NEW_LINE>throw new IllegalArgumentException("refreshNode expects a non-null argument");<NEW_LINE>}<NEW_LINE>Object node = nodeComponent.getClientProperty(KEY_OBJECT);<NEW_LINE>if (node == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LIN... | expandNode(false, newCmp, false); |
554,191 | public void refresh(BeanCollection<?> bc, EntityBean parentBean) {<NEW_LINE>BeanMap<?, ?> newBeanMap = (<MASK><NEW_LINE>Map<?, ?> current = (Map<?, ?>) many.getValue(parentBean);<NEW_LINE>newBeanMap.setModifyListening(many.modifyListenMode());<NEW_LINE>if (current == null) {<NEW_LINE>// the currentMap is null? Not real... | BeanMap<?, ?>) bc; |
291,482 | private static PaddedCell check(Formatter formatter, File file, String original, int maxLength) {<NEW_LINE>if (maxLength < 2) {<NEW_LINE>throw new IllegalArgumentException("maxLength must be at least 2");<NEW_LINE>}<NEW_LINE>String appliedOnce = formatter.compute(original, file);<NEW_LINE>if (appliedOnce.equals(origina... | , appliedN.size())); |
902,958 | private void generateComparisonTable(PanelComponent panelComponent, HiscoreResult opponentSkills) {<NEW_LINE>final String opponentName = opponentSkills.getPlayer();<NEW_LINE>panelComponent.getChildren().add(TitleComponent.builder().text(opponentName).color(HIGHLIGHT_COLOR).build());<NEW_LINE>panelComponent.getChildren(... | (HIGHLIGHT_COLOR).build()); |
1,282,969 | private static void addBasicMemoryStats(List<Component> report, MemoryMXBean memoryMXBean) {<NEW_LINE>MemoryUsage heapUsage = memoryMXBean.getHeapMemoryUsage();<NEW_LINE>report.add(text().append(text(">", DARK_GRAY, BOLD)).append(space()).append(text("Memory usage:", GOLD)).build());<NEW_LINE>report.add(text().content(... | 60)).build()); |
642,310 | public static void main(String[] args) {<NEW_LINE>int n = 25;<NEW_LINE>int[] tiles = { 1, 1, 2, 4 };<NEW_LINE>BoardTilingsSolver solver = new BoardTilingsSolver(tiles);<NEW_LINE>System.out.printf("f(%d) = %d\n", n, solver.iterativeSolution(n));<NEW_LINE>System.out.printf("f(%d) = %d\n", n, solver.iterativeSolution(n));... | , solver.recursiveSolution(i)); |
1,739,576 | private AutoScalingGroup retrieveAutoScalingGroupCrossAccount(String asgAccount, String asgName) {<NEW_LINE>logger.debug("Getting cross account ASG for asgName: {}, asgAccount: {}", asgName, asgAccount);<NEW_LINE>Credentials credentials = stsCredentials.get(asgAccount);<NEW_LINE>if (credentials == null || credentials.g... | .getSessionToken()), clientConfiguration); |
1,847,487 | protected void find(boolean findMore) {<NEW_LINE>BestMatchFinder bmf = new BestMatchFinder(pattern);<NEW_LINE>List<MapEntity> results = getResults();<NEW_LINE>BoundingBox bb = new BoundingBox(position, nextRadius);<NEW_LINE>if (!results.isEmpty())<NEW_LINE>bmf.checkMatchQuality(results.get(0));<NEW_LINE>if (mode.equals... | .getLon()), null); |
447,551 | public void tickFlower() {<NEW_LINE>super.tickFlower();<NEW_LINE>if (getLevel().isClientSide) {<NEW_LINE>double particleChance = 1F - (double) getMana() / (double) getMaxMana() / 3.5F;<NEW_LINE>int color = getColor();<NEW_LINE>float red = (color <MASK><NEW_LINE>float green = (color >> 8 & 0xFF) / 255F;<NEW_LINE>float b... | >> 16 & 0xFF) / 255F; |
645,366 | private File showFileChooser(final String title, final int mode, final int theSelectionMode, final Object... filters) {<NEW_LINE>final String theLast_dir = PreferencesUser.getInstance().get("LAST_OPEN_DIR", "");<NEW_LINE>Debug.log(3, "showFileChooser: %s at %s", title.split(<MASK><NEW_LINE>final Object[] result = new O... | " ")[0], theLast_dir); |
712,876 | final RetryStageExecutionResult executeRetryStageExecution(RetryStageExecutionRequest retryStageExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(retryStageExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,766,379 | private static int[] clippedPadding(int[] padding, RCTMGLMapView mapView) {<NEW_LINE>int mapHeight = mapView.getHeight();<NEW_LINE>int mapWidth = mapView.getWidth();<NEW_LINE>int left = padding[0];<NEW_LINE>int top = padding[1];<NEW_LINE>int right = padding[2];<NEW_LINE>int bottom = padding[3];<NEW_LINE>int resultLeft ... | double extra = totalPadding - mapHeight + 1.0; |
1,624,537 | private CacheStatus collectStatus() {<NEW_LINE>final int cg = this.currentGeneration.get();<NEW_LINE>int minGeneration = cg;<NEW_LINE>int maxGeneration = 0;<NEW_LINE>ArrayList<Client> toUnregister = new ArrayList<>();<NEW_LINE>for (Client c : getClients()) {<NEW_LINE>CacheStatus clientStatus;<NEW_LINE>try {<NEW_LINE>cl... | clientStatus, cg, this.oldestGeneration); |
452,320 | private OrgPermissions retrieveRoleOrgPermissions(final RoleOrgPermissionsCacheKey key) {<NEW_LINE>final RoleId adRoleId = key.getRoleId();<NEW_LINE>final AdTreeId adTreeOrgId = key.getAdTreeOrgId();<NEW_LINE>final ImmutableMap<OrgId, I_AD_Org> activeOrgsById = Maps.uniqueIndex(orgDAO.getAllActiveOrgs(), org -> OrgId.o... | get(orgId).isSummary(); |
879,335 | public static void formatImportStatements(final SourceFile sourceFile, final AbstractSchemaNode schemaNode, final Class baseType) {<NEW_LINE>sourceFile.importLine(baseType.getName());<NEW_LINE>sourceFile.importLine(DateArrayPropertyParser.class.getName());<NEW_LINE>sourceFile.importLine(ConfigurationProvider.class.getN... | ModificationQueue.class.getName()); |
1,408,599 | final TagStreamResult executeTagStream(TagStreamRequest tagStreamRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagStreamRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | false), new TagStreamResultJsonUnmarshaller()); |
934,653 | public void rewriteServerbound(ByteBuf packet, int oldId, int newId) {<NEW_LINE>super.rewriteServerbound(packet, oldId, newId);<NEW_LINE>// Special cases<NEW_LINE>int readerIndex = packet.readerIndex();<NEW_LINE>int packetId = DefinedPacket.readVarInt(packet);<NEW_LINE>int packetIdLength = packet.readerIndex() - reader... | packet.writerIndex(readerIndex + packetIdLength); |
194,604 | public final MonthPartContext monthPart() throws RecognitionException {<NEW_LINE>MonthPartContext _localctx = new MonthPartContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(3255);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switc... | enterRule(_localctx, 486, RULE_monthPart); |
969,556 | public static void drawRain(float sizeMin, float sizeMax, float xspeed, float yspeed, float density, float intensity, float stroke, Color color) {<NEW_LINE>rand.setSeed(0);<NEW_LINE>float padding = sizeMax * 0.9f;<NEW_LINE>Tmp.r1.setCentered(Core.camera.position.x, Core.camera.position.y, Core.graphics.getWidth() / ren... | area() / density * intensity); |
554,835 | static <// / @Generated("This method was generated using jOOQ-tools")<NEW_LINE>T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Seq<Tuple15<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>> crossJoin(Stream<? extends T1> s1, Stream<? extends T2> s2, Stream<? extends T3> s3, Stream<? ex... | s14), seq(s15)); |
963,634 | void createAnonymousFilter() {<NEW_LINE>Element anonymousElt = DomUtils.getChildElementByTagName(<MASK><NEW_LINE>if (anonymousElt != null && "false".equals(anonymousElt.getAttribute("enabled"))) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String grantedAuthority = null;<NEW_LINE>String username = null;<NEW_LINE>String key =... | this.httpElt, Elements.ANONYMOUS); |
355,020 | private static void paintArrowIcon(Graphics g, int x, int y) {<NEW_LINE>JMenuItem menu = new JMenuItem();<NEW_LINE>if (subMenuIconIsSynthIcon) {<NEW_LINE>// #181206: the subMenuIcon is a sun.swing.plaf.synth.SynthIcon, whose paintIcon method requires a SynthContext.<NEW_LINE>// see also 6635110<NEW_LINE>try {<NEW_LINE>... | int.class, int.class); |
1,539,405 | public ListEventTypesFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListEventTypesFilter listEventTypesFilter = new ListEventTypesFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con... | String currentParentElement = context.getCurrentParentElement(); |
1,504,853 | private static void logState(final MessageFrame frame, final Gas currentGasCost) {<NEW_LINE>if (LOG.isTraceEnabled()) {<NEW_LINE>final StringBuilder builder = new StringBuilder();<NEW_LINE>builder.append("Depth: ").append(frame.getMessageStackDepth()).append("\n");<NEW_LINE>builder.append("Operation: ").append(frame.ge... | (currentGasCost).append("\n"); |
1,632,848 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeInt64(1, tag_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.writeEnum(2, type_);<NEW_LINE>}<NEW_LINE>if (... | writeMessage(10, getCenter()); |
641,204 | private void writeAttributes(JadeModel model, MixinNode mixin, JadeTemplate template) {<NEW_LINE>// model.put("attributes", mergeInheritedAttributes(model));<NEW_LINE>// model.put("attributes", getArguments());<NEW_LINE>LinkedList<Attr> newAttributes = new LinkedList<Attr>(attributes);<NEW_LINE>if (attributeBlocks.size... | model.put("attributes", null); |
476,820 | private CctopInvoice createEDIInvoiceFromXMLBean(final EDICctopInvoicVType xmlCctopInvoice, final DecimalFormat decimalFormat, final Exchange exchange) {<NEW_LINE>final CctopInvoice invoice = new CctopInvoice();<NEW_LINE>invoice.setCbPartnerLocationID(formatNumber(xmlCctopInvoice.getCBPartnerLocationID(), decimalFormat... | .getTotaltaxbaseamt(), decimalFormat)); |
1,504,800 | // for test<NEW_LINE>SpanChunkBo newSpanChunkBo(PSpanChunk pSpanChunk, Header header) {<NEW_LINE>final SpanChunkBo spanChunkBo = new SpanChunkBo();<NEW_LINE>spanChunkBo.setVersion(pSpanChunk.getVersion());<NEW_LINE>spanChunkBo.setAgentId(header.getAgentId());<NEW_LINE>spanChunkBo.setApplicationId(header.getApplicationN... | pTransactionId, spanChunkBo.getAgentId()); |
1,103,581 | public JSONObject updatePluginSetting(final String pluginId, final String setting) {<NEW_LINE>final JSONObject ret = new JSONObject();<NEW_LINE>final Map<String, String> langs = langPropsService.getAll(Latkes.getLocale());<NEW_LINE>final List<AbstractPlugin> plugins = pluginManager.getPlugins();<NEW_LINE>for (final Abs... | , langs.get("setSuccLabel")); |
618,661 | public ApiResponse<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> param) throws ApiException {<NEW_LINE>HttpRequest<MASK><NEW_LINE>try {<NEW_LINE>HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofInputStream());<NEW_LI... | .Builder localVarRequestBuilder = testInlineAdditionalPropertiesRequestBuilder(param); |
1,599,531 | protected void perform(final DefaultMutableTreeNode node, final DiagnosticsNode diagnosticsNode, final AnActionEvent e) {<NEW_LINE>final Project project = e.getProject();<NEW_LINE>if (project == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FlutterInitializer.getAnalytics().sendEvent("inspector", id);<NEW_LINE>final XNa... | }, project.getDisposed()); |
1,630,406 | public void showHomeWatchingArticles(final RequestContext context) {<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final JSONObject user = (JSONObject) context.attr(User.USER);<NEW_LINE>final AbstractFreeMarkerRenderer renderer = new SkinRenderer(context, "home/watching-articles.ftl");<NEW_LINE>final ... | user.optString(Keys.OBJECT_ID); |
1,657,506 | public void UIInputReceiverClosed(UIInputReceiver entryWindow) {<NEW_LINE>if (!entryWindow.hasSubmittedInput()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String sReturn = entryWindow.getSubmittedInput();<NEW_LINE>if (sReturn == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int mins = -1;<NEW_LINE>try {<NEW_LINE>mins = Inte... | ).removePeer(peer, "Peer kicked and banned"); |
1,618,889 | public com.amazonaws.services.robomaker.model.ServiceUnavailableException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.robomaker.model.ServiceUnavailableException serviceUnavailableException = new com.amazonaws.services.robomaker.model.ServiceUnavailableExcep... | String currentParentElement = context.getCurrentParentElement(); |
54,565 | private Mono<Response<Flux<ByteBuffer>>> purgeWithResponseAsync(String serviceName, String location) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (serviceName ==... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,155,257 | public Tuple3<Boolean, Double, Map<String, String>>[] detect(MTable series, boolean detectLast) throws Exception {<NEW_LINE>double[] data = OutlierUtil.getNumericArray(series, selectedCol);<NEW_LINE>int length = data.length;<NEW_LINE>List<Double> listData = new ArrayList<>(length);<NEW_LINE>for (double v : data) {<NEW_... | of(false, null, null); |
538,748 | protected String parseAttributes(Object[] args) {<NEW_LINE>Object param;<NEW_LINE>final int argsLength = ArrayUtils.getLength(args);<NEW_LINE>if (argsLength == 1) {<NEW_LINE>// only one<NEW_LINE>param = args[0];<NEW_LINE>} else if (argsLength > 1) {<NEW_LINE>// last param<NEW_LINE>param = args[argsLength - 1];<NEW_LINE... | toStringBinary(scan.getStartRow()); |
592,759 | public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>if (additionalProperties.containsKey(CodegenConstants.PACKAGE_NAME)) {<NEW_LINE>setPackageName((String) additionalProperties.get(CodegenConstants.PACKAGE_NAME));<NEW_LINE>}<NEW_LINE>modelPackage = packageName + "." + modelPackage;<NEW_LINE>apiPackage = ... | ("docker-compose.mustache", "", "docker-compose.yaml")); |
1,701,060 | protected void paintInPanel(AffineTransform tran, Graphics2D g2) {<NEW_LINE>super.paintInPanel(tran, g2);<NEW_LINE>if (img == null)<NEW_LINE>return;<NEW_LINE>BoofSwingUtil.antialiasing(g2);<NEW_LINE>if (controlPanel.translucent > 0) {<NEW_LINE>// this requires some explaining<NEW_LINE>// for some reason it was decided ... | float translucent = controlPanel.translucent / 100.0f; |
1,715,501 | protected JComponent createCenterPanel() {<NEW_LINE>JPanel panel = new JPanel(new GridBagLayout());<NEW_LINE>final GridBagConstraints gb = new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, JBUI.insets(1), 0, 0);<NEW_LINE>gb.fill = GridBagConstraints.HORIZONTAL;<NEW_LINE>gb.... | add(myBrowser, BorderLayout.CENTER); |
1,664,129 | public com.amazonaws.services.codecommit.model.InvalidDescriptionException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.InvalidDescriptionException invalidDescriptionException = new com.amazonaws.services.codecommit.model.InvalidDescriptionEx... | int originalDepth = context.getCurrentDepth(); |
629,821 | // @Override<NEW_LINE>public synchronized void configure(ConfigurationContext context, Map<String, LogPatternInfo> filePaths) throws IOException {<NEW_LINE>this.filePaths = filePaths;<NEW_LINE>String homePath = System.getProperty("user.home").replace('\\', '/');<NEW_LINE>positionFilePath = context.getString(POSITION_FI... | TaildirSourceConfigurationConstants.BACKOFF_SLEEP_INCREMENT, TaildirSourceConfigurationConstants.DEFAULT_BACKOFF_SLEEP_INCREMENT); |
1,465,823 | public boolean rebootProxy(long proxyVmId) {<NEW_LINE>final ConsoleProxyVO <MASK><NEW_LINE>if (proxy == null || proxy.getState() == State.Destroyed) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (proxy.getState() == State.Running && proxy.getHostId() != null) {<NEW_LINE>final RebootCommand cmd = new RebootCommand(pro... | proxy = consoleProxyDao.findById(proxyVmId); |
1,260,407 | protected Column visitExpression(Expression node, QueryState state) {<NEW_LINE>if (node instanceof QualifiedNameReference) {<NEW_LINE>return createColumn(((QualifiedNameReference) node).getName().toString(), null, state, "select.+", ".+from");<NEW_LINE>} else if (node instanceof DereferenceExpression) {<NEW_LINE>// par... | Column calcCol = new Column(colName); |
223,739 | static public void modifyConfigMap(Map<String, Object> configMap) {<NEW_LINE>if (configMap.containsKey(WSSecurityConstants.CXF_USER_PASSWORD)) {<NEW_LINE>String pwd = changePasswordType((SerializableProtectedString) configMap.get(WSSecurityConstants.CXF_USER_PASSWORD));<NEW_LINE>configMap.put(WSSecurityConstants.CXF_US... | .get(WSSecurityConstants.WSS4J_KS_PASSWORD)); |
1,682,295 | public void onWorkerEvent(LifecycleEventsProto.WorkerStatusEvent workerEvent) {<NEW_LINE>if (logger.isTraceEnabled()) {<NEW_LINE>logger.trace("onWorkerEvent " + workerEvent + " is error state " + WorkerState.isErrorState<MASK><NEW_LINE>}<NEW_LINE>if (workerEvent.getHostName().isPresent() && WorkerState.isErrorState(wor... | (workerEvent.getWorkerState())); |
1,745,734 | private boolean createIndex(ElasticSearchIndexType elasticSearchIndexType) {<NEW_LINE>try {<NEW_LINE>GetIndexRequest gRequest = new GetIndexRequest(elasticSearchIndexType.indexName);<NEW_LINE>gRequest.local(false);<NEW_LINE>boolean exists = client.indices().exists(gRequest, RequestOptions.DEFAULT);<NEW_LINE>if (!exists... | setIndexStatus(elasticSearchIndexType, ElasticSearchIndexStatus.FAILED); |
1,048,308 | final public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>View childView = initView(inflater, container, savedInstanceState);<NEW_LINE>FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, Vi... | dashboard, getTag(), childView); |
1,661,769 | public IntersectionMatrix computeIM() {<NEW_LINE>IntersectionMatrix im = new IntersectionMatrix();<NEW_LINE>// since Geometries are finite and embedded in a 2-D space, the EE element must always be 2<NEW_LINE>im.set(Location.EXTERIOR, Location.EXTERIOR, 2);<NEW_LINE>// if the Geometries don't overlap there is nothing t... | [0].getEdgeIterator()); |
185,721 | private void processAddByHostname(final List<String> requestedHostnames, List<JSONObject> foundHosts, boolean allowOneTimeHosts) {<NEW_LINE>List<String> oneTimeHostnames = findOneTimeHosts(requestedHostnames, foundHosts);<NEW_LINE>if (!allowOneTimeHosts && !oneTimeHostnames.isEmpty()) {<NEW_LINE>NotifyManager.getInstan... | "platform", new JSONString(ONE_TIME)); |
1,465,376 | protected void doExecute(Task task, DeleteForecastAction.Request request, ActionListener<AcknowledgedResponse> listener) {<NEW_LINE>final String jobId = request.getJobId();<NEW_LINE>final String forecastsExpression = request.getForecastId();<NEW_LINE>final String[] forecastIds = Strings.splitStringByCommaToArray(foreca... | ()).query(query); |
1,795,029 | private void statInit() {<NEW_LINE>label1.setLabelFor(textField1);<NEW_LINE>label1.setText("Label1");<NEW_LINE>label1.setHorizontalAlignment(JLabel.LEADING);<NEW_LINE>textField1.setBackground(AdempierePLAF.getInfoBackground());<NEW_LINE>label2.setLabelFor(textField2);<NEW_LINE>label2.setText("Label2");<NEW_LINE>label2.... | new ALayoutConstraint(1, 0)); |
1,253,470 | final RedactChannelMessageResult executeRedactChannelMessage(RedactChannelMessageRequest redactChannelMessageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(redactChannelMessageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,788,171 | final void updateSubtreeNow(@Nonnull TreeUpdatePass pass, boolean canSmartExpand) {<NEW_LINE>maybeSetBusyAndScheduleWaiterForReady(true, getElementFor(pass.getNode()));<NEW_LINE>setHoldSize(true);<NEW_LINE>boolean consumed = initRootNodeNowIfNeeded(pass);<NEW_LINE>if (consumed)<NEW_LINE>return;<NEW_LINE>final DefaultMu... | (path.getParentPath())); |
1,422,410 | private static Map<String, MetadataFieldMapper.TypeParser> initBuiltInMetadataMappers() {<NEW_LINE>Map<String, MetadataFieldMapper.TypeParser> builtInMetadataMappers;<NEW_LINE>// Use a LinkedHashMap for metadataMappers because iteration order matters<NEW_LINE>builtInMetadataMappers = new LinkedHashMap<>();<NEW_LINE>// ... | , new VersionFieldMapper.TypeParser()); |
705,279 | public void actionPerformed(ActionEvent actionEvent) {<NEW_LINE>switch(action) {<NEW_LINE>case ACTION_ESCAPE:<NEW_LINE>if (CompletionImpl.get().hideCompletion(false)) {<NEW_LINE>// NOI18N<NEW_LINE>LogRecord r = new <MASK><NEW_LINE>CompletionImpl.uilog(r);<NEW_LINE>}<NEW_LINE>break;<NEW_LINE>case ACTION_COMPLETION_UP:<N... | LogRecord(Level.FINE, "COMPL_CANCEL"); |
1,316,755 | public void processRecordsCli(Dataset<Row> lines) throws ZinggClientException {<NEW_LINE>LOG.info("Processing Records for CLI updateLabelling");<NEW_LINE>getMarkedRecordsStat(lines);<NEW_LINE>printMarkedRecordsStat();<NEW_LINE>if (lines == null || lines.count() == 0) {<NEW_LINE>LOG.info("There is no marked record for u... | CLUSTER_COLUMN).equalTo(cluster_id)); |
339,400 | public void runCommand(CommandSender sender, List<String> args) {<NEW_LINE>if (plugin.getScriptAPI() == null) {<NEW_LINE>sender.sendMessage("Buscript failed to load while the server was starting. Scripts cannot be run.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File file = new File(plugin.getScriptAPI().getScriptFolder(),... | executeScript(file, target, player); |
787,250 | public static DescribeRulesResponse unmarshall(DescribeRulesResponse describeRulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRulesResponse.setRequestId(_ctx.stringValue("DescribeRulesResponse.RequestId"));<NEW_LINE>List<Rule> rules = new ArrayList<Rule>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("Desc... | ("DescribeRulesResponse.Rules[" + i + "].HealthCheckDomain")); |
420,279 | static CompletableFuture<byte[]> signTypedData(JSONObject data, ECKeyPair keyPair) {<NEW_LINE>CompletableFuture<byte[]> future = new CompletableFuture<>();<NEW_LINE>try {<NEW_LINE>System.out.println(data.toString());<NEW_LINE>StructuredDataEncoder encoder = new StructuredDataEncoder(data.toString());<NEW_LINE>byte[] me... | ] result = new byte[65]; |
1,843,405 | public ParquetEdgeSeed edgeIdToParquetObjects(final EdgeId edgeId) throws SerialisationException {<NEW_LINE>final List<Pair<String, Object>> gafferColumnsAndObjects = new ArrayList<>();<NEW_LINE>gafferColumnsAndObjects.add(new Pair<>(ParquetStore.SOURCE, edgeId.getSource()));<NEW_LINE>gafferColumnsAndObjects.add(new Pa... | , edgeId.getDestination())); |
823,425 | private void refreshToken() {<NEW_LINE>try {<NEW_LINE>final URI resourceURI;<NEW_LINE>final UriComponentsBuilder uriBuilder = UriComponentsBuilder.fromHttpUrl(baseUrl);<NEW_LINE>uriBuilder.pathSegment(PathSegmentsEnum.API.getValue()).pathSegment(PathSegmentsEnum.OATH.getValue()).pathSegment(PathSegmentsEnum.TOKEN.getVa... | oauthResponse.getAccessToken(), validUntil); |
1,753,102 | private void populateReferencedFunctions() {<NEW_LINE>for (BStructureTypeSymbol structureTypeSymbol : this.structureTypes) {<NEW_LINE>if (structureTypeSymbol.type.tag == TypeTags.OBJECT) {<NEW_LINE>BObjectType objectType = (BObjectType) structureTypeSymbol.type;<NEW_LINE>for (BType ref : objectType.typeInclusions) {<NE... | tsymbol.scope.lookup(funcName); |
286,690 | public void PEval(IFragment<Long, Long, Long, Double> fragment, ParallelContextBase<Long, Long, Long, Double> contextBase, ParallelMessageManager parallelMessageManager) {<NEW_LINE>PageRankContext ctx = (PageRankContext) contextBase;<NEW_LINE>parallelMessageManager.initChannels(ctx.thread_num());<NEW_LINE>VertexRange<L... | msgDanglingSum = FFITypeFactoryhelper.newDoubleMsg(0.0); |
501,311 | private GraphQLInputObjectType buildQueryOptionsInputType() {<NEW_LINE>String consistencyLevelsStr = System.getProperty(STARGATE_QUERY_CONSISTENCY_LEVELS, "LOCAL_ONE,LOCAL_QUORUM,ALL,SERIAL,LOCAL_SERIAL");<NEW_LINE>GraphQLEnumType consistencyEnumBuilder = getConsistencyEnum(consistencyLevelsStr, "QueryConsistency");<NE... | build()).build(); |
51,445 | public void updateState() {<NEW_LINE>ElroConnectsDeviceHandler handler = getHandler();<NEW_LINE>if (handler == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ElroDeviceStatus elroStatus = getStatus();<NEW_LINE>int batteryLevel = 0;<NEW_LINE>String deviceStatus = this.deviceStatus;<NEW_LINE>if (deviceStatus.length() >= 6)... | updateState(BATTERY_LEVEL, UnDefType.UNDEF); |
417,423 | public ParsedDeployment build() {<NEW_LINE>List<FormDefinitionEntity> <MASK><NEW_LINE>Map<FormDefinitionEntity, FormDefinitionParse> formDefinitionToParseMap = new LinkedHashMap<>();<NEW_LINE>Map<FormDefinitionEntity, FormResourceEntity> formDefinitionToResourceMap = new LinkedHashMap<>();<NEW_LINE>for (FormResourceEnt... | formDefinitions = new ArrayList<>(); |
1,683,230 | private void sortNodes(final NodeModel parent, int fromIndex) {<NEW_LINE>final int childCount = parent.getChildCount();<NEW_LINE>if (fromIndex >= childCount)<NEW_LINE>return;<NEW_LINE>final Vector<NodeModel> sortVector = new Vector<MASK><NEW_LINE>int nodeIndex = fromIndex;<NEW_LINE>while (nodeIndex < childCount) {<NEW_... | <NodeModel>(childCount - fromIndex); |
819,352 | private Object invokeSupport(Method delegate_method, String method_name, Object[] args) throws Throwable {<NEW_LINE>if (method_name.equals("getHostByAddr")) {<NEW_LINE>// byte[] address_bytes = (byte[])args[0];<NEW_LINE>// System.out.println( method_name + ": " + ByteFormatter.encodeString( address_bytes ));<NEW_LINE>r... | = (String) args[0]; |
39,234 | protected String createQueryString() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>for (String key : this.parameters.keySet()) {<NEW_LINE>if (sb.length() > 0) {<NEW_LINE>sb.append("&");<NEW_LINE>}<NEW_LINE>Object value = this.parameters.get(key);<NEW_LINE>if (value != null) {<NEW_LINE>if (value instanceof... | : (Collection<?>) value; |
651,791 | private void consolidateEntry(final int entryIndex) {<NEW_LINE>int previousVersionIndex = getPreviousVersionIndex(entryIndex);<NEW_LINE>if (previousVersionIndex == 0)<NEW_LINE>return;<NEW_LINE>if (getPreviousVersionIndex(previousVersionIndex) != 0) {<NEW_LINE>throw new IllegalStateException("Encountered Previous Versio... | , indexAtSlot, (short) 0); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.