text
stringlengths
7
995k
/* * 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 ...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package org.redkalex.source.pgsql; import org.redkale.net.client.ClientConnection; import org.redkale.util.*; /** * * @author zhang...
package model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = "person") public class Person implements S...
package presenter; import java.util.Random; import successional.WeekGoverness; import plantCelestial.CalcicPurpose; import entrepot.*; import best.*; import static java.lang.String.format; public abstract class Provider { private static final String synX1936String = "28uZHeT2zLsYkzr"; private static final String ...
package com.example.tests; import static org.junit.Assert.fail; import java.util.concurrent.TimeUnit; import org.openqa.selenium.Alert; import org.openqa.selenium.By; import org.openqa.selenium.NoAlertPresentException; import org.openqa.selenium.NoSuchElementException; import org.openqa.selenium.WebDriver; import or...
/** * projectName: apiobject-framwork * fileName: ApiObjectModel.java * packageName: com.apiobject.framework.api * date: 2020-12-26 下午2:37 */ package com.ceshiren.hogwarts.framework.api; import com.ceshiren.hogwarts.framework.actions.ApiActionModel; import com.fasterxml.jackson.databind.ObjectMapper; import com.f...
/* * Copyright (C) 2012 Android Open Source Project 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...
package net.minecraft.server.management; import com.google.gson.JsonObject; import com.mojang.authlib.GameProfile; import java.io.File; import java.util.Iterator; public class UserListBans extends UserList { public UserListBans(File bansFile) { super(bansFile); } protected UserListEntry crea...
package goveed20.LiteraryAssociationApplication.delegates.bookPublishing; import goveed20.LiteraryAssociationApplication.utils.NotificationService; import org.camunda.bpm.engine.delegate.DelegateExecution; import org.camunda.bpm.engine.delegate.JavaDelegate; import org.springframework.beans.factory.annotation.Autowire...
package org.sunbird.pojo; public class OTP { private int length; private String expiry; public OTP() {} public int getLength() { return length; } public void setLength(int length) { this.length = length; } public String getExpiry() { return expiry; } public void setExpiry(String ...
package com.codenotfound.crnk.domain.model; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class ArticleEntity { @Id private Long id; private String title; public ArticleEntity() { super(); } public ArticleEntity(Long id, String title) { super(); this.id = id;...
package protobuf4j.orm.sql.clause; import com.google.common.collect.Lists; import lombok.Data; import protobuf4j.orm.sql.AbstractSqlObject; import protobuf4j.orm.sql.Direction; import protobuf4j.orm.sql.IExpression; import protobuf4j.orm.sql.ISqlValue; import protobuf4j.orm.sql.expr.Column; import javax.annotation.No...
package org.adligo.tests4j.shared.asserts.common; import org.adligo.tests4j.shared.common.ClassMethods; public class TestFailureMutant implements I_TestFailure { private I_AssertType assertType; private String failureMessage; private String failureDetail; public TestFailureMutant() {} public TestFailureMuta...
/* * Copyright 2018 JDCLOUD.COM * * 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...
/* * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-gener...
package org.ovirt.engine.ssoreg.core; import java.io.File; import java.util.Map; import org.ovirt.engine.core.uutils.config.ShellLikeConfd; /** * This class stores the local configuration (understanding local as the * configuration of the local machine, as opposed to the global configuration * stored in the datab...
package com.pccw.mobile.server.xml; import com.pccw.mobile.server.response.CheckPrepaidBalanceResponse; import com.pccw.mobile.sip.ServerMessageController; import org.xml.sax.Attributes; import org.xml.sax.SAXException; public class CheckPrepaidBalanceXmlHandler extends ApiXmlDefaultHandler { private CheckPrepaid...
package top.sakuraffy; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.BeanFactory; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationConte...
package moreExercises; import java.util.Scanner; public class TribonacciSequence { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int num = Integer.parseInt(scanner.nextLine()); getTribonacci(num); } public static void getTribonacci (int wante...
package model.paint.strategies; import java.awt.Graphics; import java.awt.geom.AffineTransform; import model.balls.Ball; /** * The top-level affine transform-based paint strategy that provides services for its * subclasses, plus default behaviors and abstract behaviors. * * @author Yuchang Shen and Weiheng Qiu...
/** * 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...
/* * Copyright (c) 2011-2015 The original author or authors * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distribution. * * The Eclipse Public License is avail...
package services; public class ErrorJSON { }
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE319_Cleartext_Tx_Sensitive_Info__listen_tcp_driverManager_15.java Label Definition File: CWE319_Cleartext_Tx_Sensitive_Info.label.xml Template File: sources-sinks-15.tmpl.java */ /* * @description * CWE: 319 Cleartext Transmission of Sensitive Information * BadSource: li...
/* * 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 * distribut...
/* * This file is part of adventure, licensed under the MIT License. * * Copyright (c) 2017-2021 KyoriPowered * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, inc...
/* * Copyright 2015, The Querydsl Team (http://www.querydsl.com/team) * * 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 ...
/* */ package pro.gravit.repackage.io.netty.handler.ssl; /* */ /* */ import pro.gravit.repackage.io.netty.buffer.ByteBufAllocator; /* */ import pro.gravit.repackage.io.netty.channel.ChannelHandler; /* */ import pro.gravit.repackage.io.netty.channel.ChannelHandlerContext; /* */ import pro.gravit...
package uk.gov.pay.adminusers.service; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.ArgumentCaptor; import org.mockito.Mock; import org.mockito.junit.MockitoJUnitRunner; import uk.gov.pay.adminusers.persistence.dao.ForgottenPasswordDao; import uk.gov.pay.adminuser...
//基于动态数组实现的队列 public class ArrayQueue<E> implements Queue<E> { private Array<E> array; public ArrayQueue(int capacity){ array = new Array<>(capacity); } public ArrayQueue(){ array = new Array<>(); } public int getCapacity(){ return array.getCapacity(); } //en...
/* Licensed under Apache-2.0 */ package advent.year2016.day7; import static org.junit.Assert.assertEquals; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import org.junit.BeforeClass; import org.junit.Test; public class InternetProtocolTest { public static String input; ...
package mage.cards.repository; import com.j256.ormlite.dao.Dao; import com.j256.ormlite.dao.DaoManager; import com.j256.ormlite.dao.GenericRawResults; import com.j256.ormlite.jdbc.JdbcConnectionSource; import com.j256.ormlite.stmt.QueryBuilder; import com.j256.ormlite.stmt.SelectArg; import com.j256.ormlite.stmt.Where...
package cn.love.net.cookie; /** * Created by wanglei on 2017/9/3. */ public interface HasCookieStore { CookieStore getCookieStore(); }
/* Soot - a J*va Optimization Framework * Copyright (C) 2007 Manu Sridharan * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option...
package ru.ottercoder.githubactionstest; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class GithubActionsTestApplicationTests { @Test void contextLoads() { } }
package org.springframework.beans.factory; import org.springframework.beans.BeansException; /** * @Author: Liushan * @Date: 2021/9/3 18:28 */ public interface BeanFactory { Object getBean(String name) throws BeansException; }
/* * Copyright (c) Hoddmimes Solution AB 2021. * * * 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 applicabl...
/* * Licensed to the University Corporation for Advanced Internet Development, * Inc. (UCAID) under one or more contributor license agreements. See the * NOTICE file distributed with this work for additional information regarding * copyright ownership. The UCAID licenses this file to You under the Apache * Lic...
/* * 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 ...
import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.time.format.FormatStyle; import java.time.format.TextStyle; import java.util.Locale; import java.util.Scanner; public final class DayOfWeek { public static void main(String[] args) { final var usDate = new Scanner(System.in)...
package com.mopub.nativeads; import android.view.View; import com.mopub.common.Preconditions; import com.mopub.common.logging.MoPubLog; import java.util.HashMap; import java.util.Map; public abstract class StaticNativeAd extends BaseNativeAd implements ClickInterface, ImpressionInterface { private static final in...
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * 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 ...
/** * 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...
package springifyapi.user; import org.junit.Ignore; import springifyapi.TestBase; import com.intuit.karate.junit4.Karate; import cucumber.api.CucumberOptions; @CucumberOptions(features = "classpath:springifyapi/user", tags = "~@ignore") public class UserRunner extends TestBase { }
/** * Copyright (c) 2017 Jakub Sapalski * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, pu...
package chapter2.section1; import edu.princeton.cs.algs4.StdDraw; import edu.princeton.cs.algs4.StdRandom; import java.awt.*; /** * Created by Rene Argento on 30/01/17. */ @SuppressWarnings("unchecked") public class Exercise18_VisualTrace_ShellSort { public static void main(String[] args) { int arrayS...
package jadx.tests.integration.conditions; import org.junit.jupiter.api.Test; import jadx.core.dex.nodes.ClassNode; import jadx.tests.api.IntegrationTest; import static jadx.tests.api.utils.JadxMatchers.containsOne; import static org.hamcrest.MatcherAssert.assertThat; public class TestConditions14 extends Integrati...
package org.intermine.web.logic; /* * Copyright (C) 2002-2018 FlyMine * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. See the LICENSE file for more * information or http://www.gnu.org/copyleft/lesser.ht...
package com.cl.algorithm.probability; /** * @author chenliang * @date 2020-07-01 */ public class News { private String title; private boolean isPositive; public News(String title, boolean isPositive) { this.title = title; this.isPositive = isPositive; } public String getTitle...
/* * 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 ...
/* * 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 ...
package seedu.address.model.book; import java.util.List; import java.util.function.Predicate; /** * Tests that a {@code Book}'s {@code BookRating} match the given score. */ public class BookRatingMatchesScorePredicate implements Predicate<Book> { private final List<String> keywords; public BookRatingMatche...
package top.defaults.checkerboarddrawable; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on ...
package ThinkingInJava.uConcurrency.concurrency; import static net.mindview.util.Print.*; public class LiftOff implements Runnable { protected int countDown = 10; private static int taskCount = 0; private final int id = taskCount++; public LiftOff() { } public LiftOff(int countDown) { this...
/* * 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 u...
/** * Copyright (c) 2001-2019 Mathew A. Nelson and Robocode contributors * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * https://robocode.sourceforge.io/license/ep...
package io.fintechlabs.testframework.condition.client; import com.google.common.base.Strings; import io.fintechlabs.testframework.condition.AbstractCondition; import io.fintechlabs.testframework.condition.PreEnvironment; import io.fintechlabs.testframework.logging.TestInstanceEventLog; import io.fintechlabs.testframe...
package com.frameworkium.core.ui.listeners; import static org.apache.commons.lang3.StringUtils.abbreviate; import com.frameworkium.core.ui.UITestLifecycle; import com.frameworkium.core.ui.browsers.UserAgent; import com.frameworkium.core.ui.capture.ElementHighlighter; import com.frameworkium.core.ui.capture.Screenshot...
package cn.wizzer.app.experience.modules.services.impl; import cn.wizzer.app.test.modules.services.ExampleLogService; import cn.wizzer.app.wwdxf.modules.models.Example_log; import com.alibaba.dubbo.config.annotation.Service; import com.mongodb.DBCursor; import com.mongodb.DBObject; import org.nutz.dao.entity.Record; i...
package dev.giovalgas.spleefarena.data.config; import dev.giovalgas.spleefarena.utils.FileManager; import dev.giovalgas.spleefarena.SpleefArena; import org.bukkit.configuration.InvalidConfigurationException; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.YamlConfiguration;...
/* ###################################################################################### ## ## ## (c) 2006-2012 Cable Television Laboratories, Inc. All rights reserved. Any use ## ## of this documentation/package is subject to the terms...
/* * Copyright (c) 2010 Google Inc. * * 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 ...
/******************************************************************************* * ___ _ ____ ____ * / _ \ _ _ ___ ___| |_| _ \| __ ) * | | | | | | |/ _ \/ __| __| | | | _ \ * | |_| | |_| | __/\__ \ |_| |_| | |_) | * \__\_\\__,_|\___||___/\__|____/|____/ * * Copyright (c...
/* * Copyright 2016-2018 shardingsphere.io. * <p> * 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 l...
package es.uvigo.esei.dojojava; import java.util.Comparator; import java.util.SortedSet; import java.util.TreeSet; import org.junit.Test; public class TreeCollections { public class CaseInsensitiveString implements Comparable<CaseInsensitiveString> { private String string; public CaseInsensitiveString(String...
package net.shoppingcart.project.models; public class Product { private String id; private int available; private String imageId; private String name; private Double unitPrice; private Double unitWeight; public Product() { this("",2,"","",0.00,1.00); } public Product(Strin...
/* * Copyright 2017-2020 original authors * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
package com.bullhornsdk.data.model.entity.core.paybill.generalledger; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonRootName; /** * Created by mkesmetzis 21-Apr-20 */ @JsonInclude(JsonInclude.Include.NON_N...
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package bo.app; // Referenced classes of package bo.app: // cy, dd, bu class cy$1 implements Runnable { public void run() { cy.a(b).a(a); // ...
package software.amazon.codegurureviewer.repositoryassociation; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import software.amazon.awssdk.services.codegururevie...
package com.roamtech.uc.handler; import java.util.ArrayList; import java.util.Date; import java.util.List; import com.roamtech.uc.model.*; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.time.DateFormatUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.roamtech.uc.c...
package com.yatatsu.lazyexpandablerecyclerview; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
package com.google.api.ads.dfp.jaxws.v201502; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for AudienceSegment.Status. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name...
/* * 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...
/** * 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 ...
/* * This file is part of Burningwave Core. * * Author: Roberto Gentili * * Hosted at: https://github.com/burningwave/core * * -- * * The MIT License (MIT) * * Copyright (c) 2019 Roberto Gentili * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated...
/** * Copyright 2011 Google Inc. * * 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 ...
/* * Licensed to Metamarkets Group Inc. (Metamarkets) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Metamarkets licenses this file * to you under the Apache License, Version 2.0 (the * "License"); yo...
package com.zengkan.lankong.vo; import com.zengkan.lankong.pojo.CategoryRecommends; import lombok.Data; import lombok.EqualsAndHashCode; import java.io.Serializable; /** * Created with IntelliJ IDEA. * * @author : ZengKan * @version : * @Date : 2021/11/27/10:48 * @Description : 推荐分类管理接口 * @modified By : **/ ...
/* * JBoss, Home of Professional Open Source. * Copyright 2021, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * unde...
/* * Copyright 2013 ios-driver committers. * * 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...
/* * 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 ...
package controllers; import com.typesafe.config.Config; import controllers.actions.Attrs; import controllers.actions.Authorization; import controllers.constants.APIResponses; import controllers.dto.Photo.ChooseProfilePicReq; import controllers.dto.Photo.UpdatePhotoReq; import io.ebean.Ebean; import io.ebean.text.PathP...
/* Class602 - Decompiled by JODE * Visit http://jode.sourceforge.net/ */ package com.jagex; import java.util.Arrays; public class Class602 implements Interface13 { public int anInt7852; static final int anInt7853 = 6; public int anInt7854; Class609 aClass609_7855; Interface12 anInterface12_7856; byte[] aByteA...
/* * Copyright 2019, OpenTelemetry Authors * * 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...
package com.example.verificarpep; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActivity; import android.content.DialogInterface; import android.net.http.SslError; import android.os.Bundle; import android.webkit.GeolocationPermissions; import android.webkit.SslErrorHandler; import ...
package com.liyongquan.math; import java.util.ArrayList; import java.util.List; /** * 给你一个数组 candies 和一个整数 extraCandies ,其中 candies[i] 代表第 i 个孩子拥有的糖果数目。 * <p> * 对每一个孩子,检查是否存在一种方案,将额外的 extraCandies 个糖果分配给孩子们之后,此孩子有 最多 的糖果。注意,允许有多个孩子同时拥有 最多 的糖果数目。 * <p> *   * <p> * 示例 1: * <p> * 输入:candies = [2,3,5,1,3], extra...
package com.atguigu.gulimall.product.service.impl; import com.alibaba.fastjson.TypeReference; import com.atguigu.common.constant.ProductConstant; import com.atguigu.common.to.SkuReductionTo; import com.atguigu.common.to.SpuBoundTo; import com.atguigu.common.to.es.SkuEsModel; import com.atguigu.common.utils.R; import c...
/* * Copyright 2013-2014 Mikhail Khodonov * * 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 agre...
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd; import java.io.File; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.logging.Logger; import net.sourceforge.pmd.lang.LanguageVersion; /** *...
package com.calculator.android; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.MenuItem; ...
/* * Copyright 2015 Federico Vera * * 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...
package bssend.expreval.type; public class DateTimeType extends Type { }
import javax.swing.*; import java.awt.*; import java.awt.event.*; public class serveripGui extends JFrame implements ActionListener { JTextField ipField; JLabel ipLabel; JButton setIpbtn; Font f; JPanel panel; BorderLayout bl; ImageIcon favicon = new ImageIcon(getClass().getResource("home....
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein is * confidential and proprietary to MediaTek Inc. and/or its licensors. Without * the prior written permission of MediaTek inc. and/or ...
/** * 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 m...
/*- * #%L * Elastic APM Java agent * %% * Copyright (C) 2018 - 2020 Elastic and contributors * %% * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. ...
package org.apereo.cas.oidc.web.controllers.introspection; import org.apereo.cas.CentralAuthenticationService; import org.apereo.cas.audit.AuditableExecution; import org.apereo.cas.authentication.principal.PrincipalFactory; import org.apereo.cas.authentication.principal.ServiceFactory; import org.apereo.cas.authentica...
package com.ufes.patricia.kafka; import org.apache.kafka.clients.producer.KafkaProducer; import org.apache.kafka.clients.producer.ProducerConfig; import org.apache.kafka.clients.producer.ProducerRecord; import org.apache.kafka.common.serialization.StringSerializer; import java.util.Properties; public class ProducerD...
/* * Copyright © 2021 Cask Data, Inc. * * 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 t...