text stringlengths 7 1.01M |
|---|
package com.qualcomm.robotcore.hardware;
/**
* Implementation of the Servo interface.
*/
public class ServoImpl implements Servo{
private double position;
/**
* Set position of servo.
* @param position Must be between 0 and 1
*/
public synchronized void setPosition(double position) {
... |
package com.github.mirs.banxiaoxiao.framework.common.util;
/**
* <pre>
* 将多个int正整型合并为一个long型进行存储,并通过xor运算计算两组int是否匹配
* MultiEnumVal64 int正整数取值必须大于0,0值用于MultiVal64本身特殊计算使用,<=0表示不参与匹配计算。
* 如:业务中需要根据行人是否戴眼镜、是否戴帽子、衣服颜色来进行查询
* 是否戴眼镜取值: 1 未知 ; 2 戴眼镜 ; 3 不带眼镜 ;
* 是否戴帽子取值: 1 未知 ; 2 戴帽子 ; 3 不带帽子 ;
* 衣服的颜色取值: 1 未知 ; 2 红色... |
package com.odin.web;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Compon... |
package org.knowm.xchange.bibox;
import java.io.IOException;
import java.util.List;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.knowm.xcha... |
/*
* Copyright 2019 Confluent Inc.
*
* Licensed under the Confluent Community License (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.confluent.io/confluent-community-license
*
* Unless required by applicable law or a... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* Software distr... |
/*
* 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 suite;
import com.quorum.tessera.config.ClientMode;
import com.quorum.tessera.config.CommunicationType;
import com.quorum.tessera.config.EncryptorType;
import com.quorum.tessera.config.util.JaxbUtil;
import com.quorum.tessera.test.DBType;
import config.ConfigDescriptor;
import config.ConfigGenerator;
import ja... |
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.adapters.repositoryservices.igc.clientlibrary.model.generated.v11501ru5;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.odpi.openmetadata.adapters.repositoryservice... |
package md5b60ffeb829f638581ab2bb9b1a7f4f3f;
public class FormsAppCompatActivity
extends android.support.v7.app.AppCompatActivity
implements
mono.android.IGCUserPeer
{
/** @hide */
public static final String __md_methods;
static {
__md_methods =
"n_onBackPressed:()V:GetOnBackPressedHandler\n" ... |
package org.springframework.data.ssdb.core;
import org.springframework.data.ssdb.client.SSDB;
import org.springframework.data.ssdb.client.SSDBCommand;
import org.springframework.data.ssdb.client.SSDBException;
import org.springframework.data.ssdb.pool.SSDBPool;
import org.springframework.stereotype.Component;
import ... |
/*===========================================================================
Copyright (C) 2008-2010 by the Okapi Framework contributors
-----------------------------------------------------------------------------
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except i... |
package io.github.seleniumquery.internal.fluentfunctions.getters;
import io.github.seleniumquery.SeleniumQueryObject;
public class ValGetter implements Getter<String> {
public static ValGetter VAL_GETTER = new ValGetter();
private ValGetter() { }
@Override
public String get(SeleniumQueryObject seleniumQu... |
package com.thecodeslinger;
import com.beust.jcommander.JCommander;
public class JPackageDemo
{
public static void main(String[] args) throws Exception
{
var params = new Parameters();
JCommander.newBuilder().addObject(params).build().parse(args);
System.out.println(params)... |
/*
* 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 Materials - Property of IBM
# Copyright IBM Corp. 2016
*/
package com.ibm.streamsx.topology.test.api;
import static com.ibm.streamsx.topology.internal.gson.GsonUtilities.jstring;
import static com.ibm.streamsx.topology.internal.gson.GsonUtilities.object;
import static com.ibm.streamsx.topology.test.ap... |
/** Generic support for simple messaging protocols (like STOMP). */
@NonNullApi
@NonNullFields
package org.springframework.messaging.simp.stomp;
import org.springframework.lang.NonNullApi;
import org.springframework.lang.NonNullFields;
|
package com.oportun.poc.testingstrategy.generators;
import uk.co.jemos.podam.api.PodamFactoryImpl;
import java.lang.reflect.Type;
public final class BeanGenerator {
private BeanGenerator() {
}
public static <T> T generateBean(Class<T> clazz) {
return generateBeanWithGenericTypes(clazz, (Type) 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 ... |
package com.example.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.model.Dinosaur;
import com.example.repository.DinoDao;
@Service
public class DinoService {
@Autowired
private DinoDao dinoDao;
... |
package uk.gov.hmcts.reform.divorce.transformservice.service;
import uk.gov.hmcts.reform.divorce.transformservice.domain.ccd.CreateEvent;
import uk.gov.hmcts.reform.divorce.transformservice.domain.pdf.PdfFile;
public interface PdfService {
PdfFile generatePdf(CreateEvent caseDetailsWrap, String authorization);
}
|
/**
* Copyright Acropolis Software SPRL (https://www.acrosoft.be)
*
* 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 b... |
package rstech.bluetoothpoc.obd_reader;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.bluetooth.BluetoothSocket;
import android.content.Context;
import android.content.Intent;
import android.os.Binder;
import androi... |
package psidev.psi.mi.jami.bridges.uniprot;
import psidev.psi.mi.jami.bridges.exception.BridgeFailedException;
import psidev.psi.mi.jami.bridges.fetcher.ProteinFetcher;
import psidev.psi.mi.jami.bridges.uniprot.util.UniprotUtils;
import psidev.psi.mi.jami.model.CvTerm;
import psidev.psi.mi.jami.model.Protein;
import 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 law or agreed to in writing, software
* distributed u... |
/*
* Copyright 2015-present Facebook, 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... |
package io.onedev.server.web.editable.bool;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.markup.html.form.DropDownChoice;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;
import org.apache.wic... |
/*
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... |
package gov.usgs.wma.wqp.mapping.xml;
import static gov.usgs.wma.wqp.mapping.BaseColumn.KEY_ORGANIZATION;
import static gov.usgs.wma.wqp.mapping.BaseColumn.ORGANIZATION;
import static gov.usgs.wma.wqp.mapping.BaseColumn.ORGANIZATION_NAME;
import static gov.usgs.wma.wqp.mapping.OrganizationColumn.*;
import java.util.A... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__int_getParameter_Servlet_multiply_67b.java
Label Definition File: CWE190_Integer_Overflow__int.label.xml
Template File: sources-sinks-67b.tmpl.java
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: getParameter_Servlet Read da... |
package life.catalogue.parser;
import life.catalogue.api.vocab.Lifezone;
/**
*
*/
public class LifezoneParser extends EnumParser<Lifezone> {
public static final LifezoneParser PARSER = new LifezoneParser();
public LifezoneParser() {
super("lifezone.csv", Lifezone.class);
}
}
|
// 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
// distribute... |
package org.winwin.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.winwin.model.SDG;
@Repository
public interface SDGRepository extends JpaRepository<SDG, Long> {
} |
/**
* 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 ... |
package com.jingchen.pulltorefresh.pullableview;
public interface Pullable {
/**
* 判断是否可以下拉,如果不需要下拉功能可以直接return false
*
* @return true如果可以下拉否则返回false
*/
boolean canPullDown();
/**
* 判断是否可以上拉,如果不需要上拉功能可以直接return false
*
* @return true如果可以上拉否则返回false
*/
boolean ca... |
/*
* 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 it.cappaipastorini.lab1.server;
import javax.xml.bind.annotation.adapters.XmlAdapter;
/**
*
* @author studente
*/
public c... |
package com.neandroid.sqlite;
import android.app.Application;
import android.content.Context;
import android.util.Log;
import com.neandroid.sqlite.db.MyAppDatabase;
import com.neandroid.sqlite.db.MyAppDatabase2;
public class MyApp extends Application {
private String TAG = this.getClass().getSimpleNa... |
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class delete_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDe... |
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* 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 ag... |
/*
* 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... |
package top.zhoumy.system.domain;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import top.zhoumy.common.annotation.ExportConfig;
@Table(name = "t_menu")
public class Menu im... |
package factorization.mechanics;
public class MechanismClientFeature {
public static void initialize() {
}
}
|
package com.redescooter.ses.web.ros.dao.base;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.redescooter.ses.web.ros.dm.OpeCustomerInquiryB;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface OpeCustomerInquiryBMapper extends BaseMapper<OpeCustomerInquiryB> {
i... |
/*
* Copyright 2002-2018 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... |
/*
* nimbus-jose-jwt
*
* Copyright 2012-2016, Connect2id Ltd and 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
*
*... |
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... |
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Copyright (C) 2009 The Guava 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... |
/*
* 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... |
package io.libraex.api.client.domain.market;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.libraex.api.client.constant.libraexConstants;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* An order book entry con... |
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class FacebookXPath {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "resources/chromedriver.exe");
WebDriver driver = new ChromeDri... |
package org.finra.datagenerator.scaffolding.random;
import java.util.List;
/**
* Created by dkopel on 12/5/16.
*/
public class TestThing {
private List<Long> thing;
public List<Long> getThing() {
return thing;
}
public TestThing setThing(List<Long> thing) {
this.thing = thing;
... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE81_XSS_Error_Message__Servlet_getCookies_Servlet_51a.java
Label Definition File: CWE81_XSS_Error_Message__Servlet.label.xml
Template File: sources-sink-51a.tmpl.java
*/
/*
* @description
* CWE: 81 Cross Site Scripting (XSS) in Error Message
* BadSource: getCookies_Ser... |
/*******************************************************************************
* 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... |
/* Copyright 2018 The TensorFlow Authors. 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
Unless required by applicable law or a... |
package com.starmcc.qmdata.note;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author starmcc
* @version 2019/1/9 11:32
* 数据表标识
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIM... |
/*
* Parallelising JVM Compiler
*
* Copyright 2010 Peter Calvert, University of Cambridge
*
* 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/LICEN... |
/*
* Copyright © 2017 <code@io7m.com> http://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 PROVIDED "AS IS" AND ... |
package cn.neyzoter.datastructure.heap;
/**
* 基于大顶堆的优先级队列
* @author Charles Song
* @date 2020-6-21
*/
public class MaxPriorityQueue <E extends Comparable<E>> {
private E[] array;
/**
* 元素个数
*/
private int num;
@SuppressWarnings("unchecked")
public MaxPriorityQueue (int cap) {
... |
package vip.justlive.common.base.util;
import java.util.concurrent.TimeUnit;
import org.junit.Assert;
import org.junit.Test;
import vip.justlive.common.base.util.ExpiringMap.CleanPolicy;
import vip.justlive.common.base.util.ExpiringMap.ExpiringPolicy;
/**
* @author wubo
*/
public class ExpiringMapTest {
... |
package com.es.agriculturafamiliar.util;
import java.util.Random;
import java.util.stream.IntStream;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
@Component
public class SixDigitsTokenGeneratorStrategy implements ITokenGeneratorStrategy<String> {
private static fi... |
package seedu.address.logic.parser;
/**
* Contains Command Line Interface (CLI) syntax definitions common to multiple commands
*/
public class CliSyntax {
/* Prefix definitions */
public static final Prefix PREFIX_NAME = new Prefix("n/");
public static final Prefix PREFIX_PHONE = new Prefix("p/");
p... |
package com.chloneda;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
/**
* @author chloneda
* @description:
*/
@RunWith(SpringRunner.class)
@SpringBootTest
public class SocketIOApplica... |
package br.community.javaclean.confs.feign;
import org.springframework.stereotype.Component;
@Component
public class PokemonClientConfiguration {}
|
/****************************************************************
* 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... |
package org.apache.maven.plugins.enforcer;
/*
* 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 L... |
package com.skytala.eCommerce.domain.order.relations.requirement.model.orderCommitment;
import java.util.Map;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Map;
import java.io.Serializable;
import com.skytala.eCommerce.domain.order.relations.requirement.mapper.orderCommitment.OrderRequiremen... |
package com.archer.lib.core.net.interceptors;
import java.util.LinkedHashMap;
import okhttp3.FormBody;
import okhttp3.HttpUrl;
import okhttp3.Interceptor;
import okhttp3.Request;
/**
* Created by Archer on 2018/2/8.
*/
public abstract class BaseInterceptor implements Interceptor {
protected LinkedHashMap<Stri... |
package cn.edu.bnuz.lwcapp20;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void a... |
/*
* Copyright 2001-2020 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
*
* Unless required by app... |
public class C14_Stack {
static int i = 0;
public static void main(String[] args) {
a();
// stackOverflow();
}
public static void stackOverflow() {
System.out.println(i++);
stackOverflow();
}
public static void a() {
b();
}
public static void b() {
b_1();
c();
}
... |
/*
* 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 2016 higherfrequencytrading.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 la... |
/**************************************************************************
Copyright (c) 2011:
Istituto Nazionale di Fisica Nucleare (INFN), Italy
Consorzio COMETA (COMETA), Italy
See http://www.infn.it and and http://www.consorzio-cometa.it for details on
the copyright holders.
Licensed under the Apache License, Ve... |
package pl.fraction.operators.division;
import org.junit.Assert;
import org.junit.Test;
import pl.fraction.containers.fraction.Fraction;
import pl.fraction.containers.fraction.Fractionable;
import pl.fraction.operators.comparison.Comparer;
public class FractionDivisionTest {
@Test
public void divideIntegers1... |
package com.upplication.s3fs.util;
/**
* 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, Ver... |
/*
* Copyright (C) 2007 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... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.wm.impl.welcomeScreen;
import com.intellij.ide.ProjectGroup;
import com.intellij.ide.RecentProjectsManager;
import com.intellij.openapi.actionSystem.... |
/*
* JBoss, Home of Professional Open Source
* Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Vers... |
/*
* Copyright (C) 2017 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... |
/*
* Copyright 2015 Anton Tananaev (anton.tananaev@gmail.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 b... |
package com.example.jhipster.security;
import org.springframework.security.core.AuthenticationException;
/**
* This exception is thrown in case of a not activated user trying to authenticate.
*/
public class UserNotActivatedException extends AuthenticationException {
private static final long serialVersionUID ... |
package cryodex.modules.mus;
import cryodex.modules.TournamentComparator;
public class MusComparator extends TournamentComparator<MusPlayer> {
public static enum CompareOptions {
HEAD_TO_HEAD, MARGIN_OF_VICTORY, STRENGH_OF_SCHEDULE, AVERAGE_STRENGTH_OF_SCHEDULE, SCORE, RANDOM, NAME;
}
public static final Compa... |
package org.hisrc.aufzugswaechter;
import android.os.AsyncTask;
import org.json.JSONException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public abstract class AbstractRetrieveJSONTask<J> extends AsyncTask<String, Void, J> {
private sta... |
/*******************************************************************************
* ___ _ ____ ____
* / _ \ _ _ ___ ___| |_| _ \| __ )
* | | | | | | |/ _ \/ __| __| | | | _ \
* | |_| | |_| | __/\__ \ |_| |_| | |_) |
* \__\_\\__,_|\___||___/\__|____/|____/
*
* Copyright (c... |
package com.mlaku.dev.kata.runes;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
public class Runes {
public static int solveExpression(final String expression) {
int missingDigit = -1;
BinaryExpression binaryExpression = new BinaryExpression(express... |
/*
* 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 2018 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 applica... |
package WestHG.api;
import WestHG.Gamer;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class WinEvent extends Event {
private static final HandlerList handlers = new HandlerList();
public static HandlerList getHandlerList() {
return handlers;
}
@O... |
/*
* Copyright (c) 2003-2020, Live Media Pty. Ltd. 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
*
* Unless requ... |
package com.abc.api.model;
import java.util.List;
public class Employee {
private long empId;
private String empName;
private String designation;
private long salary;
private List<Department> deptList;
private List<Skill> skillList;
public List<Department> getDeptList() {
return deptList;
}
public ... |
package android.example.com.visualizerpreferences;
import android.os.Bundle;
import androidx.preference.PreferenceFragmentCompat;
public class SettingsFragment extends PreferenceFragmentCompat {
@Override
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
addPreferencesFromR... |
package com.isystk.sample.web.front.s2.logic;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.seasar.framework.container.annotation.tiger.Component;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.isystk.sample.common.s2.entity.MPos... |
/*
* 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 tests.gl_420;
import com.jogamp.opengl.GL;
import static com.jogamp.opengl.GL3.*;
import com.jogamp.opengl.GL4;
impo... |
/*******************************************************************************
* Copyright 2019 Centre for Development of Advanced Computing(C-DAC), Pune
*
* 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 co... |
/*
* Copyright (c) 2011-Present VMware, 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.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2... |
package com.javarush.task.task16.task1625;
/*
Взаимная блокировка
*/
public class Solution {
static Thread t1 = new T1();
static Thread t2 = new T2();
public static void main(String[] args) throws InterruptedException {
t1.start();
t1.interrupt();//решение
t2.start();
}
... |
/*
* Copyright (c) 2005 Chris Richardson
*
* 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... |
/*
* Copyright 2019-2020 StreamThoughts.
*
* 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,... |
package org.ovirt.engine.ui.uicommonweb.action;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import ja... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.