idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
447,445
public ViewUpdatedCollection makeViewUpdatedCollection(SortedSet<Integer> priorRequests, AgentInstanceContext agentInstanceContext) {<NEW_LINE>if (priorRequests.isEmpty()) {<NEW_LINE>throw new IllegalStateException("No resources requested");<NEW_LINE>}<NEW_LINE>// Construct an array of requested prior-event indexes (su...
new PriorEventBufferSingle(requested[0]);
1,824,645
private Object arrayClone(Object array) {<NEW_LINE>if (array instanceof Object[])<NEW_LINE>return objectArrayClone((Object[]) array);<NEW_LINE>else if (array instanceof byte[])<NEW_LINE>return Arrays.copyOf((byte[]) array, ((byte<MASK><NEW_LINE>else if (array instanceof char[])<NEW_LINE>return Arrays.copyOf((char[]) ar...
[]) array).length);
1,755,758
private void mergeBucketsWithPlan(List<Bucket> buckets, List<BucketRange> plan, AggregationReduceContext reduceContext) {<NEW_LINE>for (int i = plan.size() - 1; i >= 0; i--) {<NEW_LINE>BucketRange range = plan.get(i);<NEW_LINE>int endIdx = range.endIdx;<NEW_LINE>int startIdx = range.startIdx;<NEW_LINE>if (startIdx == e...
buckets.set(startIdx, merged_bucket);
1,323,092
public Future<List<InetSocketAddress>> resolve(NameResolver<InetAddress> nameResolver, InetSocketAddress unresolvedAddress, AsyncHandler<?> asyncHandler) {<NEW_LINE>final String hostname = unresolvedAddress.getHostString();<NEW_LINE>final int port = unresolvedAddress.getPort();<NEW_LINE>final Promise<List<InetSocketAdd...
asyncHandler.onHostnameResolutionSuccess(hostname, socketAddresses);
463,013
public static boolean renderBehaviorizedOnchangeEventHandler(FacesContext facesContext, ResponseWriter writer, UIComponent uiComponent, String targetClientId, Map<String, List<ClientBehavior>> clientBehaviors) throws IOException {<NEW_LINE>boolean hasChange = HtmlRendererUtils.hasClientBehavior(ClientBehaviorEvents.CHA...
(HTML.ONCHANGE_ATTR), null);
883,762
public String toSignature(String name) {<NEW_LINE>StringBuilder buffer = new StringBuilder();<NEW_LINE>StringBuilder buffer1 = new StringBuilder();<NEW_LINE>String s = getConventionPointerNameString(name);<NEW_LINE>addFunctionPointerParens(buffer1, s);<NEW_LINE>buffer1.append('(');<NEW_LINE>for (int i = 0; i < paramete...
()).append(SPACE);
1,066,436
protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>monitor.beginTask("Find " + Hexa32.toString32(gxid), IProgressMonitor.UNKNOWN);<NEW_LINE>final LongKeyLinkedMap<Object> xlogMap = new LongKeyLinkedMap<Object>();<NEW_LINE>Iterator<Integer> itr = ServerManager.getInstance().getOpenServerList().iterator();<NEW_LI...
tcp = TcpProxy.getTcpProxy(serverId);
923,537
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>scrollPane = new javax.swing.JScrollPane();<NEW_LINE>list = new javax.swing.JList();<NEW_LINE>label = new javax.swing.JLabel();<NEW_LINE>list.setSelectionMode(javax.swing.ListSelec...
MAX_VALUE).addContainerGap()));
1,044,379
public static MutableRoaringBitmap horizontal_or(ImmutableRoaringBitmap... bitmaps) {<NEW_LINE>MutableRoaringBitmap answer = new MutableRoaringBitmap();<NEW_LINE>if (bitmaps.length == 0) {<NEW_LINE>return answer;<NEW_LINE>}<NEW_LINE>PriorityQueue<MappeableContainerPointer> pq = new PriorityQueue<>(bitmaps.length);<NEW_...
MappeableContainerPointer x1 = pq.poll();
1,745,875
public void generateMultiSupplierInvoice(ActionRequest request, ActionResponse response) {<NEW_LINE>try {<NEW_LINE>List<Map> stockMoveMap = (List<Map>) request.getContext().get("supplierStockMoveToInvoice");<NEW_LINE>List<Long> stockMoveIdList = new ArrayList<>();<NEW_LINE>List<StockMove> stockMoveList = new ArrayList<...
).orElse(null)));
1,145,501
public static void main(String[] args) throws IOException, InterruptedException {<NEW_LINE>Context context = context(1);<NEW_LINE>// Socket to send messages on<NEW_LINE>Socket <MASK><NEW_LINE>sender.bind(TCP_5557);<NEW_LINE>// Socket to send messages on<NEW_LINE>Socket sink = context.socket(PUSH);<NEW_LINE>// Why conne...
sender = context.socket(PUSH);
94,168
public static void drawPolygon(Polygon2D_F64 polygon, boolean loop, double scale, Color color0, Color colorOthers, Graphics2D g2) {<NEW_LINE>BoofSwingUtil.antialiasing(g2);<NEW_LINE>Path2D path = new Path2D.Double();<NEW_LINE>for (int i = 1; i <= polygon.size(); i++) {<NEW_LINE>Point2D_F64 p = polygon.get(i % polygon.s...
x, scale * p.y);
515,150
private void loadFromAttributes(@Nullable AttributeSet attrs, @AttrRes int defStyleAttr, @StyleRes int defStyleRes) {<NEW_LINE>TypedArray a = ThemeEnforcement.obtainStyledAttributes(context, attrs, R.styleable.Tooltip, defStyleAttr, defStyleRes);<NEW_LINE>arrowSize = context.getResources().getDimensionPixelSize(R.dimen...
class.getCanonicalName())));
510,622
private String genTransformSelectSql(TransformNode transformNode, NodeRelation relation, Map<String, Node> nodeMap) {<NEW_LINE>String selectSql;<NEW_LINE>if (relation instanceof JoinRelation) {<NEW_LINE>// parse join relation and generate the transform sql<NEW_LINE>JoinRelation joinRelation = (JoinRelation) relation;<N...
transformNode.getFilterStrategy(), nodeMap);
301,210
protected void initUi() {<NEW_LINE>buttonShowView = new JToggleButton(DisplayUtils.getScaledIcon(new ImageIcon(RequestSplitComponent.class.getResource("/resource/icon/view_split.png"))));<NEW_LINE>buttonShowView.setToolTipText(BUTTON_TOOL_TIP);<NEW_LINE>panelOptions = new JPanel();<NEW_LINE>panelOptions.add(headerViews...
add(bodyViews.getSelectableViewsComponent());
1,023,114
protected boolean acceptType(IType type, int acceptFlags, boolean isSourceType) {<NEW_LINE>if (acceptFlags == 0 || acceptFlags == ACCEPT_ALL)<NEW_LINE>// no flags or all flags, always accepted<NEW_LINE>return true;<NEW_LINE>try {<NEW_LINE>int kind = isSourceType ? TypeDeclaration.kind(((SourceTypeElementInfo) ((SourceT...
(ACCEPT_CLASSES | ACCEPT_RECORDS)) != 0;
442,205
protected void onCreate(@Nullable final Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>mKickstarter = new ViewModelProvider(this).get(SignInKickstarter.class);<NEW_LINE>mKickstarter.init(getFlowParams());<NEW_LINE>mKickstarter.getOperation().observe(this, new ResourceObserver<IdpResp...
.forResult((Void) null);
831,679
public static void registerTiles(BiConsumer<BlockEntityType<?>, ResourceLocation> r) {<NEW_LINE>r.accept(ALTAR, prefix(LibBlockNames.ALTAR));<NEW_LINE>r.accept(SPREADER, prefix(LibBlockNames.SPREADER));<NEW_LINE>r.accept(POOL, prefix(LibBlockNames.POOL));<NEW_LINE>r.accept(RUNE_ALTAR, prefix(LibBlockNames.RUNE_ALTAR));...
, prefix(LibBlockNames.BIFROST));
1,453,673
public static ListDeployConfigResponse unmarshall(ListDeployConfigResponse listDeployConfigResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDeployConfigResponse.setRequestId(_ctx.stringValue("ListDeployConfigResponse.RequestId"));<NEW_LINE>listDeployConfigResponse.setCode(_ctx.integerValue("ListDeployConfigResponse.C...
(_ctx.integerValue("ListDeployConfigResponse.PageNumber"));
673,517
final ListLoggingConfigurationsResult executeListLoggingConfigurations(ListLoggingConfigurationsRequest listLoggingConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listLoggingConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
false), new ListLoggingConfigurationsResultJsonUnmarshaller());
829,148
public static ApiDefinitionExecResult addResult(BatchRunDefinitionRequest request, TestPlanApiCase key, String status) {<NEW_LINE>ApiDefinitionExecResult apiResult = new ApiDefinitionExecResult();<NEW_LINE>apiResult.setId(UUID.randomUUID().toString());<NEW_LINE>apiResult.setCreateTime(System.currentTimeMillis());<NEW_L...
ApiRunMode.API_PLAN.name());
1,087,948
public boolean process(Person person, long time) {<NEW_LINE>// Randomly pick number of series and instances if bounds were provided<NEW_LINE>duplicateSeries(person, time);<NEW_LINE>duplicateInstances(person, time);<NEW_LINE>// The modality code of the first series is a good approximation<NEW_LINE>// of the type of Imag...
record.procedure(time, primaryProcedureCode);
286,666
private void processImports(ConfigurationClass configClass, SourceClass currentSourceClass, Collection<SourceClass> importCandidates, Predicate<String> exclusionFilter, boolean checkForCircularImports) {<NEW_LINE>if (importCandidates.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (checkForCircularImports && isCha...
selectImports(currentSourceClass.getMetadata());
97,526
public static String rightPad(final String str, final int size, String padStr) {<NEW_LINE>if (str == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (StringUtils.isEmpty(padStr)) {<NEW_LINE>padStr = " ";<NEW_LINE>}<NEW_LINE>int padLen = padStr.length();<NEW_LINE>int strLen = str.length();<NEW_LINE>int pads = size ...
] padChars = padStr.toCharArray();
580,471
void validateAffectedFolds(Fold fold, DocumentEvent evt, Collection damaged) {<NEW_LINE><MASK><NEW_LINE>int endOffset = startOffset + evt.getLength();<NEW_LINE>int childIndex = FoldUtilitiesImpl.findFoldStartIndex(fold, startOffset, true);<NEW_LINE>if (childIndex == -1) {<NEW_LINE>if (fold.getFoldCount() == 0) {<NEW_LI...
int startOffset = evt.getOffset();
363,920
protected void registerCustomCredential(final Props props, final Credentials hadoopCred, final String userToProxy, final org.apache.log4j.Logger jobLogger, final String customCredentialProviderName) {<NEW_LINE>final CredentialProvider customCredential = getCustomCredentialProvider(props, hadoopCred, jobLogger, customCr...
logger.error("Unknown error occurred while setting keyStore", e);
1,744,539
public void finish() throws IOException {<NEW_LINE>for (MKVMuxerTrack track : tracks) {<NEW_LINE>track.finish();<NEW_LINE>}<NEW_LINE>beforeCues = sink.position();<NEW_LINE>mkvCues <MASK><NEW_LINE>muxCues();<NEW_LINE>mkvCues.mux(sink);<NEW_LINE>eof = sink.position();<NEW_LINE>sink.setPosition(afterebmlHeader);<NEW_LINE>...
= (EbmlMaster) createByType(Cues);
1,790,814
public Object call(Object who, Method method, Object... args) throws Throwable {<NEW_LINE>IInterface appThread = (IInterface) args[0];<NEW_LINE>Intent service = (Intent) args[1];<NEW_LINE>String resolvedType = (String) args[2];<NEW_LINE>if (service.getComponent() != null && getHostPkg().equals(service.getComponent().ge...
service = service.getParcelableExtra("_VA_|_intent_");
945,552
protected void parseLightArray(BitSet mask, BitSet emptyMask, DataTypeProvider provider, BiConsumer<ChunkSection, byte[]> c, Function<ChunkSection, byte[]> get) {<NEW_LINE>for (int sectionY = getMinSection(); sectionY <= (getMaxSection() + 1) && (!mask.isEmpty() || !emptyMask.isEmpty()); sectionY++) {<NEW_LINE>ChunkSec...
s, new byte[2048]);
777,081
public void annotate(final ReferenceContext ref, final VariantContext vc, final Genotype g, final GenotypeBuilder gb, final AlleleLikelihoods<GATKRead, Allele> likelihoods) {<NEW_LINE>Utils.nonNull(vc);<NEW_LINE>Utils.nonNull(g);<NEW_LINE>Utils.nonNull(gb);<NEW_LINE>if (likelihoods == null || !g.isCalled()) {<NEW_LINE>...
subsettedLikelihoods = likelihoods.marginalize(alleleSubset);
719,764
private Node buildFilteredTableViewControl() {<NEW_LINE>final GridPane grid = new GridPane();<NEW_LINE>grid.setHgap(5);<NEW_LINE>grid.setVgap(10);<NEW_LINE>grid.setPadding(new Insets(5, 5, 5, 5));<NEW_LINE>int row = 0;<NEW_LINE>final Label label = new Label("Select the columns filter editor from the options below");<NE...
(popupFilter, 0, row++);
1,691,300
public void actionPerformed(ActionEvent e) {<NEW_LINE>if (mSelectedRecording == null) {<NEW_LINE>JOptionPane.showMessageDialog(AddRecordingTunerDialog.this, "Please select a recording file", "Select a Recording File", JOptionPane.ERROR_MESSAGE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long frequency = getFrequency();<NEW_...
RecordingTuner tuner = new RecordingTuner(mUserPreferences);
1,762,179
public Object invoke(@Nullable Object proxy, @Nullable Method method, Object @Nullable [] args) throws Throwable {<NEW_LINE>if (method != null) {<NEW_LINE>Invocation invocation = new Invocation(this, method, args);<NEW_LINE>Invocation activeInvocation = getManager().getActiveInvocation();<NEW_LINE>if (activeInvocation ...
getScheduler().submit(invocation);
796,271
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String privateLinkHubName) {<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>i...
error(new IllegalArgumentException("Parameter privateLinkHubName is required and cannot be null."));
73,439
public void run(RegressionEnvironment env) {<NEW_LINE>String selectStmt = "select * from SupportBean#length(5)";<NEW_LINE>String statement1 = "@name('s0') " + selectStmt + " output every 1 events";<NEW_LINE>String statement2 = "@name('s1') " + selectStmt + " output every 2 events";<NEW_LINE>String statement3 = "@name('...
assertNull(listener.getLastOldData());
403,302
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>if (Boolean.parseBoolean(request.getParameter("throw"))) {<NEW_LINE>throw new ServletException("Test Exception");<NEW_LINE>}<NEW_LINE>response.setContentType("text/html");<NEW_LINE>response.set...
PrintWriter out = response.getWriter();
173,659
protected Document parse(InputStream is) throws Exception {<NEW_LINE>DocumentBuilder builder = getNsAwareDocumentBuilderFactory().newDocumentBuilder();<NEW_LINE>Document doc;<NEW_LINE>try {<NEW_LINE>doc = builder.parse(is);<NEW_LINE>} catch (Exception e) {<NEW_LINE>if (configurationFile != null) {<NEW_LINE>String msg =...
.getMessage() + LINE_SEPARATOR + "Hazelcast startup interrupted.";
281,052
private void initLocator() {<NEW_LINE>log.fine("");<NEW_LINE>// Load Warehouse<NEW_LINE>String sql = "SELECT M_Warehouse_ID, Name FROM M_Warehouse";<NEW_LINE>if (m_only_Warehouse_ID != 0)<NEW_LINE>sql += " WHERE M_Warehouse_ID=" + m_only_Warehouse_ID;<NEW_LINE>String SQL = MRole.getDefault().addAccessSQL(sql, "M_Wareho...
addEventListener(Events.ON_SELECT, this);
728,939
private void configureShiroForRBAC() {<NEW_LINE>final RbacConfig config = new ConfigurationObjectFactory(configSource).build(RbacConfig.class);<NEW_LINE>bind(RbacConfig.class).toInstance(config);<NEW_LINE>bindRealm().to(KillBillJdbcRealm.class).asEagerSingleton();<NEW_LINE>if (KillBillShiroModule.isLDAPEnabled()) {<NEW...
.get(CorsBasicHttpAuthenticationOptionalFilter.class));
1,071,433
public void renderTo(Iterable<BlockDoc> blocks, Element parent) {<NEW_LINE>Document document = parent.getOwnerDocument();<NEW_LINE>// <thead><NEW_LINE>// <tr><NEW_LINE>// <td>Block</td><NEW_LINE>// <td>Description</td><NEW_LINE>// </tr><NEW_LINE>// </thead><NEW_LINE>Element thead = document.createElement("thead");<NEW_...
td = document.createElement("td");
1,540,993
public static CompositeValuesSourceBuilder<?> fromXContent(XContentParser parser) throws IOException {<NEW_LINE>XContentParser.Token token = parser.currentToken();<NEW_LINE>ensureExpectedToken(XContentParser.Token.START_OBJECT, token, parser);<NEW_LINE>token = parser.nextToken();<NEW_LINE>ensureExpectedToken(XContentPa...
Token.START_OBJECT, token, parser);
544,585
private static MysqlDateTime handleYearInterval(MysqlDateTime src, MySQLInterval interval) {<NEW_LINE>MysqlDateTime ret = new MysqlDateTime();<NEW_LINE>ret.setSqlType(src.getSqlType());<NEW_LINE>int sign = interval.isNeg() ? -1 : 1;<NEW_LINE>long year = src.getYear() + sign * interval.getYear();<NEW_LINE><MASK><NEW_LIN...
long month = src.getMonth();
146,455
public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/autoscaling/v2beta2/namespaces/{na...
final String[] localVarContentTypes = {};
673,189
// Dump the content of this bean returning it as a String<NEW_LINE>public void dump(StringBuffer str, String indent) {<NEW_LINE>String s;<NEW_LINE>Object o;<NEW_LINE>org.netbeans.modules.schema2beans.BaseBean n;<NEW_LINE>str.append(indent);<NEW_LINE>// NOI18N<NEW_LINE>str.append("PropertyOne");<NEW_LINE>// NOI18N<NEW_L...
str.append(indent + "\t");
1,365,343
private JoinReference buildJoin(Queryable source, String referenceName, Map<String, Argument> callingColumnArgs, Map<String, Argument> fixedArguments) {<NEW_LINE>Queryable root = source.getRoot();<NEW_LINE>Type<?> tableClass = dictionary.getEntityClass(root.getName(), root.getVersion());<NEW_LINE>JoinPath joinPath = ne...
getTable(lastElement.getType());
707,991
public // sub-level<NEW_LINE>void // sub-level<NEW_LINE>forSubResourceMethod(// sub-level<NEW_LINE>ClassCreator subClassCreator, // sub-level<NEW_LINE>MethodCreator subConstructor, // sub-level<NEW_LINE>MethodCreator subClinit, // sub-level<NEW_LINE>MethodCreator subMethodCreator, // sub-level<NEW_LINE>ClassInfo rootIn...
+ "$$" + methodIndex + "$$" + subMethodIndex;
567,575
public boolean remoteTriggeredCrawlJob() {<NEW_LINE>// work off crawl requests that had been placed by other peers to our crawl stack<NEW_LINE>// do nothing if either there are private processes to be done<NEW_LINE>// or there is no global crawl on the stack<NEW_LINE>final String queueCheck = <MASK><NEW_LINE>if (queueC...
loadIsPossible(NoticedURL.StackType.REMOTE);
1,526,118
private static void fixImportedAttributes(Map<String, String> ip, FileObject fo) {<NEW_LINE>if (!ip.containsKey(GlassfishModule.NB73_IMPORT_FIXED)) {<NEW_LINE>String password = ip.get(GlassfishModule.PASSWORD_ATTR);<NEW_LINE>if (password != null) {<NEW_LINE>boolean local = ip.get(GlassfishModule.DOMAINS_FOLDER_ATTR) !=...
ip.remove(GlassfishModule.PASSWORD_ATTR);
1,321,438
protected void registerForQuartz(Consumer<FinishedRecipe> consumer, String variant, ItemLike baseItem) {<NEW_LINE>Block base = Registry.BLOCK.getOptional(prefix<MASK><NEW_LINE>Block slab = Registry.BLOCK.getOptional(prefix(variant + LibBlockNames.SLAB_SUFFIX)).get();<NEW_LINE>Block stairs = Registry.BLOCK.getOptional(p...
(variant)).get();
1,353,280
private static String[] sanitizeHttp(final String type, final String... entries) {<NEW_LINE>// Only javadoc may contain http(s)<NEW_LINE>if (!"javadoc".equals(type)) {<NEW_LINE>// NOI18N<NEW_LINE>return entries;<NEW_LINE>}<NEW_LINE>final Collection<String> result = new ArrayList<String>();<NEW_LINE>for (int i = 0; i < ...
].replace('\\', '/');
1,691,427
private void genCode() {<NEW_LINE>String modelModuleName = "/module-" + moduleName + "-model";<NEW_LINE>String serviceApiModuleName = "/module-" + moduleName + "-service";<NEW_LINE>String serviceProviderModuleName = "/module-" + moduleName + "-service-provider";<NEW_LINE>JbootApplication.setBootArg("jboot.datasource.ur...
, modelDir).generate(tableMetas);
884,190
public static void main(String[] args) {<NEW_LINE>final Scanner scanner = new Scanner(System.in);<NEW_LINE>System.out.println("\n=========================================================" + "\n " + "\n Welcome to the Spring Integration JMS Sample! " + "\...
ClassPathXmlApplicationContext(configFilesGatewayDemo, Main.class);
1,241,215
public static SlaAlertAction createFromJson(final HashMap<String, Object> obj) throws Exception {<NEW_LINE>final Map<String, Object> jsonObj = (HashMap<String, Object>) obj;<NEW_LINE>if (!jsonObj.get("type").equals(type)) {<NEW_LINE>throw new Exception("Cannot create action of " + type + " from " + jsonObj.get("type"))...
) jsonObj.get("execId"));
1,147,472
protected void generateStatementsImpl() throws CustomChangeException {<NEW_LINE>extractClientsData("SELECT C.ID, C.CLIENT_ID FROM " + getTableName("CLIENT") + " C " + "LEFT JOIN " + getTableName("CLIENT_ATTRIBUTES") + " CA " + "ON C.ID = CA.CLIENT_ID AND CA.NAME='" + SAML_ARTIFACT_BINDING_IDENTIFIER + "' " + "WHERE C.P...
String clientId = clientPair.getValue();
939,121
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {<NEW_LINE>try {<NEW_LINE>debug("Round #%s", round++);<NEW_LINE>if (roundEnv.processingOver()) {<NEW_LINE>build(processingEnv.getFiler());<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>for (TypeElement annotation : annotations) {<NEW...
.toCollection(LinkedHashSet::new));
528,401
private void parseAnonymousIpConfig(final JsonNode jo) throws JsonUtilsException {<NEW_LINE>final String anonymousPollingUrl = "anonymousip.polling.url";<NEW_LINE>final String anonymousPollingInterval = "anonymousip.polling.interval";<NEW_LINE>final String anonymousPolicyConfiguration = "anonymousip.policy.configuratio...
).setDataBaseURL(databaseUrl, interval);
44,848
private String initializePath(BeanWrapper wrapper, RelaxedDataBinder.BeanPath path, int index) {<NEW_LINE>String prefix = path.prefix(index);<NEW_LINE>String key = path.name(index);<NEW_LINE>if (path.isProperty(index)) {<NEW_LINE>key = getActualPropertyName(wrapper, prefix, key);<NEW_LINE>path.rename(index, key);<NEW_L...
<String, Object>());
830,721
public static void main(String[] args) throws IOException {<NEW_LINE>EventGridPublisherAsyncClient<CloudEvent> publisherClient = // make sure it accepts CloudEvent<NEW_LINE>new EventGridPublisherClientBuilder().// make sure it accepts CloudEvent<NEW_LINE>endpoint(System.getenv("AZURE_EVENTGRID_CLOUDEVENT_ENDPOINT")).cr...
events = new ArrayList<>();
230,696
public ListUserPoolsResult listUserPools(ListUserPoolsRequest listUserPoolsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUserPoolsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,174,712
public Matching<D> matchesContracts(Binding<?, ?> other) {<NEW_LINE>boolean atLeastOneMatch = false;<NEW_LINE>boolean allMatch = true;<NEW_LINE>final Set<MASK><NEW_LINE>final Set<Type> secondContracts = other.getContracts();<NEW_LINE>final Set<Type> biggerContracts = firstContracts.size() < secondContracts.size() ? sec...
<Type> firstContracts = getContracts();
1,238,622
public CreditsLoader load() {<NEW_LINE>String configProperty = AppContext.getProperty("cuba.creditsConfig");<NEW_LINE>if (StringUtils.isBlank(configProperty)) {<NEW_LINE>log.info("Property cuba.creditsConfig is empty");<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>StringTokenizer tokenizer = new StringTokenizer(configProp...
AppBeans.get(Resources.NAME);
367,384
public static ApiVersionBean hideSensitiveDataFromApiVersionBean(ApiVersionBean apiVersionBean) {<NEW_LINE>ApiBean api = new ApiBean();<NEW_LINE>api.setId(apiVersionBean.getApi().getId());<NEW_LINE>api.setName(apiVersionBean.getApi().getName());<NEW_LINE>api.setDescription(apiVersionBean.getApi().getDescription());<NEW...
getOrganization().getDescription());
969,862
private Portal create(Business business, Wi wi) throws Exception {<NEW_LINE>List<JpaObject> persistObjects = new ArrayList<>();<NEW_LINE>Portal portal = business.entityManagerContainer().find(wi.getId(), Portal.class);<NEW_LINE>if (null != portal) {<NEW_LINE>throw new ExceptionPortalExistForCreate(wi.getId());<NEW_LINE...
).beginTransaction(Widget.class);
1,323,017
public void prepare(AbstractRequest request, Context context) throws BizException {<NEW_LINE>super.prepare(request, context);<NEW_LINE>SortedMap sParaTemp = context.getsParaTemp();<NEW_LINE>AliPaymentContext aliPaymentContext = (AliPaymentContext) context;<NEW_LINE>sParaTemp.put(<MASK><NEW_LINE>sParaTemp.put("service",...
"partner", aliPaymentConfig.getAli_partner());
1,684,830
private void process(JTextComponent component, boolean overwrite) {<NEW_LINE>if (onSelectCallback != null) {<NEW_LINE>CompletionUtilities.OnSelectContext ctx = CompletionSupportSpiPackageAccessor.get().createOnSelectContext(component, overwrite);<NEW_LINE>onSelectCallback.accept(ctx);<NEW_LINE>} else {<NEW_LINE>final B...
getCaretPosition(), insertText, null);
344,052
private static void PaintSegment(Point lastPoint, Point point, RenderState state) {<NEW_LINE>double distance = lastPoint.getDistanceTo(point);<NEW_LINE>Point vector = point.substract(lastPoint);<NEW_LINE>Point unitVector = new Point(1.0f, 1.0f, 0.0f);<NEW_LINE>float vectorAngle = Math.abs(state.angle) > 0.0f ? state.an...
.multiplyByScalar(state.remainder));
1,467,683
public Map<Long, Optional<String>> translatePidsToForcedIds(Set<Long> thePids) {<NEW_LINE>assert myDontCheckActiveTransactionForUnitTest || TransactionSynchronizationManager.isSynchronizationActive();<NEW_LINE>Map<Long, Optional<String>> retVal = new HashMap<>(myMemoryCacheService.getAllPresent(MemoryCacheService.Cache...
collect(Collectors.toList());
956,262
private void createContent() {<NEW_LINE>headerLabelWidget = new ImageLabelWidget(getScene(), getIcon(), getTitle());<NEW_LINE>headerLabelWidget.setLabelFont(getScene().getFont().deriveFont(Font.BOLD));<NEW_LINE>getHeaderWidget().addChild(new Widget(getScene()), 5);<NEW_LINE>getHeaderWidget().addChild(headerLabelWidget)...
().getResultType()));
710,580
public static void restoreDisksWithIaasVMRestoreWithRehydrationRequest(com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) {<NEW_LINE>manager.restores().trigger("testVault", "netsdktestrg", "Azure", "IaasVMContainer;iaasvmcontainerv2;netsdktestrg;netvmtestv2vm1", "VM;iaasvmcontainerv...
))), Context.NONE);
1,126,555
// Validate parts and throw an IllegalArgumentException if a part is not valid<NEW_LINE>private void doValidate() {<NEW_LINE>List<String> errors = new ArrayList<>();<NEW_LINE>// Strip off user from repository name<NEW_LINE>String image = user != null ? repository.substring(user.length() + 1) : repository;<NEW_LINE>Obje...
tag, "digest", DIGEST_REGEXP, digest };
1,153,328
List<ZeebePartition> constructPartitions(final RaftPartitionGroup partitionGroup, final List<PartitionListener> partitionListeners, final TopologyManager topologyManager, final FeatureFlags featureFlags) {<NEW_LINE>final var partitions = new ArrayList<ZeebePartition>();<NEW_LINE>final var communicationService = cluster...
exporterRepository, new PartitionProcessingState(owningPartition));
694,035
final PurchaseOfferingResult executePurchaseOffering(PurchaseOfferingRequest purchaseOfferingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(purchaseOfferingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
(super.beforeMarshalling(purchaseOfferingRequest));
1,748,185
final DeleteMailboxPermissionsResult executeDeleteMailboxPermissions(DeleteMailboxPermissionsRequest deleteMailboxPermissionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteMailboxPermissionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,000,429
private Widget createAdvancedForm() {<NEW_LINE>// Create a table to layout the form options<NEW_LINE>FlexTable layout = new FlexTable();<NEW_LINE>layout.setCellSpacing(6);<NEW_LINE>layout.setWidth("300px");<NEW_LINE>FlexCellFormatter cellFormatter = layout.getFlexCellFormatter();<NEW_LINE>// Add a title to the form<NEW...
DisclosurePanel(constants.cwDisclosurePanelFormAdvancedCriteria());
808,352
private Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String accountName, VideoAnalyzerUpdate parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>retu...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,743,113
private OutboundSecurityResponse propagate(JwtOutboundTarget ot, Subject subject) {<NEW_LINE>Map<String, List<String>> headers = new HashMap<>();<NEW_LINE>Jwk jwk = signKeys.forKeyId(ot.jwkKid).orElseThrow(() -> new JwtException("Signing JWK with kid: " + ot.jwkKid + " is not defined."));<NEW_LINE><MASK><NEW_LINE>Jwt.B...
Principal principal = subject.principal();
1,410,957
public static <T> SimpleExpression<T> asSimple(Expression<T> expr) {<NEW_LINE>Expression<T> underlyingMixin = ExpressionUtils.extract(expr);<NEW_LINE>if (underlyingMixin instanceof PathImpl) {<NEW_LINE>return new SimplePath<T>((PathImpl<T>) underlyingMixin);<NEW_LINE>} else if (underlyingMixin instanceof OperationImpl)...
(TemplateExpressionImpl<T>) underlyingMixin);
1,583,311
protected void fillAAnswer() {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled())<NEW_LINE>c_logger.traceEntry(this, "StateMachine: fillAAnswer: entry: id=" + hashCode());<NEW_LINE>for (Enumeration e = _AResponses.elements(); e.hasMoreElements(); ) {<NEW_LINE>Vector vector2 = (Vector) e.nextElement();<NEW_LINE>for (Enume...
(AAAARecord) e1.nextElement();
240,406
boolean appendNewLeadershipTermEvent(final long leadershipTermId, final long timestamp, final long termBaseLogPosition, final int leaderMemberId, final int logSessionId, final TimeUnit timeUnit, final int appVersion) {<NEW_LINE>final int length = MessageHeaderEncoder.ENCODED_LENGTH + NewLeadershipTermEventEncoder.BLOCK...
alignedFragmentLength = align(fragmentLength, FRAME_ALIGNMENT);
69,790
// actionPerformed<NEW_LINE>private void send() throws Exception {<NEW_LINE>final IMsgBL msgBL = Services.get(IMsgBL.class);<NEW_LINE>final Properties ctx = Env.getCtx();<NEW_LINE>setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));<NEW_LINE>confirmPanel.<MASK><NEW_LINE>final StringTokenizer st = new StringTokeni...
getOKButton().setEnabled(false);
1,757,831
public void initialize(WizardDescriptor wiz) {<NEW_LINE>this.wiz = wiz;<NEW_LINE>index = 0;<NEW_LINE>panels = createPanels(wiz);<NEW_LINE>loadSettings(wiz);<NEW_LINE>// Make sure list of steps is accurate.<NEW_LINE>String[] beforeSteps = null;<NEW_LINE>// NOI18N<NEW_LINE>Object prop = wiz.getProperty("WizardPanel_conte...
steps = createSteps(beforeSteps, panels);
1,717,651
private void processMultiSelectControl(ControlFontPair pair, Control ctrl, PDAcroForm acro, int i, Box root) throws IOException {<NEW_LINE>PDListBox field = new PDListBox(acro);<NEW_LINE>setPartialNameToField(ctrl, field);<NEW_LINE>field.setMultiSelect(true);<NEW_LINE>List<String> labels = new ArrayList<>();<NEW_LINE>L...
selected = new ArrayList<>();
429,563
public void importMarkdownZip(final RequestContext context) {<NEW_LINE>context.renderJSON(StatusCodes.ERR);<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final FileUpload file = request.getFileUpload("file");<NEW_LINE>if (null == file) {<NEW_LINE>context.renderMsg(langPropsService.get("allowZipOnlyLab...
(new Date(), "yyyyMMddHHmmss");
1,751,674
public synchronized void draw(BoundingBox boundingBox, byte zoomLevel, Canvas canvas, Point topLeftPoint) {<NEW_LINE>if (this.latLong == null || (this.paintStroke == null && this.paintFill == null)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>double latitude = this.latLong.latitude;<NEW_LINE>double longitude = this.latLong....
this.paintFill.setBitmapShaderShift(topLeftPoint);
1,301,154
public // }<NEW_LINE>JsonNode toJson(Object object) throws IOException {<NEW_LINE>if (object instanceof SBase) {<NEW_LINE>SBase base = (SBase) object;<NEW_LINE>ObjectNode jsonObject = OBJECT_MAPPER.createObjectNode();<NEW_LINE>jsonObject.put("__type", base.getSClass().getSimpleName());<NEW_LINE>for (SField field : base...
getClass().getName());
1,103,991
public static void sendRequestsAsync(@Nullable final OsmandApplication ctx, @NonNull final List<Request> requests, @Nullable final OnSendRequestsListener listener, final Executor executor) {<NEW_LINE>new AsyncTask<Void, Object, List<RequestResponse>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected List<RequestRespo...
0], response[1]);
1,761,454
final CreateDeploymentResult executeCreateDeployment(CreateDeploymentRequest createDeploymentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDeploymentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<C...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
283,366
static Context of(Map<?, ?> map) {<NEW_LINE>int size = Objects.requireNonNull(map, "map").size();<NEW_LINE>if (size == 0)<NEW_LINE>return Context.empty();<NEW_LINE>if (size <= 5) {<NEW_LINE>Map.Entry[] entries = map.entrySet().toArray(new Map.Entry[size]);<NEW_LINE>switch(size) {<NEW_LINE>case 1:<NEW_LINE>return new Co...
throw new NullPointerException("null value for key " + key);
1,219,007
public Integer commit() {<NEW_LINE>int count <MASK><NEW_LINE>if (count <= 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>for (Entry<String, Changes> table : this.batch.entrySet()) {<NEW_LINE>if (table.getValue().isEmpty() || table.getKey().endsWith("i")) {<NEW_LINE>// Skip empty value table or index table<N...
= this.batch.size();
1,332,839
protected void activate(Map<String, Object> config) {<NEW_LINE>List<Map<String, Object>> loginConfigs = NestingUtils.<MASK><NEW_LINE>if (loginConfigs != null && !loginConfigs.isEmpty())<NEW_LINE>this.loginConfig = new LoginConfigImpl(loginConfigs.get(0));<NEW_LINE>List<Map<String, Object>> securityConstraintConfigs = N...
nest(WebserviceSecurity.LOGIN_CONFIG_ELEMENT_NAME, config);
842,480
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<TagResourceRequest> reques...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,481,735
public StructuredGraph buildGraph(DebugContext debug, ResolvedJavaMethod method, HostedProviders providers, Purpose purpose) {<NEW_LINE>HostedGraphKit kit = new HostedGraphKit(debug, providers, method);<NEW_LINE>StructuredGraph graph = kit.getGraph();<NEW_LINE>ResolvedJavaType returnType = (ResolvedJavaType) method.get...
EnumInfo) nativeLibraries.findElementInfo(declaringType);
1,427,793
private void processMap(final Contentlet contentlet, final Map<String, Object> map) throws DotDataException, DotSecurityException {<NEW_LINE>final String stInode = <MASK><NEW_LINE>if (UtilMethods.isSet(stInode)) {<NEW_LINE>final ContentType type = APILocator.getContentTypeAPI(APILocator.systemUser()).find(stInode);<NEW...
this.getStInode(map, contentlet);
647,391
void recordRequestParameters() throws Exception {<NEW_LINE>List<String> missingParams = new ArrayList<String>();<NEW_LINE><MASK><NEW_LINE>if (formTarget == null) {<NEW_LINE>missingParams.add(PARAM_ORIGINAL_REQ_URL);<NEW_LINE>}<NEW_LINE>requestMethod = request.getParameter(PARAM_REQUEST_METHOD);<NEW_LINE>if (requestMeth...
formTarget = request.getParameter(PARAM_ORIGINAL_REQ_URL);
1,458,246
public void visit(Node<E> expr) {<NEW_LINE>assert expr != null;<NEW_LINE>if (expr instanceof ColumnReferenceNode<?, ?>) {<NEW_LINE>sb.append(((ColumnReferenceNode<?, ?>) expr).getColumn().getFullQualifiedName());<NEW_LINE>} else if (expr instanceof NewUnaryPostfixOperatorNode<?>) {<NEW_LINE>visit((NewUnaryPostfixOperat...
(NewAliasNode<E>) expr);
619,337
public TadPack tadShapeInfoAndOffsets(INDArray array, int[] dimension) {<NEW_LINE>if (nativeOps.lastErrorCode() != 0)<NEW_LINE>throw new <MASK><NEW_LINE>OpaqueTadPack pack = nativeOps.tadOnlyShapeInfo((LongPointer) array.shapeInfoDataBuffer().addressPointer(), new IntPointer(dimension), dimension.length);<NEW_LINE>if (...
RuntimeException(nativeOps.lastErrorMessage());
1,148,950
private void addAdd(SourceBuilder code) {<NEW_LINE>code.addLine("").addLine("/**").addLine(" * Adds {@code element} to the set to be returned from %s.", datatype.getType().javadocNoArgMethodLink(property.getGetterName())).addLine(" * If the set already contains {@code element}, then {@code %s}", addMethod(property)).ad...
getBuilder().getSimpleName());
1,615,042
public static TimeValue parseTimeValue(String sValue, TimeValue defaultValue, String settingName) {<NEW_LINE><MASK><NEW_LINE>if (sValue == null) {<NEW_LINE>return defaultValue;<NEW_LINE>}<NEW_LINE>final String normalized = sValue.toLowerCase(Locale.ROOT).trim();<NEW_LINE>if (normalized.endsWith("nanos")) {<NEW_LINE>ret...
settingName = Objects.requireNonNull(settingName);
1,827,839
public SortedMap<Integer, Map<String, String>> read(BufferedReader bRdr) throws IOException {<NEW_LINE>SortedMap<Integer, Map<String, String>> map = new TreeMap<>();<NEW_LINE>try {<NEW_LINE>boolean found = false;<NEW_LINE>String line;<NEW_LINE>while ((line = bRdr.readLine()) != null) {<NEW_LINE>line = line.trim();<NEW_...
"title", sb.toString());
831,473
private static Bitmap blur(Bitmap bitmap, Context context, float blurRadius) {<NEW_LINE>Point previewSize = scaleKeepingAspectRatio(new Point(bitmap.getWidth(), bitmap.getHeight()), PREVIEW_DIMENSION_LIMIT);<NEW_LINE>Point blurSize = scaleKeepingAspectRatio(new Point(previewSize.x / 2, previewSize.y / 2), MAX_BLUR_DIME...
blurSize.x, blurSize.y);