text stringlengths 10 2.72M |
|---|
package models;
import javax.persistence.Entity;
import javax.persistence.Id;
import play.db.ebean.Model;
@Entity
public class Reference extends Model {
/**
*
*/
private static final long serialVersionUID = -2822969871869514078L;
@Id
public String id;
public String references;
}
|
package symap.contig;
import symap.marker.Marker;
import symap.marker.MarkerData;
import symap.marker.MarkerTrack;
import java.util.Collection;
import java.util.List;
import java.util.ArrayList;
import java.util.Vector;
import java.util.Iterator;
import java.util.Map;
import number.GenomicsNumber;
public class Marker... |
package com.example.springaop.myaop;
import java.lang.reflect.Proxy;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class MikeApplicationContext implements ApplicationContext {
// 支持高并发
private Map<String, Class<?>> beanDefinitionMap = new ConcurrentHashMap<>(256);
// 可以有多个... |
package com.jecarm.rpc.server;
/**
* Created by loagosad on 2018/8/19.
*/
public class HelloRpcServiceImpl implements HelloRpcService {
@Override
public String sayHello(String name) {
return "hello "+name+", this is a simple RPC service";
}
}
|
package com.project.springboot.entity;
import java.io.Serializable;
import javax.persistence.Column;
public class EmbededInvoiceBill implements Serializable{
@Column(name = "product_id",nullable = false)
private Integer productId;
@Column(name = "service_id",nullable = false)
private Integer serviceId;
@C... |
/******************************************************************************
* __ *
* <-----/@@\-----> *
* <-< < \\// > >-> *
... |
package exercises.chapter3.ex1;
import static net.mindview.util.Print.*;
/**
* @author Volodymyr Portianko
* @date.created 02.03.2016
*/
public class Exercise1 {
public static void main(String[] args) {
System.out.println("First line");
print("Second line");
}
}
|
package com.god.gl.vaccination.base;
import android.content.Context;
import com.zhy.adapter.recyclerview.CommonRecyclerRecyclerAdapter;
import java.util.List;
/**
* @author gl
* @date 2018/5/22
* @desc adapter基类
*/
public abstract class AdapterBase<T> extends CommonRecyclerRecyclerAdapter<T> {
protected Lis... |
/**
* MVC infrastructure for annotation-based handler method processing, building on the
* {@code org.springframework.web.method.annotation} package. Entry points are
* {@link org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping}
* and {@link org.springframework.web.servlet.mvc.method.... |
package controllers;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import javax.inject.Singleton;
import model.Report;
import play.libs.Json;
import play.mvc.Controller;
import play.mvc.Result;
/**
* Created by suesstnorma1 on 14.03.17.
*/
@Sing... |
package projecteuler;
public class Problem019
{
public static void main(String[] args)
{
int dayCounter; //mod 7 where: 0 = sunday, 1 = monday, 2 = tuesday, 3 = wednesday, 4 = thursday, 5 = friday, 6 = saturday.
int sundaysOnFirstOfTheMonthCounter = 0;//the number of Sundays that occurred on the first of the... |
package com.jiacaizichan.baselibrary.utils;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* 创建日期:2018/5/23 19:01
* @author lihao
* decs: 正则匹配工具类
*/
public class MatcherUtil {
public static final String PHONE = "^((13[0-9])|(19[0-9])|(14[0-9])|(16([0-9]))|(15([0-9]))|(17[0-9])|(18[0-9]))\... |
package com.finalyearproject.spring.web.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.finalyearproject.spring.web.dao.CommentDao;
import com.finalyearproject.spring.web.entity.Comment;
@Service("commentService")
public class CommentS... |
// MutationRateModel.java
//
// (c) 1999-2001 PAL Development Core Team
//
// This package may be distributed under the
// terms of the Lesser GNU General Public License (LGPL)
package net.maizegenetics.taxa.tree;
import net.maizegenetics.util.FormattedOutput;
import net.maizegenetics.stats.math.Orthogona... |
/*
* LcmsSeqRollupConditionServiceImpl.java 1.00 2011-09-05
*
* Copyright (c) 2011 ???? Co. All Rights Reserved.
*
* This software is the confidential and proprietary information
* of um2m. You shall not disclose such Confidential Information
* and shall use it only in accordance with the terms of the licen... |
package com.example.restfulwebservice.user;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UserRepository extends JpaRepository<User, Integer> {
}
// insert into user values(1001, sysdate(), 'eony1','asdf','111');
// in... |
package com.freehyun.book.springboot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
//@EnableJpaAuditing //따로분리 config/JpaConfig 선언
@SpringBootApplication //스프링 부트의 자동 설정,... |
package com.fb.util;
import java.math.BigDecimal;
import java.text.DecimalFormat;
public class NumUtils {
public static final String PATTERN = "0.00";
private static DecimalFormat df = new DecimalFormat(PATTERN);
public static Integer getNumInt(Double num) {
if(num!=null){
if(num==0){
return 0;
}
... |
package tw.org.iiijava;
public class zora31 {
public static void main(String[] args) {
int a=10, b=0;
int[] d={1,2,3,4};
try{
int c =a/b;
System.out.println(c);
System.out.println(d[4]);
}catch(ArithmeticException ae){//直系要將最小的放在最上面,才會被捕捉
System.out.println("haha");
}catch(Runt... |
package com.Hackerrank.algos.warmup;
import java.io.*;
import java.util.*;
public class DiagonalDifference {
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
Scanner sc=new Scanner(System.in);
int n=sc.next... |
package com.lesports.albatross.entity.community;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by jiangjianxiong on 16/6/15.
*/
public class Location {
@SerializedName("latitude")
@Expose
private double latitude;
@SerializedName("longi... |
package com.example.mvvmtest.data;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.example.mvvmtest.entity.Student;
import java.util.List;
/**
* @author hy
* @Date 2019/10/25 0025
**/
public class StudentsViewModel extends ViewModel {
private static StudentsViewMo... |
package vista;
import java.util.Hashtable;
import Juego.DragonAlgoBall;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.image.Image;
import modelo.ObjetoJuego;
import modelo.Posicion;
import modelo.Tablero;
import modelo.turnos.Turno;
public class CanvasT... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.webui.common.attributes;
import pl.edu.icm.unity.exceptions.IllegalAttributeValueException;
import pl.edu.icm.unity.server.utils.UnityMessageSource;
import pl.edu.icm... |
package hardware;
public interface HardwarePrimitiveActions {
/*
* Writes the given message to some form of output.
*/
public void writeToDisplay(String message);
/*
* Dispenses a given amount from a specified canister.
*/
public void dispense(int canisterNumber, int amount);
}
|
/*
* 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 com.davivienda.sara.dto;
import com.davivienda.utilidades.conversion.FormatoFecha;
/**
*
* @author jmcastel
*/
public clas... |
/**
* Sender
*/
package com.bs.bod;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import org.apache.commons.lang3.builder.ToStringBuilder;
import com.bs.bod.converter.ConfirmationCodeD... |
package exercicios.desafios.uri;
import java.util.Scanner;
public class Distancia1016 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = 60;
int Y = 90;
int tempo = sc.nextInt();
Y = tempo * 2;
System.out.println(Y... |
package com.gaoshin.entity;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.per... |
package com.justcode.hxl.viewutil.recycleview_util.layoutmanager.chipslayoutmanager.layouter;
import android.support.v7.widget.RecyclerView;
import com.justcode.hxl.viewutil.recycleview_util.layoutmanager.chipslayoutmanager.gravity.IRowStrategyFactory;
import com.justcode.hxl.viewutil.recycleview_util.layoutmanager.ch... |
package com.example.customcitydatabase;
/**
* 这个类从DBManager类获得数据库的实例,然后定义了从数据库中获取city_spell,city_area,city_province的方法
* 没有继承SQLiteOpenHelper,因为不需要创建新表
*/
import java.util.ArrayList;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
public class DBHelper... |
package com.pelephone_mobile.mypelephone.network.rest.pojos;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Gali.Issachar on 20/01/14.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class NormalLoginItem extends Pojo {
... |
package com.netcracker.DTO.mappers;
import com.netcracker.DTO.UserDto;
import com.netcracker.entities.User;
import org.springframework.stereotype.Component;
@Component
public class UserMapper extends AbstractMapper<User, UserDto> {
public UserMapper() {
super(User.class, UserDto.class);
}}
|
package com.example.hw4111219_v2;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.renderscript.ScriptGroup;
import android.view.Menu;
import android.view.MenuInflater;
impo... |
public class Solution {
private static int count = 0;
private static int threshold1;
private static int rows1;
private static int cols1;
public int movingCount(int threshold, int rows, int cols)
{
threshold1 = threshold;
rows1 = rows;
cols1 = cols;
// System.... |
package be.openclinic.finance;
import be.openclinic.common.OC_Object;
import be.openclinic.common.ObjectReference;
import be.mxs.common.util.db.MedwanQuery;
import be.mxs.common.util.system.Debug;
import be.mxs.common.util.system.ScreenHelper;
import java.util.Date;
import java.util.Vector;
import java.sql.Connection... |
package atividade;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Scanner;
/**
* @author André Luiz Dias de Oliveira
* Implementar um pequeno protocolo para coletar informações sobre a máquina remota (... |
/*
* © Copyright 2016 CERN. This software is distributed under the terms of the Apache License Version 2.0, copied
* verbatim in the file “COPYING“. In applying this licence, CERN does not waive the privileges and immunities granted
* to it by virtue of its status as an Intergovernmental Organization or submit itsel... |
package com.eintern.restclient.client;
import javax.ws.rs.core.MediaType;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.WebResource;
import com.sun.jersey.api.client.config.ClientConfig;
import com.sun.jersey.api.client.config.DefaultClientConfig;
public class ConvertClient {
static ... |
package assignments.niit.java.lab1;
public class Test1 {
public static void main(String[] args) {
System.out.println("What's wrong with this program?");
}
}
/*
* A single file cannot have 2 public classes
*/
/*public*/ class TestAnother1 {
public static void main(String[] args) {
Syst... |
package ai.cheap.petbot;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
// OpenCv
import org.opencv.android.BaseLoaderCallback;
import org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame;
import org.opencv.android.LoaderCallbackInterface;
import org.opencv.android.OpenCVLoader;
impo... |
package Problem_17626;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
static int cnt;
static int[] dp = new int[50001];
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
Arrays.fill(dp, 1000000);
for(int i = 1; i*i<=50... |
package com.Github;
import java.util.Scanner;
class Main{
public static void main(String[] args) {
int matrik [] [] = new int[10][10];
Scanner scan = new Scanner (System.in);
int x = scan.nextInt();
for (int i = 0 ; i <x ; i++){
for (int j = 0 ; j <x ; j++){
... |
package com.tpg.brks.ms.expenses.service;
import com.tpg.brks.ms.expenses.domain.Account;
import com.tpg.brks.ms.expenses.domain.Assignment;
import com.tpg.brks.ms.expenses.persistence.entities.AccountEntity;
import com.tpg.brks.ms.expenses.persistence.entities.AssignmentEntity;
import com.tpg.brks.ms.expenses.persist... |
package com.foodaholic.interfaces;
import com.foodaholic.items.ItemCart;
import java.util.ArrayList;
public interface CartListener {
void onStart();
void onEnd(String success, String message, ArrayList<ItemCart> arrayList_menu);
}
|
import javafx.scene.control.Label;
import javafx.scene.text.Font;
import javafx.scene.text.FontWeight;
public class GridTiles extends Label{
private Integer SqNumber;
private Integer GridX;
private Integer GridY;
private GridTiles DestSquare=null;
private Boolean isDestSquare=false;
public GridTiles(... |
package aeroportSpring.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import aeroportSpring.model.Aeroport;
import aeroportSpring.model.Ville;
public interf... |
import java.util.Arrays;
public class TheGameOfLife {
public int[][] startSimulation(int[][] matrix, int iteration){
int height = matrix.length;
int width = matrix[0].length;
int[][] result = new int[height][width];
for(int i = 0; i < iteration; i++){
simulate(matrix,... |
package beehive.controller;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
... |
package uz.pdp.lesson5task1.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import uz.pdp.lesson5task1.entity.template.AbsEntity;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
impo... |
package com.aidigame.hisun.imengstar.view;
import com.aidigame.hisun.imengstar.R;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PaintFlagsDrawF... |
package cn.edu.zzti.lm.view.activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.Action... |
package cn.edu.ncu.collegesecondhand.entity;
import android.net.Uri;
import java.io.Serializable;
/**
* Created by ren lingyun on 2020/4/24 16:56
*/
public class ReleaseImage implements Serializable {
private String localPath;
private Uri uri;
private String uuid;//
private String netPath;
pri... |
package exception.returnException;/**
* Created by DELL on 2018/8/14.
*/
/**
* user is
**/
public class Person {
private String name ;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
package exam.iz0_803;
public class Exam_047 {
}
/*
Given a code fragment:
public static void main(String[] args) {
StringBuilder sb = new StringBuilder();
String h1 = "HelloWorld";
sb.append("Hello").append("World");
if (h1 == sb.toString()) {
System.out.println("They match");
}
if (sb... |
/*
* 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.catalyseit;
import java.util.List;
class Agreement {
private String name;
private String callbackUrl;
private List<EstRecipient> recipients;
private Boolean autoSendMailsEnabled;
public Agreement(String name, String callbackUrl, List<EstRecipient> recipients, Boolean autoSendMailsEnab... |
package com.sunny.concurrent.volatilekey;
/**
* <Description> <br>
*
* @author Sunny<br>
* @version 1.0<br>
* @taskId: <br>
* @createDate 2019/02/18 23:06 <br>
* @see com.sunny.concurrent.volatilekey <br>
*/
public class VolatileTest {
private static int count = 0;
public static void mai... |
package kr.co.shop.batch.giftcard.model.master;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import kr.co.shop.batch.giftcard.model.master.base.BaseRvGiftCar... |
package com.lfalch.korome;
/**
* @author LFalch
*
*/
public class CircularBody {
protected Vector position;
protected double theta, radius;
public CircularBody(double angle, double x, double y, double radius) {
theta = angle;
position = new Vector(x, y);
this.radius = radius;
}
public void setPos... |
package jp.ac.it_college.std.s14011.pdp.observer;
/**
* Created by s14011 on 15/06/16.
*/
public interface Observer {
public abstract void update(NumberGenerator generator);
}
|
package com.sundar.shopping.dialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.NonNull;
import com.sundar.shopping.R;
import com.tuyenmonkey.mkloader.MKLoader;
public class CustomLoader extends Dialog {
// Animation aniRotate;
private Cus... |
package com.synclab.Challenginator.microservice.challenge.challenge;
import lombok.*;
import javax.persistence.*;
import java.time.LocalDateTime;
/*
Definizione della Challenge
*/
@Getter
@Setter
@EqualsAndHashCode
@NoArgsConstructor
@Entity
public class Challenge {
@Id //PK
@SequenceGenerator(
... |
package com.mediafire.sdk.api.responses;
/**
* Created by Chris on 1/19/2015.
*/
public class NotificationsSendMessageResponse extends ApiResponse {
}
|
package com.dodoca.create_image.utils;
import com.dodoca.create_image.constants.ActivityType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.ClassUtils;
import org.springframework.util.ResourceUtils;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.g... |
package xtrus.ex.mci.server;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.esum.framework.common.compress.lzc.LZCInputStream;
import ... |
package com.coder.form;
import java.util.List;
import com.coder.model.FoodGroup;
import com.coder.model.PaymentMethod;
public class PaymentMethodRegisterForm {
private PaymentMethodForm paymentMethodForm=null;
private PaymentMethod paymentMethod;
private List<PaymentMethod> paymentMethods;
public PaymentMethodFo... |
package business;
public class Operations {
public String add(int n1,int n2)
{
int sum=n1+n2;
return String.valueOf(sum);
}
public String sub(int n1,int n2)
{
int diff=n1-n2;
return String.valueOf(diff);
}
public String mul(int n1,int n2)
{
int res=n1*n2;
... |
package model;
import java.util.ArrayList;
/**
* Created by Joe on 7/17/2015.
*/
public class Seller {
private String username;
private String password;
private String email;
private String telephone;
private String store_name;
private String store_icon_url;
private String introduction;
... |
import java.awt.event.*;
import javax.swing.*;
public class ButtonExample {
public static void main(String[] args) {
JFrame f=new JFrame("Button Example");
final JTextField tf=new JTextField();
tf.setBounds(50,50, 150,20);
JButton b=new JButton("Click Here");
b.setBounds(50,100,95,3... |
package at.ac.tuwien.sepm.groupphase.backend.endpoint;
import at.ac.tuwien.sepm.groupphase.backend.endpoint.dto.PaginationDto;
import at.ac.tuwien.sepm.groupphase.backend.endpoint.dto.PaginationRequestDto;
import at.ac.tuwien.sepm.groupphase.backend.endpoint.dto.ProductDto;
import at.ac.tuwien.sepm.groupphase.backend.... |
package memCache.ring;
import common.Key;
import java.net.InetAddress;
import java.rmi.Remote;
import java.rmi.RemoteException;
/**
* RMI Interface used by the nodes of the ring to communicate with each other
*/
public interface Reachable extends Remote {
Reachable findSuccessor(Key key)throws RemoteExceptio... |
package com.ebayk.data.user;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class User {
private final Integer id;
private final String name;
private final List<UserRating> ratings;
public User(Builder builder) {
this.id = builder.id;
this.name = builder.name... |
package lab.io.rush.base;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/***
*
* @author jd.zeng
* @crea... |
import controller.Controller;
import view.View;
public class MainClass {
public static void main(String[] args) {
// TODO Auto-generated method stub
new Controller(new View());
}
}
|
package com.wrathOfLoD.Models.Ability.Abilities.BlastAbilities;
import com.wrathOfLoD.Models.Entity.Character.Character;
import com.wrathOfLoD.Models.RangedEffect.HitBox.HitBoxFactories.FireBallHitBoxFactory;
import com.wrathOfLoD.Models.RangedEffect.REG.CircularREG;
import com.wrathOfLoD.Models.RangedEffect.REG.Range... |
package service;
import domain.User;
public interface UserService {
User findUser(User user);
}
|
package com.javarush.task.task22.task2208;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
/*
Формируем WHERE
*/
public class Solution {
public static void main(String[] args) {
//Map<String, String> map = new HashMap<>();
//map.put("name", "Ivanov");
//map.put(... |
package com.example.bannerslider.viewholder;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import com.example.bannerslider.Slider;
import com.squareup.picasso.Picasso;
public class ImageSlideViewHolder extends RecyclerView.ViewHolder {
public ImageVie... |
package com.everysports.domain;
import lombok.Data;
import java.util.Date;
@Data
public class TeacherVO {
private String teacher_ID;
private String teacher_Name;
private String teacher_Email;
private String teacher_Gender;
private Date teacher_Birthday;
private String teacher_Phone;
priva... |
package com.gagetalk.gagetalkcustomer.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Filter;
import android.widget.Filterable;
import android.widget.ImageView;
import android... |
package data1.hvl.no;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/DeltagerlisteServlet")
public class Del... |
package com.goldenasia.lottery.data;
import com.google.gson.annotations.SerializedName;
/**
* 销售信息奖期信息
* Created by ACE-PC on 2016/1/27.
*/
public class IssueInfoEntity {
/**
* issue_id : 4961609
* issue : 20160122-0816
* end_time : 2016-01-22 14:36:00
* input_time : 2016-01-22 14:36:00
... |
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package com.binarysprite.evemat.page;
import org.junit.Test;
public class ProductPageTest {
@Test
public void testGetGroupDisplays() {
}
}
|
package com.accolite.au.services;
import com.accolite.au.dto.EduthrillSessionDTO;
import com.accolite.au.dto.EduthrillTestDTO;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
public interface EduthrillService {
ObjectNode uploa... |
/*
* Copyright 2002-2023 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 com.ideaheap;
import static org.junit.Assert.*;
import java.util.Arrays;
import java.util.List;
import org.junit.Test;
public class PuzzleTest {
@Test
public void expandBotLeft() throws Exception {
Puzzle puzz = new Puzzle("123456780", 3, 3);
assertEquals(asList("R", "D"), puzz.expandMoves());
}
... |
package mf_plus.appmanager;
import org.openqa.selenium.By;
/**
* Created by admin on 27.11.2016.
*/
public class NavigationHelper extends HelperBase {
public NavigationHelper(ApplicationManager app) {
super(app);
}
public void quotationsMainViewPage(){
waitForDisappear(By.id("page-prel... |
package com.szhrnet.taoqiapp.widget;
import android.support.v4.content.FileProvider;
/**
* Created by Administrator on 2018/5/25.
*/
public class MyProvider extends FileProvider {
}
|
package com.egswebapp.egsweb.dto;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
public abstract class AbstractCategoryDto {
@NotBlank(message = "category name can not be null")
private String name;
public AbstractCategoryDto() {
}
public AbstractCatego... |
/*
* JBoss, a division of Red Hat
* Copyright 2013, Red Hat Middleware, LLC, and individual
* contributors as indicated by the @authors tag. See the
* copyright.txt in the distribution for a full listing of
* individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under th... |
package com.esum.framework.http;
import com.esum.framework.core.exception.FrameworkException;
public class HttpException extends FrameworkException {
private static final long serialVersionUID = 1L;
public HttpException(String message) {
super(message);
}
public HttpException(Throwable exception) {
super(e... |
package br.com.webstore;
import br.com.webstore.repository.CustomerRepository;
import br.com.webstore.repository.DBUserRepository;
import br.com.webstore.model.Customer;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.jupiter.api.BeforeEac... |
/* Ara - capture species and specimen data
*
* Copyright (C) 2009 INBio ( Instituto Nacional de Biodiversidad )
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
package model.user;
import model.card.Card;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.HashMap;
class UserTest {
private static User user;
@BeforeAll
static void init() {
user =... |
package com.krish.sorting;
public class SelectionSort {
public static void main(String[] args) {
int[] arr = { 1, 3, 4, 1, 2, 7, 6, 5, 8, 9 };
selectionSort(arr);
}
private static void selectionSort(int[] arr) {
for (int i = 0; i < arr.length; i++) {
int minimum = i;
... |
import javafx.animation.Animation;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.geometry.Insets;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane;
import javafx.s... |
package com.yea.loadbalancer;
import com.yea.core.loadbalancer.BalancingNode;
import com.yea.core.loadbalancer.IPing;
/**
* No Op Ping
* @author stonse
*
*/
public class NoOpPing implements IPing {
@Override
public boolean isAlive(BalancingNode server) {
return true;
}
}
|
package oracle.ocp.concurrent;
public class MyThread extends Thread {
public void run() {
try {
sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.printf("In run(), thread name is: %s, id: %d\n", getName(), getId());
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.