text stringlengths 7 995k |
|---|
package com.telenor.possumcore.interfaces;
import com.telenor.possumcore.abstractdetectors.AbstractDetector;
/**
* Interface for changes in detectors
*/
public interface IDetectorChange {
void detectorChanged(AbstractDetector detector);
} |
package com.itplh.enable;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ImportBeanDefinitionRegistrar;
import org.springframework.core.type.AnnotationMetadata;
/**
* regist... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.devtestlab.implementation;
import com.microsoft.... |
/****************************************************************
* 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... |
/**
* (c) 2014/2015 by Christian Schenk
**/
package de.schenk.jrtrace.service.test.utils;
import de.schenk.jrtrace.annotations.XClass;
import de.schenk.jrtrace.annotations.XClassLoaderPolicy;
import de.schenk.jrtrace.annotations.XMethod;
@XClass(classes = ".*TestProcess2", classloaderpolicy = XClassLoaderPolicy.TARG... |
/*
* Copyright 2012, UCAR/Unidata.
* See the LICENSE file for more information.
*/
package dap4.servlet;
import dap4.core.util.DapException;
import dap4.core.util.DapUtil;
import dap4.dap4lib.XURI;
import java.io.*;
import java.net.URISyntaxException;
import java.util.*;
import dap4.servlet.URLMap.Result;
/**
*... |
/*
* 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 gogreenclient.datamodel;
import gogreenclient.config.AppConfig;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.spri... |
/*
* Copyright 2016 The Netty Project
*
* The Netty Project licenses this file to you 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 ... |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... |
package org.infinispan.factories;
import static java.util.Objects.requireNonNull;
import java.lang.invoke.MethodHandles;
import java.util.Collection;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit;
import java.util.function.BiFunction;
import org.infinispan.AdvancedCache;
import ... |
org eclipse ecf internal console org eclipse osgi framework console command provider commandprovider org osgi framework bundle activator bundleactivator org osgi framework bundle context bundlecontext org osgi framework service registration serviceregistration activator bundle activator bundleactivator bundle context b... |
package com.sqliteexample;
import android.app.Application;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import java.util.Arrays;
import java.util.... |
/*
* Copyright 2017 Jonas Trevisan
*
* 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 applica... |
package io.freedriver.base.util.notify.notifysend.hint;
public class DoubleHint extends Hint<Double> {
protected DoubleHint(String name, Double value) {
super(name, value);
}
@Override
protected Type getType() {
return Type.DOUBLE;
}
} |
package com.pmareke;
import com.pmareke.models.AndroidBuilder;
import com.pmareke.models.IosBuilder;
public class App {
public static void main(String[] args) {
AndroidBuilder androidBuilder = new AndroidBuilder();
androidBuilder.build();
// Output:
// Running android tests
... |
package org.mark.showcase;
import android.app.Activity;
import android.content.Context;
import android.os.Build;
import android.support.v4.graphics.ColorUtils;
import android.view.Window;
public class StatusBarHelper {
private Window mWindow;
private int mColor;
private int mStatusBarHeight;
public ... |
/*
* Copyright (C) 2010-2014, Danilo Pianini and contributors
* listed in the project's pom.xml file.
*
* This file is part of Alchemist, and is distributed under the terms of
* the GNU General Public License, with a linking exception, as described
* in the file LICENSE in the Alchemist distribution's top direct... |
package org.apache.kafka.failableTestSupport.FailableTestDrivers;
import org.apache.kafka.common.serialization.Serde;
import org.apache.kafka.streams.kstream.internals.TaskAttemptsStore.TaskAttemptsDAO;
import org.apache.kafka.streams.kstream.internals.models.TaskAttemptsCollection;
import org.apache.kafka.streams.sta... |
package com.lovecws.mumu.spark.streaming.advance;
/**
* @author babymm
* @version 1.0-SNAPSHOT
* @Description: TODO
* @date 2017-10-31 9:26
*/
public class KinesisSparkStreaming {
} |
package mage.cards.s;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.LoyaltyAbility;
import mage.abilities.common.PlaneswalkerEntersWithLoyaltyCountersAbility;
import mage.abilities.effects.common.DamageAllEffect;
import mage.abilities.effects.common.DamagePlayersEffect;
import mage.abilit... |
package dentaku.nocc.lex;
import dentaku.nocc.lex.regex.RegexFactory;
import dentaku.nocc.lex.regex.RegexNode;
/**
* 電卓を実現する字句解析器のためのヘルパークラス
*/
public final class DentakuLexicalAnalyzer {
private DentakuLexicalAnalyzer() { }
/**
* 整数および小数の正規表現
*/
public static RegexNode decimalRegexNode() {
... |
/*
* Copyright (c) Facebook, Inc. and 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 by applic... |
/**
* "First, solve the problem. Then, write the code. -John Johnson"
* "Or use Vangav M"
* www.vangav.com
* */
/**
* MIT License
*
* Copyright (c) 2016 Vangav
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... |
package org.fanshoufeng.datetime.zoned;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.Month;
import java.time.ZoneId;
import java.time.ZonedDateTime;
public class ZonedDateTimeTester {
public static void main(String[] args) {
//地区ID都为“{区域}/城市”的格式
ZoneId shanghaiZone = ZoneId.of("A... |
package org.md2k.moodsurfing;
import android.os.Parcel;
import android.os.Parcelable;
import org.md2k.utilities.Report.Log;
import java.util.ArrayList;
/**
* Copyright (c) 2015, The University of Memphis, MD2K Center
* - Syed Monowar Hossain <monowar.hossain@gmail.com>
* All rights reserved.
*
* Redistributi... |
/*
* Licensed to ElasticSearch and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ElasticSearch licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may... |
/** Copyright 2014 SSC and 2002-2014 CS Systèmes d'Information
* Licensed to CS Systèmes d'Information (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS licenses this file to You under the Apache... |
// 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 cz.metacentrum.perun.core.impl.modules.attributes;
import cz.metacentrum.perun.core.api.Attribute;
import cz.metacentrum.perun.core.api.AttributeDefinition;
import cz.metacentrum.perun.core.api.AttributesManager;
import cz.metacentrum.perun.core.api.Member;
import cz.metacentrum.perun.core.api.Pair;
import cz.... |
/*
* 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 com.inger.market.exception;
public class StorageFileNotFoundException extends StorageException {
public StorageFileNotFoundException(Integer status, String message) {
super(status, message);
}
public StorageFileNotFoundException(Integer status, String message, Throwable cause) {
s... |
/*********************************************************************************
* *
* The MIT License (MIT) *
* ... |
/*
* Copyright 2019 HiveMQ and the HiveMQ Community
*
* 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... |
/**
* 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 n... |
/*
* 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) 2013, 2015 Oracle and/or its affiliates. All rights reserved. This
* code is released under a tri EPL/GPL/LGPL license. You can use it,
* redistribute it and/or modify it under the terms of the:
*
* Eclipse Public License version 1.0
* GNU General Public License version 2
* GNU Lesser General ... |
/**
* 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... |
package cz.alisma.alej.text.wrapping;
import java.util.List;
public class JustifyAligner implements Aligner {
@Override
public String format(List<String> words, int width, int lengthSoFar) {
StringBuilder result = new StringBuilder();
int numberOfSpaces = words.size() - 1;
int spaceTotalLength = width - len... |
/**
* 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 2014-2019 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 2013 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 by ap... |
package querydsl.samples.library;
import com.querydsl.jpa.impl.JPAQuery;
import javax.persistence.EntityManager;
public class UserService {
private EntityManager em;
public User findById(int id) {
QUser user = QUser.user;
return new JPAQuery<Void>(em)
.select(user)
.from(user)
.where(... |
package com.java.urlshortener.data.document;
import org.springframework.data.annotation.Id;
/**
* Created by coarse_horse on 01/08/2020
*/
public class BaseDocument {
@Id
private String id;
} |
/*
* 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.github.tong12580.common.core.consul;
import com.ecwid.consul.v1.ConsulClient;
import com.ecwid.consul.v1.QueryParams;
import com.ecwid.consul.v1.Response;
import com.ecwid.consul.v1.agent.model.NewService;
import com.ecwid.consul.v1.health.HealthServicesRequest;
import com.ecwid.consul.v1.health.model.Healt... |
package com.huaweicloud.sdk.cce.v3.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
*
*/
public class NodeBandwidth {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "chargemode")
private ... |
package org.jasig.cas.web.flow;
import org.jasig.cas.CasProtocolConstants;
import org.jasig.cas.CentralAuthenticationService;
import org.jasig.cas.authentication.AuthenticationContext;
import org.jasig.cas.authentication.AuthenticationContextBuilder;
import org.jasig.cas.authentication.AuthenticationSystemSupport;
imp... |
/*
* Statistics Service
* Statistics Service
*
* OpenAPI spec version: 9.0.000.37.638
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.genesys.internal.common;
@javax.annota... |
// Copyright (C) 2009 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 applicable ... |
package ezdb.serde;
import java.nio.ByteBuffer;
import io.netty.buffer.ByteBuf;
public class IntegerSerde implements Serde<Integer> {
public static final IntegerSerde get = new IntegerSerde();
@Override
public Integer fromBuffer(final ByteBuf buffer) {
return buffer.readInt();
}
@Override
public void toBuf... |
package com.tenor.android.core.model.impl;
import android.support.annotation.NonNull;
import com.tenor.android.core.constant.ItemBadgePosition;
import com.tenor.android.core.constant.StringConstant;
public class ItemBadge extends Image {
private static final long serialVersionUID = 5769727680233855104L;
pr... |
/*
* Copyright (C) 2021 Seomse 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 ... |
package dongzhong.videoplayer;
/**
* Created by dongzhong on 2017/11/8.
*/
public class VideoPlayerConstant {
public enum CurrentState {
CURRENT_STATE_NULL,
CURRENT_STATE_PREPARING,
CURRENT_STATE_PREPARED,
CURRENT_STATE_PAUSE,
CURRENT_STATE_PLAYING,
CURRENT_STATE_... |
package md51558244f76c53b6aeda52c8a337f2c37;
public abstract class NongreedySnapHelper
extends android.support.v7.widget.LinearSnapHelper
implements
mono.android.IGCUserPeer
{
/** @hide */
public static final String __md_methods;
static {
__md_methods =
"n_attachToRecyclerView:(Landroid/support/v7/widget/... |
/*
* 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 stellarapi.api.gui.pos;
public class ElementPos {
private final EnumHorizontalPos horizontalPos;
private final EnumVerticalPos verticalPos;
public ElementPos(EnumHorizontalPos hor, EnumVerticalPos ver) {
this.horizontalPos = hor;
this.verticalPos = ver;
}
public EnumHorizontalPos getHorizontalPos()... |
/*
* Copyright 2002-2019 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/**
* This class designed to create new persons who wants to participate in voting.
*
*/
import java.util.Objects;
public class Person {
//The person first name
private String firstName;
//The person last name
private String lastName;
/**
* The class constructor which create a new person ... |
package com.readytalk.cultivar.util.mapping;
import com.google.common.annotations.Beta;
import javax.annotation.Nullable;
@Beta
public interface ByteArrayMapper<T> {
T map(byte[] bytes);
T map(@Nullable byte[] bytes, T defaultValue);
} |
package org.combinations;
import org.junit.Rule;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
/**
* Basic tests for the Main cli app
*/
public class MainTests {
@Test
public ... |
package com.joojet.plugins.mobs.monsters.zombie.julyfourth;
import org.bukkit.entity.EntityType;
import com.joojet.plugins.mobs.interpreter.MonsterTypeInterpreter;
import com.joojet.plugins.mobs.interpreter.SummoningScrollInterpreter;
import com.joojet.plugins.mobs.monsters.MonsterTypes;
public class PatrioticZombie... |
/*
* 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... |
/*
* 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 ... |
/*
* Copyright © 2017 Mark Raynsford <code@io7m.com> https://www.io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS P... |
package com.tangdao.config.rabbit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.listener.api.ChannelAwareMessageListener;
import com.rabbitmq.client.Channel;
import com.tangdao.core.config.runner.AbstractInitializeRunner;... |
package com.mmall.concurrencystudy.example.single;
import com.mmall.concurrencystudy.annotations.NotRecommend;
import com.mmall.concurrencystudy.annotations.ThreadSafe;
/**
* 懒汉模式
* 对SingletonExample1做了改进
* 使用synchronized关键字修饰工厂方法,实现了线程安全,但这仍然是不推荐的,因为会带来额外的性能开销
*/
@ThreadSafe
@NotRecommend
public class SingletonE... |
package br.gov.mec.resource;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import br.gov.mec.model.CaptchaController;
@Path("/")
public class CaptchaResource {
private CaptchaController controller = new CaptchaController();
@GET
@Path("start/{... |
// Copyright 2020 VMware, Inc.
// SPDX-License-Identifier: Apache-2.0
//
package com.idcta.proj.sensor.ble;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.le.ScanResult;
import com.idcta.proj.sensor.datatype.PayloadData;
import com.idcta.proj.sensor.datatype.PayloadSharingData;
import com.idcta... |
package org.hl7.fhir.r4.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyr... |
package bboss.org.jgroups.blocks;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Vector;
import java.util.Map.Entry;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import bboss.org.jgroups.Address;
impo... |
package net.minidev.ovh.api.ip;
/**
* Possible values for mitigation profile state
*/
public enum OvhMitigationProfileStateEnum {
ok("ok"),
tasksPending("tasksPending");
final String value;
OvhMitigationProfileStateEnum(String s) {
this.value = s;
}
public String toString() {
return this.value;
}
} |
/*
* Copyright (c) 2016-2018. Uniquid Inc. or its affiliates. All Rights Reserved.
*
* License is in the "LICENSE" file accompanying this file.
* See the License for the specific language governing permissions and limitations under the License.
*/
package com.uniquid.register.impl.sql;
import com.uniquid.registe... |
package krasa.grepconsole.folding;
import com.intellij.execution.ConsoleFolding;
import com.intellij.openapi.progress.ProcessCanceledException;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.text.StringUtil;
import krasa.grepconsole.model.GrepExpressionItem;
import krasa.grepconsole.plug... |
package leetcode.review;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* @author: wyj
* @date: 2021/05/26
*/
public class R15_2 {
//输入:nums = [-1,0,1,2,-1,-4]
//输出:[[-1,-1,2],[-1,0,1]]
public List<List<Integer>> threeSum(int[] nums) {
List<List<Integer>> list=new Array... |
package mastodon4j;
import mastodon4j.api.AccountsResource;
import mastodon4j.api.AppsResource;
import mastodon4j.api.BlocksResource;
import mastodon4j.api.FavouritesResource;
import mastodon4j.api.FollowRequestsResource;
import mastodon4j.api.FollowsResource;
import mastodon4j.api.InstancesResource;
import mastodon4j... |
/**
* 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 chapter18;
import java.util.ArrayList;
public class RawArrayList {
public static void main(String[] args) {
ArrayList arNum = new ArrayList();
arNum.add(1);
arNum.add("문자열");
int value = (int)arNum.get(0);
// int temp = (int)arNum.get(1);
System.out.println(value);
}
}
// 숫자, 문자열 모두 다 Object의 후손... |
package com.ah.weixin.mapper;
import com.ah.weixin.model.WeixinAccount;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface WeixinAccountMapper {
int countByExample(WeixinAccount example);
int deleteByExample(WeixinAccount example);
int deleteByPrimaryKey(String id);
... |
package io.github.achacha.dada.engine.render;
import io.github.achacha.dada.engine.builder.SentenceRendererBuilder;
import io.github.achacha.dada.engine.data.Verb;
import io.github.achacha.dada.engine.data.Word;
import io.github.achacha.dada.integration.tags.GlobalData;
import org.apache.commons.lang3.StringUtils;
im... |
/*
* Copyright (C) 2010 ZXing 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 agr... |
package com.jianma.designyl.shiro;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.web.filter.authc.FormAuthenticationFilter;
import org.apache.shiro.web.util.WebUtils;
public class FormAuthenticationCaptchaFilter e... |
/*
* Copyright (c) 2004-2022, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of cond... |
package sagemod.cards;
import com.badlogic.gdx.graphics.Color;
import com.evacipated.cardcrawl.mod.stslib.StSLib;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.animations.VFXAction;
import com.megacrit.cardcrawl.actions.utility.ShowCardAndPoofAction;
import com.megacri... |
package com.taobao.zeus.web.platform.shared.rpc;
import java.io.IOException;
import java.util.List;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.taobao.zeus.web.platform.client.module.jobmanager.GroupModel;
import com.taobao.zeus.web.... |
/*
* MIT License
*
* Copyright (c) 2022 MASES s.r.l.
*
* 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, cop... |
/*
* 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 org.jgroups.protocols.raft.util;
import org.jgroups.util.*;
import org.testng.IConfigurationListener2;
import org.testng.ITestContext;
import org.testng.ITestListener;
import org.testng.ITestResult;
import java.io.*;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurren... |
package Generics;
class Box<T>{
private T t;
public void add(T t){
this.t = t;
}
public T get(){
return t;
}
}
public class GenericClass {
public static void main(String[] args) {
int [] array = {1, 2, 3, 4, 5};
Box<Integer> boxInteger = new Box<Integer>();... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/dataflow/v1beta3/streaming.proto
package com.google.dataflow.v1beta3;
/**
* <pre>
* State family configuration.
* </pre>
*
* Protobuf type {@code google.dataflow.v1beta3.StateFamilyConfig}
*/
public final class StateFamilyConfig exten... |
package org.monarchinitiative.svart;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.junit.jupiter.api.Assertions.*;... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2016-2019 Gabriel Cauchis
*
* 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 t... |
package org.trebol.exceptions;
import javassist.NotFoundException;
public class UserNotFoundException extends NotFoundException {
public UserNotFoundException(String msg) {
super(msg);
}
public UserNotFoundException(String msg, Exception e) {
super(msg, e);
}
} |
package org.opengis.cite.wps20;
import com.beust.jcommander.Parameter;
import java.io.File;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
/**
* Declares supported command line arguments that are parsed using the
* JCommander library. All arguments are optional. The default values are as
*... |
package io.syndesis.qe.resource.impl;
import io.syndesis.qe.account.Account;
import io.syndesis.qe.account.AccountsDirectory;
import io.syndesis.qe.resource.Resource;
import io.syndesis.qe.utils.OpenShiftUtils;
import io.syndesis.qe.wait.OpenShiftWaitUtils;
import java.util.ArrayList;
import java.util.HashMap;
import... |
/*
* Copyright © 2022 DATAMART 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
package com.lazydev.stksongbook.webapp.data.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
/**
* This is the model class of the Category entity. The table store... |
package org.swtk.commons.dict.wordnet.indexbyname.instance.l.y.a; import java.util.ArrayList; import java.util.Collection; import java.util.Map; import java.util.TreeMap; import org.swtk.common.dict.dto.wordnet.IndexNoun; import com.trimc.blogger.commons.utils.GsonUtils; public final class WordnetNounIndexNameInsta... |
package com.simibubi.create.content.curiosities.tools;
import java.util.Random;
import java.util.function.Consumer;
import javax.annotation.ParametersAreNonnullByDefault;
import com.simibubi.create.AllSoundEvents;
import com.simibubi.create.foundation.item.CustomUseEffectsItem;
import com.simibubi.create.foundation.... |
/**
* iBizSys 5.0 机器人生产代码(不要直接修改当前代码)
* http://www.ibizsys.net
*/
package com.sa.unip.app.wf.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.ser... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.