text stringlengths 7 995k |
|---|
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distribute... |
package cn.sparrow.permission.constant;
public enum GroupTypeEnum {
USER, ROLE, SYSROLE, EMPLOYEE, LEVEL, ORGANIZATION, GROUP
} |
package de.adorsys.psd2.sandbox.xs2a.service.pis;
import de.adorsys.psd2.sandbox.xs2a.testdata.TestDataService;
import de.adorsys.psd2.sandbox.xs2a.testdata.domain.Account;
import de.adorsys.psd2.sandbox.xs2a.testdata.domain.TestPsu;
import de.adorsys.psd2.xs2a.core.error.MessageErrorCode;
import de.adorsys.psd2.xs2a.... |
package com.ylzinfo.forum.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ylzinfo.forum.entity.TopicTop;
public interface TopicTopService extends IService<TopicTop> {
} |
/*
* 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 2013 Netflix, 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 a... |
/**
Copyright 2017 Carlos Macasaet
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 i... |
package com.example.android.pets;
import android.app.AlertDialog;
import android.app.LoaderManager;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.CursorLoader;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.Loader;
import... |
package com.udn.ntpc.od.model.domain;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* Data table field schema
*
*/
@NoArgsConstructor
@Data
public class TableField implements Serializable {
private static final long serialVersionUID = 8405269098716586753L;
private String ... |
import alg_et.EtInstanceBruteForceTest;
import alg_et.EtScheduleGraphTest;
import alg_ettt.EtttBruteForceScheduler;
import alg_ettt.EtttFixationGraph;
import model.*;
import ui.ScheduleVisualizerWindow;
import util.*;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) throws E... |
package com.ingot.cloud.pms.api.model.vo.tenant;
import java.io.Serializable;
import com.ingot.cloud.pms.api.model.domain.SysTenant;
import lombok.Data;
/**
* <p>Description : SimpleTenantVo.</p>
* <p>Author : wangchao.</p>
* <p>Date : 2021/6/21.</p>
* <p>Time : 5:51 下午.</p>
*/
@Data
publ... |
package org.apache.http.client.params;
import org.apache.http.annotation.Immutable;
@Immutable
@Deprecated
public final class AuthPolicy {
public static final String BASIC = "Basic";
public static final String DIGEST = "Digest";
public static final String KERBEROS = "Kerberos";
public static final Str... |
/*******************************************************************************
* Copyright 2016, 2017 vanilladb.org 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
*
* ... |
package com.project.convertedCode.servlets.vendor.phpunit.php_text_template.src;
import com.runtimeconverter.runtime.includes.RuntimeIncludable;
import com.runtimeconverter.runtime.includes.RuntimeConverterServlet;
import com.runtimeconverter.runtime.RuntimeEnv;
import javax.servlet.http.HttpServletRequest;
import jav... |
/*
* 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... |
/*
* 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 exams.finalexam.spring2018.interfaces;
/**
*
* @author akoubaa
*/
public interface Measurable extends Comparable <Measurab... |
/*
* 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 K. P. Sroka
*
* 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 wr... |
package com.simibubi.create.content.contraptions.fluids.actors;
import com.simibubi.create.AllShapes;
import com.simibubi.create.AllTileEntities;
import com.simibubi.create.content.contraptions.wrench.IWrenchable;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.tileentity... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE129_Improper_Validation_of_Array_Index__getParameter_Servlet_array_write_no_check_67a.java
Label Definition File: CWE129_Improper_Validation_of_Array_Index.label.xml
Template File: sources-sinks-67a.tmpl.java
*/
/*
* @description
* CWE: 129 Improper Validation of Array... |
/*
* Copyright 2017 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 app... |
/*
* Copyright 2009-2012 The MyBatis 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 a... |
/*
* 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 io.syndesis.qe.utils;
import static org.assertj.core.api.Assertions.fail;
import io.syndesis.qe.account.Account;
import io.syndesis.qe.account.AccountsDirectory;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.... |
package com.fun.reflect;
//import java.util.function.*;
public class MethodParameterSpy {
/*private static final String fmt = "%24s: %s%n";
// for the morbidly curious
<E extends RuntimeException> void genericThrow() throws E {}
public static void printClassConstructors(Class c) {
... |
package com.kolyadko_polovtseva.book_maze.validator;
import com.kolyadko_polovtseva.book_maze.entity.Author;
import com.kolyadko_polovtseva.book_maze.entity.Category;
import com.kolyadko_polovtseva.book_maze.entity.User;
import com.kolyadko_polovtseva.book_maze.service.AuthorService;
import com.kolyadko_polovtseva.boo... |
package fr.sorbonne_u.sylalexcenter.application.connectors;
import fr.sorbonne_u.components.connectors.AbstractConnector;
import fr.sorbonne_u.sylalexcenter.application.interfaces.ApplicationServicesI;
/**
* The class <code>ApplicationServicesConnector</code> defines a connector associated with
* the interface <cod... |
package com.bsth.si.service.impl;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.bsth.si.dao.ArticleDao;
import com.bsth.si.entity.Article;
import com.bsth.si.service.ArticleService;
import ... |
package com.whayer.stream.service.rtsp;
public abstract class SessionHandlerFactory {
public static SessionHandler sessionHandler(String method) {
switch (method) {
case "OPTIONS":
return new OptionsSessionHandler();
case "DESCRIBE":
return new DescribeSessionHandler();
case "SETUP":
return new Setup... |
/*
* Copyright 2013-2014 Richard M. Hightower
* 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 ... |
/*
* Copyright (c) 2008-2016, Hazelcast, Inc. 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 ... |
/*
* Copyright 2010-2020 Alfresco Software, Ltd.
*
* 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&N STEMpunks c 2017
*
* WOPR-JR.
*
* Full repo: github.com/ln-stempunks/WOPR-JR
*
* Full licensing here: programming.lnstempunks.org/licensing
*
* GPLv3
*/
package team3966.robot.hardware;
import edu.wpi.first.wpilibj.PowerDistributionPanel;
import java.io.FileNotFoundException;
import java.io.FileWrit... |
package io.github.johannesschaefer.simplenetworkmonitor.controller;
import com.google.common.base.Strings;
import io.github.johannesschaefer.simplenetworkmonitor.ScheduleService;
import io.github.johannesschaefer.simplenetworkmonitor.entities.Sensor;
import io.github.johannesschaefer.simplenetworkmonitor.repos.Command... |
/*
* Copyright 2018-2019 Prebid.org, 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 ... |
/*
* Copyright (c) 2013-2014. Urban Airship and Contributors
*/
package com.urbanairship.api.client;
import com.urbanairship.api.client.model.APIClientResponse;
import com.urbanairship.api.reports.model.SinglePushInfoResponse;
import org.apache.http.HttpResponse;
import org.apache.http.ProtocolVersion;
import org.... |
package uk.gov.justice.hmpps.prison.api.resource.impl;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.boot.test.mock.mockito.SpyBean;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpMethod;
impor... |
/*
* 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.auth;
import c... |
/*
* Janssen Project software is available under the Apache License (2004). See http://www.apache.org/licenses/ for full text.
*
* Copyright (c) 2020, Janssen Project
*/
package io.jans.service;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import j... |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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... |
/* **********************************************************************
*
* Use, duplication, or disclosure by the Government is subject to
* restricted rights as set forth in the DFARS.
*
* BBN Technologies
* A Division of
* BBN Corporation
* 10 Moulton Street
* Cambridg... |
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.test.runners;
import com.intellij.testFramework.TestDataPath;
import org.jetbrai... |
/*
* Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package org.h2.table;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
impor... |
package com.baeldung.method.info;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.stereotype.Component;
import java.lang.reflect.Method;
import java.lang.reflect.Modifie... |
package com.atguigu.gulimall.search;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class GulimallSearchApplicationTests {
} |
package gnu.mapping;
/* loaded from: classes.dex */
public abstract class Procedure3 extends Procedure {
@Override // gnu.mapping.Procedure
public abstract Object apply3(Object obj, Object obj2, Object obj3) throws Throwable;
public Procedure3() {
}
public Procedure3(String n) {
super(n);... |
package core;
import java.awt.EventQueue;
import core.game.*;
import core.gui.*;
public class TestGUI {
public static void main(String[] args) {
Grid grid = new Grid(10, 10);
new CornFarmer(grid, 0, 0);
new Beaver(grid, 0, 5);
new Rabbit(grid, 3, 2);
new RadishFarmer(grid, 6, 2);
... |
// Targeted by JavaCPP version 1.5.7: DO NOT EDIT THIS FILE
package org.bytedeco.tensorflow;
import org.bytedeco.tensorflow.Allocator;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.tensorfl... |
// This is a mutant program.
// Author : ysma
package davi.mutation.media.AORB_81;
import java.awt.image.WritableRaster;
import davi.genetic.algorithm.Image;
public class Media
{
public static void main( java.lang.String[] args )
throws java.lang.Exception
{
}
public static davi.genetic... |
package com.vmware.vim25;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for VStorageObject complex type.
*
* <p>The following schema fragment specifies th... |
package ar.nex.equipo;
import ar.nex.entity.equipo.Equipo;
import ar.nex.equipo.util.UtilDialog;
import ar.nex.equipo.util.EquipoToExel;
import ar.nex.service.JpaService;
import java.io.IOException;
import java.net.URL;
import java.util.List;
import java.util.ResourceBundle;
import java.util.function.Predicate;
import... |
package RoR_Engineer.cards;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.localization.CardStrings;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import com.megac... |
/**
* Copyright 2005-2015 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by a... |
package io.smallrye.reactive.messaging.wiring;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.lang.reflect.Method;
import java.util.Collections;
import java.util.NoSuchElementException;
import javax.enterprise.inje... |
/*
* 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 com.sap.olingo.jpa.processor.core.database;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Expression;
import javax.persistence.... |
package com.example.myrobot;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.AppCompatButton;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.exa... |
package com.example.android.sunshine.app.sync;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
public class SunshineSyncService extends Service {
private static final String LOG_TAG = SunshineSyncService.class.getSimpleName();
private static fina... |
package io.edurt.lc.guice;
public class GuiceProviderServiceImpl
implements GuiceProviderService
{
@Override
public void println(String input)
{
System.out.println(input);
}
} |
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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... |
package io.digisic.bank.repository;
import org.springframework.data.repository.CrudRepository;
import io.digisic.bank.model.security.Role;
public interface RoleRepository extends CrudRepository<Role, Long> {
Role findByName(String name);
} |
package com.kk.coding.excercise.controller;
import javax.servlet.http.HttpServletRequest;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springfra... |
package com.inspiring.pugtsdb.repository.rocks;
import com.inspiring.pugtsdb.bean.MetricPoint;
import com.inspiring.pugtsdb.bean.MetricPoints;
import com.inspiring.pugtsdb.bean.Point;
import com.inspiring.pugtsdb.exception.PugException;
import com.inspiring.pugtsdb.exception.PugNotImplementedException;
import com.insp... |
package script.boss;
import java.util.concurrent.TimeUnit;
import org.apache.mina.core.session.IoSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import script.ai.BattleRoleAttack;
import script.ai.RoleAttackLogic;
import script.ai.TrainingLogic;
import com.xinqihd.sns.gameserver.GameContext;
impor... |
package ge.edu.freeuni.sdp.todo.data;
public class TaskEntityId {
private String partitionKey;
private String rowKey;
public TaskEntityId(String partitionKey, String rowKey) {
this.partitionKey = partitionKey;
this.rowKey = rowKey;
}
public TaskEntityId(String id) {
final int cutIndex = 3;
this.part... |
package com.volmit.react.util;
import java.util.List;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.json.JSONObject;
import primal.lang.collection.GList;
import primal.lang.collection.GMap;
public class DataCluster
{
private GMap<String, ... |
package com.external.plugins;
import com.appsmith.external.models.ActionConfiguration;
import com.appsmith.external.models.ActionExecutionResult;
import com.appsmith.external.models.DatasourceConfiguration;
import com.appsmith.external.models.DatasourceTestResult;
import com.appsmith.external.plugins.BasePlugin;
impor... |
/*
* Copyright 2002-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* 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 cn.zhaotianen.oa.domain;
import java.util.HashSet;
import java.util.Set;
/**
* 权限
*
* @author ZTE
*
*/
public class Privilege implements java.io.Serializable {
private Long id;
private String url;//跳转路径
private String name; // 权限名称
private Set<Role> roles = new HashSet<Role>();
private Privilege p... |
package ru.bpmink.util;
import org.apache.commons.lang3.builder.ToStringStyle;
import ru.bpmink.bpm.model.common.Describable;
import java.util.Collection;
import static ru.bpmink.util.Constants.CLOSE_BRACKET;
import static ru.bpmink.util.Constants.EQUALS;
import static ru.bpmink.util.Constants.LINE_SEPARATOR;
impor... |
package org.janelia.jacs2.cdi.qualifier;
import javax.inject.Qualifier;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Qualifier
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementTyp... |
/*
* This file is part of JKnobMan.
* Copyright (c) 2012-2020 g200kg
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file or at https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
import java.awt.AlphaComposite;
import java.awt.Graphics2D;... |
/*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* Copyright 2000-2002,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except i... |
/*
* Copyright (c) 2011-2017, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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://www... |
package com.aliyun.ros.cdk.maxcompute;
/**
* Properties for defining a `ALIYUN::MaxCompute::Table`.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.53.0 (build c071d26)", date = "2022-02-11T01:44:08.120Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.maxcompute.$Module.class, fqn = "@alicloud/ros-cdk... |
/* Copyright (c) 2009 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... |
package com.zmsoft.controller.doc;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.spri... |
package wniemiec.api.nshopping.services;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mail.MailSender;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
import... |
package com.baeldung.initializationguide;
import org.junit.Before;
import org.junit.Test;
import static org.assertj.core.api.Assertions.*;
import java.lang.reflect.InvocationTargetException;
public class UserUnitTest {
@Test
public void givenUserInstance_whenIntializedWithNew_thenInstanceIsNotNull() {
... |
package apoc.export.util;
import apoc.export.cypher.formatter.CypherFormat;
import java.util.Collections;
import java.util.Map;
import static apoc.util.Util.toBoolean;
/**
* @author mh
* @since 19.01.14
*/
public class ExportConfig {
public static final char QUOTECHAR = '"';
public static final int DEFAU... |
package io.muun.common.crypto;
import io.muun.common.utils.Encodings;
import com.google.common.primitives.Bytes;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class ChallengePublicKeyTest {
private final byte[] serializedPublicKey = Encodings.hexToBytes("03959fef3d0a83... |
/*
* 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 ... |
package scalaExec.gui.MathDialogs;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.s... |
package com.tencent.bk.job.common.iam.service;
import com.tencent.bk.sdk.iam.constants.CommonResponseCode;
import com.tencent.bk.sdk.iam.dto.callback.request.CallbackRequestDTO;
import com.tencent.bk.sdk.iam.dto.callback.response.CallbackBaseResponseDTO;
import com.tencent.bk.sdk.iam.dto.callback.response.ListAttribut... |
package com.selim.springboot.service.entityservice;
import com.selim.springboot.converter.UserMapper;
import com.selim.springboot.dao.UserDao;
import com.selim.springboot.dto.UserDto;
import com.selim.springboot.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http... |
package iot.datageneretor.rangedsensor;
import datagenerator.SensorDataGenerator;
import datagenerator.rangedsensor.api.RangeValue;
import datagenerator.rangedsensor.iaqsensor.AirQualityLevel;
import datagenerator.rangedsensor.iaqsensor.IAQDataGenerator;
import iot.Characteristic;
import iot.Environment;
import org.ju... |
package com.github.pires.obdserver.rest;
import com.github.pires.obdserver.model.ObdReading;
import com.github.pires.obdserver.service.ReadingService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
imp... |
package com.app.infideap.stylishwidget.view;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Typeface;
import android.os.Build;
import android.support.v7.widget.AppCompatEditText;
import android.util.AttributeSet;
/**
* Created by Zariman on 13/4/2016.
*/
public class... |
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package org.apache.hadoop.mapreduce.jobhistory;
@SuppressWarnings("all")
@org.apache.avro.specific.AvroGenerated
public class ReduceAttemptFinished extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
pu... |
package inesc_id.pt.motivandroid.myTrips.adapters.splitMergeDeleteTrips;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.Calenda... |
package com.blazemeter.jmeter.xmpp;
import junit.framework.TestCase;
import org.jivesoftware.smack.SmackException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
public class JMeterXMPPConnectionTest extends TestCase {
public void testTestStarted() throws NoSuchAlgor... |
/*
* 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 © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.personnel.dao;
import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jees... |
package org.pac4j.kerberos.credentials.authenticator;
import org.pac4j.core.context.WebContext;
import org.pac4j.core.context.session.SessionStore;
import org.pac4j.core.credentials.Credentials;
import org.pac4j.core.credentials.authenticator.Authenticator;
import org.pac4j.core.profile.creator.AuthenticatorProfileCre... |
/*
* Copyright (C) 2021 Erwin Müller <erwin@muellerpublic.de>
* Released as open-source under the Apache License, Version 2.0.
*
* ****************************************************************************
* ANL-OpenCL :: JME3 - App - Model
* *********************************************************************... |
/*
* 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... |
package net.glowstone;
import static com.google.common.base.Preconditions.checkNotNull;
import com.flowpowered.network.Message;
import com.google.common.collect.Iterators;
import com.jogamp.opencl.CLDevice;
import com.jogamp.opencl.CLPlatform;
import io.netty.channel.epoll.Epoll;
import java.awt.image.BufferedImage;
... |
/**
* 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"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.