text stringlengths 10 2.72M |
|---|
package LimpBiscuit.Demo.Repository;
import LimpBiscuit.Demo.Entity.RequestOperatingSystem;
import org.springframework.data.repository.CrudRepository;
public interface RequestOperatingSystemRepository extends CrudRepository<RequestOperatingSystem, Long> {
<S extends RequestOperatingSystemRepository> S save(S enti... |
/* ------------------------------------------------------------------------------
* 软件名称:他秀手机版
* 公司名称:多宝科技
* 开发作者:Yongchao.Yang
* 开发时间:2014年7月15日/2014
* All Rights Reserved 2012-2015
* -----------------------------------------------------... |
package com.git.support.sdo.impl;
public class BodyDO extends DataObject {
private static final long serialVersionUID = 1L;
private BodyDO() {
}
public static BodyDO CreateBodyDO() {
return new BodyDO();
}
}
|
package model;
public class dayForecast {
private String date; // not edit
private Long dayIcon;
private Long nightIcon;
private String minTemperature; // not edit
private String maxTemperature; // not edit
private String dayWind; // edit
private String nightWind;
private String uVIndex; // not edit
private ... |
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package application;
import com.jme3.app.SimpleApplication;
import com.jme3.input.KeyInput;
import com.jme3.input.MouseInput;
import com.jme3.input.controls.ActionListener;
import com.jme3.input.controls.AnalogListener;
import com.jme3.input.controls.KeyTrigger;
import com.jme3.input.controls.MouseAxisTrigger;... |
package ua.com.hibernate.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ua.com.hibernate.model.User;
import ua.com.hibernate.repository.UserRepository;
import ua.com.hibernate.repository.impl.UserRepositoryImpl;
import ua.com.hibernate... |
package com.stackflow.pageObjects;
import java.util.List;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.CacheLookup;
import org.openqa.selenium.support.FindBy;
import o... |
package newlang4;
import newlang3.LexicalType;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
public class EndNode extends Node {
static final Set<LexicalType> first = new HashSet<LexicalType>(Arrays.asList( LexicalType.END));
private EndNode(Environment env){
super(env);
... |
package ru.skillfactory.actions;
import ru.skillfactory.*;
/**
* Класс для реализации действия "Перевести средства", используется в StartUI.
*/
public class TransferToAction implements UserAction {
@Override
public String getTitle() {
return "Перевести средства";
}
/**
* Перевести сре... |
package f.star.iota.milk.ui.gacha;
import f.star.iota.milk.base.BaseBean;
class GachaBean extends BaseBean {
private String preview;
private String url;
private String avatar;
private String author;
private String rank;
public GachaBean() {
}
public String getPreview() {
re... |
package com.pwq.sort;
/**
* @Author:WenqiangPu
* @Description
* @Date:Created in 20:13 2017/8/2
* @Modified By:
*/
public class User implements Comparable<User>{
private String name;
private Integer order;
public String getName() {
return name;
}
public void setName(String name) {
... |
/*
* 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 logica;
import java.sql.SQLException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;... |
/*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.isg.ifrend.wrapper.mli.request.customer;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name="GetAddress")
public class GetAddress {
private String customerNumber;
private String cardNumber;
private String applicationNumber;
public String getCustomerNumber() {
return custom... |
/**
* 湖北安式软件有限公司
* Hubei Anssy Software Co., Ltd.
* FILENAME : HeadVo.java
* PACKAGE : com.anssy.inter.base.vo
* CREATE DATE : 2016-8-20
* AUTHOR : make it
* MODIFIED BY :
* DESCRIPTION :
*/
package com.anssy.inter.base.vo;
/**
* @author make it
* @version SVN #V1# #2016-8-20#
*/
publ... |
package com.message;
import oa.sys.*;
import oa.data.*;
import java.util.*;
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
/**
****************************************************
*类名称: Read<br>
*类功能: 读站内信息<br>
************************************************... |
package br.com.zup.kafka.consumer.typetests;
import br.com.zup.kafka.config.props.ConsumerProperties;
import br.com.zup.kafka.config.props.OffsetReset;
import br.com.zup.kafka.config.props.ProducerProperties;
import br.com.zup.kafka.config.props.PropertyBuilder;
import br.com.zup.kafka.consumer.ConsumerRunner;
import ... |
package dev.nowalk.app;
import dev.nowalk.models.Movie;
import dev.nowalk.repositories.MovieRepo;
import dev.nowalk.repositories.MovieRepoDBImpl;
public class RepoDBTest {
public static void main(String[] args) {
MovieRepo mr = new MovieRepoDBImpl();
Movie m = mr.getMovie(4);
//if we print out a movie... |
package com.github.mistertea.html5animator.service;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import org.apache.thrift.TException;
import com.github.mistertea.html5animator.rpc.NotAuthorizedException;
import com.github.mistertea.html5animator.rpc.... |
package com.cqut.dto;
import java.math.BigDecimal;
public class UserProfitDTO {
private String id;
private String userId;
private double shoppingBalance;//购物优惠余额
private double accoutBalance;//账s户余额
private double rechargeBalance;//充值余额
public String getId() {
return id;
}
public String getUserId... |
package com.cn.service;
import com.cn.pojo.Orders;
import java.util.List;
public interface IOrderService {
public List<Orders> findAll() throws Exception;
public Orders findById(Integer id) throws Exception;
public void deleteById(Integer id) throws Exception;
public void addOrder(Orders orders) t... |
package edu.fudan.ml.types;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Map.Entry;
import java.util.Scanner;
import java.util.TreeMap;
import java.util.TreeSet;
import edu.fudan... |
/*
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package fr.skytasul.quests.utils.compatibility;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.RegisteredServiceProvider;
import net.milkbowl.vault.economy.Economy;
import net.milkbowl.vault.permission.Permission;
public class Vault {
private static Economy eco;
pr... |
package com.geeknews.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class ReleaseViewController {
@GetMapping("/newsview")
public String Index(){
return "release-n";
}
}
|
package com.hzero.order.app.service.impl;
import com.hzero.order.app.service.SoLineService;
import com.hzero.order.domain.entity.SoLine;
import com.hzero.order.infra.mapper.SoLineMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List... |
package com.icanit.app;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.json.JSONObject;
import android.app.Application;
import android.util.Log;
import com.icanit.app.entity.CartItem;
import com.icanit.app.exception.App... |
package serve.serveup.views.order;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import serve.serveup.R;
import serve.serveup.dataholder.apistatus.ApiStat... |
package com.hhdb.csadmin.plugin.table_operate.handle;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import java.util.HashMap;
... |
/*
* @(#) MspoolService.java
* Copyright (c) 2007 eSumTech Co., Ltd. All Rights Reserved.
*/
package com.esum.wp.ims.mspool.service.impl;
import java.util.List;
import com.esum.appframework.exception.ApplicationException;
import com.esum.appframework.service.impl.BaseService;
import com.esum.wp.ims.mspool.Mspool;... |
package com.example.htw.currencyconverter.network;
import com.example.htw.currencyconverter.model.Currency;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.Url;
public interface FixerService {
String A... |
package wawi.fachlogik.sachbearbeitersteuerung.impl;
import wawi.fachlogik.componentcontroller.service.CompType;
import wawi.fachlogik.componentcontroller.service.IActivateComponent;
public class IActivateComponentImpl implements IActivateComponent
{
private boolean activated;
@Override
public CompTy... |
package be.darkshark.parkshark.domain.entity.parkinglot;
import be.darkshark.parkshark.domain.entity.Division;
import be.darkshark.parkshark.domain.entity.person.Employee;
import be.darkshark.parkshark.domain.entity.util.Address;
import javax.persistence.*;
@Entity
@Table(name = "parkinglot")
public class ParkingLot... |
package ioconvert.products;
import java.io.BufferedOutputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import java.util.List;
public class ProductWriter {
public void saveProduct(OutputStream fileStream, List<Product> products) {
if (fileStream == null) {
throw new IllegalA... |
package com.cognixia.jump.djk.firstjavaproject.menus;
import com.cognixia.jump.djk.firstjavaproject.data.Company;
import com.cognixia.jump.djk.firstjavaproject.data.Department;
import com.cognixia.jump.djk.firstjavaproject.data.RecordWithId;
import com.cognixia.jump.djk.firstjavaproject.display.RecordReporter;
import ... |
package org.tudresden.ecatering.model.kitchen;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToOne;
import org.javamoney.moneta.Money;
import org.salespointframework.catalog.Product;
import org.salespointframework.quantity.Metri... |
package com.adwork.microservices.users;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
//@DataJpaTest
public class UserServiceTest {
//@Autowired
//private IUserService service;
@Test
public... |
package com.pansoft.xbrl.cloud;
/**
* @program: xbrl-cloud-config
* @description: apollo的客户端sample
* @author: <a href="mailto:xuran@pansoft.com">tEngSHe789</a>
* @create: 2019-01-15 14:39
**/
public class ApolloSBootstrap {
}
|
/*
* 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 Vista;
/**
*
* @author Percy
*/
public class FrmVerPerfil extends javax.swing.JFrame {
/**
* Creates new form Frm... |
package com.kedeng.yangmuyi.dao;
import java.util.List;
import com.kedeng.yangmuyi.exception.SystemException;
/**
*
* @ClassName: BaseDAO
* @Description: Base DAO include all operation in Database.
* @author rqian
* @date Aug 8, 2013 2:38:00 PM
*
*/
public interface BaseDAO {
public Objec... |
package Movement;
import Utilities.*;
public interface Movement {
public Coordinates move(double xLoc, double yLoc, double Vel);
}
|
package bankaccount;
/**
*
* @author desir
*/
public class CheckingAccountDemo {
public static void main(String[] args) {
CheckingAccount ktd = new CheckingAccount("20120",
"Kamo Tsepo Desire");
ktd.deposit(500);
ktd.withdraw(200);
ktd.deposit(700);
ktd.deductFees... |
package mc.kurunegala.bop.model;
import java.util.Date;
public class BOP {
private Integer idbop;
private Integer customerIdcustomer;
private Date bopApplayDate;
private String bopPlanNo;
private String bopUrveyorsName;
private String bopNo;
private String bopIsMarkonground;
pri... |
package com.mabang.sys.entity.vo;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.mabang.sys.entity.base.ApiVOBase;
import com.mabang.sys.entity.po.Billboard;
import com.mabang.sys.entity.po.Billboard.BillboardStatus;
/**
* 广告位信息
*
* @author xiong
*
*/
@SuppressW... |
package Section_3_Functions_and_1D_Array;
import java.util.Scanner;
public class Two {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
System.out.print("Enter the decimal number: ");
int n = scn.nextInt();
System.out.print("Enter the destination base... |
package com.redsun.platf.util.convertor;
/**
* <p>Title : com.webapp </p>
* <p>Description : </p>
* <p>Copyright : Copyright (c) 2010</p>
* <p>Company : FreedomSoft </p>
*
*/
/**
* @author Dick Pan
* @version 1.0
* @since 1.0
* <p><H3>Change history</H3></p... |
package us.gibb.dev.gwt.demo.client.command;
import us.gibb.dev.gwt.command.Command;
import us.gibb.dev.gwt.command.results.StringResult;
public class SayHelloCommand implements Command<StringResult> {
private static final long serialVersionUID = 6440864902721536666L;
private String name;
SayHelloCommand... |
package tutorial.basics.selenium.webdriver.test;
import org.junit.Assert;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class MyFirstTest {
@Test
public void startWebDriver(){
WebDriver driver = null;
//driver = new FirefoxD... |
package com.shady.nanogerdree.inventoryappstage1.database;
import android.database.sqlite.SQLiteDatabase;
/**
* Created by Shady on 3/26/2018.
*/
public class InventoryTable {
public static final String TABLE_INVENTORY = "inventory";
public static final String COLUMN_ID = "_id";
public static final Str... |
package com.vignettTaskExeptions;
public class InvalidTankstationException extends Exception {
@Override
public String getMessage() {
String text = "Invalid data for tank station!";
return text;
}
}
|
package facade;
import dataMapper.OrderMapper;
import domain.Order;
import domain.OrderAssembler;
import domain.OrderDTO;
/**
* a class for remote invoke
*/
public class OrderServiceBean {
public OrderDTO getOrder(long id) {
Order br = new Order();
br.setOrderId(id);;
return new OrderAssembler().writeDTO(... |
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.Select;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.testng.Assert;
publ... |
/* $Id$ */
package djudge.dservice.interfaces;
public interface DServiceCommonJudgeInterface
{
public boolean setTaskResult(int taskID, String judgement, String xmlData);
}
|
package com.nisira.core.dao;
import com.nisira.core.entity.*;
import java.util.List;
import android.database.sqlite.SQLiteDatabase;
import com.nisira.core.database.DataBaseClass;
import android.content.ContentValues;
import android.database.Cursor;
import com.nisira.core.util.ClaveMovil;
import java.util.ArrayList;
im... |
package Beans;
import java.sql.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
@Entity()
public cla... |
package com.amundi.tech.onsite.model.usage;
import java.time.LocalDate;
public interface RestaurantUsage {
LocalDate getDate();
int getH1130(); // max capacity
int getH1200();
int getH1230();
int getH1300();
int getH1330();
int getH1130_u(); // _u => used
int getH1200_u();
int ... |
/*
* *
* *
* * @version 1.0.0
* *
* * Copyright (C) 2012-2016 REDNOVO Corporation.
*
*/
package com.rednovo.ace.common;
import com.rednovo.libs.common.StringUtils;
import org.json.JSONObject;
import java.io.InputStream;
/**
* @author Zhen.Li
* @fileNmae JsonUtils
* @since 2016-03-05
*/
public class ... |
/**
* Copyright (c) 2004-2021 All Rights Reserved.
*/
package com.adomy.mirpc.core.remoting.invoker.enums;
/**
* 调用模式枚举
*
* @author adomyzhao
* @version $Id: InvokeType.java, v 0.1 2021年03月23日 8:44 PM adomyzhao Exp $
*/
public enum InvokeTypeEnum {
SYNC,
... |
class F1
{
public final void prt() //override 할 수 없다 final을 씀으로
{
System.out.println("prt F1");
}
}
class F2 extends F1
{
/*@Override
public void prt()//Multiple markers at this line- overrides F1.prt- Cannot override the final method from F1
{
System.out.println("F2 prt");
}*/
}
public class A4FinalMethod... |
// **********************************************************
// 1. 제 목: Correction ADMIN BEAN
// 2. 프로그램명: TutorLoginBean.java
// 3. 개 요: 첨삭관리 관리자 bean
// 4. 환 경: JDK 1.3
// 5. 버 젼: 1.0
// 6. 작 성:
// 7. 수 정:
// **********************************************************
package com... |
import java.util.*;
class factorial
{
public static void main(String[] args)
{
Scanner scan=new Scanner(System.in);
int n=scan.nextInt();
if(n<=100000){
int arr[]=new int[n];
for(int i=0;i<n;i++)
{
arr[i]=scan.nextInt();
}
// Arrays.sort(arr);
for(int j... |
package com.iotalking.lovertracker;
import android.Manifest;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import androi... |
package org.vincent.annon;
import org.vincent.annon.example.DogImp;
import org.vincent.annon.service.AnimalInterface;
/**
* @author PengRong IOC 依赖注入注解定义的属性
* @package org.vincent.proxy
* @date 2018/12/15 - 14:46
* @ProjectName JavaAopLearning
* @Description: TODO
*/
public class InjectionTest {
/***
... |
public class Person {
//변수의 값을 외부에서 접근해서 바굴수 없게 private으로 선언한다
private String name;
private int age;
//외부에서 변수명은 모르게 하고 변수의 값만 바꿀수 있게 하기위해 세터 메소드를 선언한다
public void setName(String name) {
this.name = name;
}
public void setAge(int age) {
this.age = age;
}
//외부에서 변... |
package com.haku.project.service;
import com.haku.project.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
public interface UserService {
public User queryUserById(Long id);
public List<User> queryAllUsers();
... |
package com.timewarp.games.onedroidcode.objects.tiles;
import com.timewarp.games.onedroidcode.AssetManager;
import com.timewarp.games.onedroidcode.level.TObject;
public class TWall extends TObject {
public TWall() {
this.texture = AssetManager.wallStoneTexture;
this.solid = true;
}
}
|
package kr.or.ddit.basic;
public class T01_ArgsTest {
/*
* 가변형 인수 : 메소드의 매개변수 개수가 실행 시마다 다를 경우 사용 -> 데이터가 몇개 넘어올 지 모를 때 사용
* 가변형 인수는 메소드 안에서 배열로 처리
* 가변형 인수는 한가지 자료형만 사용 가능
* 타입명...변수이름 => ex) int...data
*/
// 배열을 이용한 메소드
// 매개변수로 받은 정수들의 합계를 구하는 메소드(이 정수들의 개수는 상황에 따라 달라짐)
public int ... |
package you.in.spark.energy.cividroid.sync;
import android.accounts.Account;
import android.annotation.TargetApi;
import android.app.AlarmManager;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.AbstractThreadedSyncAdapter;
import android.content.ContentProviderClient;
... |
package yef.gwalior.aks.com.yef;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.net.Uri;
import android.os.AsyncTask;
import... |
package my.myapps.model.dao.hibernate;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import java.util.List;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.joda.time.DateTime;
import org.springframewo... |
import java.util.Iterator;
public class TorteriaCal implements Menu{
private Ingrediente [] items;
int posicion=0;
public TorteriaCal(){
items = new Ingrediente [13];
for(int i=0;i<items.length;i++){
items[i]=new Ingrediente(i);
}
}
public Iterator iterator(){
return new IteradorTorta... |
package fm.ua.bacs.testtaskrestservice.controller;
import fm.ua.bacs.testtaskrestservice.helpers.FTP;
import fm.ua.bacs.testtaskrestservice.helpers.Helper;
import fm.ua.bacs.testtaskrestservice.helpers.Props;
import org.apache.commons.net.ftp.FTPFile;
import org.springframework.web.bind.annotation.*;
import javax.ws.... |
package net.cglab.hotelpraktikum.dao;
import java.util.List;
import net.cglab.hotelpraktikum.hibernate.ActivityFields;
import net.cglab.hotelpraktikum.hibernate.JobImages;
import net.cglab.hotelpraktikum.hibernate.Jobs;
public interface JobDao{
public Jobs getJob(Integer Id);
public List<Jobs> getJobList();
publi... |
package com.BookShare.web;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
/**
* 数据库操作类
* @author mq
*
*/
public class BaseDao {
//数据库地址“jdbc:mysql://服务器域名:端口号/数据库名称”
private String url = "jdbc:mysql://120.24.222.231:3306/BookShare1?useUnicode=true&characterEncodi... |
package com.mabang.android.entity.vo;
/**
* 区域信息
*
* @author xiong
*
*/
@SuppressWarnings("serial")
public class AreaInfo extends VoBase {
private Integer areaId;
private String areaName;
private boolean check;
public Integer getAreaId() {
return this.areaId;
}
public void setAreaId(Integer areaId) {
... |
package DemoRest.WebApp.model;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.stereotype.Component;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;
@Component
@Entity
@Table(name = "bill")
public class Bill {
p... |
/**
* Copyright (c) 2000-2016 Liferay, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
package org.osource.scd.parse.consumer;
import org.osource.scd.parse.model.LargeData;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.List;
import java.util.function.Consumer;
/**
* @author James
*/
public class SaveService implements Consumer<List<LargeData>> {
private static final L... |
import java.io.*;
public class ResponseReader {
public static String getBody(BufferedReader buf) throws IOException {
String line = null;
StringBuilder builder = new StringBuilder();
while((line = buf.readLine()) != null) {
builder.append(line);
}
return builder.toString();
}
} |
package com.sirma.itt.javacourse.inputOutput.test.task4.transferingObject;
import static org.junit.Assert.*;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import org.junit.Before;
import org.junit.Test;
import com.sirma.itt.javacourse.input... |
/*
* 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.ag.bean;
import com.ag.beanI.EventBeanI;
import com.ag.dao.EventDao;
import com.ag.factory.DaoFactory;
import com.ag.facto... |
package org.ohdsi.webapi.feanalysis;
import org.ohdsi.analysis.cohortcharacterization.design.FeatureAnalysis;
import org.ohdsi.analysis.cohortcharacterization.design.StandardFeatureAnalysisDomain;
import org.ohdsi.webapi.Pagination;
import org.ohdsi.webapi.common.OptionDTO;
import org.ohdsi.webapi.feanalysis.domain.Fe... |
package com.example.tateti;
public enum State {
NOT_STARTED,
MI_TURNO,
WAITING_FOR_AWAY_PLAYER;
}
|
package io.youngwon.app.utils;
public class ApiResponse<T> {
private final boolean success;
private final T data;
// private final ApiError error;
public ApiResponse(boolean success, T data){
this.success = success;
this.data = data;
}
// public class ApiError {
//
// }
}
|
package com.asgab.web.business.opportunity;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereot... |
package com.androidbook.SuperPetTracker;
import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteQueryBuilder;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteText... |
/*
* 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 poo.consultorio;
import java.util.Date;
/**
*
* @author Candelaria
*/
public class Consulta {
private Date horaFin;
... |
package org.dbdoclet.test.option;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.dbdoclet.log.Logger;
import org.dbdoclet.service.ExecResult;
import org.dbdoclet.service.ExecServices;
import org.dbdoclet.service.FileServices;
import org.dbdoclet.service.XmlServices;
import org.dbdoclet.serv... |
package king_tokyo_power_up.game.card;
/**
* Target enum is used to decide which monsters to target.
* This can be used with terminal/ attacking/ card effects etc.
*/
public enum Target {
/**
* Effects your self.
*/
SELF,
/**
* Effects only other monsters.
*/
OTHERS,
/**
... |
package com.beike.util;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.io.IOException;
import java.io.StringReader;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Date;
import... |
package com.capella.mvc.example.controllers;
import java.net.InetAddress;
import java.time.LocalDateTime;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Control... |
package com.nibu.atm;
import java.util.ArrayList;
import java.util.List;
public class TransactionsProcessor {
//These should be processed automatically.
private List<AutoTransaction> autoTransactions;
private BankAccountAccess accountAccess;
public TransactionsProcessor(ArrayList<AutoTransaction> auto... |
//PRIORITY QUEUE
import java.util.*;
class Books implements Comparable<Books>{
int id;
String name,author;
Books(int id, String name, String author){
this.id=id;
this.name=name;
this.author=author;
}
public int compareTo(Books b){
if(id>b.id){return 1;}
else if(id==b.id){retu... |
package com.hlx.service;
import com.hlx.config.PrizeEnum;
import com.hlx.config.RuleConfig;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import java.util.Arrays;
import java.util.regex.Pattern;
/**
* A recognize service that format and recognize the game result
* @auth... |
package com.croquis.crary.sample;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.croquis.crary.app.CraryActionBarActivity;
import java.util.Array... |
package com.example.core.handle;
public interface GetHandler<T> {
T doGet(String module);
}
|
package net.myinfosys.desembertraining.swing.button;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
public class ButtonTest {
public static void main(String[] args) {
// TODO Auto-generated method stub
JFrame frame = new JFrame("JButton");
frame.setSize(700, 600);
frame.setDefaultCloseOperation(JF... |
package com.cbsystematics.edu.internet_shop.controller;
import com.cbsystematics.edu.internet_shop.service.DiscountService;
import com.cbsystematics.edu.internet_shop.service.ProductService;
import com.cbsystematics.edu.internet_shop.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
i... |
package com.example.vplayer.dialog;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.media.MediaScannerConnection;
import android.net.Uri;
import android.os.Bundle;
import android.util.L... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.