text stringlengths 10 2.72M |
|---|
package io.breen.socrates.model.wrapper;
import io.breen.socrates.file.File;
import io.breen.socrates.model.*;
import io.breen.socrates.model.event.*;
import io.breen.socrates.submission.SubmittedFile;
import io.breen.socrates.test.*;
import io.breen.socrates.util.Observable;
import io.breen.socrates.util.*;
import io... |
package edu.nifu.sas.dao;
import edu.nifu.sas.model.User;
import edu.nifu.sas.util.C3p0Util;
import edu.nifu.sas.util.DBHelper;
import edu.nifu.sas.util.Md5Util;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.MapHandler;
import java.sql.SQLException;
import java.util.ArrayLi... |
package com.itheima.rabbitmq.routing;
import com.itheima.util.ConnectionUtil;
import com.rabbitmq.client.*;
import java.io.IOException;
public class ConsumerRoutingA {
public static void main(String[] args) throws IOException {
//获取连接
Connection connection = ConnectionUtil.getConnection();
//创建Channel
Chan... |
package com.test.base;
import com.test.SolutionA;
import junit.framework.TestCase;
public class Sample extends TestCase
{
private Solution solution;
@Override
protected void setUp()
throws Exception
{
super.setUp();
solution = new SolutionA();
}
public void t... |
package com.sxb.service;
import com.sxb.model.Replay;
/**
* @description 视频回放服务接口
* @author <a href="mailto:ou8zz@sina.com">OLE</a>
* @date 2016/06/14
* @version 1.0
*/
public interface ReplayService {
/**
* 保存·直播视频addReplay
* @param Replay 视频对象
* @return 成功success或者抛出异常
*/
Object ad... |
package com.zhiyou.mapper;
import com.zhiyou.model.User;
public interface UserMapper {
// 注册用户
public void add(User user);
// 修改用户
public void update(User user);
// 查询用户
public User selectById(int id);
//
public User selectByAccounts(String accounts);
}
|
package com.yea.dispatcher.test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.util.StringUtils;
import com.yea.remote.netty.server.NettyServer;
@SuppressWarnings("resource")
public class ServerLauncher {
private static NettyServer nettyServer;
static{
Cla... |
package com.ams.app.controller;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBod... |
public class Code {
public static void main(String[] args) {
short code = 0b0101; // 16 bit
char character = 'A';
System.out.println("Source symbol " + character + " in char table: " + (byte)character);
character = (char)(character ^ code);
System.out.println("Encrypted cha... |
package idv.emp.dao;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import idv.emp.model.EmpId;
import idv.emp.model.Emp2;
public interface EmpVODao extends JpaRepository<Emp2,EmpId>{
List<Emp2> findAll();
}
|
package com.amol.springboot.demo.bootapp;
import static org.junit.Assert.assertEquals;
import java.util.HashMap;
import org.junit.Test;
import com.TacoLoco.springboot.demo.controller.OrderController;
import com.TacoLoco.springboot.demo.exception.TacoNotFoundException;
import com.TacoLoco.springboot.demo.model.TotalOr... |
package buttley.nyc.esteban.magicbeans.model.boards.widgets;
/**
* Created by Spoooon on 1/19/2015.
*/
public enum WidgetTypeEnum {
BEAN_STAGE, PATIENT_STAGE, POOP_METER, POWER_UP_BAR,
SCORE_BOARD, BACKGROUND, TITLE,BUTTLEY_STAGE
}
|
package com.cs.config;
import com.cs.persistence.JpaConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
import org... |
package be.openclinic.statistics;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.SortedSet... |
package org.shujito.cartonbox.view.fragment.dialog;
import org.shujito.cartonbox.R;
import org.shujito.cartonbox.controller.task.JsonDownloader;
import org.shujito.cartonbox.controller.task.SitesJsonDownloader;
import org.shujito.cartonbox.model.Site;
import org.shujito.cartonbox.util.ConcurrentTask;
import org... |
/*
* This code counts the distinct occurances of a subsequence
* In other words: Find number of times a string occurs as a subsequence in given string
* Reference: https://www.geeksforgeeks.org/find-number-times-string-occurs-given-string/
* Reference: https://www.geeksforgeeks.org/count-distinct-occurrences-... |
package cc.ipotato.reflect;
import java.util.Arrays;
public class GetSuperTest {
public static void main(String[] args) {
Class<?> cls = Apple.class;
System.out.println(cls.getName());
System.out.println(cls.getPackage().getName());
System.out.println(cls.getSuperclass().getName())... |
package com.example.chessproject_java;
import android.util.Log;
import java.lang.reflect.Array;
import java.util.ArrayList;
import static com.example.chessproject_java.MainActivity.neighboorsCoord;
public class Layers {
static final private int[] X = {2, 1, -1, -2, -2, -1, 1, 2};
static final private int[] ... |
package com.prolific.vidmediaplayer.Activities;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import andro... |
import java.util.Scanner;
public class SleepIn {
/**
* @Rakesh Yadav
* 17 Feb 2015
* The parameter weekday is true if it is a weekday, and the
* parameter vacation is true is we are on vacation. We sleep
* in if it is not a weekday or we're on vacation. Return true if we sleep in.
*
* sleepInFun(false... |
package com.needii.dashboard.dao;
import com.needii.dashboard.model.Skus;
import com.needii.dashboard.utils.Pagination;
import com.needii.dashboard.model.form.SearchForm;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Projections;
import... |
package com.pd.security.shiro.base;
import com.pd.security.shiro.config.SecurityConfig;
import com.pd.security.shiro.config.UserInfo;
import org.apache.shiro.spring.web.ShiroFilterFactoryBean;
/**
* @author peramdy on 2018/10/23.
*/
public abstract class AbstractShiroFilterCustom {
public abstract SecurityCon... |
package cn.v5cn.v5cms.controller;
import cn.v5cn.v5cms.entity.Comments;
import cn.v5cn.v5cms.service.CommentsService;
import cn.v5cn.v5cms.util.HttpUtils;
import cn.v5cn.v5cms.util.SystemUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.session.Session;
import org.slf4j.Logger;
import org.slf... |
public abstract class Base {
int hp;
int power;
int defense;
String name;
String type;
public boolean isLive() {
if (this.hp < 1) {
return false;
}
return true;
}
public abstract void action(Base[] player, Base[] enemy);
}
|
package com.seven.contract.manage.controller.member;
import com.alibaba.fastjson.JSON;
import com.seven.contract.manage.common.ApiResult;
import com.seven.contract.manage.common.AppRuntimeException;
import com.seven.contract.manage.common.BaseController;
import com.seven.contract.manage.model.Contact;
import com.seven... |
package com.paschburg.rich.popularmovies;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Men... |
package com.esum.framework.core.component.handler;
import java.util.ArrayList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.esum.framework.core.component.interceptor.Interceptable;
/**
* Handler.
*/
public class BasicHandler implements Handler {
protected Logger log... |
package com.ahu.controller;
import com.ahu.constant.MessageConstant;
import com.ahu.entity.Result;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframewor... |
import java.io.File;
import java.io.IOException;
public class FileTest {
public static void main(String[] args) throws IOException {
//file 的对象是目录或者文件
File file = new File("D:\\java\\eclipse-workspace\\IO\\.");
System.out.println("返回绝对经:: "+file.getAbsolutePath());
System.out.println("返回最后一级子路径名: "+... |
package com.pibs.constant;
/**
*
* @author dward
*
*/
public class ParamConstant {
public static final String AJAX_SEARCH = "ajaxSearch";
public static final String AJAX_SEARCH_BY_CRITERIA = "ajaxSearchByCriteria";
public static final String AJAX_ADD = "ajaxAdd";
public static final String AJAX... |
public class Statex {
int idno;
String name;
static String cmpname="TCS";
Statex(int i,String n)
{
idno=i;
name=n;
}
void disply()
{
System.out.println("emp id:"+idno);
System.out.println("emp name:"+name);
System.out.println("company name:"+cmpname);
}
public static void m... |
/* ------------------------------------------------------------------------------
*
* 软件名称:泡泡娱乐交友平台(手机版)
* 公司名称:北京双迪信息技术有限公司
* 开发作者:Yongchao.Yang
* 开发时间:2012-8-16/2012
* All Rights Reserved 2012-2015
* -----------------------------------------------------... |
package com.grocery.codenicely.vegworld_new.products.model;
/**
* Created by Meghal on 6/28/2016.
*/
public class ProductQuantityUpdateData {
private boolean success;
private String message;
private int product_id;
private int quantity;
private int total;
private int total_discou... |
package com.nowcoder.community;
import com.nowcoder.community.dao.DiscussPostRepository;
import com.nowcoder.community.dao.DiscussionPostMapper;
import com.nowcoder.community.entity.DiscussPost;
import org.apache.kafka.common.protocol.types.Field;
import org.elasticsearch.action.search.SearchResponse;
import org.elast... |
package com.itheima.bos.web.action;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import cn.itcast.crm.domain.Customer;
import com.itheima.bos.crm.CustomerService;
import com.itheima.bos.domain.Decided... |
package invadem;
import processing.core.PApplet;
import processing.core.PFont;
import java.awt.*;
import java.util.Random;
public class App extends PApplet {
static int BULLET_SIZE =2000;
static int POWER_BULLET_SIZE = 100;
static int INVADER_NUMBER =40;
static int spacer = 80;
static int HITS_N... |
/*
* 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... |
import java.util.Random;
public class Obstacles {
int x, y;
Traps traps;
public Obstacles(){
Random r = new Random();
this.x = r.nextInt(15 - 1) + 1;
this.y = r.nextInt(15 - 1) + 1;
traps = Traps.PORTAL;
}
public String toString(){
return traps + " type of ... |
package nbi.implementCores;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import nbi.adapter.FilePatternBehaviorAdapter;
i... |
package com.qiuxy.miaosha1;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bin... |
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
public class checkbox2 extends JFrame implements ActionListener
{
JCheckBox check1,check2,check3,check4;
JTextField text;
public checkbox2()
{
Container c=this.getContentPane();
c.setLayout(new FlowLayout()) ;
c.setBackground... |
package com.netcracker.CustomException;
public class ResponseNotOk extends Exception {
}
|
package maze;
/**
*
* @author Ryan
*/
public class Character {
//Save variables
private int numRooms;
private int direction;
private int xPos;
private int yPos;
private int zPos;
private int exp;
private int health;
private int endX;
private int endY;
private int endZ;
private int diffi... |
package com.example.demo;
import static org.junit.Assert.fail;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.NoSuchElementException;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import co... |
package bfs;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;
/**
* 炸弹人的例子 用广搜
*
* @author 丹丘生
*/
public class BFS_5 {
private static int[][] direction = {{0, 1}, {1, 0}, {0, -1}, {-1, 0}};
static Queue<Node> que = new LinkedList<Node>();
private static int[][] book;
... |
package adapter;
public interface LibraryApi {
boolean isAvailable(String bookTitle);
boolean reserve(String bookTitle, String pesel);
}
|
package lambda;
/**
* @author songkaiwen
* @date 2020/12/8 3:17 下午
*/
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.Supplier;
... |
package com.imooc.ioc.beanshuxingzhurufangshi;
/**
* @Author: Asher Huang
* @Date: 2019-10-17
* @Description: com.imooc.ioc.beanshuxingzhurufangshi
* @Version:1.0
*/
public class ProductInfo {
public Double calcPrice() {
return Math.random()*1999.99;
}
}
|
package com.trump.auction.account.dao;
import com.trump.auction.account.domain.AccountBackcoinRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
* Created by wangyichao on 2018-01-05 下午 01:59.
*/
@Repository
public interface AccountBackCoinRecordDao {
Account... |
package com.netcracker.entities;
import javax.persistence.*;
import javax.validation.constraints.Size;
@Entity
@Table(name = "Reviews")
public class Review {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "review_id_generator")
@SequenceGenerator(name = "review_id_generator", sequence... |
package app.akeorcist.deviceinformation.model;
/**
* Created by Akexorcist on 2/27/15 AD.
*/
public class ScreenData {
private String resolutionPx;
private String resolutionDp;
private String dpiX;
private String dpiY;
private String dpi;
private String size;
private String density;
p... |
package haschlabs.pluginmanager;
import java.io.File;
import java.io.FileFilter;
/**
* Implementation of the FileFilter interface that accepts only .jar files.
*
* @author Hauke Schulz <hauke27@googlemail.com>
*/
public class JARFileFilter implements FileFilter {
/**
* This method checks ... |
package mx.com.otss.barbershopapp.activities.menu_inferior;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.Menu;
... |
package BridgePattern08.exercise.service.concreteService;
import BridgePattern08.exercise.service.FileImp;
public class SQLServerFileImp implements FileImp {
@Override
public void readData() {
System.out.println("从SQLServer中读取数据....");
}
}
|
package core;
import junit.framework.TestCase;
public class DeckTest extends TestCase {
public void testNumOfCardsInDeck() {
Deck deck = new Deck();
assertEquals(52, deck.getDeckSize());
}
public void testCardReturnedFromTakeCard() {
Deck deck = new Deck();
assertTrue(dec... |
package ggboy.study.java.spring_mybatis;
import java.util.List;
import java.util.Map;
import ggboy.java.common.utils.sql.BaseSqlBuilder;
public interface BaseDao {
public int insert(BaseSqlBuilder builder);
public int delete(BaseSqlBuilder builder);
public List<Map<String, Object>> select(BaseSqlBuilder builder... |
package technicalTest.beans;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class Store {
private List<Sku> skus;
private FileReader file;
private BufferedReader reader;
public... |
public class Square {
int number;
int[] posNum = {1,2,3,4,5,6,7,8,9};
/*=== constructors ===*/
Square(){
this.number = 0;
}
Square(int number){
this.number = number;
}
/*=== Behavor ===*/
public void testIfOnePosNum() {
// if there is only one number left then set square to that ... |
package ch.mitti.yahtzee.view;
import java.awt.Color;
import java.awt.GridLayout;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import ch.mitti.yahtzee.controller.DiceController;
public class FillerView extends JPanel{
public FillerView(){
init();
}
public void ini... |
package coreJava_programs.Java_Programs;
import java.util.Scanner;
public class PatternProgram3_22 {
/**
1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7
1 2 3 4 5 6
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
**/
public static void main(String[] args) {
Scanner scn = new Scanner(System.in... |
package com.easywidgets.lists;
public interface OnListMenuClickListener {
void onMenuItemClick(int itemId,int listPosition);
}
|
package deloitte.forecastsystem_bih.loadforecast.datavector;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.TimeZone;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springfr... |
package com.java.practice.array;
/**
* Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate
* (i, ai). n vertical lines are drawn such that the two endpoints of the line i is at (i, ai)
* and (i, 0). Find two lines, which, together with the x-axis forms a container,
* such th... |
/*
* 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 library.system.addbook;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXTextField;
import java.... |
package com.yc.education.model.account;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleLongProperty;
import javafx.beans.property.SimpleStringProperty;
import java.math.BigDecimal;
/**
* @Description 成本核算-采购成本
* @Author Blue... |
package pardo.josengel.android_json;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**
* Created by JoseÁngel on 28/03/2015.
*/
public class tools {
/*
Comprobación conexion a internet
*/
public Boolean isOnline(Context context) {
... |
package com.bpdts.testapp.api.spring.live;
import com.bpdts.testapp.api.spring.UserServiceSpringRestClient;
import com.bpdts.testapp.api.spring.UserServiceSpringRestClientTest;
import com.bpdts.testapp.client.model.spring.User;
import org.junit.Before;
import org.springframework.boot.web.client.RestTemplateBuilder;
p... |
package com.qac.nbg_app.managers;
import java.util.ArrayList;
import java.util.List;
import com.qac.nbg_app.entities.Product;
import com.qac.nbg_app.entities.ProductGroup;
public interface ProductManager {
public List<ProductGroup> findAll();
void persistProduct(Product p);
void persistProducts(ArrayList<Produc... |
/*
* MIT License
* Copyright (c) 2017-2019 nuls.io
* 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, m... |
package f.star.iota.milk.ui.lingyu.ling;
import android.util.Log;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import f.star.iota.milk.base.PVContract;
import f... |
package com.practice.mybatistest;
import java.util.List;
import com.practice.mybatistest.dto.MyBatisTestDto;
public class MyBatisTestFindMain {
public static void main(String[] args) {
MyBatisTestDao<MyBatisTestDto> dao = new MyBatisTestDao<MyBatisTestDto>();
MyBatisTestDto dto = new MyBatisTestDto();
dto.s... |
package com.indictrans.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
impo... |
package fr.myProject.dao;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import fr.myProject.entities.Product;
/**
* @author Bacem
*
*/
@Repository
public interface ProductRepository extends JpaRepository<Product, Long>{
... |
package mb.tianxundai.com.toptoken.bean;
/**
* @author txd_dbb
* @emil 15810277571@163.com
* create at 2018/10/1515:58
* description:
*/
public class ReceivablesBean {
/**
* code : 101
* message : 获取成功
* data : {"yestodayProceed":null,"fee":0,"selected":false,"priceBlock":0,"currentUsd":9.647... |
package com.kab.chatclient.data;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.net.Uri;
import com.kab.chatclient.data.MyDataBaseContract.ChatDbEntry;
/**
* Created by Kraskovskiy on 06.07.16.
*/
public class DbHelper e... |
package com.giladkz.verticalEnsemble.Data;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import weka.core.Attribute;
import weka.core.DenseInstance;
import weka.core.Instances;
import weka.core.converters.ArffSaver;
import java.io.File;
import java.io.Serializable;
import java.util.*;
import ... |
package com.zhongyp.test;
import com.zhongyp.advanced.classloading.InitClass;
import java.util.Comparator;
/**
* @author zhongyp.
* @date 2019/7/25
*/
public class Test {
// static int java.lang.a = 1;
// int b = 2;
//
// public Test (){
// System.out.println("构造" + java.lang.a + b);
// }
// ... |
package com.git.cloud.cloudservice.dao.impl;
import java.util.Date;
import java.util.List;
import com.git.cloud.common.dao.CommonDAOImpl;
import com.git.cloud.common.exception.RollbackableBizException;
import com.git.cloud.common.model.IsActiveEnum;
import com.git.cloud.foundation.util.UUIDGenerator;
import ... |
package com.gxjtkyy.standardcloud.common.domain.dto;
import com.gxjtkyy.standardcloud.common.utils.MapUtil;
import lombok.ToString;
import java.io.Serializable;
/**
* 分页查询条件
* Created by ydlx on 2017/7/25.
*/
@ToString
public class CondictionDTO implements Serializable{
/**mysql分页开始行数*/
private int star... |
package palamarchuk.bcalendargroups.adapters;
import android.content.Context;
import android.graphics.Color;
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.wi... |
package cn.hrbcu.com.servlet;
import cn.hrbcu.com.entity.User;
import cn.hrbcu.com.service.UserService;
import cn.hrbcu.com.service.impl.UserServiceImpl;
import org.apache.commons.beanutils.BeanUtils;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http... |
package cn.com.xbed.common.util;
import org.apache.commons.codec.binary.Base64;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.FileInputStream;
import java.io.InputStream;
import java.lang.reflect.Method;
public class Base64Util {
private static Logger logger = LoggerFactory.getLogger(B... |
package com.twp.baseline;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class NonExemptedFromSalesTaxImportedGoodsTest {
@Test
public void shouldReturnTenPercentOfPriceForNonExemptedGoods() {
NonExemptedFromSalesTaxImportedGoods nonExemptedFromSalesTaxImportedGoods = new... |
package com.shangdao.phoenix.entity.companybill;
import org.springframework.data.jpa.repository.JpaRepository;
public interface CompanyBillNoticeRepository extends JpaRepository<CompanyBillNotice, Long> {
} |
package me.asyc.jchat.client.network;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import me.asyc.jchat.client.JChatClient;
import me.asyc.jchat.client.network.packet.factory.PacketList;
import me.asyc.jchat.client.network.pipeline.SocketCh... |
package com.example.movieapp;
import android.app.Application;
import android.net.Uri;
import android.os.Bundle;
import android.widget.SearchView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import com.android.volley.Request;
import com.android.volley.R... |
package ru.parse.dump.objects;
/**
*
* Java array of primitives.
*
*/
public class DumpPrimitiveArray {
private final long address;
private final DumpPrimitiveType type;
private final long length;
private final int hash;
private final long size;
public DumpPrimitiveArray(long address, Dump... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE file for licensing information.
*/
package pl.edu.icm.unity.server.registries;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory... |
package com.example.user.chendemo;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
... |
package voc.ps.dao;
import voc.ps.model.AbstractWord;
import java.util.List;
/**
* Created by pavlo.shtefanesku on 10/20/2016.
*/
public interface MonthWordDAO {
void addWord(AbstractWord word);
void updateWord(AbstractWord weekWord);
List<AbstractWord> listWords();
AbstractWord getWordById(int id)... |
package com.qihoo;
import com.qihoo.personal.PersonalActivity;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
i... |
package com.wiley.dao;
import java.util.List;
import com.wiley.model.Author;
public interface AuthorDao {
public Boolean add(Author author);
public List<Author> getAuthors();
}
|
package manager;
import scraping.Scraping;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.ObjectInputStream... |
package com.midea.designmodel.factorypartern.abstractfactory;
/**
* 1. 抽象工厂角色
* 工厂方法模式的核心,创建产品的类必须实现该接口
* 2. 具体工厂角色 用来创建具体实例
* 该角色实现了抽象工厂接口,具体如何创建产品就是在该类中实现
* 3. 抽象产品角色
* 所有产品的超类,负责实现产品共性的抽象定义
* 4. 具体产品角色
* 该角色实现了抽象产品接口,负责具体不同产品的业务逻辑
*
* 接口当参数以及返回参数
* 向上转型:继承者类型对象(子) 向 被继承者类型(父) 转型(自动转型)
* 向... |
import Llist.List;
import java.util.Iterator;
/**
* Created by Lenovo on 17.01.2016
*/
public class Test {
public static void main(String[] args) {
List list = new List();
list.addLast(5);
list.addLast("Jak");
list.addLast('c');
list.addLast(4);
list.addLast(5.00... |
package alien4cloud.model.components;
/**
* Exception happened while user would link tow incompatible PropertyDefinition
*
*/
public class IncompatiblePropertyDefinitionException extends Exception {
private static final long serialVersionUID = 1L;
public IncompatiblePropertyDefinitionException() {
... |
/*
* Copyright 2002-2015 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... |
/*
* 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 hoangduc.dtos;
import java.io.Serializable;
import java.util.HashMap;
/**
*
* @author ADMIN
*/
public class ShoppingCart i... |
package mx.ine.padron.repositorio;
// import org.springframework.data.repository.CrudRepository;
import mx.ine.padron.modelo.Persona;
public interface RepositorioPersona { // extends CrudRepository<Persona, Integer> {
} |
package org.wso2.carbon.securevault.myvault.repository;
import org.wso2.securevault.keystore.IdentityKeyStoreWrapper;
import org.wso2.securevault.keystore.TrustKeyStoreWrapper;
import org.wso2.securevault.secret.SecretRepository;
import org.wso2.securevault.secret.SecretRepositoryProvider;
public class MyVaultSecretR... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.