text stringlengths 7 1.01M |
|---|
package com.jeiker.demo.config;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author : xiao
* @date : 2018/3/9 上午10:48
* @description : 数据源选择 - 自定义注解
*/
@Retention(RetentionPolicy.RUNTIME)
@Ta... |
/*
* Copyright (c) 2009, 2020 Oracle and/or its affiliates and others.
* All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be ... |
/*
* Copyright (C) 2016 The 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 app... |
package ZCW.Api.config;
import org.springframework.context.annotation.*;
import org.springframework.web.servlet.config.annotation.*;
@Configuration
public class Cors {
@Bean
public WebMvcConfigurer corsConfigurer() {
return new WebMvcConfigurer() {
@Override
public void addCor... |
/*
* 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... |
/******************************************************************
* File: Datatable.java
* Created by: Dave Reynolds
* Created on: 24 Jul 2013
*
* (c) Copyright 2013, Epimorphics Limited
*
*****************************************************************/
package com.epimorphics.server.webapi;
impo... |
/*
* Copyright © 2018 Apple Inc. and the ServiceTalk project 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 requi... |
/*
* Copyright James House (c) 2001-2004
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list o... |
package architecture.community.audit.event.listener;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import ... |
package Insert.insert;
import java.util.Scanner;
import java.time.*;
public class InsertionSort
{
public static void main(String args[])
{
var sc = new Scanner(System.in);
int n = sc.nextInt();
int arr[] = new int[n];
System.out.println("Enter Elements into array ");
for(int i=0; i<n; i++)
arr[i] = s... |
package com.atguigu.gmall.pms.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 品牌分类关联
*
* @author moerjkj
* @email moermanske@163.com
* @date 2020-12-14 18:37:24
*/
@D... |
/*
* Copyright 2017 Futurice GmbH
*
* 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... |
/*
* Copyright (C) 2011 Red Hat, Inc. and/or its affiliates.
*
* 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 ... |
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
/*
* Copyright (C) 2009, 2015 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
* style license a copy of which has been included with this distribution in
* the LICENSE.txt file.
*
* Created on 30. April 2009 by Joerg Schaible
*/
package com.t... |
package org.test.webcam.util;
import org.test.webcam.model.domain.entity.secure.SasUser;
import org.test.webcam.model.service.secure.TokenUserService;
public class TokenUtils {
public SasUser readToken(String token, TokenUserService tokenUserService) throws Exception {
SasUser sasUser = null;
try {
sasUse... |
/*
* Copyright (c) 2020
* Author: xiaoweixiang
*/
package finished.others.finished.no266;
import java.util.HashMap;
import java.util.Map;
class Solution {
public static boolean canPermutePalindrome(final String s) {
final HashMap<Character, Integer> map = new HashMap<>();
final char[] array = ... |
package in.ashwanik.clgame.messaging;
import in.ashwanik.clgame.utils.StringUtils;
import java.util.*;
public class Broker {
private final Map<String, List<Subscriber>> subscribers;
public Broker() {
subscribers = new HashMap<>();
}
List<Subscriber> getSubscribersForTopic(Strin... |
/*
* Copyright (C) 2016-2022 Objectos Software LTDA.
*
* 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 ... |
package fr.insee.arc.core.service.engine.xsd.controls;
public class RegexForXsd implements ControlForXsd {
private final String pattern;
public RegexForXsd(String pattern) {
this.pattern = convertPattern(pattern);
}
private String convertPattern(String patternToConvert) {
String anythingPattern =... |
package org.glassfish.auth;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* Created by Siva on 8/06/2014.
*/
public class LoginFilter implements javax.servlet.Filter {
public void destroy() {
}
... |
//
// MessagePack for Java
//
// Copyright (C) 2009 - 2013 FURUHASHI Sadayuki
//
// 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-... |
package org.jeecg.modules.gas.service;
import org.jeecg.modules.gas.entity.Concentration;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: 气体浓度信息
* @Author: jeecg-boot
* @Date: 2019-12-08
* @Version: V1.0
*/
public interface IConcentrationService extends IService<Concentration> {... |
package com.sergio.importer.parser;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.RuntimeJsonMappingException;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.json.JsonTest;
... |
package QueenMod.powers;
import QueenMod.QueenMod;
import QueenMod.actions.AddToTopOfDrawPileAction;
import QueenMod.util.TextureLoader;
import basemod.interfaces.CloneablePowerInterface;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.megacrit.cardcrawl.actions.... |
/*
* Licensed to Elastic Search and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Elastic Search licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you m... |
/*
* Licensed to jclouds, Inc. (jclouds) under one or more
* contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. jclouds licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... |
/*
* 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 io.openex.helper;
import java.security.MessageDigest;
public class CryptoHelper {
private static String hex(byte[] array) {
StringBuilder sb = new StringBuilder();
for (byte b : array) {
sb.append(Integer.toHexString((b & 0xFF) | 0x100), 1, 3);
}
return sb.toSt... |
/**
* Copyright (C) 2010 dennis zhuang (killme2008@gmail.com)
*
* 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) any later ... |
/*
* Copyright 2012-2018 Chronicle Map Contributors
*
* 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 applicab... |
/**
* Copyright 2009-2015 the original author or 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
*
* Unle... |
package com.tengen.jiaoxue.servlet;
import java.io.PrintWriter;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.tengen.commonalityInfo.dao.commonalityInfoDAO;
import com.tengen.core.servlet.BaseServlet;
import com.tengen.core.util.StringUt... |
package org.sirius.gmall.order.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.sirius.common.utils.PageUtils;
import org.sirius.gmall.order.entity.UndoLogEntity;
import java.util.Map;
/**
*
*
* @author David
* @email my_good_dream@126.com
* @date 2022-03-30 16:00:06
*/
public i... |
/*
* 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 ma... |
/*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
/*
* Autopsy Forensic Browser
*
* Copyright 2011-2017 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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... |
package se.l4.dust.core.internal.template;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.google.common.collect.Lists... |
package com.harvard.studyAppModule.acvitityListModel;
import io.realm.RealmObject;
/**
* Created by Naveen Raj on 04/06/2017.
*/
public class ActivitiesWS extends RealmObject {
private String startTime;
private String activityId;
private String title;
private String lastModified;
private Fr... |
/*
* Copyright 2015 herd contributors
*
* 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 2018 The Error Prone 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 ... |
package org.firstinspires.ftc.teamcode.opmodes.testing;
import com.acmerobotics.roadrunner.control.PIDCoefficients;
import com.acmerobotics.roadrunner.control.PIDFController;
import com.acmerobotics.roadrunner.geometry.Pose2d;
import com.qualcomm.hardware.rev.Rev2mDistanceSensor;
import com.qualcomm.hardware.rev.RevCo... |
package io.github.communitymod.core.world.structures.bean;
import java.util.Random;
import io.github.communitymod.CommunityMod;
import net.minecraft.core.BlockPos;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.server.level.ServerLevel;
import net.minecraft... |
/*
* Copyright (C) 2017, Ulrich Wolffgang <ulrich.wolffgang@proleap.io>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package io.proleap.cobol.asg.metamodel.environment.inputoutput.iocontrol.impl;
import org.sl... |
/*
* 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... |
// --------------------------------------------------------------------------------
// Copyright 2002-2021 Echo Three, LLC
//
// 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:/... |
package com.hazelcast.cache.nearcache;
import com.hazelcast.config.InMemoryFormat;
import com.hazelcast.test.HazelcastSerialClassRunner;
import com.hazelcast.test.annotation.QuickTest;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
@RunWith(HazelcastSerialC... |
package com.onimaskesi.onistadiumfinder.service.api;
import com.onimaskesi.onistadiumfinder.model.wikidesc.WikiDescResponse;
import com.onimaskesi.onistadiumfinder.model.wikisearch.QueryWS;
import io.reactivex.Single;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface WikiAPI {
// https://... |
/*
* Copyright 2020 Google LLC
*
* 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 agreed to ... |
package com.tokelon.toktales.core.engine;
import javax.inject.Inject;
import com.tokelon.toktales.core.engine.content.IContentService;
import com.tokelon.toktales.core.engine.input.IInputService;
import com.tokelon.toktales.core.engine.render.IRenderService;
import com.tokelon.toktales.core.engine.storage.IStorageSer... |
package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
import org.traccar.model.Position;
public class Vt200ProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
var decoder = new Vt200ProtocolDecoder(null);
verifyPositio... |
package com.xtlog.rants.service.serviceImpl;
import com.xtlog.rants.mapper.UserMapper;
import com.xtlog.rants.pojo.User;
import com.xtlog.rants.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
/**
* Created by admin on 2017/4/15.
*/
public class... |
package org.zstack.sdk;
public class LdapServerInventory {
public java.lang.String uuid;
public void setUuid(java.lang.String uuid) {
this.uuid = uuid;
}
public java.lang.String getUuid() {
return this.uuid;
}
public java.lang.String name;
public void setName(java.lang.... |
package com.launchcode.coffeeapp.models;
import com.launchcode.coffeeapp.models.AbstractEntity;
import com.launchcode.coffeeapp.models.Review;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.v... |
/*
* Copyright (c) 2020 Fujitsu Limited. All rights reserved.
*
* Licensed under the Apache License, Version 2.0(the "License").
* You may obtain a copy of the License at
* https://www.apache.org/licenses/LICENSE-2.0
*/
package com.fujitsu.tsc.desktop.gui;
import java.awt.Font;
import java.awt.event... |