text stringlengths 10 2.72M |
|---|
package Academy;
import java.io.IOException;
import org.apache.logging.log4j.*;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.events.EventFiringWebDriver;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.testng.Assert;
import org.testng.annotations.Aft... |
/**
* 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"... |
package com.controller;
import com.alibaba.fastjson.JSONObject;
import com.bean.Role;
import com.mapper.RoleMapper;
import com.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapp... |
package com.worker.framework.recovery;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.retry.RepublishMessageRecoverer;
import org.springframework.amqp.support.converter.MessageConverter;
import com.go... |
package sarong;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/**
* Interface for full-featured random number generators to implement (it does more than, and includes all of,
* {@link RandomnessSource}). It's a stripped down version of the original {@li... |
package com.nazmul.dp.designpattern.factory;
public class ShapeFactory {
public Shape createShape(String shapeType) {
Shape shape = null;
if(shapeType.equalsIgnoreCase("C")) {
shape = new Circle();
}
else if(shapeType.equalsIgnoreCase("S")) {
shape = new Square();
}
else {
sha... |
package com.e6soft.form.controllers;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.R... |
package ua.khai.slynko.library.web.filter;
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.http.HttpServl... |
package collector.network.ethereum;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* @author zacconding
* @Date 2018-12-19
* @GitHub : https://github.com/zacscoding
*/
@Getter
@Setter
@NoArgsConstruct... |
package com.yc.easyui.bean;
import java.io.Serializable;
public class Emps implements Serializable{
private static final long serialVersionUID = -9109906931949744442L;
private int eno;
private int deptno;
private String ename;
private String pwd;
private String tel;
private String pic;
private St... |
package publisher;
import com.google.common.collect.Lists;
import exception.ConfigException;
import subscription.Subscription;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurren... |
package com.springboot.springbootvalidation.controller;
import com.springboot.springbootvalidation.model.User;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.validation.Valid;
@Controll... |
package visitor;
import entidades.abstractas.Aliado;
import entidades.abstractas.Enemigo;
import entidades.abstractas.ObjetoVida;
import entidades.concretas.BarricadaConPinches;
public class VisitorEnemigo extends Visitor {
protected Enemigo en;
public VisitorEnemigo(Enemigo e) {
en = e;
}
public void vis... |
package com.tt.miniapp.business.frontendapihandle.handler.net;
import android.text.TextUtils;
import com.tt.miniapp.msg.sync.SyncMsgCtrl;
import com.tt.miniapp.util.NetUtil;
import com.tt.miniapp.websocket.common.WSRequest;
import com.tt.miniapp.websocket.mgr.SocketManager;
import com.tt.miniapphost.AppBrandLog... |
package com.example.gsc;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.GridLayoutManager;
import a... |
package rugal.westion.jiefanglu.core.service;
import org.apache.commons.fileupload.FileItem;
import rugal.westion.jiefanglu.core.entity.ArticlePic;
public interface ArticlePicService {
ArticlePic deleteById(Integer id);
ArticlePic findById(Integer id);
ArticlePic update(ArticlePic bean);
ArticlePic save(File... |
package com.tencent.mm.plugin.ipcall.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.support.v7.app.ActionBarActivity;
import com.tencent.mm.R;
import com.tencent.mm.ui.base.h;
class IPCallShareCouponCardUI$16 implements OnClickListener {
final /*... |
package com.tencent.mm.plugin.qqmail.ui;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.FrameLayout;
import com.... |
package com.example.lib;
/**
* @Author jacky.peng
* @Date 2021/4/10 11:14 AM
* @Version 1.0
*/
public class NotifyReportTask implements Runnable{
@Override
public void run() {
//通知
}
}
|
package littleservantmod.profession.behavior;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.google.common.collect.Lists;
import littleservantmod.api.profession.behavior.IBehavior;
import net.minecraft.nbt.NBTBase;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.... |
import java.util.*;
public class InvoiceTester {
public static void main(String[] s) {
Client c1 = new Client("bob", "smith", "address");
Client c2 = new Client("tom", "jerry", "address");
Product p1 = new Product("product1", 1, 2, 0.99);
Product p2 = new Product("product2", 1, 5, 2.50);
Produc... |
package com.linkan.githubtrendingrepos.utils;
import com.linkan.githubtrendingrepos.data.model.api.TrendingResponse;
import com.linkan.githubtrendingrepos.data.model.db.TrendingRepo;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public final class UtilFunction {
private UtilF... |
package com.demianchuk.cjug.lambda.example5;
import java.util.Arrays;
import java.util.function.Supplier;
public class MethodReferenceExample2 {
public static void main(String[] args) {
Student student1 = getInstance(Student::new);
Student student2 = getInstance(Student::new);
student1.s... |
package com.example.abel.myapplication;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
impor... |
package ru.kappers.logic.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
i... |
package com.tencent.mm.booter;
import com.tencent.mm.booter.NotifyReceiver.NotifyService.1;
import com.tencent.mm.plugin.report.f;
import com.tencent.mm.sdk.platformtools.x;
class NotifyReceiver$NotifyService$1$1 implements Runnable {
final /* synthetic */ 1 cXk;
NotifyReceiver$NotifyService$1$1(1 1) {
... |
package com.maweiming.wechat.bot.model.core;
import com.maweiming.wechat.bot.model.contact.ContactMemberModel;
import com.maweiming.wechat.bot.model.contact.MemberModel;
import com.maweiming.wechat.bot.model.initialization.SyncKeyModel;
import com.maweiming.wechat.bot.model.initialization.UserModel;
import com.maweimi... |
package com.jiuzhe.app.hotel.dao;
import com.jiuzhe.app.hotel.constants.OrderStatusEnum;
import com.jiuzhe.app.hotel.dao.mapper.SchedulerMapper;
import com.jiuzhe.app.hotel.entity.HotelOrder;
import org.apache.ibatis.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewo... |
package com.appdear.client.service.api;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.util.Log;
import com.appdear.client.exception.ApiException;
import com.appdear.client.exception.ServerException;
import com.... |
/**
* 演示并发可以提升速度
* 演示多线程可以提升速度哦
*
* 计算从 1 + N 的一个耗时
*/
public class ThreadSpeedUp {
private static final long C = 10;
private static final long N = 100_0000_0000L;
private static class Calc extends Thread {
public void run() {
long r = 0;
for (long i = 0; i < N; i++) {
... |
package main;
import net.egork.collections.Pair;
import net.egork.collections.sequence.Array;
import net.egork.numbers.IntegerUtils;
import net.egork.utils.io.InputReader;
import net.egork.utils.io.OutputWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
publ... |
package activities.db;
import activities.db.*;
public class Prueba {
public static void main(String args[]) throws Exception
{
DBInteraction db = new DBInteraction();
}
}
|
package com.getronics.quarkus.api.registration;
import com.getronics.quarkus.api.registration.beans.RegisterRequest;
import com.getronics.quarkus.api.registration.beans.RegisterResponse;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;... |
package main.controllers.rest;
import main.db.SequenceListManager;
import main.db.SequenceManager;
import main.db.UserAuthentication;
import main.models.Sequence;
import main.models.SequenceList;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod... |
/**
* Javassonne
* http://code.google.com/p/javassonne/
*
* @author [Add Name Here]
* @date Mar 10, 2009
*
* Copyright 2009 Javassonne Team
* 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 th... |
/* 1: */ package com.kaldin.common.util;
/* 2: */
/* 3: */ import java.io.File;
/* 4: */ import java.io.IOException;
/* 5: */ import java.io.PrintWriter;
/* 6: */ import java.util.List;
/* 7: */ import javax.servlet.ServletContext;
/* 8: */ import javax.servlet.ServletException;
/* 9: ... |
/*
* 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 Utility;
import java.awt.Dimension;
import java.awt.Image;
import javax.swing.JFrame;
import java.awt.Toolkit;
/*... |
package org.yanning.lib.LogFormat;
import java.util.ArrayList;
import java.util.Arrays;
class Utils {
/**
* 合并数组
*
* @param strings
* @return
*/
public static final String[] mergeArrays(String[]... strings) {
ArrayList<String> arrayList = new ArrayList<>();
for (String[] ss : strings) {
arrayList... |
package com.aprendoz_test.data;
/**
* aprendoz_test.PadresVistaCalifFinal
* 01/19/2015 07:58:53
*
*/
public class PadresVistaCalifFinal {
private PadresVistaCalifFinalId id;
public PadresVistaCalifFinalId getId() {
return id;
}
public void setId(PadresVistaCalifFinalId id) {
... |
package com.dealership.dao;
import com.dealership.entity.OrderGroup;
import java.util.List;
/**
* Created by alpha on 2015/2/28.
*/
public interface OrderGroupDao {
public List<OrderGroup> getAllOrdGroup();
public void addOrdGroup(OrderGroup orderGroup);
public void deleOrdGroup(Integer ordGroupId);
}
|
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;
public class HW4_24232973338 {
private static int[] lengths;
private int[][] graph;
public static void main(String[] args) throws IOException {
Scanner scanner = new Scanner(System.in);
... |
package hirondelle.web4j.security;
import hirondelle.web4j.model.Id;
import hirondelle.web4j.util.EscapeChars;
import hirondelle.web4j.util.Regex;
import hirondelle.web4j.util.Util;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.http.H... |
package com.tencent.mm.plugin.mmsight.segment;
import com.tencent.mm.sdk.f.e;
import com.tencent.mm.sdk.platformtools.x;
class RecyclerThumbSeekBar$2 implements Runnable {
final /* synthetic */ RecyclerThumbSeekBar llX;
RecyclerThumbSeekBar$2(RecyclerThumbSeekBar recyclerThumbSeekBar) {
this.llX = re... |
package usta.sistemas;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
/*AUTHOR: Angel Manuel Correa
DATE: 29/03/2020
DESCRIPTION: This software calculates the average height of a group of 5 children
*/
System.out.println("----------------------------------... |
package com.upmce.samplesource.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
@Configuration (value = "SourceConfig")
public class Source {
@Bean
public RestTemplate targetRestTemplate ()... |
package com.diwakar.theater;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Enable... |
public class driverad {
public static void main(String[] args)
{
Addresshas a1=new Addresshas(105,"hyd");
empa e=new empa(5035,"siddu",a1);
System.out.println(e.getEno() +"-"+e.getEname());
System.out.println(e.getAddr().getHno() +"-"+e.getAddr().getLoc());
}
}
|
package messanger;
import java.io.Serializable;
/**
* Typ Wyliczeniowy Statusu
**/
public enum Status {
OFFLINE(0),
ONLINE(1),
IDLE(2),
INVISIBLE(3);
public static final String ONLINE_IMG = "messanger/online.png";
public static final String OFFLINE_IMG = "messanger/offline.png";
public static final... |
package com.example.demo.service;
import com.example.demo.domain.Nursing;
import com.example.demo.domain.NursingPage;
import java.util.List;
public interface NursinigService {
public List<Nursing> getNursing(NursingPage page);
public int add(Nursing nursing);
public int delete(int id);
public int update(Nurs... |
package com.jk.jkproject.ui.activity;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.text.Editable;
import android.text.Html;
import android.text.TextWatcher;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import and... |
package ru.shipov.spring.loggers;
import org.apache.commons.io.FileUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import ru.shipov.spring.beans.Event;
import javax.annotation.PostConstruct;
import java.io.File;
import java.io.IOException;
@Component... |
package com.ssm.wechatpro.controller;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ssm.wechatpro.object.InputObject;
import com.ssm.wechatpro.o... |
package com.oracle.vikings;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class LogAnalyzerApplication {
public static void main(String[] args) {
SpringApplication.run(LogAnalyzerApplication.class, args);
}
}... |
package com.lingjuli.domain;
import java.util.Date;
/**
* Created by Administrator on 2016/3/1 0001.
*/
public class Order {
private int id; //id //数据库自动生成
private int buildSize; //建筑面积
private String houseType; //房型
private String levelOfDec; //装修档次
private String name; ... |
import java.awt.image.*;
import java.io.File;
import java.io.IOException;
import java.sql.*;
import java.util.*;
import javax.imageio.ImageIO;
public class main {
public static void main(String[] args) {
BufferedImage image = null;
image = open("tree");
pixelArr pix = new pixelArr(image)... |
package dan.ndvor.com.dangol;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.text.Html;
import android.view.L... |
package com.project.database.serviceHibernate;
import com.project.database.dto.student.StudentShortInfo;
import com.project.database.dto.subject.StudentSubjectShortInfo;
import com.project.database.entities.GroupEntity;
import com.project.database.entities.StudentEntity;
import com.project.database.entities.SubjectEnt... |
package com.jk.jkproject.ui.entity;
import java.io.Serializable;
public class PushPKStreamInfo implements Serializable {
String tagAnchorId;//对方id
String anchorId;//自己主播id
String mergeStreamUrl;//PK合并的流id
String PKId; //PKid
String tagRoomId;//对方的房间id
String tagStreamId;//对方的流id
public St... |
package co.staruml.views;
import co.staruml.uml.*;
public class UMLClassView extends UMLGeneralNodeView {
private UMLCompartment attributes;
private UMLCompartment operations;
public static final int CLASS_NAME_AREA = 1,
CLASS_ATTRIBUTE_AREA = 2,
CL... |
package service;
import static service.Data.*;
import java.util.ArrayList;
import domain.*;
public class NameListService {
ArrayList<Employee> list = new ArrayList<Employee>();
public NameListService() {
for (int i = 0; i < EMPLOYEES.length; i++) {
int type = Integer.parseInt(EMPLOYEES[i][0]);
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package lappa.smsbanking.IDao.Impl;
import com.douwe.generic.dao.DataAccessException;
import com.douwe.generic.dao.impl.GenericDao;
import lappa.smsbanking.IDao.IAutorisationDao;
import lappa.smsbanking.Entities.Autoris... |
package com.example.android.pokefinder;
import androidx.annotation.NonNull;
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.RecyclerView;
import android.content.res.ColorStateList;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import andro... |
package collection.queue;
public class Application {
public static void main (String[] args) {
Book book1 = new Book("Fundacja", "Issac Asimov", 1951);
Book book2 = new Book("Achaja", "Andrzej Ziemianski", 2003);
Book book3 = new Book("Wladca Pierscieni", "J.R.R Tolkien", 1954);
B... |
package problemDomain;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.math.MathContext;
import java.math.RoundingMode;
/**
* An item that is used in a sale
*/
public class SaleLineItem
{
/**
* The actual item
*/
private Item item;
/**
* The amount of the actual item
*/
private int... |
/**
* SE1021 - 032
* Winter 2016
* Lab 3
* Name: Ian Guswiler
* Created: 12/17/2015
*/
import edu.msoe.se1010.winPlotter.WinPlotter;
import java.awt.Color;
/**
* This class represents a point
* @author Ian Guwiler
* @version 12/20/2015
*/
public class Point extends Shape {
/**
* Creates the point... |
package lesson6;
import lombok.Data;
import lombok.NonNull;
import java.util.List;
import java.util.function.Predicate;
@Data
public class Book {
@NonNull
private String title;
@NonNull
private int pageCount;
@NonNull
private String country;
// static class TestPagesCountMoreThan400 impl... |
package com.lea.proj.dao;
import com.lea.proj.model.Settlement;
import com.lea.proj.model.SettlementExample;
import java.util.List;
import com.lea.proj.model.common.ConditionVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
@Component("settlementMapper")
public interfac... |
package tainiothiki;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
public class countryloader extends fileloader {
public countryloader(String file) {
super(file);
}
public ArrayList<country> loadcountries(){
... |
/*
* 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 not ... |
package cl.jdomynyk.pulent.data.entities;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
import com.google.gson.annotations.SerializedName;
@Entity(tableName = TrackEntity.TABLE_NAME)
public class TrackEn... |
package com.example.root.curriculum.base;
import io.reactivex.disposables.Disposable;
interface RxNetManager {
void dispose(Disposable disposable);
void addDisposable(Disposable disposable);
} |
package cn.wolfcode.crm.shiro.config;
import com.jagregory.shiro.freemarker.ShiroTags;
import freemarker.template.Configuration;
import freemarker.template.TemplateException;
import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;
import java.io.IOException;
public class CRMFreeMarkerConfigurer ... |
package android.support.v7.widget;
import android.support.v4.view.ai;
import android.support.v4.view.z;
import android.support.v7.widget.RecyclerView.t;
import android.support.v7.widget.v.5;
import java.util.ArrayList;
import java.util.Iterator;
class v$3 implements Runnable {
final /* synthetic */ v NZ;
fina... |
package com.icleveret.recipes.service.impl;
import com.icleveret.recipes.component.SessionHolder;
import com.icleveret.recipes.dao.FavoriteDao;
import com.icleveret.recipes.model.Favorite;
import com.icleveret.recipes.model.User;
import com.icleveret.recipes.service.FavoriteService;
import org.springframework.beans.fa... |
public class IntegerToRoman {
/**
* Use 7 basic symbols.
*/
public String intToRoman_1(int num) {
StringBuilder sb = new StringBuilder();
char[] basic = {'I', 'V', 'X', 'L', 'C', 'D', 'M'};
int n = 4;
int k = 1000;
int h = 0;
while (n != 0) {
... |
package com.sporsimdi.model.base;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.EntityListeners;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Generatio... |
package switch2019.project.applicationLayer.integration;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springfra... |
package nesneyönelim;
public class MerkeziSistem {
private int temp=0;
Eyleyici ey = new Eyleyici();
EyleyiciModül eym = new EyleyiciModül();
SıcaklıkAlgılayıcı sa = new SıcaklıkAlgılayıcı();
public MerkeziSistem() {
ey.registerObserver(eym);
}
public int SıcaklıkGetir() {
temp = sa.ReadTemperature();... |
package com.eres.waiter.waiter.model.test;
import com.eres.waiter.waiter.model.EmptyTable;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
public class TestClass {
@SerializedName("")
private EmptyTable[] tables;
public EmptyTable[] getTables() {
return tables;
... |
package zm.gov.moh.core.model;
import zm.gov.moh.core.repository.database.entity.domain.Location;
public class Authentication {
private User user;
private String token;
private String timeZone;
public User getUser() {
return user;
}
public String getUserUuid() {
return use... |
package com.hesoyam.pharmacy.user.dto;
import com.hesoyam.pharmacy.pharmacy.dto.PharmacyDTO;
import com.hesoyam.pharmacy.user.model.Pharmacist;
public class PharmacistDetailsDTO extends EmployeeBasicDTO {
private PharmacyDTO pharmacy;
public PharmacistDetailsDTO(){
super();
}
public Pharmac... |
package com.app.cosmetics.application;
import com.app.cosmetics.core.item.Item;
import com.app.cosmetics.core.item.ItemRepository;
import com.app.cosmetics.api.exception.InvalidException;
import com.app.cosmetics.api.exception.NotFoundException;
import com.app.cosmetics.core.stock.Stock;
import com.app.cosmetics.core.... |
/**
*
*/
package simplejava.nio.channel;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.lang.ref.ReferenceQueue;
import java.net.URLConnection;
import java.nio.ByteBuffer;
import java.nio.MappedByteBuffer;
import... |
package com.insta.dao;
import java.util.List;
import java.util.Set;
import javax.transaction.Transactional;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.insta.beans.Image;
import com.insta.entities.I... |
package com.xzj.interceptor;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;... |
package action.system;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpSession;
import service.system.WaiterService;
import model.ResultMessage;
import model.SystemUser;
public class LoginAction extends BaseAction{
private static final long serialVersion... |
package org.havryliuk.javaweb.controller;
import java.util.ArrayList;
import java.util.List;
import org.havryliuk.javaweb.model.exception.MissingRequestParameterException;
import org.junit.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import static org.junit.Assert.assertEquals;
import static org... |
package garcia.juan.reto.qvision.runners;
import cucumber.api.CucumberOptions;
import cucumber.api.SnippetType;
import net.serenitybdd.cucumber.CucumberWithSerenity;
import org.junit.runner.RunWith;
@RunWith(CucumberWithSerenity.class)
@CucumberOptions (features = "src/test/resources/features/validarTarifasDXHotels.fe... |
package com.webapi.API;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.text.ParseException;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.r... |
package Aula10;
public class Pessoa implements Comparable<Pessoa>{
protected int bi;
protected String nome;
protected Data dataNasc;
public Pessoa(String aNome, int aBi, Data aDataNasc)
{
nome = aNome;
bi = aBi;
dataNasc = aDataNasc;
}
public Pessoa(String aNome, int aBi, int aDia, in... |
package com.control.amigo;
import android.app.ActivityManager;
import android.content.Context;
import android.graphics.PixelFormat;
import android.view.Gravity;
import android.view.WindowManager;
import android.view.WindowManager.LayoutParams;
import android.widget.TextView;
import com.example.amigo.R;
public class ... |
package com.mochasoft.fk.email;
/**
* <strong>Title : Priority </strong>. <br>
* <strong>Description : 优先级枚举.</strong> <br>
* <strong>Create on : 2013-2-25 下午15:48:20 </strong>. <br>
* <p>
* <strong>Copyright (C) Mocha Software Co.,Ltd.</strong> <br>
* </p>
*
* @author hemw hemw@mochasoft.com.cn <br... |
package com.timmy.framework.retrofit2;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Created by admin on 2017/9/23.
* 请求参数的注解
*/
@Target(PARAMETER)
@Retention(R... |
package com.kunsoftware.controller.manager;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annot... |
/*
* 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.printcalculator.core;
import com.printcalculator.bean.PrintJob;
import com.printcalculator.enums.PrintJobType;
import com.... |
package org.usfirst.frc.team5951.robot.commands.gears.floorGearsIntake;
import org.usfirst.frc.team5951.robot.Robot;
import org.usfirst.frc.team5951.robot.subsystems.FloorGearsIntake;
import edu.wpi.first.wpilibj.command.InstantCommand;
/**
*
*/
public class ToggleFloorIntakePosition extends InstantCommand {
Flo... |
package ie.com.urlshortener.api.rest.impl;
import static org.hamcrest.Matchers.notNullValue;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servle... |
/*
* 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 entityparts;
import data.Entity;
import data.GameData;
/**
*
* @author casperhasnsen
*/
public class powerupPart implement... |
package Exceptions;
public class Excep_3 {
private void thisMethodThrowsAnException() throws Exception {
System.out.println("thisMethodThrowsAnException() ---> " );
throw new Exception("in thisMethodThrowsAnException");
// javac Excep_3.java
// Excep_3.java:6: unreachable statemen... |
import java.util.Scanner;
public class UserClassRunner
{
public static void main(String[]args)
{
Scanner kb = new Scanner(System.in);
System.out.println("Enter first name:");
String first = kb.next();
System.out.println("Enter last name:");
String last = kb.next();
TheUserClass user1;
System.o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.