text stringlengths 10 2.72M |
|---|
package das.boot.config;
import javax.sql.DataSource;
import org.springframework.boot.autoconfigure.flyway.FlywayDataSource;
import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.B... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.hnote.Proxy;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
/**
*
* @author Zehao Jin
*/
public class Proxy {
private static final int PORT = 50001... |
import java.util.Random;
public class KMeansPP{
ClusterPoint[] points;
int k;
CentroidPoint[] kpp_centroid;
KMeansPP(ClusterPoint[] points, int k){
this.points = points;
this.k = k;
this.kpp_centroid = new CentroidPoint[k];
}
public CentroidPoint[] KppCentroid(){
... |
package junit5test.test;
import io.qameta.allure.*;
import junit5test.Calculator;
import org.junit.jupiter.api.*;
import static org.junit.jupiter.api.Assertions.assertAll;
import static org.junit.jupiter.api.Assertions.assertEquals;
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
@Epic("Epic 计算器项目")
@Feature("... |
/**
*
*/
package com.ee.mavenlearning.com.ee.gmail;
import java.io.IOException;
import java.net.MalformedURLException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.PageFactory;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterTest;
import org.testng.annotati... |
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class HTTPGetServlet extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
PrintWriter out;
response.setContentType("text... |
package com.zhaojun.socket;
import java.io.*;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;
/**
* @auther zhaojun0193
* @create 2017/9/20
*/
public class SocketServer {
public static void main(String[] args) {
try {
//创建socketServer 并绑定端口
... |
/**
* This class is generated by jOOQ
*/
package schema.tables.records;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record3;
import org.jooq.Row3;
import org.jooq.impl.UpdatableRecordImpl;
import schema.tables.DjangoContentType;
/**
* This class is generat... |
package edu.mit.cci.simulation.ice.beans;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Date;
import javax.faces.event.ActionEvent;
import org.apache.commons.io.IOUtils;
import edu.mit.cci.simulation.excel.server.ExcelSimulation;
import edu.mit.cc... |
package com.example.candace.pslapplication;
import java.io.Serializable;
import java.util.ArrayList;
public class QuizModel implements Serializable {
private String name;
private ArrayList<LevelModel> list;
public QuizModel(String n, ArrayList<LevelModel> list){
this.name = n;
this.list =... |
/*
* Copyright (C) 2017 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 at.fhv.itm14.fhvgis.persistence.dao.interfaces.raw;
import at.fhv.itm14.fhvgis.domain.Device;
import at.fhv.itm14.fhvgis.domain.raw.RawMotionValue;
import at.fhv.itm14.fhvgis.persistence.dao.interfaces.IGenericDao;
import at.fhv.itm14.fhvgis.persistence.exceptions.PersistenceException;
import java.util.List;
... |
/*
* Copyright 2002-2020 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 core.event.handlers.hero;
import cards.equipments.Equipment.EquipmentType;
import core.event.game.DodgeTargetEquipmentCheckEvent;
import core.event.handlers.AbstractEventHandler;
import core.heroes.skills.ZhugeliangTaichiOriginalHeroSkill;
import core.player.PlayerCompleteServer;
import core.server.game.Battle... |
package com.citibank.ods.modules.client.knowledgeexp.form;
@SuppressWarnings("serial")
public class KnowledgeExperienceListForm extends BaseKnowledgeExperienceListForm {
}
|
package com.zc.pivas.statistics.service;
import com.zc.pivas.statistics.bean.prescription.*;
import java.util.List;
/**
* 药单统计Service
*
* @author jagger
* @version 1.0
*/
public interface PrescriptionService {
/**
* 按批次查询药单状态
*
* @param medicSingleSearch
* @return
... |
package io.github.cottonmc.libcd.api.util;
// Copied from Jankson-Fabric 2.x
/**
* A DynamicOps instance for Jankson. Loosely based on Mojang's JsonOps for Gson.
*
* @deprecated Use upstream JanksonOps instead.
*/
@Deprecated
public class JanksonOps extends io.github.cottonmc.jankson.JanksonOps {
public stati... |
package com.libangliang.supermarket.Prevalent;
import com.libangliang.supermarket.Model.Users;
public class Prevalent {
//forget password and remember
public static Users currentOnlineUser;
public static final String userPhoneKey = "UserPhone";
public static final String userPasswordKey = "UserPass... |
import info.gridworld.actor.Critter;
import info.gridworld.actor.Actor;
import java.util.ArrayList;
import info.gridworld.grid.Location;
import java.awt.Color;
public class BlusterCritter extends Critter {
private int c;
public BlusterCritter (){
super();
c = 5;
}
public ArrayList<Actor> getA... |
/**
* Copyright (C) Alibaba Cloud Computing, 2012
* All rights reserved.
*
* 版权所有 (C)阿里巴巴云计算,2012
*/
package com.aliyun.oss;
import static com.aliyun.oss.common.utils.CodingUtils.assertParameterNotNull;
import static com.aliyun.oss.common.utils.CodingUtils.assertStringNotNullOrEmpty;
import static com.aliyun.os... |
package com.metoo.core.ip;
/**
*
* <p>
* Title: IPtest.java
* </p>
*
* <p>
* Description:
* </p>
*
* <p>
* Copyright: Copyright (c) 2014
* </p>
*
* <p>
* Company: 湖南创发科技有限公司 www.koala.com
* </p>
*
* @author erikzhang
*
* @date 2014-4-24
*
* @version koala_b2b2c v2.... |
package base;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
public class BaseTest {
protected static ContextForTests context;
protected static Dummy dummy;
@Before
@After
public void rollback() {
context.rollback();
}
@BeforeClass
public stati... |
package com.androidvoyage.bmc.utils;
import android.Manifest;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.DownloadManager;
import android.app.ProgressDialog;
import android.app.T... |
package com.zc.pivas.titileshow.service;
import com.zc.base.orm.mybatis.paging.JqueryStylePaging;
import com.zc.base.orm.mybatis.paging.JqueryStylePagingResults;
import com.zc.pivas.titileshow.bean.ConfigTitleBean;
import com.zc.pivas.titileshow.bean.ConfigTitleSubBean;
import java.util.List;
import java.util... |
/*
* 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 org.dizitart.nitrite.datagate.impl.factory;
import org.dizitart.nitrite.datagate.impl.service.DatagateUserService;
import org.... |
package pwnbrew.utilities;
///*
//
//Copyright (C) 2013-2014, Securifera, Inc
//
//All rights reserved.
//
//Redistribution and use in source and binary forms, with or without modification,
//are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the abov... |
package com.project.crew_types;
import java.util.HashMap;
import com.project.Crew;
import com.project.RaceID;
import com.project.StatID;
public class BugBitch extends Crew {
private static byte statVariance = 10;
public static String[] names = {"Sandy","Sam","Jesse","Ste","Frank","Charlie"};
private ... |
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.junit.Before;
public class BusStopTest {
BusStop busStop;
Person person;
Bus bus;
@Before
public void before(){
person = new Person("James");
busStop = new BusStop("Buchanan Bus Station");
bus = new Bus(42);
}
@T... |
public class Box extends CollectionBoard {
public int width, height;
public int indexX;
public int indexY;
private int i = 0;
public Box(int dimension, int height, int width) {
this.dimension = dimension;
this.height = height;
this.width = width;
... |
package esi.atl.gg39864.blokus.model;
/**
* this Enumeration is the enumeration of the Color of the Piece
*
* @author chris home
*/
public enum Color {
GREEN,RED, YELLOW, BLUE;
}
|
package com.tscloud.common.framework.service.impl;
import com.tscloud.common.framework.Exception.ServiceException;
import com.tscloud.common.framework.domain.TrackableEntity;
import com.tscloud.common.framework.mapper.BaseInterfaceMapper;
import com.tscloud.common.framework.rest.view.Page;
import com.tscloud.common.fr... |
package com.zhku.my21days.controller;
import java.util.Calendar;
import java.util.Collection;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.... |
package com.gaoshin.top;
import java.text.ParseException;
import java.util.Date;
import org.quartz.CronExpression;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;
... |
package com.tac.kulik.waveaudiovizualization.util;
import android.content.Context;
import android.util.TypedValue;
/**
* Created by kulik on 31.01.17.
*/
public class ScreenUtils {
public static int dp2px(Context context, int dp) {
int px = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, d... |
package com.mkdutton.labfive;
import java.io.Serializable;
/**
* Created by Matt on 10/9/14.
*/
public class SavedLocation implements Serializable {
public static final long serialVersionUID = 86753098675309L;
private String mTitle;
private String mNote;
private double mLat;
private double mL... |
package com.rednovo.ace.common;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.rednovo.ace.data.events.BaseEvent;
import de.greenrobot.event.EventBus;
/**
* 定时刷新直播间观众列表的广播
*/
public class RefreshAudienceReceiver extends BroadcastReceiver {
... |
/* Ara - capture species and specimen data
*
* Copyright (C) 2009 INBio (Instituto Nacional de Biodiversidad)
*
* 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 3 of the Lic... |
public class Solution {
int totalCities;
int totalProvinces;
int[] parent;
int[] rank;
public int findCircleNum(int[][] isConnected) {
totalCities = isConnected.length;
totalProvinces = isConnected.length;
rank = new int[isConnected.length];
initializeParent();
... |
package com.ebanq.web.pageobjects.accounts;
import com.codeborne.selenide.Condition;
import com.ebanq.web.elements.EbanqSelect;
import com.ebanq.web.model.Account;
import com.ebanq.web.pageobjects.BasePage;
import org.openqa.selenium.By;
import static com.codeborne.selenide.Selenide.*;
import static com.ebanq.web.othe... |
import java.util.ArrayList;
public class GridModel {
public final static String GRID_PROP = "Grid";
private int rows;
private int columns;
private GridPanel gridPanel;
private ArrayList<ArrayList<Cell>> grid;
public GridModel() {
this(10,10);
}
public GridModel(int rows, int columns) {
this.ro... |
package com.stk123.task.thread.pool;
import java.util.concurrent.Callable;
import java.util.concurrent.CompletionService;
import java.util.concurrent.ExecutorCompletionService;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
public class ThreadPo... |
package com.himanshu.springboot2.foundation.security;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.http.HttpStatus;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.secur... |
package com.duanc.controller.phonecenter;
import org.apache.commons.lang.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.spr... |
package com.esum.hotdeploy.component;
import com.esum.hotdeploy.DeploymentException;
import com.esum.hotdeploy.descriptor.ApplicationDescriptor;
public class ApplicationWrapper implements Application {
private Application delegate;
protected ApplicationWrapper(Application delegate) {
this.delegate = delegate;
... |
package com.union.express.commons.model.agingcycle;
import com.union.express.web.stowagecore.agingcycle.model.AgingCycle;
import java.util.Date;
/**
* Created by Administrator on 2016/11/17 0017.
*/
public class VDiscount {
private String id;
private String agingCycleId;
private double discount;
pr... |
package com.hrm.provider;
import java.util.Map;
import org.apache.ibatis.jdbc.SQL;
import com.hrm.domain.Dept;
import com.hrm.domain.Job;
public class JobDynaSqlProvider {
//动态查找
public String selectJob(final Job job){
return new SQL(){{
SELECT("*");
FROM("job_inf");
if(job.getName()!=null&&!job.getNam... |
package com.csc.capturetool.myapplication.base;
import java.lang.ref.WeakReference;
/**
* Created by SirdarYangK on 2018/11/2
* des:
*/
public class BasePresenter<V> {
protected WeakReference<V> weak;
protected V mView;
public void attachView(V view) {
weak = new WeakReference<V>(view);
... |
public class featureDemo4{
public static void main(){
pub name =20;
}
}
|
/*
* 5.4.3
*/
public class Shine2 extends Turtle{
public static void main(String[] args){
Turtle.startTurtle(new Shine2());
}
public void start(){
int i=1;
while(i<20){
rt(100);
fd(50);
i=i+1;
}
}
} |
package Peer;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Random;
import javax.swing.DefaultListModel;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swi... |
package com.emed.shopping.dao.mapper.admin.user;
import com.emed.shopping.dao.model.admin.user.ShopPermission;
import com.emed.shopping.util.CommonMapper;
/**
* @Author: 周润斌
* @Date: create in 上午 11:42 2018/1/26 0026
* @Description:
*/
public interface ShopPermissionMapper extends CommonMapper<ShopPermission> {
}... |
package com.junzhao.shanfen.adapter;
import android.content.Context;
import android.view.View;
import android.widget.TextView;
import com.junzhao.base.base.MLAdapterBase2;
import com.junzhao.shanfen.R;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;
/**
* Created by Admini... |
package kr.ac.kopo.project02.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import kr.ac.kopo.project02.vo.AccountVO;
import kr.ac.kopo.project02.vo.ClientVO;
import kr.ac.kopo.project02.vo.TransactionVO;
import kr.ac.k... |
package arien_coba5;
public class Arien_coba5 {
public static void main(String[] args) {
int c;
for (c = 1; c <= 13; c++) {
System.out.println(c);
}
}
}
|
package org.apache.cassandra.db;
import java.nio.ByteBuffer;
import org.apache.cassandra.net.Message;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xerial.snappy.Snappy;
public class AppliedOperations
{
//WL TODO reduce the granularity of synchronization here
public static synchroniz... |
package junseong.android.myapplication.room;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;
import java.util.List;
import junseong.android.myapplication.model.ItemModel;
@Dao
public interface ArticleDAO {
@Query("SELECT * FROM article")
List<ItemModel> getAll();
@Ins... |
package com.pronix.android.apssaataudit;
import android.content.Intent;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import ... |
package nz.ac.aut.prog2.minesweeper.model;
import org.junit.After;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
/**
* Test framework for the Mine class.
*
* @author Anne Philpott and Stefan Marks
* @version v1.0 - 2012.06: Created
*/
public class MineTest
{
pr... |
package io.github.biezhi.java8.concurrent;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.IntStream;
/**
* 原子变量
* <p>
* AtomicInteger
* LongAdder
* LongAccumulator
... |
package ac.a14ehsr.platform;
import java.io.IOException;
import java.util.Arrays;
import ac.a14ehsr.exception.TimeoutException;
import ac.a14ehsr.platform.visualizer.Visualizer;
import ac.a14ehsr.player.HumanPlayer;
import ac.a14ehsr.player.Player;
import java.awt.Color;
public class TronBattle extends Game {
... |
package com.edasaki.rpg.mobs;
import java.util.HashMap;
public enum MobAttribute {
RAPID("rapid"), // rapidfire
PASSIVE("passive"), // passive mob
RANGED("ranged"), // no melee
ARROW1("arrow1"), // tier 1 arrow shooter
ARROW2("arrow2"), // tier 2 arrow shooter
ARROW3("arrow3"), // tier 3 arrow... |
package cn.v5cn.v5cms.dao;
import cn.v5cn.v5cms.entity.Site;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Created by ZYW on 2014/6/30.
*/
@Repository("siteDao")
public interface SiteDao extends JpaRepository<Site,Long> ... |
package com.hjc.java_common_tools.guava;
import org.junit.Test;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
/**
* http://www.cnblogs.com/peida/p/3224706.html
*
*/
public class EventBus_Study {
@Test
public void testSingleListener() throws Exception {
EventBus even... |
package lxy.liying.circletodo.operation;
import android.support.v7.app.AlertDialog;
import android.view.View;
import android.widget.AdapterView;
import android.widget.GridView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.ViewFlipper;
import java.text.SimpleDateFormat;
import ... |
package uiElements;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import utils.exception.ImageException;
public class ImageScaled extends JLabel {
p... |
package com.eshop.config;
import com.eshop.exception.LoginException;
import com.eshop.exception.NoAddressException;
import com.eshop.exception.NoProductInBasketException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springf... |
package go.app.greeter;
public abstract class GreeterBase implements IGreeter {
@Override
public String greet(String name, String language) {
String greeting = "Invalid language";
if (language.equals("afr")) {
greeting = "Goeie dag, " + name;
} else if ("eng".equals(languag... |
package lab6;
import java.io.IOException;
import java.util.LinkedList;
class Main {
public static void main(String[] args)throws IOException {
Graph gh = Graph.fromFile("./lab6/graphData");
gh.printGraph();
// ArrayList<Integer> path = gh.DFS(1);
// System.out.println("DFS... |
package com.mall.backend.web;
import java.io.FileInputStream;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servl... |
package com.okayboom.particlesim;
public interface Simulator {
SimResult simulate(SimSettings settings);
}
|
package models;
import java.util.List;
import javax.persistence.Entity;
import org.joda.time.DateTime;
import play.data.Form;
import play.db.ebean.Model;
import play.db.ebean.Model.Finder;
@Entity
public class T_vessel_schedule extends Model{
public String terminal_id;
public String vsl_cod;
public String vvd;... |
/*
* Copyright (c) 2017. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
* Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
* Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
* Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagi... |
package com.group35.terrificthermostat35;
/**
* Created by s163390 on 23-6-2017.
*/
public class ListItem {
String name = "name";
public void getList(){}
public void getNewWeekProgram(){}
public void getWeekProgram(String name){}
public void saveWeekProgram(){}
public String getName(){ ret... |
import java.util.Scanner;
public class Converter {
public static void main(String[] args){
//Create the scanner
Scanner sc = new Scanner(System.in);
System.out.print("Please input a tempereture in degrees Farenheit: ");
int tempF = sc.nextInt();
//If you don't cast tempF to double, you get round o... |
package io.wisoft.accounttutorial.controller;
import io.wisoft.accounttutorial.dto.ResetPasswordRequest;
import io.wisoft.accounttutorial.service.PasswordResetService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.Reque... |
package org.vanilladb.comm.protocols.p2pcounting;
import org.vanilladb.comm.protocols.events.ProcessListInit;
import net.sf.appia.core.Layer;
import net.sf.appia.core.Session;
import net.sf.appia.core.events.SendableEvent;
public class P2pCountingLayer extends Layer {
public P2pCountingLayer() {
// Events that ... |
package edu.cb.wordpair.rhodes.maddux;
import edu.jenks.dist.cb.wordpair.*;
import java.util.*;
public class WordPairList extends AbstractWordPairList{
public static void main(String[] args) {
WordPairList test = new WordPairList(new String[] {"the", "red", "fox", "the", "red"});
test.printArr(test.all... |
package in.stevemann.tictactoe.services;
import in.stevemann.tictactoe.entities.Player;
import in.stevemann.tictactoe.entities.QPlayer;
import in.stevemann.tictactoe.pojos.PlayerInputDto;
import in.stevemann.tictactoe.repositories.PlayerRepository;
import in.stevemann.tictactoe.utils.CopyNonNullUtil;
import lombok.All... |
package swe.acco.assignment1.test.interfaces;
public interface Connector {
void add(int a, int b);
void mul(int a,int b);
void sub(int a,int b);
void div(int a,int b);
}
|
/**
* #dynamic-programming #lcs lcs s and reverse of s.
*
* <p>abccbaazo
*
* <p>tfft tff
*
* <p>abca acba
*
* <p>ozaabccbaazo ozaabccba
*/
import java.util.Scanner;
class Aibohphobia {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
char[] arr... |
package com.company;
public class ContaSalario extends Conta{
private String empregador;
public ContaSalario(int numeroDaConta, int agencia, String banco, double saldo, String empregador) {
super(numeroDaConta, agencia, banco, saldo);
this.empregador = empregador;
}
@Override
public d... |
package com.cjf.web.service;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
impo... |
/*
* Copyright (c) 2018. Krzysztof Nowak "knowaknet"
*/
package com.bignerdranch.android.geoquiz;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.support.v7.app.AppCompatActivi... |
package com.egswebapp.egsweb.interceptor;
import com.egswebapp.egsweb.dto.response.ErrorResponse;
import com.egswebapp.egsweb.excpetions.ServiceException;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.Rest... |
package br.sc.senai.lovely.mb;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import br.sc.senai.lovely.dominio.Funcionario;
import br.sc.senai.lovely.model.FuncionarioRn;
@ManagedBean
public class FuncionarioMb {
private List<Funcionario... |
package com.hcl.neo.eloader.microservices.exceptions;
import com.hcl.neo.eloader.microservices.model.ErrorResponse;
public class ServiceException extends Exception {
private static final long serialVersionUID = 1L;
private String code;
private String message;
public ServiceException(String message) {
super(m... |
/****************************************************************************
* Created by: Younes Elfeitori
* Created on: 26 Oct 2018
* This is a program about stack class that can import to other class
****************************************************************************/
import java.util.ArrayList;
publ... |
package Enum;
public class Enum {
public static final int SEGUNDA = 1;
public static final int TERCA = 2;
public static final int QUARTA= 3;
public static final int QUINTA = 4;
public static final int SEXTA= 5;
public static final int SABADO= 6;
public static final int DOMINGO= 7;
}
|
package ejercicio39;
/**
* @author Javier
*/
public class jefe extends empleado {
String departamento;
public jefe(String dni, String nombre, double sueldo, String departamento) {
super(dni, nombre, sueldo);
this.departamento = departamento;
}
public jefe() {
}
public v... |
package com.kingnode.gou.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* 商品图片
*/
@Entity @Table(name="product_picture") public class ProductPicture extends BaseEntity{
private static final long serialVersionUID=7729773785078498063L;
private Long... |
package com.algo;
import java.util.Arrays;
import java.util.Comparator;
import java.util.PriorityQueue;
import java.util.Queue;
public class MinHeap {
public static void main(String[] args) {
MinHeap heap = new MinHeap();
heap.add(12);
heap.add(4);
heap.add(5);
heap.add(3)... |
package org.rs.core.session.jdbc;
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import java.util.function.Supplier;
import java.util.strea... |
package com.weili.dao;
//package com.weili.dao;
//
//import java.sql.Connection;
//import java.sql.SQLException;
//import java.util.List;
//import java.util.Map;
//
//import com.weili.database.Dao;
//import com.weili.database.Dao.Tables;
//import com.shove.data.DataException;
//import com.shove.data.DataSet;... |
package com.BDD.blue_whale.repositories;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.web.bind.annotation.CrossOrigin;
import com.BDD.blue_whale.entities.ERole;
... |
package com.soldevelo.vmi.it;
import com.soldevelo.vmi.enumerations.DiagnosticState;
import com.soldevelo.vmi.it.execution.TesterConfig;
import com.soldevelo.vmi.it.helper.ITHelper;
import com.soldevelo.vmi.logging.entities.Increment;
import com.soldevelo.vmi.logging.headers.HttpLogHeaders;
import com.soldevelo.vmi.lo... |
package com.fh.service.impl;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.fh.bean.CartBean;
import com.fh.commons.ServerResult;
import com.fh.service.ICartService;
import com.fh.utils.HttpClientUtil;
import com.fh.utils.RedisKeyUtil;
import... |
import com.atlassian.jira.rest.client.domain.Issue;
import com.atlassian.jira.rest.client.domain.SearchResult;
import org.codehaus.jackson.map.ObjectMapper;
import org.swift.common.soap.confluence.ConfluenceSoapService;
import org.swift.common.soap.confluence.RemotePage;
import org.swift.common.soap.confluence.RemoteSe... |
/* https://codeforces.com/contest/279/problem/B
tag: #binary-search #implementation #two-pointer
max (get number of books can be read that counted from i-th element)
*/
/* Example:
10 15
10 9 1 1 5 10 5 3 7 2
f |
l |
*/
import java.util.Scanner;
public class Books {
static int calMaxNumBooks() {
Scann... |
package com.weathair.controllers;
import java.util.List;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework... |
package services;
import exceptions.MessageFormatException;
import models.MovieOption;
import models.Payload;
import services.interfaces.MovieService;
import services.interfaces.TCPResquestHandler;
import javax.inject.Inject;
import java.io.*;
import java.net.Socket;
import java.util.Optional;
import java.util.loggin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.