text stringlengths 7 1.01M |
|---|
package model.state;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import model.exceptions.LevelExistsException;
import model.exceptions.LevelNotFoundException;
/**
* This class is a collection of Levels used to string together gameplay in
* order to make a cohesive user ex... |
/*
* MIT License
*
* Copyright 2020 klikli-dev
*
* 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, modify, merg... |
package org.act.tstream.batch;
import java.io.Serializable;
import org.act.tstream.batch.ICommitter;
import backtype.storm.topology.IBasicBolt;
public interface IBatchSpout extends IBasicBolt, ICommitter, Serializable {
/**
* input's filed 0 is BatchId
*
* execute only receive trigger message
... |
/*
* Copyright 2019-present HiveMQ GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
/*
* Copyright 2010 JBoss 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 i... |
/*
* 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... |
package com.aman.solid.ide;
public class IDE {
private Editor editor;
public IDE(Editor editor) {
this.editor = editor;
}
public void editCode() {
this.editor.edit();
}
} |
package org.apoorv.ap.cs2020practice;
public class Square {
private boolean isBlack;
private int num;
public Square(boolean isBlack, int num) {
this.isBlack = isBlack;
this.num = num;
}
}
|
/*
* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
*
* 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 ... |
package com.hjhrq1991.car.Util;
import android.content.Context;
import android.support.annotation.Nullable;
import com.amap.api.location.AMapLocation;
import com.amap.api.location.AMapLocationClient;
import com.amap.api.location.AMapLocationClientOption;
/**
* @author hjhrq1991 created at 3/28/16 17 51.
* @Package... |
/*
* Copyright 2016 Luca Martino.
*
* 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 copyFile of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
package com.works.repositories;
import com.works.entities.constant.pets.Pet;
import com.works.entities.projections.AllCustomerPetInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
public interface PetRepository ext... |
package com.min.someapp.dao.model;
public class LoggingEvent {
private Long eventId;
private Long timestmp;
private String loggerName;
private String levelString;
private String threadName;
private Short referenceFlag;
private String arg0;
private String arg1;
... |
package org.apache.hawq.pxf.service.rest;
/*
* 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 Li... |
package uk.gov.ons.ctp.integration.caseapiclient.caseservice.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
/** This class holds data for a newly allocated questionnaire ID. */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class SingleUseQuestionnaireIdDTO {
pri... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
package cn.ffast.web.controller.work;
import cn.ffast.core.annotations.CrudConfig;
import cn.ffast.core.annotations.Logined;
import cn.ffast.core.support.BaseCrudController;
import cn.ffast.web.entity.work.Backlog;
import cn.ffast.web.service.work.IBacklogService;
import org.slf4j.Logger;
import org.slf4j.LoggerFacto... |
/**
* Copyright 2013 Canada Health Infoway, 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 applicab... |
package com.rnb.demo.server.config.aspect;
import com.rnb.newbase.aspect.AbstractGenerateResponseAdvice;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import javax.annotation.Resource;
import java.util.List;
@RestControllerAdvice
public class GenerateResponseAdvice extends AbstractGenerateResp... |
/*
* Copyright 2014 - 2021 Blazebit.
*
* 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 tanks.gui.screen;
import tanks.Drawing;
import tanks.Game;
import tanks.gui.Button;
public class ScreenOutOfMemory extends Screen
{
public ScreenOutOfMemory()
{
}
Button exit = new Button(Drawing.drawing.interfaceSizeX / 2, Drawing.drawing.interfaceSizeY - 100, this.objWidth, this.objHeight... |
package com.softicar.platform.core.module.localization;
import com.softicar.platform.core.module.CoreI18n;
import com.softicar.platform.core.module.CoreModule;
import com.softicar.platform.core.module.CorePermissions;
import com.softicar.platform.core.module.module.instance.system.SystemModuleInstance;
import com.soft... |
/**
* Copyright 2009-2018 PrimeTek.
*
* 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 ... |
/***************************************************************************
* (C) Copyright 2003-2007 - Marauroa *
***************************************************************************
***************************************************************************
* ... |
/**
*
*/
package adn.model.factory.dictionary.production.authentication;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import adn.helpers.Utils;
import adn.model.Generic;
import adn.model.entities.Personnel;
import adn.model.e... |
package org.prebid.server.privacy.gdpr.tcfstrategies.purpose.typestrategies;
import com.iabtcf.decoder.TCString;
import com.iabtcf.utils.IntIterable;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnit;
import org.mockito.junit.MockitoRu... |
package com.sensiblemetrics.api.alpenidos.pattern.converter.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* User class
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
private String firstName;
private String lastName;
private boolea... |
package bl4ckscor3.mod.snowundertrees;
import java.util.List;
import me.shedaniel.autoconfig.ConfigData;
import me.shedaniel.autoconfig.annotation.Config;
import com.google.common.collect.Lists;
import me.shedaniel.cloth.clothconfig.shadowed.blue.endless.jankson.Comment;
@Config(name = SnowUnderTrees.MODID)
public ... |
/*
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
package tree;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.HashSet;
import java.util.Set;
/**
* You have a graph of n nodes labeled from 0 to n - 1. You are given an integer n and a list of edges where edges[i] = [ai, bi] indicates that there is an undirected edge between nodes ai and bi in ... |
/*
* Copyright 2014-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... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
/*
Copyright (c) 2011+, HL7, Inc
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
package org.cloudfoundry.credhub;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
impor... |
package com.me.sonarqubeexample;
import org.springframework.util.MimeType;
import org.springframework.web.bind.annotation.*;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;
@RestController
public class HelloController {
p... |
package de.relluem94.minecraft.server.spigot.essentials.commands;
import static de.relluem94.minecraft.server.spigot.essentials.RelluEssentials.dBH;
import static de.relluem94.minecraft.server.spigot.essentials.RelluEssentials.locationEntryList;
import static de.relluem94.minecraft.server.spigot.essentials.RelluEssent... |
/*
* Copyright (C) 2012 The CyanogenMod Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
package net.fabricmc.angercraft.mixin;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.ai.goal.AvoidSunlightGoal;
import net.minecraft.entity.ai.goal.EscapeSunlightGoal;
import net.minecraft.entity.mob.CreeperEntity;
import net.minecraft.entity.mob.HostileEntity;
import net.minecraft.world.World;
i... |
/*
* Copyright 2016 DTCC, Fujitsu Australia Software Technology, IBM - 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/LICEN... |
package net.haesleinhuepf.clij2.assistant.utilities;
import ij.IJ;
import ij.IJEventListener;
import ij.ImageJ;
import ij.ImagePlus;
import ij.gui.Toolbar;
import ij.gui.YesNoCancelDialog;
import ij.plugin.tool.PlugInTool;
import net.haesleinhuepf.clij2.assistant.AssistantGUIStartingPoint;
import net.haesleinhuepf.cli... |
package com.dyn.mall.product.controller;
import com.dyn.mall.common.utils.PageUtils;
import com.dyn.mall.common.utils.R;
import com.dyn.mall.product.entity.CommentReplayEntity;
import com.dyn.mall.product.service.CommentReplayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfram... |
/**
* Copyright 2020 sakaguchi<uqw@outlook.jp>, https://github.com/sakaguchi3/
*
* 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... |
package me.roybailey.data.schema;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jack... |
/*
* Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 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.apach... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
package com.alibaba.csp.switchcenter.example;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurren... |
package mage.sets;
import mage.cards.ExpansionSet;
import mage.constants.Rarity;
import mage.constants.SetType;
/**
* https://scryfall.com/sets/itp
*/
public class IntroductoryTwoPlayerSet extends ExpansionSet {
private static final IntroductoryTwoPlayerSet instance = new IntroductoryTwoPlayerSet();
publi... |
package net.minecraft.block;
import java.util.Random;
import javax.annotation.Nullable;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyDirection;
import net.minecraft.block.properties.PropertyInteger;
import net.minecraft.bl... |
/*
* #%L
* BroadleafCommerce Framework
* %%
* Copyright (C) 2009 - 2013 Broadleaf Commerce
* %%
* 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/licens... |
package org.python.exceptions;
public class ConnectionError extends org.python.exceptions.OSError {
public ConnectionError() {
super();
}
public ConnectionError(String msg) {
super(msg);
}
public ConnectionError(org.python.Object [] args, java.util.Map<java.lang.String, org.python... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.example.reactnativesoftmeshbutton;
import android.content.Context;
import com.facebook.flipper.android.AndroidFlipp... |
/*
*
* Copyright 2017 TiKV Project Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
package gov.nara.nwts.ftapp.filter;
/**
* Filter for open office spreadsheet files OR Comma separated files
* @author TBrady
*
*/
public class OdsCsvFilter extends DefaultFileTestFilter {
public String getSuffix() {
return ".*\\.(ods|csv)$";
}
public boolean isReSuffix() {
return true;
}
... |
/* Copyright (c) 2010, Carl Burch. License information is located in the
* logisim_src.Main source code and at www.cburch.com/logisim/. */
package logisim_src.std.plexers;
import java.awt.Color;
import java.awt.Graphics;
import logisim_src.LogisimVersion;
import logisim_src.data.Attribute;
import logisim_src.data.A... |
package tk.martijn_heil.nincore.api;
import com.google.common.base.Preconditions;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;
import tk.martijn_heil.nincore.api.logging.ModuleLogger;
/**
* A module belonging to a {@link Core}
*
* @param <T> The {@link Core} this belongs to.
*/
public abstract... |
package org.jabref.logic.formatter.casechanger;
import java.util.stream.Stream;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests in a... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package nl.xguard.flic2.service;
import android.annotation.SuppressLint;
import android.app.Service;
import android.content.Broadc... |
/*
* 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 data.sync.mq.model;
import java.util.List;
import java.util.Map;
/**
* Data set
*
* @author caowm 2020-09-20
*
*/
public class MQDataSet {
// 表名
private String dataName;
// 主键字段名
private String pkName;
// 更新模式
private String syncMode;
// 数据行数
private int rowCount;
// 元数据
... |
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
System.out.print("enter first float ");
float a=(float)sc.nextFloat();
System.out.print("enter second float ");
float b=(float)sc.nextFloat();
float product =0.0f;
product=a*b;
Sys... |
package com.interface21.transaction.support;
import com.interface21.transaction.TransactionStatus;
/**
* Callback interface for transactional code. To be used with TransactionTemplate's
* execute method, assumably often as anonymous class within a method implementation.
*
* <p>Typically used to gather var... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/*
* Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package kroki.mockup.model.components;
import java.awt.Dimension;
import kroki.mockup.model.Component;
import kroki.mockup.utils.KrokiTextMeasurer;
import kroki.mockup.view.painters.components.NullComponentPainter;
/**... |
/*
* Copyright © 2017-2018 WireGuard LLC. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.wireguard.android.util;
import android.os.Handler;
import java.util.concurrent.Executor;
import java9.util.concurrent.CompletableFuture;
import java9.util.concurrent.CompletionStage;
/**
* Helper... |
package org.ovirt.engine.ui.webadmin.section.main.presenter.tab.datacenter;
import org.ovirt.engine.core.common.businessentities.VDSGroup;
import org.ovirt.engine.core.common.businessentities.StoragePool;
import org.ovirt.engine.ui.common.presenter.AbstractSubTabPresenter;
import org.ovirt.engine.ui.common.uicommon.mo... |
/*
* Created on Jan 14, 2011
*
* 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 writ... |
package com.hades.example.java.refactoring.after.c7.c7_1_move_method;
import org.junit.Assert;
import org.junit.Test;
public class AccountTest {
@Test
public void bankCharge() {
Account account = new Account(new AccountType(), 10);
Assert.assertEquals(17.05D, account.bankCharge(), 17.05D);
... |
package private_folder.Shape0;
import java.util.ArrayList;
class Shape {
private double volume;
public Shape(double volume){
this.volume = volume;
}
public double getVolume(){
return volume;
}
}
class SolidOfRevolution extends Shape{
private double radius;
public SolidO... |
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan;
import javax.annotation.*;
import java.nio.*;
import org.lwjgl.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwj... |
package com.personalproject.core.models;
import com.personalproject.core.models.MenuNav;
import com.personalproject.core.models.MenuNavImpl;
import io.wcm.testing.mock.aem.junit5.AemContext;
import io.wcm.testing.mock.aem.junit5.AemContextExtension;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.... |
/*
* Copyright 2000-2016 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 games.aternos.odessa.engine.subcommand;
import org.bukkit.command.ConsoleCommandSender;
/**
* Used for console only subcommands
*/
abstract public class ConsoleSubCommand extends SubCommand {
public ConsoleSubCommand(String subCmd) {
super(subCmd);
}
abstract public void run(String[] a... |
package com.adrenalinici.adrenaline.server.network;
import com.adrenalinici.adrenaline.common.model.PlayerColor;
import com.adrenalinici.adrenaline.common.model.event.ModelEvent;
import com.adrenalinici.adrenaline.common.network.inbox.ViewEventMessage;
import com.adrenalinici.adrenaline.common.network.outbox.ModelEven... |
package ee.taltech.iti0202.gui.game.desktop.entities.weapons;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.World;
import ee.taltech.iti0202.gui.game.desktop.game_handlers.scene.canvas.Draw;
public class M4 extends Weapon {
pu... |
/*
* Copyright (C) 2012, Christian Halstrick <christian.halstrick@sap.com>
* Copyright (C) 2011, Shawn O. Pearce <spearce@spearce.org>
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
* under the terms of the Eclipse Distributio... |
/*
* Copyright 2013 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 applica... |
package ch.zhaw.init.orwell_a.common;
import android.content.Context;
import java.io.File;
import java.nio.file.Files;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
public class Utils {
/**
* Creates a random file name.
* @return File-name ... |
package com.jashmore.documentation.annotations;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.Ele... |
package r4j.extra;
import r4j.ruby.Benchmark;
import java.util.concurrent.Callable;
public class Retry {
private int maxTries = 5;
private int delayMs = 200;
public Retry() {
}
public static void sleep(int ms) {
try {
Thread.sleep(ms);
} catch (InterruptedException e... |
/*
* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
package com.richstonedt.fcjx.dsp.ticket.pojo.dto;
import lombok.*;
import java.util.List;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class PaasTagTicketRequestDTO {
private List<String> tags;
}
|
/*
* Kubernetes
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v1.8.1
*
*
* 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 ... |
package com.thisoft.web.core.config;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conf... |
/*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package phsrm.original;
import phsrm.common.*;
public class LogExtremeValueMaxSRM extends CommonSRM {
double scale;
double shape;
// constructor
public LogExtremeValueMaxSRM() {
scale = 0.0;
shape = 1.0;
emsrm = new EMLogExtremeValueMaxSRM(this);
}
public String getModelString() {
return "Log Extreme... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.components.browser_ui.notifications;
import android.app.Notification;
import androidx.annotation.Nullable;
/**
* A wrapper class ... |
//,temp,TestFileBasedCopyListing.java,105,123,temp,TestIntegration.java,465,487
//,3
public class xxx {
@Test(timeout=100000)
public void testUpdateGlobTargetMissingMultiLevel() {
try {
Path listFile = new Path("target/tmp1/listing").makeQualified(fs.getUri(),
fs.getWorkingDirectory());
... |
package application.controller;
import application.model.ControlledScene;
import application.model.annotation.CustomAnnotation;
import application.model.annotation.DataAnnotation;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
/**
* Die Klasse dient als Controller ... |
package com.itheima.datasource;
import com.itheima.util.DBUtils;
import javax.sql.DataSource;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.util.Collections;
import java.util.LinkedList;
import java.util.logging.Logge... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/webrisk/v1beta1/webrisk.proto
package com.google.webrisk.v1beta1;
/**
* Protobuf type {@code google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse}
*/
public final class ComputeThreatListDiffResponse extends
com.google.prot... |
package pers.haoming.bigtalkdesignpattern.observer;
/**
* 观察者模式客户端
*
* @author hm
* @version 1.0
* @date 2021/3/25
*/
public class Observer {
public static void main(String[] args) {
Boss boss = new Boss();
StockObserver stockObserver = new StockObserver("张三", boss);
NBAObserver nba... |
/*
* Copyright 2017 Apereo
*
* 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... |
/*
* Written by Mike Wallace (mfwallace at gmail.com). Available
* on the web site http://mfwallace.googlepages.com/.
*
* Copyright (c) 2006 Mike Wallace.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Sof... |
package org.jzy3d.demos.drawing.vbo.barmodel.color;
import org.jzy3d.colors.IColorMappable;
public class MinMaxColormappable implements IColorMappable{
protected double min;
protected double max;
public MinMaxColormappable(double min, double max) {
this.min = min;
this.max = max;
... |
package com.taopao.testjni;
/**
* @Author:淘跑
* @Date: 2018/11/15 21:09
* @Use:
*/
public class MyJni {
static {
System.loadLibrary("hello");
}
public native String hello_FromC();
}
|
/*
* MIT License
*
* Copyright (c) 2021 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... |
package org.tessell.widgets;
import java.util.ArrayList;
import java.util.List;
public class StubTextList extends StubWidget implements IsTextList {
private final List<String> list = new ArrayList<String>();
private boolean enabled = true;
private String childTag;
private String childStyleName;
@Override
... |
package de.lathspell.test.jsf.beans;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import static org.springframework.web.context.WebApplicationContext.SCOPE_REQUEST;
@Component
@Scope(SCOPE_REQUEST)
@Slf4j
public class AdderWebR... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.