text stringlengths 10 2.72M |
|---|
package com.kometsales.flowers.exception;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.http.converter.HttpMes... |
@javax.xml.bind.annotation.XmlSchema(namespace = "http://testservice.webservices.training.javabegin.ru/")
package ru.javabegin.training.webservices.testws;
|
package Compuestos;
import Componentes.Jugador;
public class Vitamina extends Provision {
public Vitamina(int cantidad) {
super.setCantidad(cantidad);
}
public void actualizarJugador(Jugador jugadorActual) {
System.out.println("Vita");
jugadorActual.setVida(jugadorActual.getVida() + super.ge... |
package main;
import net.egork.utils.io.OutputWriter;
import java.util.Arrays;
public class DevuAndBeautifulSubstrings {
static long dp[][][];
static int count;
static int n;
static long fun(int pos,int cur,int gd){
if(pos==n){
if(gd==count){
return 1;
... |
package hyghlander.mods.ports.DragonScales.common.items;
import cpw.mods.fml.relauncher.Side;
import hyghlander.mods.ports.DragonScales.DragonScales;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.projectile.EntityLargeFireball;
import net.minecraft.item.EnumRarity;
import net.minecraft.i... |
package board.command;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import board.model.BusinessDAO;
import util.StringUtil;
public class BusinessAddOkCmd implements Cmd {
@Override
public void execute(HttpServletRequest request, HttpServletResponse respon... |
package com.sobey.exportExcel.util;
import org.springframework.util.StringUtils;
/**
* Created by lijunhong on 17/3/10.
* 主要用于判断前台显示的内容
*/
public class ExcelViewJudge {
private static final String STORAGESTATE_ONLINE = "0"; //文件状态在线
private static final String STORAGESTATE_INTO_ONLINE = "1"; //进... |
package com.lingnet.vocs.action.region;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import com.lingnet.common.action.BaseAction;
@Namespace("/region")
@ParentPackage("region")
public class RegionAction extends BaseAction{
/**... |
/*
* 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 antrian;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultS... |
package geeks;
import java.util.*;
import java.lang.*;
import java.io.*;
/**
* Created by kreddy on 2/14/18.
*/
public class MaxSumWithAtLeastKElements {
public static void main (String[] args) {
//code
Scanner sc = new Scanner(System.in);
int tc = sc.nextInt();
while(tc-- > 0) {
int[] inpu... |
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
/**
* IvMonthcheckdetail generated by hbm2java
*/
public class IvMonthcheckdetail implements java.io.Serializable {
private IvMonthcheckdetailId id;
public IvMonthcheckdetail() {
}
public IvMonthcheckdetail(IvMonthcheckdet... |
package bean;
import org.junit.Assert;
import org.junit.Test;
public class ConnectionProviderTest {
@Test
public void getCon() {
ConnectionProvider con = new ConnectionProvider();
Assert.assertEquals(con, con);
}
}
|
package modelo;
public class NotificacionOferta
{
public String categoria,titulo,id,descripcion,imagen,nombre_tienda;
public Double precio;
public NotificacionOferta(String categoria,String titulo,String id,String descripcion,String imagen,String nombre_tienda,Double precio)
{
this.categoria=categoria;
th... |
package com.espendwise.manta.web.util;
import com.espendwise.manta.util.Utility;
import com.espendwise.manta.util.alert.ArgumentedMessage;
import com.espendwise.manta.util.alert.DisplayMessage;
import com.espendwise.manta.util.alert.MessageType;
import com.espendwise.manta.util.validation.ApplicationValidator;
import... |
package fr.free.nrw.commons.media.model;
import com.google.gson.annotations.SerializedName;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import fr.free.nrw.commons.utils.StringUtils;
public class ExtMetadata {
@SuppressWarnings("unused") @SerializedName("DateTime") @Nullable
priva... |
package com.yixin.dsc.service.settle;
import com.yixin.dsc.dto.order.DscComputeDTO;
import java.math.BigDecimal;
import java.util.Map;
/**
* 结算服务dia
* Package : com.yixin.dsc.service.settle
*
* @author YixinCapital -- wanghonglin
* 2018/10/25 13:08
*/
public interface SettleService {
/**
* 调用结算计算服务费
... |
package com.cleanup.todoc.repositories;
import android.arch.lifecycle.LiveData;
import com.cleanup.todoc.database.dao.ProjectDao;
import com.cleanup.todoc.model.Project;
import java.util.List;
public class ProjectDataRepository {
private final ProjectDao mProjectDao;
public ProjectDataRepository(ProjectDa... |
package org.zxd.spring.boot.lifecycle;
import java.util.concurrent.atomic.AtomicInteger;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory... |
package com.jdyx.app.usermanage.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jdyx.app.bean.Positioning;
public interface PositioningMapper extends BaseMapper<Positioning> {
// int deleteByPrimaryKey(Integer id);
//
// int insert(Positioning record);
//
// int insertSelective(Posit... |
package com.github.w4o.sa.repository;
import com.github.w4o.sa.domain.SysStorage;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
/**
* @author frank
* @date 2019-05-27
*/
@Repository
public interface SysStorageRepository extends CrudRepository<SysStorag... |
package ar.edu.unlam.tallerweb1.modelo;
import static org.junit.Assert.*;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;
import org.junit.Test;
import org.springframework.test.annotation.Rollback;
impo... |
package com.adachina.mqkafka;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.adachina.mqKafka.core.AdaKafkaConsumer;
import com.adachina.mqKafka.messageExecuteHandle.AbstractMessageExecuteHandle;
import com.adachina.mqKafka.messageExecuteHandle.AsyncMessageExecuteHandle;
import com.adachina.mqKa... |
package com.tencent.mm.plugin.record.ui;
import android.graphics.Bitmap;
public interface h$a {
Bitmap a(b bVar);
Bitmap a(c cVar);
void a(a aVar);
void bqy();
}
|
package exer;
import java.io.File;
import org.junit.Test;
public class FileMethodTest {
@Test
public void test(){
File f1 = new File("abc\\a.txt");
System.out.println(f1.getName());
System.out.println(f1.getAbsolutePath());
System.out.println(f1.getPath());
}
@Test
public void test1(... |
package c.t.m.g;
final class cp {
String a = "";
boolean b = false;
ct c;
public cp(ct ctVar, String str) {
this.a = str;
this.b = false;
this.c = ctVar;
}
}
|
package com.example.flight_reservation.service;
import java.sql.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.flight_reservation.entity.Flight;
import com.example.flight_reservation.repository.FlightReposi... |
package util;
import common.AbstractTestBase;
import org.junit.Test;
import java.util.List;
import java.util.stream.Collectors;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class DataWranglerTest extends AbstractTestBase {... |
package zm.gov.moh.core.repository.database.dao.derived;
import java.util.List;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Query;
import zm.gov.moh.core.repository.database.entity.derived.StringIntEntry;
@Dao
public interface MetricsDao {
@Query("select date(date_created)... |
package com.jvmless.threecardgame.api;
import com.corundumstudio.socketio.AckRequest;
import com.corundumstudio.socketio.SocketIOClient;
import com.corundumstudio.socketio.listener.DataListener;
import com.jvmless.threecardgame.handlers.commands.dto.MakeMoveCommand;
import com.jvmless.threecardgame.handlers.commands.M... |
/**
* Copyright (c) 2016, 指端科技.
*/
package com.rofour.baseball.dao.manager.bean;
import java.io.Serializable;
/**
*
* @ClassName: PropertyDictBean
* @Description: 属性字典数据访问层实体
* @author heyi
* @date 2016年4月3日 下午2:17:49
*
*/
public class PropertyDictBean implements Serializable {
private static fina... |
package web;
import ReqAndResp.Request;
import ReqAndResp.Response;
import org.junit.Test;
import server.Servlet;
import util.WebContext;
import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;
import static util.Utils.parseText;
import static util.Utils.readHtml;... |
package com.base.crm.product.entity;
import com.base.common.util.PageTools;
public class ProductStock {
private Long id;
private Long depositoryId;
private Long productId;
private Long stockNum;
private String unit;
private Long stockWarning;
private String updatedDate;... |
package br.inf.ufg.mddsm.controller.img;
public class ConnectorTester {
public static void main (String[] args){
String server = "textr.us", db = "fiu_test", user = "fiu_test", password = "fiu_test";
Connector connector = new MySQLConnector();
connector.connect(user, password, server, db);
connecto... |
package com.netflix.governator.auto.modules;
import com.google.inject.AbstractModule;
import com.google.inject.Provides;
public class SubModule extends AbstractModule {
@Override
protected void configure() {
System.out.println("Installing SubModule");
}
@Provides
public String getCon... |
package com.jim.multipos.utils;
/**
* Created by bakhrom on 10/20/17.
*/
public class DbUtils {
}
|
package cn.canlnac.onlinecourse.presentation.presenter;
import android.support.annotation.NonNull;
import javax.inject.Inject;
import cn.canlnac.onlinecourse.data.exception.ResponseStatusException;
import cn.canlnac.onlinecourse.domain.CommentList;
import cn.canlnac.onlinecourse.domain.interactor.DefaultSubscriber;
... |
package DAL.Polish;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceException;
import javax.persistence.Query;
import DAL.DAL_Generic;
import basicas.polish.Brand;
public class DAL_Brand extends DAL_Generic<Brand>{
public DAL_Brand(EntityManager em) {
sup... |
package br.usjt.projetoDP.servlets;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServlet... |
package co.edu.poli.sistemasdistribuidos.votaciones.repositories;
import co.edu.poli.sistemasdistribuidos.votaciones.entities.EleccionEntity;
import co.edu.poli.sistemasdistribuidos.votaciones.entities.UsuarioEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repo... |
/**
* shopmobile for tpshop
* ============================================================================
* 版权所有 2015-2099 深圳搜豹网络科技有限公司,并保留所有权利。
* 网站地址: http://www.tp-shop.cn
* ——————————————————————————————————————
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用 .
* 不允许对程序代码以任何形式任何目的的再发布。
* ==========================... |
package com.lubarov.daniel.data.function;
/**
* Utilities for working with boolean {@link Function}s.
*/
public final class Predicates {
private Predicates() {}
public static <A> Function<A, Boolean> opposite(final Function<? super A, Boolean> predicate) {
return input -> !predicate.apply(input);
}
pub... |
package com.biblio.theque.groupe8.domain;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
/**
* A Livre.
*/
@Entity
@Table(name = "livre")
@Cache(usage = CacheConcurre... |
/*
* The MIT License
*
* Copyright 2018 Edson Passos <edsonpassosjr@outlook.com>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation th... |
package com.tencent.mm.plugin.sns.ui;
import android.view.View.OnTouchListener;
import android.widget.TextView;
import com.tencent.mm.pluginsdk.ui.d.o;
public final class ab implements OnTouchListener {
private static o nOI;
private static TextView nOJ;
/* JADX WARNING: inconsistent code. */
/* Code ... |
package veiculos;
public class Carro extends Veiculo {
private String tipo;
private float motorizacao;
private String modelo;
public Carro() {
}
public Carro(String cor, String nome, int numChassi, int ano, String tipo, float motorizacao, String modelo) {
super(cor, nome, numChassi... |
package com.javarush.task.task18.task1818;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.FileInputStream;
import java.io.FileOutputStream;
/*
Два в одном
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new Buf... |
package com.countout.service;
import java.util.List;
import java.util.Map;
import com.countout.entity.AuthUserEntity;
import com.tang.util.page.Page;
/**
* 用户
* @author Mr.tang
*/
public interface AuthUserService {
/**
* 根据用户状态及username查询
* @param username
* @return
*/
AuthUserEntity getByUsernameAndst... |
package org.kuali.mobility.dining.helpercu ;
/**
* Holds the elements we need from result set, from the query
* to the Cornell Dining database.
*/
public class DiningResult implements Comparable <DiningResult> {
private String meal = "" ;
private String station = "" ;
private String entree = "" ;
private Stri... |
package com.boj;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
public class _2667_Numbering {
static int n;
static int[][] map;
static int number;
static ArrayList<Integer> list;
static int[] dy = { -1, 1, 0, 0 }; // 상하좌우
static int[] ... |
/*
* 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 starpatterns;
/**
*
* @author User
*/
import java.util.Scanner;
public class StarPatterns {
/**
* @param args the... |
/*
* 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 modelo;
/**
*
* @author Laboratorio
*/
public class Arquivo {
private int id;
private String descricao;
//... |
package Chapter4.TreesAndGraphs.Exercise5ValidateBST;
import Chapter4.TreesAndGraphs.BinaryTreeNode;
import edu.princeton.cs.algs4.Stack;
/**
* Write a function to check if a binary tree is a binary search tree
*/
public class Solution {
// assume that there is no duplicate values in Binary tree
// get inor... |
package sso.ojdbc.dao.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import sso.ojdbc.dao.PagingDao;
import sso.ojdbc.dao.PagingQuery;
public class OraclePagingQuery implements PagingQuery {
/**
* zero base
*/
public List query(final String sql, final Object[] args,... |
package com.gdcp.weibo.dao;
import java.util.Date;
import java.util.List;
import org.junit.Ignore;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.gdcp.weibo.BaseTest;
import com.gdcp.weibo.entity.User;
import com.gdcp.weibo.entity.Weibo;
public class WeiboDaoTest ex... |
package unlinked;
public class UTHeaderIndices {
//UnlinkedTrip attributes index
public static final int PLSAM_IDX = 0;
public static final int SAMPN_IDX = 1;
public static final int PERNO_IDX = 2;
public static final int PLANO_IDX = 3;
public static final int ORIG_HOME_IDX = 4;
public static final int GTY... |
package time;
public class Time {
private int hour;
private int minute;
private boolean isAM;
public Time(){
hour=0;
minute=0;
isAM=false;
}
public Time(int hour,int minute){
if(isValid(hour,minute))
{
this.hour=hour;
this.minute=minute;
this.isAM=false; //default choice
}
else
System... |
package com.rockwellcollins.atc.limp.translate.lustre.procedure;
/**
* InitIds is a simple utility that prepends 'init#' in front of all identifiers
* that appear inside of Limp InitId expressions. This is so they can be easily
* identify in the Lustre after it is transformed into BasicBlocks.
*/
public class In... |
package com.wt.jiaduo.service;
import org.springframework.data.domain.Page;
import com.wt.jiaduo.dto.jpa.SysUser;
public interface SysUserService {
public Page<SysUser> findAll(Integer pageNum,Integer pageSize);
public SysUser saveOne(SysUser sysUser);
public SysUser modify(SysUser sysUser);
public void delete(I... |
package it.unica.pr2.test;
import it.unica.pr2.abitazioni.*;
import java.util.*;
public class TestAbitazioni{
public static void main(String[] args){
// C
Immobile casa = new Casa();
List<Ambiente> c2 = casa;
// C+
casa.add(new Bagno(10)); // 10 mq
... |
package com.example.bratwurst.service;
import com.example.bratwurst.controller.UploadController;
import com.example.bratwurst.model.File;
import com.example.bratwurst.repo.UploadRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframewor... |
/**
* Copyright 2010-2015 四川数码物联网络科技有限责任公司. All Rights Reserved.
*/
package com.yida.design.abstractfactory.abs.sex;
import com.yida.design.abstractfactory.abs.AbstractBlackHuman;
/**
*********************
* @author yangke
* @version 1.0
* @created 2018年4月20日 下午3:24:05
***********************
*/... |
package com.tencent.mm.plugin.luckymoney.ui;
import android.content.Intent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import com.tencent.mm.plugin.luckymoney.b.i;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.sdk.platformt... |
/*
* Copyright 2016 Johns Hopkins University
*
* 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 ... |
package com.springbootmybatis.controller;
import com.springbootmybatis.mapper.AlbumMapper;
import com.springbootmybatis.model.AlbumEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMa... |
package com.cskaoyan.mapper;
import com.cskaoyan.bean.Custom;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author CZY-Y7000P
* 客户mapper接口
*/
public interface CustomMapper {
/**
* 按customId删除客户
* @param customId
* @return 成功行数
*/
int deleteByPrimaryKey(@Par... |
package com.example.demo.controller;
import com.example.demo.model.Customer;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestContro... |
package com.spbsu.flamestream.example.bl.topwordcount.model;
import com.spbsu.flamestream.example.bl.topwordcount.model.WordContainer;
/**
* User: Artem
* Date: 19.06.2017
*/
public class WordCounter implements WordContainer {
private final String word;
private final int count;
public WordCounter(String wor... |
package com.finix.action;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Ha... |
package handwriting;
import handwriting.core.Drawing;
import handwriting.core.RecognizerAI;
import handwriting.core.SampleData;
import handwriting.gui.Result;
import handwriting.learners.*;
import search.core.Duple;
import search.core.Histogram;
import search.core.Triple;
import java.io.File;
import java.io.FileNotFo... |
/* Entry.java */
package dict;
import player.*;
/**
* A class for dictionary entries.
*
**/
public class Entry {
public Board board;
protected int boardScore;
public Board board() {
return board;
}
public int boardScore() {
return boardScore;
}
}
|
package com.weicent.android.csma.data.result.list;
import com.weicent.android.csma.data.BaseResult;
import com.weicent.android.csma.data.model.result.Buys1;
import java.util.List;
/**
*
*/
public class ResBuysList1 extends BaseResult {
public List<Buys1> data;
} |
package foscam;
public enum Operation {
LOGIN_RESP("MO_O", 1, LoginResponse.class),
VERIFY_RESP("MO_O", 3, VerifyResponse.class),
AUDIO_START_RESP("MO_O", 9, AudioStartResponse.class),
OTHER_DEVICES_PARAMS_NOTIFY("MO_O", 28, OtherDevicesParamsNotify.class),
KEEP_ALIVE_RESPONSE("MO_O", 255, EmptyResponse.clas... |
package com.flutterwave.raveandroid.sabankaccount;
import com.flutterwave.raveandroid.RavePayInitializer;
import com.flutterwave.raveandroid.data.DeviceIdGetter;
import com.flutterwave.raveandroid.di.DaggerTestRaveUiComponent;
import com.flutterwave.raveandroid.di.TestAndroidModule;
import com.flutterwave.raveandroid.... |
package com.xindq.yilan.dialog.item;
import android.content.Context;
import android.content.Intent;
import com.xindq.yilan.activity.history.HistoryActivity;
import com.xindq.yilan.domain.Item;
import com.xindq.yilan.util.ToastUtil;
public class ItemDialogBtnListener implements ItemDialog.DialogListener {
private... |
package com.tencent.mm.plugin.facedetect.b;
import com.tencent.mm.ab.b;
import com.tencent.mm.ab.b.a;
import com.tencent.mm.ab.e;
import com.tencent.mm.ab.l;
import com.tencent.mm.network.k;
import com.tencent.mm.network.q;
import com.tencent.mm.protocal.c.aah;
import com.tencent.mm.protocal.c.aai;
import com.tencent.... |
package lesson30.hw;
public class EmployeeDAO extends GeneralDAO<Employee> {
private static EmployeeDAO instance;
public static EmployeeDAO getInstance() {
if (instance == null) {
instance = new EmployeeDAO();
}
return instance;
}
}
|
/*
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
package com.supconit.kqfx.web.xtgl.services.impl;
import hc.base.domains.Pageable;
import hc.base.domains.Pagination;
import java.util.Iterator;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.supconit.honeycomb.business.... |
package com.ytt.springcoredemo.service;
import com.ytt.springcoredemo.model.po.Order;
import java.util.List;
import java.util.Map;
/**
* @Author: aaron
* @Descriotion:
* @Date: 18:17 2019/9/7
* @Modiflid By:
*/
public interface RedisOrderService {
String postOrder(Order order);
List<Map<String, String... |
package net.somethingnew.kawatan.flower;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import android.os.Bundl... |
package ru.khachalov.springannotation.annotHW;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class TestSpring {
public static void main(String[] args) {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
"appContextAnnotH... |
package exemplos.exemplo03;
public class AppPessoa {
public static void main(String[] args) {
Pessoa p = new Pessoa("Alex", 5000); // instanciando um objeto do tipo pessoa
Pessoa p2 = new Pessoa("Isa", 6000); // instanciando outro objeto do tipo pessoa
p.apresentar();
p2.a... |
package leetcode;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
class T52N皇后II {
static HashSet<Integer> col ;
static HashSet<Integer> pie ;
static HashSet<Integer> na ;
static List<List<Integer>> ree ;
public int totalNQueens(int n) {
ree = new ArrayLis... |
package kh.cocoa.dao;
import kh.cocoa.dto.TemplateFormDTO;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface TemplateFormDAO {
public List<TemplateFormDTO> getTempleateFormList();
public int delTemplateForm(int code);
public int addTemplateForm(TemplateFormD... |
package com.briup.apps.zhaopin.service;
import com.briup.apps.zhaopin.bean.Jobhunter;
import com.briup.apps.zhaopin.bean.extend.JobhunterExtend;
import java.util.List;
public interface JobhunterService {
List<Jobhunter> findAll();
String saveOrUpdate(Jobhunter jobhunter);
Jobhunter findById... |
package com.example.userFormManupulation;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class UserFormManupulationApplicationTests {
@Test
void contextLoads() {
}
}
|
package com.epf.rentmanager.ui.servlets;
import java.io.IOException;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import... |
package com.cg.project.castleglobalproject.base.network.base;
import com.cg.project.castleglobalproject.base.network.base.params.get.ParamsBasedObject;
import com.cg.project.castleglobalproject.base.network.base.response.BaseResponse;
public interface IGetClient<DATA_OUT extends BaseResponse, PARAMS extends ParamsBas... |
package br.iesb.projeto.filters;
import br.iesb.projeto.managedbeans.LoginMB;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebF... |
package com.thoughtstream.aepf.testimpl;
import com.thoughtstream.aepf.handlers.EventSerializerDeserializer;
/**
* @author Sateesh Pinnamaneni
* @since 28/12/2017
*/
public class IndexBasedEventSerializerDeserializer implements EventSerializerDeserializer<IndexBasedEvent> {
@Override
public IndexBasedEvent... |
package com.thechema.utils;
import java.io.BufferedReader;
import java.io.FileReader;
public class FileUtils {
private FileUtils(){
}
public static String loadAsString(String file){
StringBuffer result = new StringBuffer();
try{
BufferedReader reader = new BufferedReader(new FileReader(file));
String... |
package ga.islandcrawl.controller;
import android.app.AlertDialog;
import android.content.DialogInterface;
import ga.islandcrawl.MainActivity;
/**
* Created by Ga on 4/15/2016.
*/
public class Menu {
public static AlertDialog dialog;
private static int type;
private static String[] options;
private... |
package com.yufeng.VR_VLC;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.net.Uri;
import android.os.Bundle;
import android.view.Surface;
import android.opengl.GLSurfaceView;
import android.view.SurfaceView;
import android.view.View;
import com.... |
package com.tencent.mm.plugin.voip.ui;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.R;
import com.tencent.mm.bh.d.a;
import com.tencent.mm.model.au;
import com.tencent.mm.model.c;
import com.tencent.mm.model.s;
import com.tencent.mm.plugin.voi... |
package controller;
import db.DataBase;
import http.Request;
import http.RequestMethod;
import http.Response;
import model.User;
import org.junit.Before;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.*;
/**
* IDE : IntelliJ IDEA
* Created by minho on 2018. 9... |
package com.mysql.cj.exceptions;
import com.mysql.cj.Messages;
import com.mysql.cj.conf.PropertySet;
import com.mysql.cj.protocol.PacketSentTimeHolder;
import com.mysql.cj.protocol.ServerSession;
public class CJConnectionFeatureNotAvailableException extends CJCommunicationsException {
private static final long seri... |
/*
* Copyright 2002-2016 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
package com.elmakers.mine.bukkit.magic;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.junit.Test;
import org.mockito.Mockito;
import com.elmakers.mine.bukkit.api.magic.MaterialSet;
import com.elmakers.mine.... |
package rgg.campusvirtualapp.vista;
import java.util.ArrayList;
import rgg.campusvirtualapp.AppMediador;
import rgg.campusvirtualapp.modelo.DatosHilo;
import rgg.campusvirtualapp.presentador.IPresentadorForoAsignatura;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
impo... |
package JBE24;
import java.util.Scanner;
public class Pro2FlowerShop {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int magnoliiCount = Integer.parseInt(sc.nextLine());
int zumbiulCount = Integer.parseInt(sc.nextLine());
int rossesCount = Integer.p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.