text stringlengths 10 2.72M |
|---|
package com.pzhu.topicsys.common.util;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import org.apache.commons.lang3.time.DateFormatUtils;
/**
*
* @ClassName: DateUtils
* @date 2013-6-24 上午8:57:16
* @Desc... |
package cn.catcatmeow.web.controller;
import cn.catcatmeow.pojo.Account;
import cn.catcatmeow.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springf... |
/*
* Program: Building.java
* Project: MissileDefense
* Author: J. Ethan Wallace and Michael Gibson
* Date Written: 10/05/2014 - 10/08/2014
* Abstract: These are the buildings that the player must protect. It is created in (and implements with) the MDGame class.
*/
import java.awt.Color;
public class Building ... |
package com.fc.activity.kdg;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONObject;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.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 pe.gob.sunarp.incidenciasapp.prueba;
import java.util.List;
import pe.gob.sunarp.incidenciasapp.dto.IncidenciaDto;
import pe.g... |
package studentService;
import java.util.HashMap;
import Student.entity.Student;
public class StudentOeration {
HashMap<String, Student> studentRank;
HashMap<Student, Integer> studentMarks;
public StudentOeration() {
super();
this.studentRank = new HashMap<>();
this.studentMarks = new HashMap<>();
}
pu... |
package com.vendingMachine.DeloitteTask.Dao;
import java.util.HashMap;
import java.util.Map;
/**
* Warehouse acts as a dao class for maintaining the count of products and coins
*
* @author Nanda Babu A
*
* @param <Product/Coin>
*/
public class Warehouse<T> {
private Map<T, Integer> warehouse = new HashMap<T,... |
package org.erwthmatologio.ptyxiakh;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;
import android.app.AlertDialog;
public class MainActivity extends Ac... |
package com.yinghai.a24divine_user.module.order.book;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.view.View;
import android.view.ViewStub;
import com.example.fansonlib.callback.LoadMoreListener;
import com.example.fansonlib.utils.ShowToast;
import com.example.fansonl... |
package com.coder4.lmsia.thrift.client;
/**
* @author coder4
*/
public class K8ServiceKey {
private String k8ServiceHost;
private int k8ServicePort;
public K8ServiceKey(String k8ServiceHost, int k8ServicePort) {
this.k8ServiceHost = k8ServiceHost;
this.k8ServicePort = k8ServicePort;
... |
package SystemCode;
/**
* DatabaseHandler
*
* @author Mark Glenn
* L00113302 Cloud
*/
import javax.swing.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
@SuppressWarnings("serial")
public class DatabaseHandler ex... |
package com.sample.app;
import static org.junit.Assert.*;
import java.util.HashMap;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.sample.app.NativeRooster;
import com.sample.app.Rooster;
public class NativeRoosterTest {
private NativeRooster nativeRooster;
private Rooster roo... |
package com.findmyfriend;
/**
* Created by Harish on 18-09-2016.
*/
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import a... |
package lando.systems.ld36.entities;
import aurelienribon.tweenengine.primitives.MutableFloat;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.utils.Array;
import lando.systems.ld36.ai.StateMachine;
import lando.systems.ld36.ai.Transition;
import lando.systems.ld36.ai.conditions.AwayFromObjectCondition... |
package model;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import controller.Controller;
import javafx.event.ActionEvent;
import javafx.event.EventHan... |
package com.ibeiliao.pay.admin.controller.report;
import com.ibeiliao.pay.ServiceException;
import com.ibeiliao.pay.admin.dto.PageResult;
import com.ibeiliao.pay.admin.dto.RestResult;
import com.ibeiliao.pay.admin.utils.RequestUtils;
import com.ibeiliao.pay.admin.utils.resource.Menu;
import com.ibeiliao.pay.admin.util... |
package tolteco.sigma.report;
import java.awt.Desktop;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.logging.Level;
import java.util... |
package pack1;
public class Example13 extends Example11{
int c=30;
int d=40;
public static void m3(){
Example13 ex3=new Example13();
Example11 ex1=new Example11();
System.out.println(ex3.c+ex3.d+ex1.a+ex1.b);
}
}
|
package com.jim.multipos.ui.mainpospage.dialogs;
import android.app.Dialog;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.View;
import android.view.Window;
import android.widget.TextView;
import com.jim.mpviews.MpButton;
import com.jim.mpviews.MpEditText;
import com.ji... |
package tk.mybatis.simple.provider;
import org.apache.ibatis.jdbc.SQL;
import tk.mybatis.simple.model.SysPrivilege;
/**
* 权限Mapper对应的Provider实现
*/
public class PrivilegeProvider {
public String selectById(final Long id){
return new SQL(){
{
SELECT("id, privilege_name, privilege_url");
FROM("sys_priv... |
package com.e6soft.form.dao;
import com.e6soft.core.mybatis.EntityDao;
import com.e6soft.form.model.BusinessFormType;
public interface BusinessFormTypeDao extends EntityDao<BusinessFormType,String> {
}
|
package br.com.nozinho.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import jav... |
package com.github.emailtohl.integration.web.service.cms;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import com.github.emailtohl.integration.web.service.cms.entities.Article;
/**
* 文章实体的数据访问接口
* @author... |
package com.tencent.mm.plugin.wallet_payu.create.ui;
import android.os.Bundle;
import com.tencent.mm.plugin.remittance.ui.RemittanceF2fDynamicCodeUI;
import com.tencent.mm.ui.base.a;
@a(3)
public class WalletPayUVerifyCodeUI extends RemittanceF2fDynamicCodeUI {
public void onCreate(Bundle bundle) {
super.... |
/*
* UniTime 3.5 (University Timetabling Application)
* Copyright (C) 2014, UniTime LLC, and individual contributors
* as indicated by the @authors tag.
*
* 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 Soft... |
/*
* 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 model.dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.LinkedLis... |
package com.smxknife.servlet.springboot.demo01.filterchain;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import java.io.IOException;
/**
* @author smxknife
* 2019-01-02
*/
public class MyFilterChain implements Fi... |
package week_1.core.general.copy;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
/*
* student 1 Student1 [id=111, name=John, course=Course1 [subject1=Physics, subject2=Chemistry, subject3=Bi... |
package com.accp.pub.pojo;
public class Functionandrole {
private Integer roleid;
private String rolename;
private Integer functionid;
private String functionname;
private String bz;
private String bz1;
private String bz2;
private String bz3;
public Integer getRoleid() {
... |
package com.bfchengnuo.security.app;
import com.bfchengnuo.security.core.social.SocialConfig;
import com.bfchengnuo.security.core.social.support.CustomizeSpringSocialConfigurer;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.... |
package ArraySample;
public class ArrayLengthExample {
public static void main(String[] args) {
int[] scores = {83, 90, 87};
int sum =0;
for(int i=0; i<scores.length; i++) {
sum += scores[i];
}
System.out.println("총합: "+sum);
double avg = (double)sum / scores.length;
System.out.print... |
package com.withertech.overtokapi;
import com.withertech.overtokapi.resource.OvertokServices;
import org.apache.catalina.Context;
import org.apache.catalina.startup.Tomcat;
import org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher;
import org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap;
publi... |
package com.tencent.mm.plugin.fts.ui.d;
import android.content.Context;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.fts.a.a.i;
import com.tencent.mm.plugin.fts.a.a.j;
import com.tencent.mm.plugin.fts.a.a.l;
import com.tencent.mm.plugin.fts.a.d.e;
import com.tencent.mm.plugin.fts.a.d.e.b;
import com.te... |
package com.ibiscus.myster.model.survey.item;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
@Entity(name = "SingleChoice")
@DiscriminatorValue("SINGLE_CHOICE")
pu... |
package jc.sugar.JiaHui.jmeter.configtestelement;
import jc.sugar.JiaHui.jmeter.*;
import org.apache.jmeter.protocol.http.control.Cookie;
import org.apache.jmeter.protocol.http.control.CookieManager;
import org.apache.jmeter.testelement.property.JMeterProperty;
import java.util.ArrayList;
import java.util.HashMap;
im... |
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
/**
* KWip generated by hbm2java
*/
public class KWip implements java.io.Serializable {
private KWipId id;
public KWip() {
}
public KWip(KWipId id) {
this.id = id;
}
public KWipId getId() {
return this.id;
}
publ... |
public class DrowShip1 extends DrowShip{
public DrowShip1(int[][] battleground) {
super(battleground, 1);
}
}
|
package com.alexkirillov.alitabot;
import com.alexkirillov.alitabot.services.scheduling.WeekManager;
import org.telegram.telegrambots.ApiContextInitializer;
import org.telegram.telegrambots.meta.TelegramBotsApi;
import org.telegram.telegrambots.meta.exceptions.TelegramApiException;
public class Main {
public stat... |
package com.goldgov.dygl.module.pmuserinfo.web;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import... |
package chapter10.Exercise10_01;
public class TestTime {
public static void main(String[] args) {
Time t1 = new Time();
Time t2 = new Time(555550000);
printTime(t1);
System.out.println("--------");
printTime(t2);
}
public static void printTime(Time t) {
System.out.print(t.getHour() + ":");
System.ou... |
package ex36;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import static org.junit.jupiter.api.Assertions.*;
class AppTest {
@Test
void average() {
ArrayList<Integer> list = new ArrayList<Integer>();
list.add(100);
list.add(200);
list.add(1000);
lis... |
package com.yinghai.a24divine_user.module.divine.divinelist.model;
import com.example.fansonlib.base.BaseModel;
import com.example.fansonlib.http.HttpResponseCallback;
import com.example.fansonlib.http.HttpUtils;
import com.example.fansonlib.utils.SharePreferenceHelper;
import com.yinghai.a24divine_user.bean.BusinessT... |
/*!
* Copyright 2002 - 2017 Webdetails, a Pentaho company. All rights reserved.
*
* This software was developed by Webdetails and is provided under the terms
* of the Mozilla Public License, Version 2.0, or any later version. You may not use
* this file except in compliance with the license. If you need a copy of ... |
package it.unica.pr2.pizza;
import java.util.*;
public class AbstractUser extends Admin{
public AbstractUser(){
}
}
|
package org.fuserleer.ledger.atoms;
import java.io.IOException;
import java.util.Objects;
import java.util.concurrent.ThreadLocalRandom;
import org.bouncycastle.util.Arrays;
import org.fuserleer.BasicObject;
import org.fuserleer.crypto.Hash;
import org.fuserleer.crypto.Hash.Mode;
import org.fuserleer.common... |
package com.project.model;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@Document(collection = "evaluation")
public class Evaluation {
@Id
String id;
String nameOfEvaluator;
Score[] listOfScore;
public Evaluation() {
}
public Evaluation(String... |
import org.apache.commons.lang3.StringEscapeUtils;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import javax.servlet.http.HttpServlet;
@SuppressWarn... |
package com.ss.android.ugc.aweme.miniapp.g;
import com.ss.android.ugc.aweme.miniapp.MiniAppService;
import com.tt.miniapp.settings.data.ABTestDAO;
import com.tt.miniapphost.AppBrandLogger;
import com.tt.option.l.a;
public class k extends a {
public AppBrandLogger.ILogger createLogger() {
return new App... |
import java.util.Comparator;
class Action {
public double time;
public double[] velocities;
public Action(double[] velocities, double time) {
this.time = time;
this.velocities = velocities;
}
}
class ActionComp implements Comparator<Action>{
@Override
public int compare(Actio... |
package com.kodilla.spring;
import com.kodilla.spring.forum.ForumUser;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Annot... |
package traffic_simulator;
public class Road {
final int ROAD_LENGTH = 36;
String roadName;
int roadEnd1X;//traffic_simulator.Road end X-Y coordinates measured from middle of road to keep vehicles on either side
int roadEnd1Y;
int roadEnd2X;
int roadEnd2Y;
String direction;
public Road(... |
package com.sedwt.icloud.controller;
import com.sedwt.icloud.common.Result;
import com.sedwt.icloud.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.sp... |
package org.tinyspring.aop.config;
import org.tinyspring.beans.BeanUtils;
import org.tinyspring.beans.factory.BeanFactory;
import org.tinyspring.beans.factory.BeanFactoryAware;
import org.tinyspring.beans.factory.FactoryBean;
import org.tinyspring.utils.StringUtils;
import java.lang.reflect.Method;
/**
* @author ta... |
package main.model;
import java.util.List;
import object.visualparadigm.Shape;
public class EPCElement {
private Shape shape;
private boolean isStartNode;
private boolean reqDummyTrans;
private String operatorType; //Split, Join
private List<String> fromShapeId;
private List<String> toShapeId;
private CPNOb... |
package Exams.February24_2019;
import java.util.Scanner;
public class TronRacers {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = Integer.parseInt(scanner.nextLine());
int rowF = 0;
int colF = 0;
int rowS = 0;
... |
package com.project.common_basic.hybrid;
/**
* 标题栏右侧按钮点击监听
*
* Created by joye on 2017/3/8.
*/
public interface RightBtnClickListener {
boolean onClickRightBtn();
}
|
package test;
import static org.junit.Assert.assertEquals;
import junit.framework.Assert;
import model.ChemicalElement;
import model.Classification;
import org.junit.Before;
import org.junit.Test;
public class ChemicalElementTest {
ChemicalElement elemen1;
ChemicalElement elemen2;
ChemicalElement elemen3;
Che... |
package interpreter;
class Node
{
Node left;
Node right;
String value;
String type;
int length;
public Node(String value, String type, int length) {
this.value = value;
this.type = type;
this.length = length;
}
}
|
package com.portmods.SC.handler;
import net.minecraft.client.Minecraft;
import org.lwjgl.opengl.ARBFramebufferObject;
import static org.lwjgl.opengl.EXTFramebufferObject.*;
import static org.lwjgl.opengl.GL11.*;
/**
* Created by David on 8/14/2014.
*/
public class RenderHandler {
public RenderHandler()
{
... |
package xframe.example.pattern.factory.simplefactory;
public class Byd extends Car {
Byd(){
System.out.println("call Byd constructor.");
}
}
|
package com.alfa.work2;
public interface MyConverter {
String convertStr(String str);
public static boolean isnull(String str){
return str == null ? true : str.trim().equals("") ;
}
}
|
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
/**
* Jobshop产品外协率 generated by hbm2java
*/
public class Jobshop产品外协率 implements java.io.Serializable {
private Jobshop产品外协率Id id;
public Jobshop产品外协率() {
}
public Jobshop产品外协率(Jobshop产品外协率Id id) {
this.id = id;
}
pub... |
package cardreceiptmanager.model;
/**
* Created by User on 1/27/2016.
*/
public class CardModel {
}
|
package com.example.project_redbus;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import androi... |
/*
* 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 laptinhmang;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java... |
package com.example.startapp006;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import java.util.List;
public class MyItemRecyclerViewAdapter extends RecyclerV... |
package com.e6soft.bpm.service;
import java.util.List;
import org.jdom.Element;
import com.e6soft.api.bpm.dto.BpmFormData;
import com.e6soft.bpm.model.FlownodeAction;
import com.e6soft.core.service.BaseService;
/**
* 节点应用Action操作
* @author 陈福忠
*
*/
public interface FlownodeActionService extends BaseService<Flow... |
import java.util.Scanner;
public class Consecutive_number{
public static boolean isConsecutiveFour(int[] arr) {
boolean result = true;
if(arr.length<1)
return false;
int min=getmin(arr);
int max=getmax(arr);
int n=arr.length;
int count=0;
if(max+min-1==n) {
boolean[] reached=new boolean[n];
for(int i=0;i<n;i++) {
if(re... |
/**
* @author Mie Plougstrup, Anders Abildgaard, Bo Stokholm
* @Version 16-12-2014
*/
package dbLayer;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import modelLayer.Trailer;
/**
* @author Bo Niels... |
package io.github.namhyungu.algorithm.programmers.kakao.blind_recruitment.v2018;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class NewsClustering {
public int solution(String str1, String str2) {
List<String> set1 = filterString(toStringSet(str1.toLowerCase()));
L... |
package org.Third.Chapter.CompletableFuture;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;
public class TestFutureException {
/**
* one start ------------
* ---main thread wait future result---
* ----thr... |
import java.nio.file.*;
public class Main {
public static void main(String[] args) {
try {
Path catalogCopy = Paths.get(args[0]);
Path catalogCopyPlace = Paths.get(args[1]);
Files.walkFileTree(catalogCopy,
new CopyDirVisitor(catalogCopy, catalogCopyPl... |
package com.fight.job.admin.controller;
import com.fight.job.admin.bean.convert.LogInfoConvert;
import com.fight.job.admin.service.LogInfoService;
import com.fight.job.admin.util.WebResult;
import com.fight.job.admin.util.WebResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfr... |
package com.javarush.task.task18.task1812;
import java.io.IOException;
public interface AmigoOutputStream {
void flush() throws IOException;
void write(int b) throws IOException;
void write(byte[] b) throws IOException;
void write(byte[] b, int off, int len) throws IOException;
void close() th... |
package com.tencent.mm.ui.chatting.b;
import com.tencent.mm.ui.chatting.b.b.m;
import com.tencent.mm.ui.chatting.b.j.6;
import com.tencent.mm.ui.widget.snackbar.a$c;
class j$6$1 implements a$c {
final /* synthetic */ 6 tOX;
j$6$1(6 6) {
this.tOX = 6;
}
public final void onShow() {
th... |
package br.com.gmarques.devamil.bean;
import java.util.Date;
public class Action {
private Date time;
private String weapon;
public Date getTime() {
return time;
}
public void setTime(Date time) {
this.time = time;
}
public String getWeapon() {
return weapon;
}
public void setWeapon(String weapon) {... |
public class Clefts extends Thing {
public Clefts(String name, String direction, ThingActions... thingActions) {
super(name,direction);
addThingAction(thingActions);
}
@Override
public void addThingAction(ThingActions... thingActions) {
super.addThingAction(thingActions);
... |
package cars;
import people.Driver;
public class Car {
private int engine_power;
public Car(int driving_experience, int car_accident, int engine_power){
new Driver(driving_experience,car_accident);
this.engine_power = engine_power;
System.out.println(String.format("The engine 111pow... |
/*
* [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 te... |
package servlets;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter;
import javax.serv... |
package com.example.demo.Config;
import com.example.demo.entity.Animal;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties(prefix... |
import org.springframework.ldap.core.LdapTemplate;
import org.springframework.ldap.core.support.LdapContextSource;
import org.springframework.security.ldap.SpringSecurityAuthenticationSource;
public class TestLdap {
/**
* @param args
*/
static LdapTemplate ldapTemplate = null;
public static void main(String[... |
package com.bdb.model;
import java.util.List;
public class ObjectNestedCollection {
public ObjectNestedCollection() {
}
public List getList() {
return list;
}
public Object getObject() {
return object;
}
public void setList(List list) {
this.list = list;
}
... |
package com.utpol.utpol;
import java.util.List;
/**
* The type Gov info.
*/
public class GovInfo {
private String party;
private String districtNumber;
private String leadPos;
private String location;
private List<CommitteeDetail> committees;
private List<String> interns;
private Boolea... |
package it.usi.xframe.xas.bfimpl;
/**
* Bean implementation class for Enterprise Bean: XasEcho
*/
public class XasEchoBean
extends it.usi.xframe.xas.bfimpl.XasEchoServiceFacade
implements javax.ejb.SessionBean {
private javax.ejb.SessionContext mySessionCtx;
/**
* getSessionContext
*/
public javax.ejb.Sessio... |
/*
* This file is part of LeagueLib.
* LeagueLib 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 License, or
* (at your option) any later version.
*
* LeagueLib is distribu... |
package io.muic.ooc.Commands;
import io.muic.ooc.Items.Potion;
import io.muic.ooc.Player;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by karn806 on 2/4/17.
*/
public class UseCommandTest {
@Test
public void apply() throws Exception {
Player player = new Player();
... |
package com.sporsimdi.action.facadeBean;
import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import com.sporsimdi.action.facade.TahakkukDet... |
package com.bytedance.platform.godzilla.d;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.ThreadFactory;
import java.util.c... |
package com.collection;
import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;
public class TestSet {
public static void main(String[] args) {
Set<String> setStr = new HashSet<>();
setStr.add("Quoc Long");
setStr.add("Tuan Phuong");
setStr.add("Ngoc Quan");
... |
package com.paleimitations.schoolsofmagic.client.screen;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.systems.RenderSystem;
import com.paleimitations.schoolsofmagic.References;
import com.paleimitations.schoolsofmagic.common.data.books.BookPage;
import com.paleimitations.schoolsofmagic.commo... |
//
// Generated by JTB 1.3.2
//
package visitor;
import syntaxtree.*;
import java.util.*;
/**
* Provides default methods which visit each node in the tree in depth-first
* order. Your visitors may extend this class.
*/
public class PrintIdVisitor2 extends GJDepthFirst<Arginfo,Arginfo> {
//
// Auto class vi... |
package cn.jishuz.library.until;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.LayoutInflater;
impor... |
package com.p4square.ccbapi.model;
import javax.xml.bind.annotation.*;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
/**
* Representation of a Group Profile.
*/
@XmlRootElement(name="individual")
@XmlAccessorType(XmlAccessType.NONE)
public class GroupProfile {
@XmlAttribute... |
package com.rsm.yuri.projecttaxilivre.adddialog.di;
import com.rsm.yuri.projecttaxilivre.TaxiLivreAppModule;
import com.rsm.yuri.projecttaxilivre.adddialog.ui.AddDialogFragment;
import com.rsm.yuri.projecttaxilivre.domain.di.DomainModule;
import com.rsm.yuri.projecttaxilivre.lib.di.LibsModule;
import javax.inject.Sin... |
package solution.cs3330.hw3;
public class Human extends GameCreature{
public Human(String name, int hp, Bag emptyBag) {
super(name, hp, emptyBag);
this.bag.addItem(new Weapon("Standard","Crowbar", 5, 30));
// TODO Auto-generated constructor stub
}
public boolean pickup(Item item) {
return this.bag.add... |
package com.philippe.app.util;
import com.philippe.app.domain.Event;
import java.util.function.BiPredicate;
public class FilteringUtil {
public static final String NATIVE = "native";
public static final BiPredicate<Event, String[]> filterByEventType =
(event, eventTypeArray) -> {
... |
package com.mochasoft.fk.exception;
/**
* <strong>Title : MochaException </strong>. <br>
* <strong>Description : 业务异常对象封装.</strong> <br>
* <strong>Create on : 2012-9-3 下午3:51:04 </strong>. <br>
* <p>
* <strong>Copyright (C) Mocha Software Co.,Ltd.</strong> <br>
* </p>
* @author wanghe wanghe@mochasoft.... |
package com.tencent.mm.ui.widget.textview;
import android.view.ViewTreeObserver.OnPreDrawListener;
class a$6 implements OnPreDrawListener {
final /* synthetic */ a uPp;
a$6(a aVar) {
this.uPp = aVar;
}
public final boolean onPreDraw() {
if (this.uPp.uPl) {
this.uPp.uPl = ... |
import com.github.tomakehurst.wiremock.junit.WireMockRule;
import com.hogetvedt.crawler.models.WebLink;
import com.hogetvedt.crawler.spider.Spider;
import com.hogetvedt.crawler.spider.SpiderException;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.