text stringlengths 7 995k |
|---|
package com.itech4kids.skyblock;
// Created in a text editor, imports aren't there, bugs are expected.
public abstract class SandboxModule {
private final String name;
public SandboxModule(String name) {
this.name = name;
}
public final String getModuleName() {
return name;
}
... |
/*
* Licensed to Elastic Search and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Elastic Search licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you m... |
package org.kyojo.schemaorg.m3n3.healthLifesci.impl;
import java.util.ArrayList;
import java.util.List;
import org.kyojo.schemaorg.SimpleJsonBuilder;
import org.kyojo.schemaorg.m3n3.core.Container.AdditionalType;
import org.kyojo.schemaorg.m3n3.core.Container.AlternateName;
import org.kyojo.schemaorg.m3n3.core.Contai... |
package aima.core.learning.reinforcement.agent;
import aima.core.learning.reinforcement.PerceptStateReward;
import aima.core.util.FrequencyCounter;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
/**
* Artificial Intelligence A Modern Approach (3rd Edition): page 837.<br>
* <br>
*
* <p... |
package ru.job4j.chess;
import org.junit.Assert;
import static org.junit.Assert.*;
import org.junit.Ignore;
import org.junit.Test;
import ru.job4j.chess.firuges.Cell;
import ru.job4j.chess.firuges.Figure;
import ru.job4j.chess.firuges.black.BishopBlack;
import ru.job4j.chess.firuges.black.PawnBlack;
public class Lo... |
package org.aieonf.commons.ui.controller;
public interface IEditListener<T extends Object> {
public void notifyInputEdited( EditEvent<T> event );
} |
/*
* Copyright 2014 8Kdata Technology
*
* 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... |
/*
* 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")... |
/*
* 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.cardealer.models.view.sale;
public class ReviewViewModel {
private Double discount;
private String carMakeModel;
private Long carId;
private String customer;
private boolean isYoungDriver;
private Double carPrice;
private Double finalCarPrice;
public ReviewViewModel(... |
package cz.muni.fi.spnp.gui.components.diagram.graph.elements.transition.viewmodels.immediate;
import cz.muni.fi.spnp.gui.components.diagram.graph.elements.place.PlaceViewModel;
import cz.muni.fi.spnp.gui.components.diagram.graph.elements.transition.viewmodels.TransitionViewModel;
import cz.muni.fi.spnp.gui.components... |
/*
* Copyright (C) 2010-2018 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, ... |
// Copyright (C) 2006-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 agr... |
/*
* 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 visao;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import visao.interna.Cadas... |
package org.apache.ddlutils.task;
/*
* 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, V... |
/*
* Copyright 2012 castLabs, Berlin
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
package com.demo.algorithm.array;
/**
* Given a list of sorted characters letters containing only lowercase letters,
* and given a target letter target, find the smallest element in the list that
* is larger than the given target.
* Letters also wrap around. For example, if the target is target = 'z'
* and l... |
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
public class BasicActionHandler extends JFrame {
public BasicActionHandler() {
JButton jb = new JButton("test");
jb.addActionListener(new ActionListener() {
public void actionPerformed... |
package com.etheller.warsmash.parsers.fdf.frames;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.GlyphLayout;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.viewport.Viewport;
import com.etheller.warsmash.parsers.fdf.GameUI;
import com.etheller.wa... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
package com.octoperf.kraken.parser.gatling.log.spring.rule;
import com.octoperf.kraken.parser.gatling.log.spring.context.LogParserState;
import com.octoperf.kraken.parser.gatling.log.spring.context.LogParserSubState;
import com.octoperf.kraken.parser.gatling.log.spring.context.ParserContext;
import org.springframework... |
/*
* Copyright 2018 John Grosh (jagrosh).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
package com.github.dbmdz.flusswerk.integration;
import com.github.dbmdz.flusswerk.framework.model.Message;
import java.util.function.Function;
/**
* Adapter class so that tests can inject test logic while we still can use Spring Test Autowiring
* setup.
*/
public class ProcessorAdapter<M extends Message> implement... |
/*
* 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 (c) 2014, Cloudera and Intel, Inc. All Rights Reserved.
*
* Cloudera, Inc. 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/lic... |
/**
* Copyright 2008 - 2015 The Loon Game Engine 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 appl... |
/*
* Copyright (c) 2017-2022 Software Architecture Group, Hasso Plattner Institute
* Copyright (c) 2021-2022 Oracle and/or its affiliates
*
* Licensed under the MIT License.
*/
package de.hpi.swa.trufflesqueak.tools;
import org.graalvm.polyglot.Context;
import com.oracle.truffle.api.CompilerDirectives.TruffleBou... |
package com.example.courseapi.model;
import javax.persistence.*;
import java.time.LocalDateTime;
@Entity
@Table(name="[relation]")
public class Relations {
@Id
@GeneratedValue(strategy= GenerationType.AUTO)
private Long relationId;
private LocalDateTime startTime;
private LocalDateTime endTime;... |
package io.fabric8.kubernetes.api.model.extensions;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
impo... |
/*
* 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... |
package org.dasein.cloud.aws.platform.support.model.options;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.dasein.cloud.platform.suppo... |
package com.spring.boot.udp.item.constants;
/***************************************
* @auther: Radeon
* @Date: 2019/3/18 19:47
* @Description:
***************************************/
public class UDPConstants {
// 公用头部
public static byte[] HEADER = new byte[]{7, 7, 7, 7, 7, 7, 7, 7};
// 服务器固化服务端口
... |
/*
* Copyright 2018-present, Nike, Inc.
* All rights reserved.
*
* This source code is licensed under the Apache-2.0 license found in
* the LICENSE file in the root directory of this source tree.
*
*/
package com.nike.epc.model.gsrn;
import static com.nike.epc.util.Validation.notNullOrEmpty;
/*
* From the sta... |
/*
* Copyright (c) 2022 The Neptune Project
*
* Licensed under the Apache License, version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
package com.ardurasolutions.safekiddo.launcher;
import java.io.IOException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import android.annotation.SuppressLint;
import android.app.WallpaperManager;
import android.graphics.Bitmap;
import androi... |
/*
* StacksCodeTag.java
* Copyright © 1993-2018, The Avail Foundation, LLC.
* 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 cz.jiripinkas.jba.controller;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingRe... |
package org.springframework.context.support;
import java.util.LinkedHashSet;
import java.util.Set;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;
import org.springframework.util.ObjectUtils;
/**
* Abstract base class for {@code MessageSource} implementations based on
* resource b... |
/*
* Copyright 2012, Moshe Waisberg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
package com.simple.modelos.items.powerUps;
import android.content.Context;
import com.simple.GameView;
import com.simple.R;
import com.simple.gestores.CargadorGraficos;
import com.simple.modelos.Modelo;
import com.simple.modelos.items.Item;
import com.simple.modelos.naves.AbstractNave;
import com.simple.modelos.naves... |
/**
* MIT License
*
* Copyright (c) 2010 - 2020 The OSHI Project Contributors: https://github.com/oshi/oshi/graphs/contributors
*
* 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 withou... |
package com.blink.jtblc.core.coretypes;
import java.util.ArrayList;
import org.json.JSONArray;
import com.blink.jtblc.core.coretypes.hash.Hash256;
import com.blink.jtblc.core.fields.Field;
import com.blink.jtblc.core.fields.Type;
import com.blink.jtblc.core.fields.Vector256Field;
import com.blink.jtblc.core.serializ... |
/*
* BioJava development code
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. If you do not have a copy,
* see:
*
* http://www.gnu.org/copyleft/lesser.html
*
* Copyright for t... |
package com.mrmanolo.springactuatorhealthgui;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringActuatorHealthGuiApplication {
public static void main(String[] args) {
SpringApplication.run(SpringActuat... |
/**
* Copyright © 2013-2021 The OpenNTF Domino API 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 appl... |
package cgeo.geocaching.models;
import cgeo.geocaching.enumerations.WaypointType;
import cgeo.geocaching.location.Geopoint;
import cgeo.geocaching.location.GeopointFormatter;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import org.junit.Test;
impor... |
package p;
interface B {
void foo();
} |
//@@author e0031374
package tagline.logic.parser.group;
import static tagline.logic.parser.group.GroupCliSyntax.GROUP_COMMAND_MISSING_GROUP_PROMPT_STRING;
import static tagline.logic.parser.group.GroupCliSyntax.PREFIX_CONTACTID;
import static tagline.logic.parser.group.GroupCliSyntax.PREFIX_GROUPDESCRIPTION;
import j... |
package nez.expr;
import nez.SourceContext;
import nez.ast.SourcePosition;
import nez.util.UList;
public class ByteChar extends Terminal {
public int byteChar;
ByteChar(SourcePosition s, int ch) {
super(s);
this.byteChar = ch;
}
@Override
public String getPredicate() {
return "byte " + byteChar;
}
@Overr... |
package com.bolingcavalry.service.impl;
import com.bolingcavalry.interceptor.define.SendMessage;
import com.bolingcavalry.service.SayHello;
import io.quarkus.logging.Log;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
/**
* @author will
* @email zq2599@gmail.com
* @date 2022/5/2 07:... |
package abstract_Class;
public class App {
public static void main(String[] args) {
// 추상 클래스
// GameObject obs = new GameObject(); // 객체를 만들 수 없다.
GameObject[] objs = { new Player(), new Monster() };
for (GameObject ob : objs) {
System.out.println(ob);
ob.describe(); // 구현된 추상 메소드
}
}
} |
package com.elseytd.theaurorian.Entities.Passive;
import net.minecraft.client.model.ModelQuadruped;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.... |
package ru.siksmfp.serialization.harness.serializer.impl;
import ru.siksmfp.serialization.harness.converter.impl.CoflerConverter;
import ru.siksmfp.serialization.harness.model.standart.User;
import ru.siksmfp.serialization.harness.serializer.api.Serializer;
public class CoflerSerializer implements Serializer<User> {
... |
/*******************************************************************************
* Copyright (c) 2011 Subgraph.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* htt... |
// Copyright (c) 2003-2013, Jodd Team (jodd.org). All Rights Reserved.
package jodd.db.oom.tst;
public class Girl {
public Girl() {
}
public Girl(int id, String name, String speciality) {
this.id = id;
this.name = name;
this.speciality = speciality;
}
public String speciality;
public int id;
public St... |
/*
* Copyright 2002-2017 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... |
package ca.uhn.fhir.jpa.sched;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
import javax.annotation.PostConstruct;
public class QuartzTableSeeder {
@Autowired
private LocalContainerEntityManagerFactoryBean myEntityManager... |
package com.fanlehai.java.container;
import java.util.LinkedHashMap;
import java.util.Map;
public class LRUCache<K, V> extends LinkedHashMap<K, V> {
private int cacheSize;
public LRUCache(int cacheSize) {
super(16, (float) 0.75, true);// 这里的参数true表示LinkedHashMap以访问顺序排序,false表示以插入顺序排序
this.cacheSize = cacheSize... |
/**
* Copyright (c) 2007-2014 Kaazing Corporation. All rights reserved.
*
* 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 fil... |
/*
* 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 vectorwing.farmersdelight.client.gui;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.systems.RenderSystem;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.AbstractGui;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.FoodStats;
import ne... |
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
/**
* Solution to TUENTI Challenge 9 - 0-1 Immiscible numbers
* @author Santiago Gil Begué.
*/
public class Reto9 {
/**
* @param args Program needs one argument: the file which
* provides all the cases to solve.
*
* @throws ... |
/*
* 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 net.silentchaos512.gear.network;
import net.minecraft.network.PacketBuffer;
import net.minecraftforge.fml.network.NetworkEvent;
import net.silentchaos512.gear.SilentGear;
import net.silentchaos512.gear.command.MaterialsCommand;
import net.silentchaos512.gear.command.TraitsCommand;
import java.util.function.Su... |
package com.amyliascarlet.jsontest.bvt.jdk8;
import java.time.LocalDateTime;
import org.junit.Assert;
import com.amyliascarlet.lib.json.JSON;
import junit.framework.TestCase;
public class LocalDateTimeTest2 extends TestCase {
public void test_for_issue() throws Exception {
VO vo = JSON.parseObject("{\... |
/* $Id$
*****************************************************************************
* Copyright (c) 2009 Contributors - see below
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and i... |
package com.mentalab;
import com.mentalab.exception.InvalidDataException;
import org.junit.Test;
/**
* 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 UnitTestMentalabCodec {
@Test(exp... |
package com.dgex.offspring.application.handlers;
import org.eclipse.e4.core.di.annotations.CanExecute;
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.ui.di.UISynchronize;
import org.eclipse.e4.ui.services.IStylingEngine;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.wid... |
// This entire file is part of my masterpiece.
// Jacob Warner
package back_end.model;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
import application.gui.interfaces.Observer;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.SimpleDoubleProperty;
... |
/*
* 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 oeg.easytvannotator.nlp;
import com.google.common.io.Files;
import eus.ixa.ixa.pipe.ml.utils.Flags;
import eus.ixa.ixa.pipe.pa... |
/*
* 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 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 ... |
package skadistats.clarity.wire.s2;
import com.google.protobuf.GeneratedMessage;
import skadistats.clarity.wire.ClassToKindMessageRegistry;
import skadistats.clarity.wire.KindToClassMessageRegistry;
import skadistats.clarity.wire.common.proto.DotaUserMessages;
import skadistats.clarity.wire.common.proto.NetMessages;
i... |
/*
* Copyright 2021 original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
package com.sharingcard.common.aspect;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.RequestCo... |
package xavier.xavierblogcms.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
impo... |
package edu.uiowa.cs.similarity;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public class CosineSimilarity implements SimilarityFunction {
@Override
public double similarityCalc(Map<String, Double> main, Map<String, Double> other) {
double num = 0.0;
double demU ... |
/*
* Copyright 2019 ViiSE.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
/**
* Copyright (c) 2013-2021 Nikita Koksharov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
package org.zstack.network.securitygroup;
import org.zstack.header.identity.rbac.RBACDescription;
public class RBACInfo implements RBACDescription {
@Override
public void permissions() {
permissionBuilder()
.name("security-group")
.normalAPIs("org.zstack.network.securit... |
package com.programmingfree.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import java.sql.Connection;
import java.sql.PreparedStatement;
import com.programmingfree.utility.DBUtility;
import com.programmingfree.model.Mesa;
imp... |
package vpc2vpc;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.services.ec2.model.AllocateAddressRequest;
import com.amazonaws.services.ec2.model.AllocateAddressResult;
import com.amazonaws.services.ec2.model.AssociateAddressRequest;
import com.amazonaws.services.ec2.model.AuthorizeSecurityGroupIngres... |
/*
* 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 converters;
import java.awt.image.BufferedImage;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputS... |
package com.jaminh.ws.example.endpoint;
import org.jdom2.Element;
import org.springframework.ws.server.endpoint.annotation.Endpoint;
import org.springframework.ws.server.endpoint.annotation.PayloadRoot;
import org.springframework.ws.server.endpoint.annotation.RequestPayload;
import org.springframework.ws.server.endpoi... |
/*
* Copyright 2002-2021 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... |
package br.com.acert.api.conversor.temperaturas.util.domain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.ToString;
@Getter
@ToString
@Builder
@AllArgsConstructor
public class ResourceNotFoundDetails {
private String titulo;
private int status;
private Strin... |
package delight.nashornsandbox;
import java.util.concurrent.Executors;
import javax.script.ScriptException;
import org.junit.Assert;
import org.junit.Test;
import delight.nashornsandbox.exceptions.ScriptCPUAbuseException;
@SuppressWarnings("all")
public class TestManyEvalsAndInjections {
@Test
public void test()... |
package uk.gov.hmcts.reform.fpl.validation.validators;
import uk.gov.hmcts.reform.fpl.model.CaseData;
import uk.gov.hmcts.reform.fpl.validation.interfaces.IsValidHearingEdit;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import static org.apache.commons.lang3.Object... |
package tn.lipsic.babel;
/**
* The result of an operation.
*/
public class Status {
public static final Status OK = new Status("OK", "The operation completed successfully.");
public static final Status ERROR = new Status("ERROR", "The operation failed.");
public static final Status NOT_FOUND = new Status... |
/**
* Copyright 2014 the original author or authors
* <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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by ... |
package com.spaceman.tport.commands.tport.log;
import com.spaceman.tport.fancyMessage.colorTheme.ColorTheme;
import com.spaceman.tport.commandHander.ArgumentType;
import com.spaceman.tport.commandHander.EmptyCommand;
import com.spaceman.tport.commandHander.SubCommand;
import com.spaceman.tport.fancyMessage.TextCompone... |
/*
package legacyCodeBase;
import legacyCodeBase.excelReaderMapTable;
import org.junit.Test;
import java.io.IOException;
import java.util.*;
import static org.junit.Assert.assertTrue;
public class excelReaderMapTableTest {
//******Horizontal************************************************************************... |
package song;
import javafx.scene.Node;
import javafx.scene.text.Text;
public class UnimplementedStylePhase extends Phase{
public UnimplementedStylePhase(SongManager manager) {
super(manager);
}
@Override
public Type getType() {
return Type.UnimplementedStyle;
}
@Override
... |
package uk.gov.digital.ho.hocs.info.api.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import uk.gov.digital.ho.hocs.info.domain.model.CaseType;
@NoArgsConstructor
@AllArgsConstructor
@Getter
public class CaseTypeDto ... |
/*
* Copyright (C) 2010 A. Horn
*
* 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... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2011-2020 Broad Institute, Aiden Lab, Rice University, Baylor College of Medicine
*
* 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... |
package redis.clients.jedis.tests.benchmark;
import java.io.IOException;
import java.net.UnknownHostException;
import java.util.Calendar;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.Pipeline;
import redis.clients.jedis.tests.HostAndPortUtil;
public class Pipel... |
/**
*/
package edu.kit.ipd.sdq.kamp4aps4req.model.modificationmarks.provider;
import edu.kit.ipd.sdq.kamp.model.modificationmarks.provider.ChangePropagationStepItemProvider;
import edu.kit.ipd.sdq.kamp4aps4req.model.modificationmarks.APSReqModificationmarksFactory;
import edu.kit.ipd.sdq.kamp4aps4req.model.modifica... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.