code stringlengths 227 324k | indentifier stringlengths 171 323k | lang stringclasses 2
values |
|---|---|---|
for the specific language governing permissions and * limitations under the License. */ package com.facebook.presto.server; import com.facebook.airlift.log.Logger; import com.facebook.presto.metadata.FunctionAndTypeManager; import com.facebook.presto.spi.CoordinatorPlugin; import com.facebook.presto.spi.Plugin; import ... | for the specific language governing permissions and * limitations under the License. */ package com.facebook.presto.server; import com.facebook.airlift.log.Logger; import com.facebook.presto.metadata.FunctionAndTypeManager; import com.facebook.presto.spi.CoordinatorPlugin; import com.facebook.presto.spi.Plugin; import ... | java |
import java.net.URL; import java.net.URLClassLoader; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.ServiceLoader; import java.util.Set; import java.util.concurrent.atomic.AtomicBoolean; import static com.facebook.presto.metadata.FunctionExtrac... | import java.net.URL; import java.net.URLClassLoader; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.ServiceLoader; import java.util.Set; import java.util.concurrent.atomic.AtomicBoolean; import static com.facebook.presto.metadata.FunctionExtrac... | java |
module loads classes with *some* classloader. // When the AfterBurner module is configured not to use the value classloader // (e.g., AfterBurner().setUseValueClassLoader(false)) AppClassLoader is used for loading those // classes. Otherwise, the PluginClassLoader is used, which is the default behavior. // Therefore, i... | module loads classes with *some* classloader. // When the AfterBurner module is configured not to use the value classloader // (e.g., AfterBurner().setUseValueClassLoader(false)) AppClassLoader is used for loading those // classes. Otherwise, the PluginClassLoader is used, which is the default behavior. // Therefore, i... | java |
void loadPlugin(URLClassLoader pluginClassLoader, Class<?> clazz) { ServiceLoader<?> serviceLoader = ServiceLoader.load(clazz, pluginClassLoader); List<?> plugins = ImmutableList.copyOf(serviceLoader); if (plugins.isEmpty()) { log.warn("No service providers of type %s", clazz.getName()); } for (Object plugin : plugins)... | void loadPlugin(URLClassLoader pluginClassLoader, Class<?> clazz) { ServiceLoader<?> serviceLoader = ServiceLoader.load(clazz, pluginClassLoader); List<?> plugins = ImmutableList.copyOf(serviceLoader); if (plugins.isEmpty()) { log.warn("No service providers of type %s", clazz.getName()); } for (Object plugin : plugins)... | java |
{ ServiceLoader<?> serviceLoader = ServiceLoader.load(clazz, pluginClassLoader); List<?> plugins = ImmutableList.copyOf(serviceLoader); if (plugins.isEmpty()) { log.warn("No service providers of type %s", clazz.getName()); } for (Object plugin : plugins) { log.info("Installing %s", plugin.getClass().getName()); if (plu... | { ServiceLoader<?> serviceLoader = ServiceLoader.load(clazz, pluginClassLoader); List<?> plugins = ImmutableList.copyOf(serviceLoader); if (plugins.isEmpty()) { log.warn("No service providers of type %s", clazz.getName()); } for (Object plugin : plugins) { log.info("Installing %s", plugin.getClass().getName()); if (plu... | java |
ServiceLoader.load(clazz, pluginClassLoader); List<?> plugins = ImmutableList.copyOf(serviceLoader); if (plugins.isEmpty()) { log.warn("No service providers of type %s", clazz.getName()); } for (Object plugin : plugins) { log.info("Installing %s", plugin.getClass().getName()); if (plugin instanceof Plugin) { installPlu... | ServiceLoader.load(clazz, pluginClassLoader); List<?> plugins = ImmutableList.copyOf(serviceLoader); if (plugins.isEmpty()) { log.warn("No service providers of type %s", clazz.getName()); } for (Object plugin : plugins) { log.info("Installing %s", plugin.getClass().getName()); if (plugin instanceof Plugin) { installPlu... | java |
if (plugins.isEmpty()) { log.warn("No service providers of type %s", clazz.getName()); } for (Object plugin : plugins) { log.info("Installing %s", plugin.getClass().getName()); if (plugin instanceof Plugin) { installPlugin((Plugin) plugin); } else { log.warn("Unknown plugin type: %s", plugin.getClass().getName()); } } ... | if (plugins.isEmpty()) { log.warn("No service providers of type %s", clazz.getName()); } for (Object plugin : plugins) { log.info("Installing %s", plugin.getClass().getName()); if (plugin instanceof Plugin) { installPlugin((Plugin) plugin); } else { log.warn("Unknown plugin type: %s", plugin.getClass().getName()); } } ... | java |
package com.github.binarywang.wxpay.service.impl; import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader; import com.github.binarywang.wxpay.bean.payscore.*; import com.github.binarywang.wxpay.exception. <mask> <mask> <mask> <mask> <mask> <mask> ; import com.github.binarywang.wxpay.service.PartnerPayScoreSer... | package com.github.binarywang.wxpay.service.impl; import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader; import com.github.binarywang.wxpay.bean.payscore.*; import com.github.binarywang.wxpay.exception. WxPayException ; import com.github.binarywang.wxpay.service.PartnerPayScoreService; import com.github.bin... | java |
package com.github.binarywang.wxpay.service.impl; import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader; import com.github.binarywang.wxpay.bean.payscore.*; import com.github.binarywang.wxpay.exception. <mask> <mask> <mask> <mask> <mask> <mask> ; import com.github.binarywang.wxpay.service.PartnerPayScoreSer... | package com.github.binarywang.wxpay.service.impl; import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader; import com.github.binarywang.wxpay.bean.payscore.*; import com.github.binarywang.wxpay.exception. WxPayException ; import com.github.binarywang.wxpay.service.PartnerPayScoreService; import com.github.bin... | java |
package com.github.binarywang.wxpay.service.impl; import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader; import com.github.binarywang.wxpay.bean.payscore.*; import com.github.binarywang.wxpay.exception. <mask> <mask> <mask> <mask> <mask> <mask> ; import com.github.binarywang.wxpay.service.PartnerPayScoreSer... | package com.github.binarywang.wxpay.service.impl; import com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader; import com.github.binarywang.wxpay.bean.payscore.*; import com.github.binarywang.wxpay.exception. WxPayException ; import com.github.binarywang.wxpay.service.PartnerPayScoreService; import com.github.bin... | java |
com.github.binarywang.wxpay.exception. <mask> <mask> <mask> <mask> <mask> <mask> ; import com.github.binarywang.wxpay.service.PartnerPayScoreService; import com.github.binarywang.wxpay.service.PartnerPayScoreSignPlanService; import com.github.binarywang.wxpay.service.WxPayService; import com.github.binarywang.wxpay.v3.... | com.github.binarywang.wxpay.exception. WxPayException ; import com.github.binarywang.wxpay.service.PartnerPayScoreService; import com.github.binarywang.wxpay.service.PartnerPayScoreSignPlanService; import com.github.binarywang.wxpay.service.WxPayService; import com.github.binarywang.wxpay.v3.util.AesUtils; import com.g... | java |
@createTime 2023/11/3 09:23 * * <pre> * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-pay-score-plan/create-partner-pay-score-plan.html">微信支付分签约计划</a> * <br> * 文档更新时间:2023.10.13 * <br> * 微信支付分签约计划是不同模式的支付分接口(随着国家大力推广教培行业先享后付政策,微信支付也紧跟政策于2023.07.25上线第一版签约计划接口以适用教培行业先享后付。于202... | @createTime 2023/11/3 09:23 * * <pre> * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-pay-score-plan/create-partner-pay-score-plan.html">微信支付分签约计划</a> * <br> * 文档更新时间:2023.10.13 * <br> * 微信支付分签约计划是不同模式的支付分接口(随着国家大力推广教培行业先享后付政策,微信支付也紧跟政策于2023.07.25上线第一版签约计划接口以适用教培行业先享后付。于202... | java |
* <p>create Time: 2023/11/3 11:58 </p> * <p>version: v.1.0 </p> * * @param request {@link WxPartnerPayScoreSignPlanRequest} * * @return {@link WxPartnerPayScoreSignPlanResult} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-pay-score-plan/create-partner-pay-score-plan.html"... | * <p>create Time: 2023/11/3 11:58 </p> * <p>version: v.1.0 </p> * * @param request {@link WxPartnerPayScoreSignPlanRequest} * * @return {@link WxPartnerPayScoreSignPlanResult} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-pay-score-plan/create-partner-pay-score-plan.html"... | java |
* <p>create Time: 2023/11/3 14:03 </p> * <p>version: v.1.0 </p> * * @param merchantPlanNo 路径参数:支付分计划商户侧单号 * @param subMchid 子商户号 * * @return {@link WxPartnerPayScoreSignPlanResult} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-pay-score-plan/query-partner-pay-score-plan.h... | * <p>create Time: 2023/11/3 14:03 </p> * <p>version: v.1.0 </p> * * @param merchantPlanNo 路径参数:支付分计划商户侧单号 * @param subMchid 子商户号 * * @return {@link WxPartnerPayScoreSignPlanResult} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-pay-score-plan/query-partner-pay-score-plan.h... | java |
} } /** * <p>description: 停止支付分计划 </p> * <p>author:UltramanNoa </p> * <p>create Time: 2023/11/3 14:24 </p> * <p>version: v.1.0 </p> * * @param merchantPlanNo 路径参数:支付分计划商户侧单号 * @param subMchid 子商户号 * * @return {@link WxPartnerPayScoreSignPlanResult} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner... | } } /** * <p>description: 停止支付分计划 </p> * <p>author:UltramanNoa </p> * <p>create Time: 2023/11/3 14:24 </p> * <p>version: v.1.0 </p> * * @param merchantPlanNo 路径参数:支付分计划商户侧单号 * @param subMchid 子商户号 * * @return {@link WxPartnerPayScoreSignPlanResult} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner... | java |
@return {@link WxPartnerPayScoreSignPlanResult} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-pay-score-plan/stop-partner-pay-score-plan.html">停止支付分计划</a> **/ @Override public WxPartnerPayScoreSignPlanResult stopPlans(@NonNull String merchantPlanNo, @NonNull String subMch... | @return {@link WxPartnerPayScoreSignPlanResult} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-pay-score-plan/stop-partner-pay-score-plan.html">停止支付分计划</a> **/ @Override public WxPartnerPayScoreSignPlanResult stopPlans(@NonNull String merchantPlanNo, @NonNull String subMch... | java |
{@link WxPartnerPayScoreSignPlanRequest} * * @return {@link WxPartnerPayScoreSignPlanResult} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-service-order/create-partner-service-order.html">创建用户的签约计划详情对应的服务订单</a> **/ @Override public WxPartnerPayScoreSignPlanResult signPlan... | {@link WxPartnerPayScoreSignPlanRequest} * * @return {@link WxPartnerPayScoreSignPlanResult} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-service-order/create-partner-service-order.html">创建用户的签约计划详情对应的服务订单</a> **/ @Override public WxPartnerPayScoreSignPlanResult signPlan... | java |
{@link WxPartnerPayScoreSignPlanRequest} * * @return {@link WxPartnerPayScoreUserSignPlanResult} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-user-sign-plan/create-partner-user-sign-plan.html">创建用户的签约计划</a> **/ @Override public WxPartnerPayScoreUserSignPlanResult createU... | {@link WxPartnerPayScoreSignPlanRequest} * * @return {@link WxPartnerPayScoreUserSignPlanResult} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-user-sign-plan/create-partner-user-sign-plan.html">创建用户的签约计划</a> **/ @Override public WxPartnerPayScoreUserSignPlanResult createU... | java |
查询用户的签约计划 </p> * <p>author:UltramanNoa </p> * <p>create Time: 2023/11/3 18:01 </p> * <p>version: v.1.0 </p> * * @param merchantSignPlanNo 路径参数 商户签约计划号 * @param subMchid 子商户号 * * @return {@link PartnerUserSignPlanEntity} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-user-s... | 查询用户的签约计划 </p> * <p>author:UltramanNoa </p> * <p>create Time: 2023/11/3 18:01 </p> * <p>version: v.1.0 </p> * * @param merchantSignPlanNo 路径参数 商户签约计划号 * @param subMchid 子商户号 * * @return {@link PartnerUserSignPlanEntity} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-user-s... | java |
</p> * <p>version: v.1.0 </p> * * @param merchantSignPlanNo 路径参数 商户签约计划号 * @param subMchid 子商户号 * * @return {@link PartnerUserSignPlanEntity} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-user-sign-plan/query-partner-user-sign-plan.html">查询用户的签约计划</a> **/ @Override public... | </p> * <p>version: v.1.0 </p> * * @param merchantSignPlanNo 路径参数 商户签约计划号 * @param subMchid 子商户号 * * @return {@link PartnerUserSignPlanEntity} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-user-sign-plan/query-partner-user-sign-plan.html">查询用户的签约计划</a> **/ @Override public... | java |
merchantSignPlanNo); try { URI uri = new URIBuilder(url) .setParameter("sub_mchid", subMchid) .build(); String result = payService.getV3(uri.toString()); return PartnerUserSignPlanEntity.fromJson(result); } catch (URISyntaxException e) { throw new <mask> <mask> <mask> <mask> <mask> <mask> ("未知异常!", e); } } /** * <p>des... | merchantSignPlanNo); try { URI uri = new URIBuilder(url) .setParameter("sub_mchid", subMchid) .build(); String result = payService.getV3(uri.toString()); return PartnerUserSignPlanEntity.fromJson(result); } catch (URISyntaxException e) { throw new WxPayException ("未知异常!", e); } } /** * <p>description: 取消用户的签约计划 </p> * ... | java |
<p>create Time: 2023/11/3 18:01 </p> * <p>version: v.1.0 </p> * * @param merchantSignPlanNo 路径参数 商户签约计划号 subMchid – 子商户号 * @param subMchid 子商户号 * @param stopReason 停止签约计划原因 * * @return {@link PartnerUserSignPlanEntity} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-user-si... | <p>create Time: 2023/11/3 18:01 </p> * <p>version: v.1.0 </p> * * @param merchantSignPlanNo 路径参数 商户签约计划号 subMchid – 子商户号 * @param subMchid 子商户号 * @param stopReason 停止签约计划原因 * * @return {@link PartnerUserSignPlanEntity} * @apiNote <a href="https://pay.weixin.qq.com/docs/partner/apis/partner-payscore-plan/partner-user-si... | java |
/* * Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa... | /* * Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa... | java |
the separator foreground color of the current theme. This is * a cover method for {@code getCurrentTheme().getSeparatorForeground()}. * * @return the separator foreground color * * @see MetalTheme */ public static ColorUIResource getSeparatorForeground() { return getCurrentTheme().getSeparatorForeground(); } /** * Retu... | the separator foreground color of the current theme. This is * a cover method for {@code getCurrentTheme().getSeparatorForeground()}. * * @return the separator foreground color * * @see MetalTheme */ public static ColorUIResource getSeparatorForeground() { return getCurrentTheme().getSeparatorForeground(); } /** * Retu... | java |
the current theme. This is * a cover method for {@code getCurrentTheme().getSeparatorForeground()}. * * @return the separator foreground color * * @see MetalTheme */ public static ColorUIResource getSeparatorForeground() { return getCurrentTheme().getSeparatorForeground(); } /** * Returns the accelerator foreground col... | the current theme. This is * a cover method for {@code getCurrentTheme().getSeparatorForeground()}. * * @return the separator foreground color * * @see MetalTheme */ public static ColorUIResource getSeparatorForeground() { return getCurrentTheme().getSeparatorForeground(); } /** * Returns the accelerator foreground col... | java |
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not us... | /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not us... | java |
License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language gov... | License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language gov... | java |
distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.metadata.storage; import org.apache.kafka.common.metadata.UserScramCredentialReco... | distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.metadata.storage; import org.apache.kafka.common.metadata.UserScramCredentialReco... | java |
or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.metadata.storage; import org.apache.kafka.common.metadata.UserScramCredentialRecord; import org.apache.kafka.common.security.scram.internals.ScramFormatter; import org.apache.ka... | or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.metadata.storage; import org.apache.kafka.common.metadata.UserScramCredentialRecord; import org.apache.kafka.common.security.scram.internals.ScramFormatter; import org.apache.ka... | java |
the License. */ package org.apache.kafka.metadata.storage; import org.apache.kafka.common.metadata.UserScramCredentialRecord; import org.apache.kafka.common.security.scram.internals.ScramFormatter; import org.apache.kafka.common.security.scram.internals.ScramMechanism; import org.apache.kafka.metadata.storage.ScramPars... | the License. */ package org.apache.kafka.metadata.storage; import org.apache.kafka.common.metadata.UserScramCredentialRecord; import org.apache.kafka.common.security.scram.internals.ScramFormatter; import org.apache.kafka.common.security.scram.internals.ScramMechanism; import org.apache.kafka.metadata.storage.ScramPars... | java |
4, 83, 73, -119, 91, -70, -90, -72, 21, 33, -83, 36, 34, 95, 76, -53, -29, 96, 33 }; @Test public void testSplitTrimmedConfigStringComponentOnNameEqualsFoo() { assertEquals(new AbstractMap.SimpleImmutableEntry<>("name", "foo"), ScramParser.splitTrimmedConfigStringComponent("name=foo")); } @Test public void testSplitTri... | 4, 83, 73, -119, 91, -70, -90, -72, 21, 33, -83, 36, 34, 95, 76, -53, -29, 96, 33 }; @Test public void testSplitTrimmedConfigStringComponentOnNameEqualsFoo() { assertEquals(new AbstractMap.SimpleImmutableEntry<>("name", "foo"), ScramParser.splitTrimmedConfigStringComponent("name=foo")); } @Test public void testSplitTri... | java |
} @Test public void testRandomSalt() throws Exception { PerMechanismData data = new PerMechanismData(ScramMechanism.SCRAM_SHA_256, "bob", Optional.empty(), <mask> <mask> <mask> <mask> .empty(), Optional.of("my pass"), Optional.empty()); TestUtils.retryOnExceptionWithTimeout(10_000, () -> assertNotEquals(data.salt().toS... | } @Test public void testRandomSalt() throws Exception { PerMechanismData data = new PerMechanismData(ScramMechanism.SCRAM_SHA_256, "bob", Optional.empty(), OptionalInt .empty(), Optional.of("my pass"), Optional.empty()); TestUtils.retryOnExceptionWithTimeout(10_000, () -> assertNotEquals(data.salt().toString(), data.sa... | java |
Optional.empty()); TestUtils.retryOnExceptionWithTimeout(10_000, () -> assertNotEquals(data.salt().toString(), data.salt().toString()) ); } @Test public void testConfiguredSalt() throws Exception { assertArrayEquals(TEST_SALT, new PerMechanismData(ScramMechanism.SCRAM_SHA_256, "bob", Optional.of(TEST_SALT), <mask> <mas... | Optional.empty()); TestUtils.retryOnExceptionWithTimeout(10_000, () -> assertNotEquals(data.salt().toString(), data.salt().toString()) ); } @Test public void testConfiguredSalt() throws Exception { assertArrayEquals(TEST_SALT, new PerMechanismData(ScramMechanism.SCRAM_SHA_256, "bob", Optional.of(TEST_SALT), OptionalInt... | java |
Optional.of(TEST_SALT), <mask> <mask> <mask> <mask> .empty(), Optional.of("my pass"), Optional.empty()).salt()); } @Test public void testDefaultIterations() { assertEquals(4096, new PerMechanismData(ScramMechanism.SCRAM_SHA_256, "bob", Optional.empty(), <mask> <mask> <mask> <mask> .empty(), Optional.of("my pass"), Opti... | Optional.of(TEST_SALT), OptionalInt .empty(), Optional.of("my pass"), Optional.empty()).salt()); } @Test public void testDefaultIterations() { assertEquals(4096, new PerMechanismData(ScramMechanism.SCRAM_SHA_256, "bob", Optional.empty(), OptionalInt .empty(), Optional.of("my pass"), Optional.empty()).iterations()); } @... | java |
public void testParsePerMechanismArgument() { assertEquals(new AbstractMap.SimpleImmutableEntry<>( ScramMechanism.SCRAM_SHA_512, "name=scram-admin,password=scram-user-secret"), ScramParser.parsePerMechanismArgument( "SCRAM-SHA-512=[name=scram-admin,password=scram-user-secret]")); } @Test public void testParsePerMechani... | public void testParsePerMechanismArgument() { assertEquals(new AbstractMap.SimpleImmutableEntry<>( ScramMechanism.SCRAM_SHA_512, "name=scram-admin,password=scram-user-secret"), ScramParser.parsePerMechanismArgument( "SCRAM-SHA-512=[name=scram-admin,password=scram-user-secret]")); } @Test public void testParsePerMechani... | java |
testParsePerMechanismArgumentWithUnsupportedScramMethod() { assertEquals("The add-scram mechanism SCRAM-SHA-UNSUPPORTED is not supported.", assertThrows(FormatterException.class, () -> ScramParser.parsePerMechanismArgument( "SCRAM-SHA-UNSUPPORTED=[name=scram-admin,password=scram-user-secret]")). getMessage()); } @Test ... | testParsePerMechanismArgumentWithUnsupportedScramMethod() { assertEquals("The add-scram mechanism SCRAM-SHA-UNSUPPORTED is not supported.", assertThrows(FormatterException.class, () -> ScramParser.parsePerMechanismArgument( "SCRAM-SHA-UNSUPPORTED=[name=scram-admin,password=scram-user-secret]")). getMessage()); } @Test ... | java |
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ... | /* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ... | java |
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ... | /* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ... | java |
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ... | /* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ... | java |
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ... | /* * DBeaver - Universal Database Manager * Copyright (C) 2010-2024 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ... | java |
jakarta.servlet.FilterChain; import jakarta.servlet.FilterConfig; import jakarta.servlet.Servlet; import jakarta.servlet.ServletException; import jakarta.servlet.ServletRequest; import jakarta.servlet.ServletResponse; import org.jspecify.annotations.Nullable; import org.springframework.util.Assert; import org.springfra... | jakarta.servlet.FilterChain; import jakarta.servlet.FilterConfig; import jakarta.servlet.Servlet; import jakarta.servlet.ServletException; import jakarta.servlet.ServletRequest; import jakarta.servlet.ServletResponse; import org.jspecify.annotations.Nullable; import org.springframework.util.Assert; import org.springfra... | java |
MockFilterChain(Servlet servlet) { this.filters = initFilterList(servlet); } /** * Create a {@code MockFilterChain} with a {@link Servlet} and {@linkplain Filter * filters}. * @param servlet the {@code Servlet} to invoke in this {@code MockFilterChain} * @param filters the filters to invoke in this {@code MockFilterCha... | MockFilterChain(Servlet servlet) { this.filters = initFilterList(servlet); } /** * Create a {@code MockFilterChain} with a {@link Servlet} and {@linkplain Filter * filters}. * @param servlet the {@code Servlet} to invoke in this {@code MockFilterChain} * @param filters the filters to invoke in this {@code MockFilterCha... | java |
Create a {@code MockFilterChain} with a {@link Servlet} and {@linkplain Filter * filters}. * @param servlet the {@code Servlet} to invoke in this {@code MockFilterChain} * @param filters the filters to invoke in this {@code MockFilterChain} * @since 3.2 */ public MockFilterChain(Servlet servlet, Filter... filters) { As... | Create a {@code MockFilterChain} with a {@link Servlet} and {@linkplain Filter * filters}. * @param servlet the {@code Servlet} to invoke in this {@code MockFilterChain} * @param filters the filters to invoke in this {@code MockFilterChain} * @since 3.2 */ public MockFilterChain(Servlet servlet, Filter... filters) { As... | java |
package cn.iocoder.yudao.module.infra.service.codegen; import cn.hutool.core.collection.ListUtil; import cn.hutool.core.map.MapUtil; import cn.iocoder.yudao.framework. <mask> <mask> <mask> .pojo.PageResult; import cn.iocoder.yudao.framework.test.core.ut.BaseDbUnitTest; import cn.iocoder.yudao.module.infra.controller.ad... | package cn.iocoder.yudao.module.infra.service.codegen; import cn.hutool.core.collection.ListUtil; import cn.hutool.core.map.MapUtil; import cn.iocoder.yudao.framework. common .pojo.PageResult; import cn.iocoder.yudao.framework.test.core.ut.BaseDbUnitTest; import cn.iocoder.yudao.module.infra.controller.admin.codegen.vo... | java |
package cn.iocoder.yudao.module.infra.service.codegen; import cn.hutool.core.collection.ListUtil; import cn.hutool.core.map.MapUtil; import cn.iocoder.yudao.framework. <mask> <mask> <mask> .pojo.PageResult; import cn.iocoder.yudao.framework.test.core.ut.BaseDbUnitTest; import cn.iocoder.yudao.module.infra.controller.ad... | package cn.iocoder.yudao.module.infra.service.codegen; import cn.hutool.core.collection.ListUtil; import cn.hutool.core.map.MapUtil; import cn.iocoder.yudao.framework. common .pojo.PageResult; import cn.iocoder.yudao.framework.test.core.ut.BaseDbUnitTest; import cn.iocoder.yudao.module.infra.controller.admin.codegen.vo... | java |
package cn.iocoder.yudao.module.infra.service.codegen; import cn.hutool.core.collection.ListUtil; import cn.hutool.core.map.MapUtil; import cn.iocoder.yudao.framework. <mask> <mask> <mask> .pojo.PageResult; import cn.iocoder.yudao.framework.test.core.ut.BaseDbUnitTest; import cn.iocoder.yudao.module.infra.controller.ad... | package cn.iocoder.yudao.module.infra.service.codegen; import cn.hutool.core.collection.ListUtil; import cn.hutool.core.map.MapUtil; import cn.iocoder.yudao.framework. common .pojo.PageResult; import cn.iocoder.yudao.framework.test.core.ut.BaseDbUnitTest; import cn.iocoder.yudao.module.infra.controller.admin.codegen.vo... | java |
package cn.iocoder.yudao.module.infra.service.codegen; import cn.hutool.core.collection.ListUtil; import cn.hutool.core.map.MapUtil; import cn.iocoder.yudao.framework. <mask> <mask> <mask> .pojo.PageResult; import cn.iocoder.yudao.framework.test.core.ut.BaseDbUnitTest; import cn.iocoder.yudao.module.infra.controller.ad... | package cn.iocoder.yudao.module.infra.service.codegen; import cn.hutool.core.collection.ListUtil; import cn.hutool.core.map.MapUtil; import cn.iocoder.yudao.framework. common .pojo.PageResult; import cn.iocoder.yudao.framework.test.core.ut.BaseDbUnitTest; import cn.iocoder.yudao.module.infra.controller.admin.codegen.vo... | java |
package cn.iocoder.yudao.module.infra.service.codegen; import cn.hutool.core.collection.ListUtil; import cn.hutool.core.map.MapUtil; import cn.iocoder.yudao.framework. <mask> <mask> <mask> .pojo.PageResult; import cn.iocoder.yudao.framework.test.core.ut.BaseDbUnitTest; import cn.iocoder.yudao.module.infra.controller.ad... | package cn.iocoder.yudao.module.infra.service.codegen; import cn.hutool.core.collection.ListUtil; import cn.hutool.core.map.MapUtil; import cn.iocoder.yudao.framework. common .pojo.PageResult; import cn.iocoder.yudao.framework.test.core.ut.BaseDbUnitTest; import cn.iocoder.yudao.module.infra.controller.admin.codegen.vo... | java |
NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Orac... | NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Orac... | java |
int unprotectWritablePages(Pointer imageHeap, UnsignedWord pageSize, Word heapBeginSym, Word heapWritableSym, Word heapWritableEndSym) { /* * The last page might be shared with the subsequent read-only huge objects partition, in * which case we make some of its data writable, which we consider acceptable. */ Pointer wr... | int unprotectWritablePages(Pointer imageHeap, UnsignedWord pageSize, Word heapBeginSym, Word heapWritableSym, Word heapWritableEndSym) { /* * The last page might be shared with the subsequent read-only huge objects partition, in * which case we make some of its data writable, which we consider acceptable. */ Pointer wr... | java |
pageSize); UnsignedWord readOnlyBytesAtEnd = imageHeap.add(imageHeapSize).subtract(writableEnd); readOnlyBytesAtEnd = roundUp(readOnlyBytesAtEnd, pageSize); if (readOnlyBytesAtEnd.aboveThan(0) && VirtualMemoryProvider.get().protect(writableEnd, readOnlyBytesAtEnd, Access.READ) != 0) { return CEntryPointErrors.PROTECT_H... | pageSize); UnsignedWord readOnlyBytesAtEnd = imageHeap.add(imageHeapSize).subtract(writableEnd); readOnlyBytesAtEnd = roundUp(readOnlyBytesAtEnd, pageSize); if (readOnlyBytesAtEnd.aboveThan(0) && VirtualMemoryProvider.get().protect(writableEnd, readOnlyBytesAtEnd, Access.READ) != 0) { return CEntryPointErrors.PROTECT_H... | java |
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | java |
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | java |
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | java |
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | java |
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | java |
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | java |
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | java |
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | java |
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not ... | java |
(textLine.isDirectionLTR() == (hitCharIndex == -1)) { visIndex = 0; } else { visIndex = characterCount-1; } charIndex = textLine.visualToLogical(visIndex); if (textLine.isDirectionLTR() == (hitCharIndex == -1)) { // at left end leading = textLine.isCharLTR(charIndex); } else { // at right end leading = !textLine.isChar... | (textLine.isDirectionLTR() == (hitCharIndex == -1)) { visIndex = 0; } else { visIndex = characterCount-1; } charIndex = textLine.visualToLogical(visIndex); if (textLine.isDirectionLTR() == (hitCharIndex == -1)) { // at left end leading = textLine.isCharLTR(charIndex); } else { // at right end leading = !textLine.isChar... | java |
(visIndex > -1 && visIndex < characterCount) { charIndex = textLine.visualToLogical(visIndex); leading = movedToRight == textLine.isCharLTR(charIndex); } else { charIndex = (movedToRight == textLine.isDirectionLTR())? characterCount : -1; leading = charIndex == characterCount; } } return leading? TextHitInfo.leading(ch... | (visIndex > -1 && visIndex < characterCount) { charIndex = textLine.visualToLogical(visIndex); leading = movedToRight == textLine.isCharLTR(charIndex); } else { charIndex = (movedToRight == textLine.isDirectionLTR())? characterCount : -1; leading = charIndex == characterCount; } } return leading? TextHitInfo.leading(ch... | java |
info = getCaretInfo(hit, bounds); return new double[] { info[2], info[3], info[4], info[5] }; } /** * Return an array of four floats corresponding the endpoints of the caret * x0, y0, x1, y1. * * This creates a line along the slope of the caret intersecting the * baseline at the caret * position, and extending from asc... | info = getCaretInfo(hit, bounds); return new double[] { info[2], info[3], info[4], info[5] }; } /** * Return an array of four floats corresponding the endpoints of the caret * x0, y0, x1, y1. * * This creates a line along the slope of the caret intersecting the * baseline at the caret * position, and extending from asc... | java |
info[0]; double slope = info[1]; double x0, y0, x1, y1; double x2 = -3141.59, y2 = -2.7; // values are there to make compiler happy double left = bounds.getX(); double right = left + bounds.getWidth(); double top = bounds.getY(); double bottom = top + bounds.getHeight(); boolean <mask> <mask> <mask> <mask> = false; if ... | info[0]; double slope = info[1]; double x0, y0, x1, y1; double x2 = -3141.59, y2 = -2.7; // values are there to make compiler happy double left = bounds.getX(); double right = left + bounds.getWidth(); double top = bounds.getY(); double bottom = top + bounds.getHeight(); boolean threePoints = false; if (isVerticalLine)... | java |
false; if (isVerticalLine) { if (slope >= 0) { x0 = left; x1 = right; } else { x1 = left; x0 = right; } y0 = pos + x0 * slope; y1 = pos + x1 * slope; // y0 <= y1, always if (clipToBounds) { if (y0 < top) { if (slope <= 0 || y1 <= top) { y0 = y1 = top; } else { <mask> <mask> <mask> <mask> = true; y0 = top; y2 = top; x2 ... | false; if (isVerticalLine) { if (slope >= 0) { x0 = left; x1 = right; } else { x1 = left; x0 = right; } y0 = pos + x0 * slope; y1 = pos + x1 * slope; // y0 <= y1, always if (clipToBounds) { if (y0 < top) { if (slope <= 0 || y1 <= top) { y0 = y1 = top; } else { threePoints = true; y0 = top; y2 = top; x2 = x1 + (top-y1)/... | java |
= left; x0 = right; } y0 = pos + x0 * slope; y1 = pos + x1 * slope; // y0 <= y1, always if (clipToBounds) { if (y0 < top) { if (slope <= 0 || y1 <= top) { y0 = y1 = top; } else { <mask> <mask> <mask> <mask> = true; y0 = top; y2 = top; x2 = x1 + (top-y1)/slope; if (y1 > bottom) { y1 = bottom; } } } else if (y1 > bottom)... | = left; x0 = right; } y0 = pos + x0 * slope; y1 = pos + x1 * slope; // y0 <= y1, always if (clipToBounds) { if (y0 < top) { if (slope <= 0 || y1 <= top) { y0 = y1 = top; } else { threePoints = true; y0 = top; y2 = top; x2 = x1 + (top-y1)/slope; if (y1 > bottom) { y1 = bottom; } } } else if (y1 > bottom) { if (slope >= ... | java |
GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version... | GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version... | java |
version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy... | version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy... | java |
code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You s... | code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You s... | java |
useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Pu... | useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Pu... | java |
the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if... | the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if... | java |
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, ... | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, ... | java |
GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Bosto... | GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Bosto... | java |
for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contac... | for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contac... | java |
in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood... | in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood... | java |
this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.or... | this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.or... | java |
received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional ... | received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional ... | java |
Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions... | Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions... | java |
this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package jdk.jfr.api.consumer; imp... | this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package jdk.jfr.api.consumer; imp... | java |
Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package jdk.jfr.api.consumer; import java.util.List; import jdk.j... | Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package jdk.jfr.api.consumer; import java.util.List; import jdk.j... | java |
USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package jdk.jfr.api.consumer; import java.util.List; import jdk.jfr.Event; import jdk.jfr.Recording; import jdk.jfr.consumer.RecordedClass; import jdk... | USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package jdk.jfr.api.consumer; import java.util.List; import jdk.jfr.Event; import jdk.jfr.Recording; import jdk.jfr.consumer.RecordedClass; import jdk... | java |
package run.halo.app.plugin; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.mockito.Mockito.withSettings; import java.util.List; import org.junit.jupiter.api.Test; import org.junit.jupit... | package run.halo.app.plugin; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.mockito.Mockito.withSettings; import java.util.List; import org.junit.jupiter.api.Test; import org.junit.jupit... | java |
package run.halo.app.plugin; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.mockito.Mockito.withSettings; import java.util.List; import org.junit.jupiter.api.Test; import org.junit.jupit... | package run.halo.app.plugin; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.mockito.Mockito.withSettings; import java.util.List; import org.junit.jupiter.api.Test; import org.junit.jupit... | java |
package run.halo.app.plugin; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.mockito.Mockito.withSettings; import java.util.List; import org.junit.jupiter.api.Test; import org.junit.jupit... | package run.halo.app.plugin; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.mockito.Mockito.withSettings; import java.util.List; import org.junit.jupiter.api.Test; import org.junit.jupit... | java |
package run.halo.app.plugin; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.mockito.Mockito.withSettings; import java.util.List; import org.junit.jupiter.api.Test; import org.junit.jupit... | package run.halo.app.plugin; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.mockito.Mockito.withSettings; import java.util.List; import org.junit.jupiter.api.Test; import org.junit.jupit... | java |
left in the original loop or the loop is inverted " + loop; for (SafepointNode safepoint : loop.whole().nodes().filter(SafepointNode.class)) { graph().removeFixed(safepoint); } StructuredGraph graph = mainLoopBegin.graph(); if (opaqueUnrolledStrides != null) { OpaqueNode opaque = opaqueUnrolledStrides.get(loop.loopBegi... | left in the original loop or the loop is inverted " + loop; for (SafepointNode safepoint : loop.whole().nodes().filter(SafepointNode.class)) { graph().removeFixed(safepoint); } StructuredGraph graph = mainLoopBegin.graph(); if (opaqueUnrolledStrides != null) { OpaqueNode opaque = opaqueUnrolledStrides.get(loop.loopBegi... | java |
{ OpaqueNode opaque = opaqueUnrolledStrides.get(loop.loopBegin()); CountedLoopInfo counted = loop.counted(); ValueNode counterStride = counted.getLimitCheckedIV().strideNode(); if (opaque == null || opaque.isDeleted()) { ValueNode limit = counted.getLimit(); opaque = new OpaqueValueNode(AddNode.add(counterStride, count... | { OpaqueNode opaque = opaqueUnrolledStrides.get(loop.loopBegin()); CountedLoopInfo counted = loop.counted(); ValueNode counterStride = counted.getLimitCheckedIV().strideNode(); if (opaque == null || opaque.isDeleted()) { ValueNode limit = counted.getLimit(); opaque = new OpaqueValueNode(AddNode.add(counterStride, count... | java |
if (opaque == null || opaque.isDeleted()) { ValueNode limit = counted.getLimit(); opaque = new OpaqueValueNode(AddNode.add(counterStride, counterStride, NodeView.DEFAULT)); ValueNode newLimit = partialUnrollOverflowCheck(opaque, limit, counted); GraalError.guarantee(condition.hasExactlyOneUsage(), "Unrolling loop %s wi... | if (opaque == null || opaque.isDeleted()) { ValueNode limit = counted.getLimit(); opaque = new OpaqueValueNode(AddNode.add(counterStride, counterStride, NodeView.DEFAULT)); ValueNode newLimit = partialUnrollOverflowCheck(opaque, limit, counted); GraalError.guarantee(condition.hasExactlyOneUsage(), "Unrolling loop %s wi... | java |
ValueNode partialUnrollOverflowCheck(OpaqueNode opaque, ValueNode limit, CountedLoopInfo counted) { int bits = ((IntegerStamp) limit.stamp(NodeView.DEFAULT)).getBits(); ValueNode newLimit = SubNode.create(limit, opaque, NodeView.DEFAULT); IntegerHelper helper = counted.getCounterIntegerHelper(); LogicNode overflowCheck... | ValueNode partialUnrollOverflowCheck(OpaqueNode opaque, ValueNode limit, CountedLoopInfo counted) { int bits = ((IntegerStamp) limit.stamp(NodeView.DEFAULT)).getBits(); ValueNode newLimit = SubNode.create(limit, opaque, NodeView.DEFAULT); IntegerHelper helper = counted.getCounterIntegerHelper(); LogicNode overflowCheck... | java |
((IntegerStamp) limit.stamp(NodeView.DEFAULT)).getBits(); ValueNode newLimit = SubNode.create(limit, opaque, NodeView.DEFAULT); IntegerHelper helper = counted.getCounterIntegerHelper(); LogicNode overflowCheck; ConstantNode extremum; if (counted.getDirection() == InductionVariable.Direction.Up) { // limit - counterStri... | ((IntegerStamp) limit.stamp(NodeView.DEFAULT)).getBits(); ValueNode newLimit = SubNode.create(limit, opaque, NodeView.DEFAULT); IntegerHelper helper = counted.getCounterIntegerHelper(); LogicNode overflowCheck; ConstantNode extremum; if (counted.getDirection() == InductionVariable.Direction.Up) { // limit - counterStri... | java |
overflowCheck; ConstantNode extremum; if (counted.getDirection() == InductionVariable.Direction.Up) { // limit - counterStride could overflow negatively if limit - min < // counterStride extremum = ConstantNode.forIntegerBits(bits, helper.minValue()); overflowCheck = IntegerBelowNode.create(SubNode.create(limit, extrem... | overflowCheck; ConstantNode extremum; if (counted.getDirection() == InductionVariable.Direction.Up) { // limit - counterStride could overflow negatively if limit - min < // counterStride extremum = ConstantNode.forIntegerBits(bits, helper.minValue()); overflowCheck = IntegerBelowNode.create(SubNode.create(limit, extrem... | java |
== InductionVariable.Direction.Up) { // limit - counterStride could overflow negatively if limit - min < // counterStride extremum = ConstantNode.forIntegerBits(bits, helper.minValue()); overflowCheck = IntegerBelowNode.create(SubNode.create(limit, extremum, NodeView.DEFAULT), opaque, NodeView.DEFAULT); } else { assert... | == InductionVariable.Direction.Up) { // limit - counterStride could overflow negatively if limit - min < // counterStride extremum = ConstantNode.forIntegerBits(bits, helper.minValue()); overflowCheck = IntegerBelowNode.create(SubNode.create(limit, extremum, NodeView.DEFAULT), opaque, NodeView.DEFAULT); } else { assert... | java |
// limit - counterStride could overflow negatively if limit - min < // counterStride extremum = ConstantNode.forIntegerBits(bits, helper.minValue()); overflowCheck = IntegerBelowNode.create(SubNode.create(limit, extremum, NodeView.DEFAULT), opaque, NodeView.DEFAULT); } else { assert counted.getDirection() == InductionV... | // limit - counterStride could overflow negatively if limit - min < // counterStride extremum = ConstantNode.forIntegerBits(bits, helper.minValue()); overflowCheck = IntegerBelowNode.create(SubNode.create(limit, extremum, NodeView.DEFAULT), opaque, NodeView.DEFAULT); } else { assert counted.getDirection() == InductionV... | java |
/* * LoopPartialUnrollPhase runs after guard lowering, thus we cannot see any * floating guards here except multi-guard nodes (pointing to abstract begins) * and other anchored nodes. We need to ensure anything anchored on the original * loop begin will be anchored on the unrolled iteration. Thus we create an * anchor ... | /* * LoopPartialUnrollPhase runs after guard lowering, thus we cannot see any * floating guards here except multi-guard nodes (pointing to abstract begins) * and other anchored nodes. We need to ensure anything anchored on the original * loop begin will be anchored on the unrolled iteration. Thus we create an * anchor ... | java |
an * anchor point here ensuring nothing can flow above the original iteration. */ if (!(lastCodeNode instanceof GuardingNode) || !(lastCodeNode instanceof AnchoringNode)) { ValueAnchorNode newAnchoringPointAfterPrevIteration = graph.add(new ValueAnchorNode()); graph.addAfterFixed(lastCodeNode, newAnchoringPointAfterPre... | an * anchor point here ensuring nothing can flow above the original iteration. */ if (!(lastCodeNode instanceof GuardingNode) || !(lastCodeNode instanceof AnchoringNode)) { ValueAnchorNode newAnchoringPointAfterPrevIteration = graph.add(new ValueAnchorNode()); graph.addAfterFixed(lastCodeNode, newAnchoringPointAfterPre... | java |
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the... | /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the... | java |
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the... | /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the... | java |
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the... | /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the... | java |
/* * Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa... | /* * Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa... | java |
/* * Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa... | /* * Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.