text stringlengths 10 2.72M |
|---|
package firstTest;
import com.company.page.pages.BootstrapAlertMessagesPage;
import org.junit.Test;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.AfterClass;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.seleni... |
package bartender.bardatabase;
import java.util.HashMap;
import bartender.protocol.EchoProtocol;
public class Table {
public String TableNumber="";
private HashMap<String, EchoProtocol> Users_=new HashMap<String, EchoProtocol>();
public boolean free=true;
public Table(String TableNumber){
th... |
package com.example.spotifyauthentication.Activities;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.design.widget.Snackbar;
import android.sup... |
/*
* 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 Entidades;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
*
* @author rosemary
*/
public c... |
package LC0_200.LC100_150;
import LeetCodeUtils.MyMatrix;
import LeetCodeUtils.MyPrint;
import org.junit.Test;
import java.util.HashMap;
public class LC149_Max_Points_On_A_Line {
@Test
public void test() {
System.out.println(maxPoints(MyMatrix.
IntMatrixAdapter("[[4,0],[4,1],[4,5]]",... |
package it.polimi.ingsw.GC_21.VIEW;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;
import java.net.SocketException;
import it.polimi.ingsw.GC_21.CLIENT.MessageToClient;
public class SocketAdapter implements AdapterConnection{
private RemoteV... |
package com.mygdx.factory;
import level.AmountMonster;
import level.LevelInfo;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.utils.IntMap;
import com.badlogic.gdx.utils.Json;
import com.mygdx.jsonHelper.IntMapSerializer;
public class LevelInfoFactory {
private static IntMap<LevelInfo> levelInfoMap = new In... |
package lowOfDeteter.instance;
import java.util.Random;
/**
* @Author:Jack
* @Date: 2021/8/21 - 22:35
* @Description: lowOfDeteter.instance
* @Version: 1.0
*/
public class Wizard {
private Random random = new Random(System.currentTimeMillis());
private int first(){
System.out.println("first metho... |
package onlinerealestateproject.util;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Connection;
import java.sql.SQLException;
import onlinerealestateproject.datasource.DataMapperException;
import onlinerealestateproject.domain.Administrator;
/**
* @author... |
/*******************************************************************************
* Copyright 2021 Danny Kunz
*
* 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.... |
package com.pkjiao.friends.mm.dialog;
import com.pkjiao.friends.mm.R;
import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
public class ExitAppDialog extends Dialog implements
android.view.View.OnClickListener {
... |
package com.kevinkuai.worm;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import com.kevinkuai.framework.FileIO;
public class Settings {
public static boolean soundEnabled = true;
public static int[] ... |
package com.fleet.batch.config;
import com.fleet.batch.entity.User;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.configuration.annotation.JobBuilderFacto... |
package com.DoAn.HairStyle.api;
import com.DoAn.HairStyle.dto.*;
import com.DoAn.HairStyle.entity.UserEntity;
import com.DoAn.HairStyle.respositiry.UserRespository;
import com.DoAn.HairStyle.service.UserService;
import net.bytebuddy.asm.Advice;
import org.springframework.beans.factory.annotation.Autowired;
import org... |
package br.org.funcate.glue.model.canvas;
import java.awt.Graphics;
public interface GraphicsPainter {
public void paint(Graphics g);
}
|
package br.bispojr.mastermind.jogo.models;
import javax.swing.*;
import java.io.Serializable;
public class EsferaModel
extends JComponent
implements Serializable {
public static String[] IMAGES = {"/jogo/vazio.png", "/jogo/azul.png", "/jogo/amarelo.png", "/jogo/rosa.png", "/jogo/roxo.png", "/jogo... |
package com.doit.net.scan.udp.base;
import com.doit.net.scan.udp.constants.ScanFreqConstants;
import com.doit.net.scan.udp.server.ScanWorkThread;
import com.doit.net.scan.udp.utils.StringUtils;
import java.util.ArrayList;
import java.util.List;
/**
* Created by wly on 2019/7/21.
* 串口消息
*/
public class SerialMessa... |
package flaxbeard.cyberware.api;
import java.util.List;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
public interface ICyberware
{
public EnumSlot getSlot(ItemStack stack);
public int installedStackSize(ItemStack stack);
public ItemStack[][] required(ItemStack stack);
public... |
import java.awt.event.*;
import javax.swing.*;
import java.util.List;
public class ControleurChamp implements ActionListener {
private AfficherReservation reservation;
private JTextField champ1;
private JTextField champ2;
private BaseDeDonnee db;
private boolean unSeulChamp;
public ControleurChamp(Affic... |
package com.makethingshum.fantasy;
import java.util.concurrent.ThreadLocalRandom;
/**
* Created by jwells on 14/02/2017.
*/
public class RandomSelection {
public static <E extends Enum<E>> E getRandom(Class<E> enumClass) {
int pick = ThreadLocalRandom.current().nextInt(enumClass.getEnumConstants().leng... |
package br.com.pcmaker.spring.view.validation.collection;
import java.util.Collection;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
@SuppressWarnings("rawtypes")
public class NotEmptyCollectionValidator implements ConstraintValidator<NotEmptyCollection, Col... |
package com.example.controllers;
import com.example.dao.CategoryDao;
import com.example.dao.OrderDao;
import com.example.dao.ProductDao;
import com.example.entities.Category;
import com.example.entities.Order;
import com.example.entities.Product;
import com.google.gson.JsonObject;
import org.apache.commons.io.FileUtil... |
package HW190612;
public class ScoreMath {
private int math;
public ScoreMath(int math) {
this.math = math;
}
public void print() {
System.out.println("수학 점수는 "+math+"점입니다.");
}
}
|
package com.giraldo.parqueo.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.giraldo.parqueo.model.TipoDocumento;
import com.giraldo.parqueo.model.TipoTi... |
package sorting;
public class ShellSort {
public static void main(String[] args) {
int arr[] = { 5, 4, 3, 2, 1 };
shellSort(arr);
for (int e : arr) {
System.out.print(e + " ");
}
System.out.println();
}
static void shellSort(int arr[]) {
int n = arr.length;
for (int gap = n / 2; gap > 0; gap /= 2)... |
package com.cjava.spring.dao;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.cjava.spring.entity.Cliente;
import com.cjava.spring.util.HibernateBaseDao;
@Repository
public class ClienteDao {
@Autowired
pr... |
package com.innavathon;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
import javax.serv... |
package org.houstondragonacademy.archer.services;
import org.houstondragonacademy.archer.dao.AccountRepository;
import org.houstondragonacademy.archer.dao.entity.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org... |
package com.mimi.mimigroup.ui.main;
import android.Manifest;
import android.app.ActivityManager;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Settings;
import... |
package RestAssuredKeycloak;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import io.restassured.RestAssured;
import io.restassured.builder.RequestSpecBuilder;
import io.restassured.response.Response;
import io.restassured.specification.RequestSpecification;
import MyFileUtils.... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ter... |
package Practical6GUI;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JTextArea;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import java.... |
package com.ibeiliao.pay.idgen.impl.entity;
import java.io.Serializable;
import java.util.Date;
/**
* 表:t_id_serial ID序列记录
* @author linyi 2016/7/7.
*/
public class IdSerialPO implements Serializable {
private static final long serialVersionUID = 1;
/**
* ID名称
*/
private String idName;
... |
package Building;
// Ошибка выхода за границы номеров этажей
public class FloorIndexOutOfBoundsException extends IndexOutOfBoundsException{
private int detail;
public FloorIndexOutOfBoundsException(int a) {
detail = a;
}
public String toString() {
return "Введеный номер <" + detail + "> находится вне грани... |
package com.DeGuzmanFamilyAPI.DeGuzmanFamilyAPIBackend.authentication_controller;
import java.security.Principal;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.... |
package collage;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import java.nio.ByteBuffer;
import com.xuggle.xuggler.IPacket;
public class IPacketDatagramOutputStream extends IPacketOutputStream {
private... |
package com.knoldus;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class ReadFileTransformation {
String... |
package org.corbin.client.vo.search;
import lombok.Data;
import org.corbin.common.base.vo.BaseVo;
@Data
public class SearchSongVo extends BaseVo {
private String searchValue;
}
|
import org.apache.commons.lang.SystemUtils;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FSDataOutputStream;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import java.io.*;
import java.net.URI;
import... |
class ExeTest{
public static void main(String[] args)
{
System.out.println("자바는 내 인생.....");
}
} |
package com.ssgl.service;
import com.ssgl.bean.Page;
import com.ssgl.bean.Result;
import com.ssgl.bean.StudentStatus;
import javax.servlet.http.HttpServletRequest;
public interface StateService {
Page<StudentStatus> selectStatesPage(Integer currentPage, Integer pageSize, HttpServletRequest request) throws Except... |
package com.smxknife.java.ex31;
import com.smxknife.java2.unsafe.UnsafeWrapper;
import sun.misc.Unsafe;
/**
* @author smxknife
* 2020/7/22
*/
public class Test {
static int a = 3, b;
static int e, d = 5;
public static void main(String[] args) {
String binaryString = Integer.toBinaryString(0x7fffffff);
Syst... |
package gdu.mall.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import gdu.mall.util.DBUtil;
import gdu.mall.vo.Manager;
public class ManagerDao {
// 승인 대기중인 매니저 목록
public static ArrayList<Manager> selectManagerListByZero() ... |
package com.test.xiaojian.simple_reader.utils;
import android.widget.Toast;
import com.test.xiaojian.simple_reader.App;
/**
* Created by xiaojian on 17-5-11.
*/
public class ToastUtils {
public static void show(String msg){
Toast.makeText(App.getContext(), msg, Toast.LENGTH_SHORT).show();
}
}
|
package com.tenforwardconsulting.bgloc;
import android.location.Location;
import com.marianhello.bgloc.Config;
public class DistanceScore {
private Location location;
private double am, bm, cm;
private double al, bl, cl;
private double ah, bh, ch;
private double homeLat;
private double homeLon... |
package myproject.game.services.impl;
import myproject.game.dao.GameRepository;
import myproject.game.enums.GameStatus;
import myproject.game.enums.Status;
import myproject.game.mappers.GameMapper;
import myproject.game.mappers.QuestionMapper;
import myproject.game.mappers.UserMapper;
import myproject.game.models.dto.... |
package com.tencent.mm.ui.widget.a;
import android.content.DialogInterface;
import android.content.DialogInterface.OnDismissListener;
class d$3 implements OnDismissListener {
final /* synthetic */ d uKm;
d$3(d dVar) {
this.uKm = dVar;
}
public final void onDismiss(DialogInterface dialogInter... |
package com.ifour.EmployeeManagement.Employee;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class EmployeeServiceTest {
@Test
void getEmployee() {
}
@Test
void getEmployeeById() {
}
@Test
void addNewEmployee() {
}
... |
package com.kh.runLearn.admin.model.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kh.runLearn.admin.model.dao.Adm... |
package spring4.aopdemo;
import org.springframework.stereotype.Service;
/**
* 使用方法规则被拦截类
* @author yrz
*
*/
@Service
public class DemoMethodService {
public void add() {}
}
|
package com.sinata.rwxchina.basiclib.basic.basicComment;
import java.util.List;
/**
* @author HRR
* @datetime 2017/12/18
* @describe 所有分类评论实体类
* @modifyRecord
*/
public class CommentEntity {
/**
* id : 1
* createdate : 2017-12-06 16:05:40
* evaluation_score : 5
* evaluation_comment : 可以... |
package pl.agh.edu.dp.labirynth.builder;
import pl.agh.edu.dp.util.Direction;
import pl.agh.edu.dp.labirynth.Maze;
import pl.agh.edu.dp.labirynth.elements.Door;
import pl.agh.edu.dp.labirynth.elements.Room;
import pl.agh.edu.dp.labirynth.elements.Wall;
import pl.agh.edu.dp.util.Vector2D;
public class StandardMazeBuil... |
package cn.tedu.jdbc.day02;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
public class PoolThread {
public static void main(String[] args) {
Thread t1 = new ThreadDemo(5000);
Thread t2 = new ThreadDemo(6000);
Thread t3 = new ThreadDemo(1000);
t1.start();
t2.start();
t3... |
package com.hikki.sergey.montecarlo.component;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Color;
import android.support.v7.widget.LinearLayoutCompat;
import android.util.AttributeSet;
import android.view.Gravity;
import android.widget.CheckBox;
import android.widget.C... |
/*
* 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 UserBeans;
import java.sql.Date;
/**
*
* @author Yusuf
*/
public class Komentar {
private String cid;
private Str... |
package edu.mayo.cts2.framework.webapp.rest.query;
import java.util.Set;
import edu.mayo.cts2.framework.model.command.ResolvedFilter;
import edu.mayo.cts2.framework.model.command.ResolvedReadContext;
import edu.mayo.cts2.framework.model.service.core.Query;
import edu.mayo.cts2.framework.service.command.restriction.Ma... |
package 线程;
/*
* main ------{}
* Thread:线程类,线程有自己的任务,在定义线程类的时候,需要实现;?如run()
* 一、继承Thread类来创建
* 1、继承
* 2、复写run():任务 子类
* 3、实例化:线程对象
* 4、启动线程:start
*
*
*/
class Monkey extends Thread{//1\继承thread
String name;
public Monkey(String name) {
super();
this.name=name;
}
public void fight(){
for (int i =... |
package com.itheima.service.impl;
import com.alibaba.dubbo.config.annotation.Service;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.itheima.constant.MessageConstant;
import com.itheima.dao.CheckItemDao;
import com.itheima.dao.PermissionDao;
import com.itheima.entity.PageResult;... |
/*
* 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.example.codetribe1.constructionappsuite.dto;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
... |
package com.pfchoice.springboot.repositories;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import com.pfchoice.springboot.model.HedisMeasureGroup;
import com.pfchoice.sp... |
/*
* Copyright (c) 2017. Universidad Politecnica de Madrid
*
* @author Badenes Olmedo, Carlos <cbadenes@fi.upm.es>
*
*/
package org.librairy.modeler.dao;
import es.cbadenes.lab.test.IntegrationTest;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;
import ... |
package mobi.wrt.oreader.app.html;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.nodes.Node;
import org.jsoup.nodes.TextNode;
import org.jsoup.select.Elements;
import org.jsoup.select.NodeTraversor;
import org.jsoup.select.NodeVisitor;
import java.util.Array... |
package demo.plagdetect.calfeature;
import org.junit.Test;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.assertEquals;
public class TestCalNumSim {
/**
* @Author duanding
* @Description 测试从文件提取数值常量
* @Date 5:30 PM 2019/9/24
* @Param [... |
package com.lingnet.vocs.service.baseinfo;
import java.util.List;
import com.lingnet.common.service.BaseService;
import com.lingnet.vocs.entity.Dictionary;
import com.lingnet.vocs.entity.DictionaryD;
/**
* 数据字典service
* @ClassName: DataDictionaryService
* @Description: TODO
* @author 刘殿飞
* @date 2014... |
package com.yinghai.a24divine_user.bean;
import java.util.List;
/**
* @author Created by:fanson
* Created Time: 2017/11/21 11:14
* Describe:商品详情Bean
*/
public class ProductDetailBean {
/**
* code : 1
* msg : 操作成功
* data : {"tfProduct":{"imgList":[{"imgTmpId":18,"itAbsolute":"... |
package com.beiyelin.messageportal.interceptor;
import com.beiyelin.account.security.JwtTokenService;
import com.beiyelin.common.utils.StrUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.server.ServerHttpRequest;
import org.springfr... |
package com.tencent.mm.plugin.freewifi.ui;
import com.tencent.mm.ab.e;
import com.tencent.mm.ab.l;
import com.tencent.mm.model.au;
import com.tencent.mm.plugin.freewifi.d.a;
import com.tencent.mm.plugin.freewifi.model.d;
import com.tencent.mm.protocal.c.ep;
import com.tencent.mm.sdk.platformtools.x;
class FreewifiWeC... |
package b;
public class A {
public static void main(String[] args) {
test1();
test2();
test3();
test4();
}
public static void test1() {
System.out.println("print abc1");
}
public static void test2() {
System.out.println("print abc2");
}
public static void test3() {
System.out.println("print abc3");
}
pub... |
package com.ehootu.correct.service;
import java.util.List;
import java.util.Map;
import com.ehootu.correct.model.IncontrollableDrugControlEntity;
/**
* 失控吸毒类重点人员动态管控工作记录
*
* @author yinyujun
* @email
* @date 2017-09-21 14:42:32
*/
public interface IncontrollableDrugControlService {
IncontrollableDrugContr... |
package com.camas.irv.race;
import com.camas.irv.candidate.Candidate;
import com.camas.irv.voter.Voter;
import java.util.List;
public interface RaceService {
List<Race> list();
Race get(Long id);
Race save(Race race);
void delete(Long id);
List<Candidate> candidatesForRace(Race race);
int candidateCountF... |
package great.dog.api.controller.api;
import great.dog.api.domain.dto.DogFeedingDto;
import great.dog.api.domain.response.DefaultRes;
import great.dog.api.service.DogFeedingService;
import great.dog.api.util.StatusCode;
import great.dog.api.util.StatusMsg;
import lombok.AllArgsConstructor;
import org.springframework.... |
package ru.aahzbrut.reciperestapi.services;
import ru.aahzbrut.reciperestapi.dto.requests.IngredientRequest;
import ru.aahzbrut.reciperestapi.dto.responses.ingredient.IngredientResponse;
import java.util.List;
public interface IngredientService {
IngredientResponse getById(Long ingredientId);
void deleteBy... |
package com.diozero.util;
/*-
* #%L
* Organisation: diozero
* Project: diozero - Core
* Filename: ByteTest.java
*
* This file is part of the diozero project. More information about this project
* can be found at https://www.diozero.com/.
* %%
* Copyright (C) 2016 - 2023 diozero
* %%
* Permission i... |
package com.org.dao;
import com.org.po.User;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* @author Create by MengXi on 2021/10/12 15:57.
*
* pring Data :提供了一整套数据访问层(DAO)的解决方案,致力于减少数据访问层(DAO)的开发量。它使用一个叫作Repository的接口类为基础,它被定义为访问底层数据模型的超级接口。
* 而对于某种具体的数据访问操作,则在其子接口中定义。
* ... |
package com.vilio.ppms.pojo.common;
import java.math.BigDecimal;
import java.util.Date;
public class SubAccount {
private Long id;
private String code;
private String sysSerno;
private BigDecimal transAmount;
private BigDecimal subAccAmount;
private String subAccStatus;
private Strin... |
package com.daralisdan.test;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import javax.annotation.Resource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4... |
package a8;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Iterator;
import javax.swing.BorderFactor... |
package com.example.v3.design.factory;
/**
* 发送功能
*/
public interface Sender {
void Send();
}
|
package com.spbsu.benchmark.flink.index.ops;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryonet.Client;
import com.esotericsoftware.kryonet.Connection;
import com.esotericsoftware.kryonet.Listener;
import com.spbsu.benchmark.flink.index.Result;
import com.spbsu.flamestream.example.bl.index.mode... |
package com.rcwang.seal.eval;
import java.io.File;
import java.util.List;
import org.apache.log4j.Logger;
import com.rcwang.seal.expand.Seal;
import com.rcwang.seal.expand.SeedSelector;
import com.rcwang.seal.translation.BilingualSeal;
import com.rcwang.seal.util.GlobalVar;
import com.rcwang.seal.util.Hel... |
package uk.gov.moj.util;
import uk.gov.moj.DeadLetterQueueBrowser;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class DLQUtil {
private final static Logger LOGGER = LoggerFactory.getLogger(DLQUtil.class);
public static void cleanDeadLetterQueue() {
Dea... |
public interface Maquina {
String getTipo();
String getSistemaOperacional();
}
|
package com.yougou.merchant.api.supplier.vo;
import java.io.Serializable;
public class BrandCategoryVo implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private String brandNo;//品牌编码
private String rootCategory;//一级分类
private String secondCategory;//二级分类
private String thr... |
package sp.designpatterns.DecoratorExample;
public class JapanesePizzo extends Pizza{
JapanesePizzo(String description){
this.description=description;
}
@Override
public double getCost() {
// TODO Auto-generated method stub
return 67;
}
}
|
package com.wentongwang.mysports.views.fragment.agenda;
import android.content.Context;
import com.wentongwang.mysports.constant.Constant;
import com.wentongwang.mysports.custome.PersonInfoPopupWindow;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Wentong WANG on 2016/9/26.
*/
public class Agen... |
package ru.job4j.todo.servlet;
import ru.job4j.todo.model.Task;
import ru.job4j.todo.service.HibernateService;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public ... |
import org.junit.Assert;
import org.junit.Test;
public class ConeAreaTest {
@Test
public void coneAreaTest(){
Cone cone=new Cone(5,2);
Assert.assertEquals(43,cone.area(),1);
}
}
|
/**
*
*/
package com.shubhendu.javaworld.recursion;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* @author ssingh
*
*/
public class CombinationSum {
// public List<List<Integer>> combinationSum(int[] candidates, int target) {
// Arrays.sort(candidates);
// List<List<Integer... |
/*
Using CountMap :
t : O(n)
s : O(n);
*/
// ------------------- HashTable
class HashTable{
public final int tableSize;
public Node[] list;
public HashTable(){
tableSize = 512;
list = new Node[tableSize];
}
class Node{
int key;
int data;
Node next;
public Nod... |
package cn.bs.zjzc.presenter;
import cn.bs.zjzc.App;
import cn.bs.zjzc.model.IAddInsuredModel;
import cn.bs.zjzc.model.callback.HttpTaskCallback;
import cn.bs.zjzc.model.impl.AddInsuredModel;
import cn.bs.zjzc.model.response.AddInsuredResponse;
import cn.bs.zjzc.ui.view.IAddInsuredView;
/**
* 添加保价费计算方式
* Created by... |
package HomeworkDay5;
public class Palindrome {
public static void main(String[] args) {
// TODO Auto-generated method stub
}
}
class node{
protected node next;
protected int d;
public node(int x){
d=x;
next=null;
}
}
class IntSlist{
private node first;
private node last;
public IntSlis... |
package graphloaders.oldDotParser.actions;
import graphana.graphs.GraphLibrary;
import graphloaders.oldDotParser.parser.DotGraphAction;
import graphloaders.oldDotParser.parser.DotReader;
import graphloaders.oldDotParser.tokens.DotIdentifier;
public class SetGraphNameAction extends DotGraphAction {
@Override
... |
package pl.training.shop;
import com.vaadin.flow.component.UI;
import com.vaadin.flow.component.html.Anchor;
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
import com.vaadin.flow.router.Router;
import ... |
package com.cxjd.nvwabao.adapter;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.cxjd.nvwabao.FirstAid.Aid01;
import com.cxjd.nvwabao.FirstAid.Aid02;
i... |
public class Guitar extends Instrument {
public Guitar() {
super("Guitar");
}
public void play() {
System.out.println("strum!");
}
}
|
package jneiva.hexbattle;
public enum Time {
Jogador,
Computador,
}
|
import java.util.*;
class array_Test_Paper1 {
public static void main(String ar[]){
Scanner sc = new Scanner(System.in);
/*1. int z, x = 0;
int a = 0;
System.out.print("세자리 변수의 값 입력(일십백) : ");
int n = sc.nextInt();
z = n/100;
x = (n-z*100)/10;
x = x* 10;
z = z* 100;
a = z+x+1;
System.out.println(... |
package com.tencent.mm.plugin.appbrand.game.page;
import com.tencent.mm.plugin.appbrand.game.page.WAGamePageViewContainerLayout.b;
interface WAGamePageViewContainerLayout$a {
void a(b bVar, b bVar2);
}
|
package com.tencent.mm.plugin.sight.encode.ui;
import java.util.List;
public interface d$a {
void bwu();
void bwv();
void ce(List<String> list);
}
|
package es.bvalero.cifras.solvers.intarray;
import static es.bvalero.cifras.solvers.intarray.IntArraySolution.ADDITION;
import static es.bvalero.cifras.solvers.intarray.IntArraySolution.DIVISION;
import static es.bvalero.cifras.solvers.intarray.IntArraySolution.MULTIPLICATION;
import static es.bvalero.cifras.solvers.i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.