text stringlengths 10 2.72M |
|---|
package edu.kit.pse.osip.core.io.files;
import static org.junit.Assert.assertEquals;
import edu.kit.pse.osip.core.model.base.TankSelector;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* Test class for ServerS... |
package com.yunhe.cargomanagement.service;
import com.yunhe.cargomanagement.entity.WarehouseUndetermined;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author 史江浩
* @since 2019-01-10
*/
public interface IWarehouseUndeterminedService extends IService<WarehouseUndetermi... |
package com.tt.miniapp.base.file;
import com.bytedance.sandboxapp.b.a;
import com.bytedance.sandboxapp.protocol.service.f.a;
import com.tt.miniapp.storage.filestorge.FileManager;
import d.f.b.l;
import java.io.File;
public final class FileService implements a {
private final a context;
public FileSe... |
package com.crio.starter.exceptions;
public class NoMemeFoundException extends RuntimeException {
private static final long serialVersionUID = 1L;
public NoMemeFoundException() {
}
public NoMemeFoundException(String message) {
super(message);
}
} |
/*
* LumaQQ - Java QQ Client
*
* Copyright (C) 2004 luma <stubma@163.com>
*
* 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 Software Foundation; either version 2 of the License, or
* (at your option) any lat... |
package com.lspring.annotation;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class SpirngTest {
// @Test
public void addPerson(){
ApplicationContext applicationContext = new ClassPathXmlApplicationCon... |
package Presentacion;
import Logica.RNA;
import archivo.Archivo;
import java.io.IOException;
import javax.swing.JOptionPane;
import javax.swing.JFileChooser;
public class Entrenamiento extends javax.swing.JFrame {
private MenuInicio menu;
private RNA red;
private boolean band = false;
private String ... |
package Geometry;
import GameObjects.GameObject;
import java.util.LinkedList;
public interface RangeQueryTree<E extends GameObject> {
public void add(E elem);
public LinkedList<E> getObjectsInRange(int x1, int y1, int x2, int y2);
public void remove(E elem);
}
|
package com.samirthebti.amen_go;
import mx.com.quiin.contactpicker.Contact;
/**
* Amen_Go
* Created by Samir Thebti on 5/16/17.
* thebtisam@gmail.com
*/
public interface ContactSelectionListener {
void onContactSelected(Contact contact, String communication);
void onContactDeselected(Contact contact, Str... |
package com.gp.beershop.service;
import com.gp.beershop.dto.Beer;
import com.gp.beershop.entity.BeerEntity;
import com.gp.beershop.exception.NoSuchBeerException;
import com.gp.beershop.exception.SuchBeerAlreadyExistException;
import com.gp.beershop.mapper.BeerMapper;
import com.gp.beershop.repository.BeerRepository;
i... |
/*
* Copyright 2009 Kjetil Valstadsve
*
* 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 applicable law or agre... |
package xiaomage;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* @Author: wy
* @Date: 2019/4/27 20:50
* @Description:
*/
public class ThreadExeOrderQuestion {
public static void main(String[] args) throws Exception {
// joinTest();
// System.out.println... |
package com.commercetools.pspadapter.payone.domain.payone;
import com.commercetools.pspadapter.payone.domain.payone.exceptions.PayoneException;
import org.apache.http.message.BasicNameValuePair;
import org.junit.Before;
import org.junit.Test;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
im... |
package hack.anonymouse.app.data;
public class Data {
public static boolean PUBLIC_STORY = false;
private Data() {
}
}
|
package com.ld.model_user.activity;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.ld.baselibrary.arouter.ARouterPath;
import com.ld.model_user.R;
/**
* @author: liangduo
* @date: 2020/7/22... |
public class RiverSquare extends Square{
private final int COST = 200;
public RiverSquare(String name, int position) {
super(name, position);
}
@Override
public boolean isOwned() {
return false;
}
public void execute(Player player) {
player.deductMaterials(getCOST... |
package com.example.repository;
import java.util.Collection;
import java.util.Optional;
/**
*
* @author Binnur Kurt <binnur.kurt@gmail.com>
*/
public interface GenericRepository<E,K> {
Optional<E> findOne(K key);
Collection<E> findAll();
E add(E entity);
E update(E entity);
Optional<E> remove(K key);
}
|
package com.vilio.plms.dao;
import com.vilio.plms.pojo.Customer;
import java.util.List;
import java.util.Map;
/**
* 类名: CustomerDao<br>
* 功能:借款人Dao<br>
* 版本: 1.0<br>
* 日期: 2017年6月21日<br>
* 作者: wangxf<br>
* 版权:vilio<br>
* 说明:<br>
*/
public interface CustomerDao {
//查询借款人信息
public Customer qryCustomer... |
package com.lv.textviewdemos;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.daasuu.cat.CountAnimationTextView;
import com.hanks.htextview.HTextView;
import com.robinhood.ticker.TickerUtils;
import com.robinhood.ticker.TickerView;
import org.fabiomsr.m... |
package com.example.tartanuk.layoutcolores1;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget... |
package com.cssweb.android.trade.stock;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import c... |
package com.company.collections;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
CustomArrayList<Integer> customArrayList = new CustomArrayList<>();
customArrayList.add(10);
customArrayList.add(20);
customArrayList.add(30);
customA... |
package com.hackaton.compgenblockdocs.repository;
import com.hackaton.compgenblockdocs.model.DocumentUserModel;
import org.springframework.data.mongodb.repository.MongoRepository;
public interface DocumentUserRepository extends MongoRepository<DocumentUserModel, String> {
}
|
package com.dongluhitec.iotweb.repository;
import com.dongluhitec.iotweb.bean.CommandRes;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.repository.CrudRepository;
import org.springf... |
package com.mikronia.pixpaint.component;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import jav... |
package com.example.model;
import java.io.Serializable;
public class ThongBao implements Serializable {
private String user;
private String title;
private String messege;
private String date;
public ThongBao(String user, String title, String messege, String date) {
this.user = user;
... |
package com.fatosajvazi;
public class Main {
public static void main(String[] args) {
// write your code here
// int switchValue = 3;
//
// switch (switchValue){
// case 1:
// System.out.println("Value was 1");
// break;
// case 2:
... |
package com.fleet.chat.turing;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class TuringApplicationTests {
}
|
package com.example.radio.Activity;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.Manifest;
import android.app.DatePickerDialog;
import android.content.ContentResolver;
import android.... |
package workstarter.repository;
import workstarter.domain.CompanyAdmin;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.*;
import java.time.ZonedDateTime;
import java.util.List;
import java.util.Optional;
/**
* Spring Data... |
package il.ac.huji.todolist;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.json.JSONObject;
import com.parse.FindCallback;
import com.parse.Parse;
import com.parse.ParseException;
import com.parse.ParseObject;
import com.parse.ParseQuery;
import com.parse.ParseUser;
import com.... |
package com.passing.spring.service;
import java.util.List;
import com.passing.hibernate.beans.TbEnFrequency;
public interface AutoCompleteService {
/**
* @param searchStr search string
* @return
*/
public List<String> searchForAutoComplete(String searchStr);
}
|
package com.example.kaptcha.controller;
import com.example.kaptcha.config.KaptchaConfig;
import com.example.kaptcha.config.SessionConstant;
import com.google.code.kaptcha.impl.DefaultKaptcha;
import com.sun.xml.internal.ws.resources.HttpserverMessages;
import org.springframework.beans.factory.annotation.Autowired;
imp... |
package com.nsp.test.fanxing;
import org.junit.Test;
public enum TestEnumMethod
{
SAMPLE1
{
String getInfo()
{
return "sample1";
}
},
SAMPLE2
{
String getInfo()
{
return "sample2";
}
};
abstract String getInfo();
@Test
public void testMethod() {
for (TestEnumMethod testEnumMethod ... |
execute(des, src, registers, memory) {
String source;
if ( src.isRegister() ) {
source = registers.get(src).substring(16);
} else if ( src.isMemory() ) {
source = memory.read(src, 64);
}
BigInteger b1 = new BigInteger(source.substring(8), 16);
Converter con1 = new Converter(b1.... |
package org.vow.actos.domain.note;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.vow.actos.domain.annotation.Annotation;
import org.vow.actos.domain.tag.Tag;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import st... |
package com.company;
public class PizzaMenu extends BasicPizza{
public PizzaMenu() {
super("Pizza of the day", "Always Thin", "Napolitana ", "mixed ", 14.5);
super.addPizzaAddition1("Coke",0.0);
super.addPizzaAddition2("Cookie",0.0);
}
@Override
public void addPizza... |
package com.ibeiliao.pay.api.dto.response.balance;
import com.ibeiliao.pay.api.ApiCode;
import com.ibeiliao.pay.api.ApiResultBase;
/**
* 统计收入情况
* @author linyi 2016/7/22.
*/
public class StatSchoolIncomeResponse extends ApiResultBase {
private static final long serialVersionUID = 1L;
/**
* 学校ID
... |
package lab4Zad1;
public class CaesarCipher {
private static final int SHIFT_LENGTH = 3;
private static final int ALPHABET_LENGTH = 26;
private static char[] alphabet( ){
char[] alphabet = new char[ALPHABET_LENGTH];
char iter = 'A';
for(int i = 0; i < ALPHABET_LENGTH; i++)
... |
package com.ibeiliao.pay.account.impl.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ibeiliao.pay.datasource.MyBatisDao;
import com.ibeiliao.pay.account.impl.entity.SchoolBankAccountTransLogPO;
/**
* t_school_bank_account_trans_log 表的操作接口
*
* @author jingyesi 2016-08-08
*/
@... |
package enamel;
import com.pi4j.io.gpio.GpioController;
import com.pi4j.io.gpio.GpioFactory;
/**
* Write a description of class GpioControllerContainer here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class GpioControllerContainer
{
final GpioController gpio = GpioFactory.getI... |
package by.it.example.helpers;
import by.it.example.beans.Weather;
public class TemperatureExtractor {
private TemperatureExtractor() {
}
public static double getCelsius(Weather weather) {
double kelvin = weather.getTemperature();
return kelvin - 273.15;
}
public static double g... |
package com.kodilla.stream;
import com.kodilla.stream.beautifier.PoemBeautifier;
import com.kodilla.stream.book.Book;
import com.kodilla.stream.book.BookDirectory;
import com.kodilla.stream.forumuser.Forum;
import com.kodilla.stream.forumuser.ForumUser;
import com.kodilla.stream.iterate.NumbersGenerator;
import com.ko... |
public class pancake_sort {
public static void sort(List<Integer> numbers) {
for(int currentSize = numbers.size(); currentSize > 1; currentSize--) {
int largestIndex = findMaxNum(numbers, currentSize);
if(largestIndex != currentSize-1) {
flip(numbers, largestIndex)... |
package com.uzabase.schema;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name="rss")
public class Rss {
@XmlElement(name="channel")
private List<Feed> channel;
public Rss(){}
public List<Feed> getChannel() {
return ch... |
package com.hason.dtp.account.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.time.LocalDateTime;
/**
* Hello, 测试
*
* @author Huanghs
* @since 2.0
* @date 2017/10/17
*/
@RestController
public class HelloContro... |
package ru.krasview.kvlib.widget;
import java.util.Map;
import ru.krasview.kvlib.indep.consts.TagConsts;
import ru.krasview.kvlib.indep.consts.TypeConsts;
import ru.krasview.kvlib.interfaces.Factory;
import ru.krasview.kvlib.widget.lists.*;
import android.content.Context;
import android.util.Log;
import android.view... |
package com.example.demo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.sql.Types;
import java.util.L... |
//Josué Alexis Ramírez Pérez A00513622 ITIC 5ª Semestre
/*
* 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 potenciarecursividad;
import java.util.Scanner;
/**
*
* @author jos... |
package com.sixmac.service.impl;
import com.sixmac.controller.api.PayCallBackApi;
import com.sixmac.controller.common.CommonController;
import com.sixmac.core.Constant;
import com.sixmac.core.bean.Result;
import com.sixmac.dao.*;
import com.sixmac.entity.*;
import com.sixmac.entity.vo.WatchBallVo;
import com.sixmac.se... |
/*
* 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 cloudserver;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Sock... |
/**
* 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... |
// ______________________________________________________
// Generated by sql2java - http://sql2java.sourceforge.net/
// jdbc driver used at code generation time: com.mysql.jdbc.Driver
//
// Please help us improve this tool by reporting:
// - problems and suggestions to
// http://sourceforge.net/tracker/?group_... |
package listaExercicios7;
public class Empregado extends Pessoa
{
private int codigoSetor;
private double salarioBase;
private double imposto;
// Getters and Setters:
public int getCodigoSetor()
{
return codigoSetor;
}
public void setCodigoSetor(int codigoSetor)
{
this.codigoSetor = codigoSetor;
}... |
package testcase.emb;
import es.utils.mapper.Mapper;
import es.utils.mapper.exception.MappingException;
import es.utils.mapper.factory.builder.DefaultOutput;
import es.utils.mapper.factory.builder.EMBuilder;
import es.utils.mapper.factory.builder.To;
import es.utils.mapper.impl.object.ClassMapper;
import from.ClassMap... |
package com.graphql.test.exception;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import graphql.ErrorType;
import graphql.GraphQLError;
import graphql.language.SourceLocation;
public class PostNotFoundException extends RuntimeException implements GraphQLError {
private Integer pos... |
package to;
public class ImplTo {
public static final int staticFinal = 97;
public static int _static = 97;
public final int _final = 97;
public To complexValue;
}
|
package gui;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import modelo.Orden;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JLabel;
import javax.swing.DefaultListModel;
import javax.swing.JButton;
import java.awt.event.Actio... |
package de.jmda9.core.util.jpa;
import javax.lang.model.element.VariableElement;
public class EntityRelationInfoOneToManyUnidirectional extends
EntityRelationInfoUnidirectional
{
public EntityRelationInfoOneToManyUnidirectional(
VariableElement declaredField)
{
super(EntityRelation.OneToManyUnidirectional, dec... |
package com.tencent.mm.xlog.app;
public final class a {
public static String uZO = "wechatxlog";
}
|
package com.tencent.mm.ui.conversation.a;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.bg.d;
import com.tencent.mm.model.au;
import com.tencent.mm.model.bc;
import com.tencent.mm.model.c;
import com.tencent.mm.p... |
package com.thread.pool.frameWork;
import com.thread.pool.base.CallableTemplate;
import com.thread.pool.base.ICurrentThreadPool;
import com.thread.pool.threadPool.ConcurrentThreadPool;
import java.util.List;
import java.util.concurrent.ExecutionException;
/**
* @desc CallableTaskFrameWork是ICallableTaskFrameWork 的实现类... |
package ru.rikabc.servlets;
import org.springframework.context.ApplicationContext;
import ru.rikabc.repositories.ProductRepository;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.Ht... |
/**
*
*/
/**
* @author z003uuvm
*
*/
package resto.com.app.services; |
package text.an.com.sunning_ks.bean;
import java.util.ArrayList;
/**
* Created by lenovo on 2016/11/7.
*/
public class MyBean {
public MyResult result;
public class MyResult {
public ArrayList<MyData> data;
}
public class MyData{
public String content;
public String updatetim... |
/*
* 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 busqueda;
import busquedaAutor.ListaProductos;
/**
*
* @author crist_000
*/
public class BusquedaAutor {
public stati... |
package com.dlq.json;
import com.dlq.pojo.Person;
import com.google.gson.reflect.TypeToken;
import java.util.Map;
/**
*@program: Java_Web
*@description:
*@author: Hasee
*@create: 2021-01-19 19:34
*/
public class PersonMapType extends TypeToken<Map<Integer, Person>> {
}
|
package com.cnk.travelogix.custom.mappingtable.maintain;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* The settings to enable reference-based pagination of search results in response. Several operati... |
package com.example.lib2;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
/**
* Created by ljq on 2019/5/10
*/
public class Lib2Activity extends AppCompatActivity {
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
... |
package com.github.ganity.oauth2.shiro;
import com.github.ganity.oauth2.AuthzCallback;
import com.github.ganity.oauth2.OAuth2AccessToken;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.session.Session;
import org.apache.shiro.subject.Subject;
import... |
package mfh.db;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
public class DBFacility implements ConnectionProvider {
Connection conn=null;
Statement stmt=null;
String sql="";
... |
package cims.command;
import cims.Caretaker;
public class UndoCommand implements Command {
private Caretaker c;
public UndoCommand(Caretaker c) {
super();
this.c = c;
}
@Override
public void execute() {
// TODO Auto-generated method stub
undo();
}
@Override
public void undo() {
// TODO Auto-gen... |
package esipe.fr.tpconcurrence.repositories;
import esipe.fr.tpconcurrence.entities.Lock;
import org.springframework.data.mongodb.repository.MongoRepository;
import java.util.Optional;
public interface LockRepository extends MongoRepository<Lock,String> {
public Optional<Lock> findByLockId(String lockId);
}
|
package com.qunchuang.carmall.graphql.query;
import cn.wzvtcsoft.bosdomain.enums.BosEnum;
import cn.wzvtcsoft.bosdomain.util.EntityEnumUtil;
import com.qunchuang.carmall.graphql.IGraphQlTypeMapper;
import com.qunchuang.carmall.graphql.query.dataprivilege.PrivilegeConstraint;
import com.qunchuang.carmall.graphql.query.... |
package edu.buet.cse.spring.ch03.v4.impl;
import edu.buet.cse.spring.ch03.v4.model.Poem;
public class ToHelen implements Poem {
private static final String[] LINES = {
"Helen, thy beauty is to me",
"Like those Nicean barks of yore",
"That gently, o'er a perfumed sea,",
"The weary, way-worn wander... |
package org.inftel.socialwind.client.mobile.controllers;
import java.io.Serializable;
import java.util.ArrayList;
import org.inftel.socialwind.client.mobile.models.HotspotModel;
import org.inftel.socialwind.client.mobile.vos.Spot;
public class HotspotController implements Serializable {
private static final lon... |
package itri.io.emulator.cleaner;
import org.apache.commons.csv.CSVRecord;
/**
* Abstract class of Filter
*/
public abstract class Filter {
public abstract boolean filter(CSVRecord record);
public abstract void setFilterOptions(Object options);
}
|
/*
* 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 it.unive.dagg.card;
/**
* Crea la carta Incantesimo
* @author alessandro
*/
public class SorceryCard extends AbstractCard ... |
package com.bright.website.service;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.bright.website.web.dao.SysRoleMapper;
import com.bright.website.web.model.SysRole;
import com.bright.webs... |
package com.data.rhis2;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.TimePickerDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.Cursor... |
package com.robotarm.tests;
import com.robotarm.util.Helper;
import java.util.Scanner;
/**
* Created by higgsy789 on 24/03/2017.
*/
public abstract class Test {
protected static Helper h = Helper.getInstance();
protected static Scanner s = new Scanner(System.in);
}
|
package br.ufrn.raszz.persistence;
import org.hibernate.SessionFactory;
import org.hibernate.boot.Metadata;
import org.hibernate.boot.MetadataSources;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
public class H... |
import org.sql2o.*;
import org.junit.*;
import static org.junit.Assert.*;
import java.util.Arrays;
public class PatientTest {
@Before
public void setUp() {
DB.sql2o = new Sql2o("jdbc:postgresql://localhost:5432/doctor_test", null, null);
}
@After
public void tearDown() {
try(Connection con = DB.sql2... |
package com.travel.repositories;
import com.travel.models.Trip;
import org.springframework.data.jpa.repository.JpaRepository;
public interface TripRepository extends JpaRepository<Trip, Long> {} |
package chapter10.Exercise10_14;
public class TestMyDate {
public static void main(String[] args) {
MyDate dt1 = new MyDate();
MyDate dt2 = new MyDate((34355555133101L));
System.out.println(dt1.getDay() + "." + dt1.getMonth() + "." + dt1.getYear());
System.out.println(dt2.getDay() + "." + dt2.getMonth() + "."... |
package day53_inheritance.hiding;
public class Mobile extends Phone {
String type = "Mobile phone";
/*
Method Hiding
we are hiding use()static method
*/
public static void use(){
System.out.println("Using mobile phone");
System.out.println("Thank you for helping");
... |
package activities.db;
import activities.db.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
public class DBInteraction
{
private static fi... |
package com.example.skripsi;
import androidx.appcompat.app.AppCompatActivity;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import... |
package com.thefuzzydragon.jen.codefellowship;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
im... |
package es.uma.sportjump.sjs.service.services.test.util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import es.uma.sportjump.sjs.model.entities.Coach;
import es.uma.sportjump.sjs.model.entities.Training;
import es.uma.sportjump.sjs.service.services.T... |
package com.example.devenc.gosolar;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class project_menu extends AppCompatActivity {
@Override
protected void onCreate(Bundle saved... |
package com.cinema_ticketing_sys.cinema.entity;
import com.cinema_ticketing_sys.movie.entity.Movie;
import javax.persistence.*;
import java.util.Set;
/**
* Created by huitianrui on 2017/5/11.
*/
@Entity
@Table(name = "cinema", schema = "cinema_ticketing_db")
public class Cinema {
private int cinemaId;
priv... |
package exercicios;
import java.util.Scanner;
public class Exercicio3_3 {
public static void main(String[] args) {
int i, num;
Scanner in = new Scanner(System.in);
num = in.nextInt();
i = 1;
while(i <= num) {
System.out.printf("%d" , i);
i *= 2;
... |
package ru.otus.l121.auth;
/*
* Created by VSkurikhin at winter 2018.
*/
import com.google.common.base.Charsets;
import com.google.common.io.Resources;
import ru.otus.l121.dataset.UserDataSet;
import ru.otus.l121.db.DBService;
import java.net.URL;
import java.util.HashMap;
import java.util.List;
import java.util.M... |
package com.junye.vo;
/**
* @author 作者 junye E-mail: 1105128664@qq.com
* @version 创建时间:2018年9月9日
* 类说明 :
*/
import java.util.Date;
public class ProductVo {
private String id;
private String name;
private Date ctime;
public String getId() {
return id;
}
public void setId(String id) {
this.... |
package pl.coderslab.dal.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import pl.coderslab.domain.devices.DeviceDetails;... |
package com.example.myreadproject8.ui.activity.user;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.Toast;
import com.example.myreadproject8.AAATest.mysql.RegisterCnn;
import co... |
// **********************************************************************
// This file was generated by a TAF parser!
// TAF version 3.2.1.6 by WSRD Tencent.
// Generated from `/data/jcetool/taf//upload/geraldzhu/AppPituWnsInterface.jce'
// **********************************************************************
package... |
import java.util.*;
public class CountNumberOf3 {
}
|
package com.example.nata.hallimane;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.