text stringlengths 10 2.72M |
|---|
package devtec.co.mz.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import lombok.Data;
//@Data e da biblioteca lombok, gera os getters e setters em tempo de execucao
@Data
@SuppressWar... |
package com.rishi.baldawa.iq;
import java.util.Arrays;
/*
Rotate an array of n elements to the right by k steps.
For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4].
*/
public class RotateArray {
public void rotate(int[] nums, int k) {
int rotation = k % nums.lengt... |
package cbde.labs.hbase_mapreduce.writer;
public class MyHBaseWriter_KeyDesign extends MyHBaseWriter {
protected String nextKey() {
String new_key;
new_key = this.data.get("type")+"-"+this.data.get("region")+"-"+this.key;
return new_key;
}
}
|
package com.elepy.tests;
import com.elepy.annotations.*;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;
@RestModel(name = "Products", slug = "/products")
@Create(requiredPermissions = {})
@Delete(requiredPermissions = ... |
package com.zp.feignclient;
import com.sun.org.apache.regexp.internal.RE;
import org.springframework.stereotype.Component;
@Component
public class FeignClientFallBack implements ResumeFeignClient {
@Override
public Integer findDefaultResumeState(Long userId) {
return -1;
}
}
|
/*
* Copyright 2002-2012 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 required by ap... |
/**
*
*/
package com.cnk.travelogix.b2c.storefront.controllers.pages;
import de.hybris.platform.acceleratorstorefrontcommons.controllers.pages.AbstractPageController;
import de.hybris.platform.cms2.exceptions.CMSItemNotFoundException;
import javax.servlet.http.HttpServletRequest;
import org.springframework.context... |
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import java.sql.Statement;
public class Search {
Search()
{
JFrame fs=new JFrame("Search Students");
JLabel nm,id,rpt;
JTextField nmf,idf,rptf;
... |
package org.campustalk.sql;
import org.campustalk.entity.CampusTalkRoles;
//import com.mysql.jdbc.CallableStatement;
//import org.campustalk.ArrayList;
//import org.campustalk.ResultSet;
import java.util.*;
import java.sql.*;
public class dbRole extends DatabaseManager {
public dbRole()
{ super();... |
import java.util.Scanner;
//package Arrays.1d;
public class SortIn012 {
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int n=scan.nextInt();
int[] arr=new int[n];
for (int i = 0; i <=n-1 ; i++) {
arr[i]=scan.nextInt();
... |
package com.spbsu.flamestream.runtime.state;
import akka.serialization.Serialization;
import com.spbsu.flamestream.core.data.meta.GlobalTime;
import com.spbsu.flamestream.core.graph.HashUnit;
import com.spbsu.flamestream.runtime.graph.state.GroupingState;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.Je... |
package com.sdk4.boot.api.user;
import com.sdk4.boot.apiengine.ApiResponse;
import com.sdk4.boot.apiengine.ApiService;
import com.sdk4.boot.apiengine.RequestContent;
import com.sdk4.boot.service.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
... |
package com.library.bexam.service.impl;
import com.library.bexam.common.pojo.model.Result;
import com.library.bexam.dao.PaperContentDao;
import com.library.bexam.dao.PaperDao;
import com.library.bexam.entity.PaperContentEntity;
import com.library.bexam.entity.PaperEntity;
import com.library.bexam.entity.Questio... |
package com.sda.project.model;
public enum ItemType {
BUG, TASK, FEATURE;
}
|
package com.thomaster.ourcloud.repositories.file;
import javax.persistence.*;
@Entity
class PersistentUploadedFolder extends PersistentFileSystemElement {
@Override
public String toString() {
return "UploadedFolder{" +
"originalName='" + getOriginalName() + '\'' +
'}';... |
package ch.springcloud.lite.core.model;
import java.util.List;
import lombok.Data;
@Data
public class CloudService {
String name;
List<CloudMethod> methods;
}
|
package com.elepy.mongo.querybuilding;
import com.elepy.dao.Filter;
import com.elepy.exceptions.ElepyException;
import java.util.regex.Pattern;
public class MongoFilterTemplateFactory {
public static MongoFilterTemplate fromFilter(Filter filter) {
switch (filter.getFilterType()) {
case EQUA... |
package be.continuum.slice.model;
import be.continuum.slice.event.PhoneNumberAddedEvent;
import be.continuum.slice.event.CustomerDataChangedEvent;
import be.continuum.slice.event.PhoneNumberRemovedEvent;
import be.continuum.slice.value.FoodAllergen;
import be.continuum.slice.value.PhoneNumber;
import lombok.AllArgsCon... |
package com.sinata.rwxchina.component_aboutme.contract;
import com.sinata.rwxchina.basiclib.utils.retrofitutils.entity.PageInfo;
import com.sinata.rwxchina.basiclib.utils.rxUtils.BaseContract;
import com.sinata.rwxchina.component_aboutme.bean.IntegralBean;
import java.util.Map;
/**
* @author:zy
* @detetime:2017/12... |
/**
* OpenKM, Open Document Management System (http://www.openkm.com)
* Copyright (c) 2006-2015 Paco Avila & Josep Llort
*
* No bytes were intentionally harmed during the development of this application.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Ge... |
package com.jasoftsolutions.mikhuna.activity;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import com.jasoftsolutions.mikhuna.R;
import com.jasoftsolutions.mikhuna.activity.fragment.ProblemReportFragment;
public class ProblemReportActivity extends BaseActivity {
private static final ... |
package com.stackroute.challenge.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.UUID;
@Data
@NoArgsConstructor
@AllArgs... |
package at.htl.mealcounter.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "M_DEVICE")
public class Device {
@Id
@Column(name = "DEVICE_ID")
public String deviceId;
public Device(String devic... |
package GameState;
import Main.GamePanel;
import TileMap.*;
import XML.MainXML;
import java.awt.*;
import java.awt.event.KeyEvent;
import AlmacenTemp.Temp;
import Entidades.*;
public class LevelBase extends GameState {
MainXML Datos= new MainXML();
//private Temp guardarPaCambio;
public static boolean dosJug;
... |
package com.github.vinja.compiler;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.io.FilenameUtils;
import com.github.vinja.util.VjdeUtil;
public class ProjectLocationConf {
priva... |
/*
* Copyright 2019, E-Kohei
*
* 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 applicable law or agreed to in... |
package planner.heuristics;
import planner.core.PlanStep;
import planner.core.Predicate;
import search.core.BestFirstHeuristic;
import java.util.Set;
public class LeftToStack implements BestFirstHeuristic<PlanStep> {
@Override
public int getDistance(PlanStep node, PlanStep goal) {
int toStack = 0;
... |
package com.kashu.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kashu.domain.Category;
import com.kashu.repository.CategoryRepository;
@Service
public class CategoryServiceImpl implements CategoryService {
@A... |
package chapter10;
import java.math.BigInteger;
public class Exercise10_21 {
public static void main(String[] args) {
BigInteger bigNum = new BigInteger(Long.MAX_VALUE + "");
int count = 0;
while (count < 10) {
bigNum = bigNum.add(BigInteger.ONE);
if (bigNum.remainder(new BigInteger(5 + "")).equals(BigIn... |
import java.util.Random;
/**
* Created by wangshuyang on 2017/4/5.
*/
public class QuickSort {
public static void print(int[] array, int n){
for (int i = 0; i < n; i++) {
System.out.print(array[i] + ",");
}
System.out.println();
}
public static int partition(int[] ar... |
package org.apache.commons.net.util;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import javax.net.ssl.SSLSocket;
public class SSLSocketUtils {
public static boolean enableEndpointNameVerification(SSLSocket socket) {
try {
Class<?> cls = Class.forName("javax.net.ssl... |
package kimmyeonghoe.cloth.dao.cloth;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import kimmyeonghoe.cloth.dao.map.cloth.ClothMap;
import kimmyeonghoe.cloth.domain.cloth.Cloth;
@Repository("clothDao")
public clas... |
public class Game{
// .iswon?()
// .players
// .dealer
// .deckofcards
// win()
} |
public class Wlasciciel {
private String imie;
private String nazwisko;
public Wlasciciel(String imie, String nazwisko){
this.imie = imie;
this.nazwisko = nazwisko;
}
public String toString(){
return imie + " " + nazwisko;
}
public String dajImie(){
return im... |
package com.spring.shopping.cart;
import java.util.List;
public interface CartService {
public List getCartList(String id) throws Exception;
public void addProductToCart(int num, String id, int amount) throws Exception;
public int checkDuplicatedProduct(int num) throws Exception;
public void modifyProduct... |
package com.example.adi.escuelaapp.Recursos;
/**
* Created by Adi on 16/06/2018.
*/
public class Constantes {
public static final String HOST = "http://192.168.1.110/";
public static final String CARPETA_DAO = "escuela/dao/";
}
|
/**
* 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... |
package com.csc214.rebeccavandyke.socialnetworkingproject2.model;
/*
* Rebecca Van Dyke
* rvandyke@u.rochester.edu
* CSC 214 Project 2
* TA: Julian Weiss
*/
import java.text.SimpleDateFormat;
import java.util.UUID;
public class Post implements Comparable<Post>{
private UUID mId;
private String mUser;
pri... |
package com.example.healthmanage.ui.activity.memberinfo;
import android.os.Bundle;
import androidx.lifecycle.Observer;
import androidx.recyclerview.widget.LinearLayoutManager;
import com.example.healthmanage.BR;
import com.example.healthmanage.R;
import com.example.healthmanage.base.BaseActivity;
import com.example.... |
package 剑指offer;
import java.util.Arrays;
/**
* 题目描述
* 输入某二叉树的前序遍历和中序遍历的结果,请重建出该二叉树。假设输入的前序遍历和中序遍历的结果中都不含重复的数字。
* 例如输入前序遍历序列{1,2,4,7,3,5,6,8}和中序遍历序列{4,7,2,1,5,3,8,6},则重建二叉树并返回。
* 示例1
* 输入
* 复制
* [1,2,3,4,5,6,7],[3,2,4,1,6,5,7]
* 返回值
* 复制
* {1,2,5,3,4,6,7}
*/
public class RebuildBinaryTr... |
package fr.pederobien.uhc.commands.configuration.edit.editions.configurations.blockedexgame;
import fr.pederobien.uhc.commands.configuration.edit.editions.configurations.CommonGameTime;
import fr.pederobien.uhc.dictionary.dictionaries.MessageCode;
import fr.pederobien.uhc.interfaces.IBlockedexConfiguration;
public cl... |
package com.tencent.mm.model;
import com.tencent.mm.model.br.a;
import com.tencent.mm.sdk.platformtools.bi;
class br$6 extends a {
final /* synthetic */ br dDr;
br$6(br brVar) {
this.dDr = brVar;
super(brVar, (byte) 0);
}
public final boolean a(bp bpVar) {
if (System.currentT... |
package forms;
import java.text.ParseException;
import org.sikuli.script.FindFailed;
public class TTNonPregnantForm extends SikuliBase {
public void fillTTNonPregnantForm(String staffId, String facilityId, String date, String motechId, TTValues str) throws ParseException
{
try {
// selecting the TT_... |
package nl.rug.oop.flaps.aircraft_editor.controller.listeners.blueprint_listeners;
import nl.rug.oop.flaps.aircraft_editor.model.blueprint.BluePrintModel;
import nl.rug.oop.flaps.aircraft_editor.model.blueprint.BluePrintModelListener;
import nl.rug.oop.flaps.aircraft_editor.view.panels.blueprint.BluePrintPanel;
impor... |
package marcio.tcc.estacionamento.controle;
@SuppressWarnings("serial")
public class VeiculoException extends Exception {
public VeiculoException(String msg) {
super(msg);
}
}
|
/*
* 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 ambiente;
import baseconhecimento.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
... |
package nbody_pap1314.controller.implementation;
import nbody_pap1314.controller.interfaces.InputListener;
/**
* Concrete implementation of the InputListener interface.
*
* @author Michele Braccini
* @author Alessandro Fantini
*/
public class Controller implements InputListener {
/* Monitor that receives the ... |
package pl.edu.pw.mini.gapso.function;
import pl.edu.pw.mini.gapso.bounds.Bounds;
public abstract class Function {
private int evaluationsCount;
public Function() {
evaluationsCount = 0;
}
public double getValue(double[] x) {
++evaluationsCount;
return computeValue(x);
}
... |
package com.espendwise.manta.history;
import com.espendwise.manta.auth.Auth;
import com.espendwise.manta.i18n.I18nUtil;
public class ModifyGenericReportHistoryRecord extends AbstractGenericReportHistoryRecord {
@Override
public String getHistoryTypeCode() {
return HistoryRecord.TYPE_CODE_MODIFY_GENERIC_... |
package com.bricenangue.nextgeneration.ebuycamer;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Matrix;
impo... |
package com.olfu.meis.api;
import com.google.gson.annotations.SerializedName;
/**
* Created by mykelneds on 11/01/2017.
*/
public class EarthquakeResponse {
@SerializedName("id")
private int id;
@SerializedName("latitude")
private double latitude;
@SerializedName("longitude")
private dou... |
package com.bl.logical.StopWatch;
public class StopWatchBL {
public long startTimer=0;
public long stopTimer=0;
public long elapsed;
public void start()
{
startTimer=System.currentTimeMillis();
System.out.println("Start Time is: "+startTimer);
}
public void stop()
{
stopTimer=System.c... |
package daos;
import Entidades.Aeronave;
public class DAOAeronave extends DAOGenerico<Aeronave> {
public DAOAeronave() {
super(Aeronave.class);
}
public int autoIdAeronave() {
Integer a = (Integer) em.createQuery("SELECT MAX(e.id) FROM Aeronave e ").getSingleResult();
if (a != nu... |
package com.zhouyi.business.controller;
import com.zhouyi.business.core.common.ReturnCode;
import com.zhouyi.business.core.model.PageData;
import com.zhouyi.business.core.model.Response;
import com.zhouyi.business.core.model.SysUnit;
import com.zhouyi.business.core.model.SysUser;
import com.zhouyi.business.core.servic... |
package com.mundo.web.support.wechat.miniprogram;
import lombok.*;
/**
* UserInfo
*
* @author maomao
* @see <a href="https://developers.weixin.qq.com/miniprogram/dev/api/UserInfo.html">小程序用户信息</a>
* @since 2019-03-31
*/
@Getter
@Setter
@ToString
@EqualsAndHashCode
@NoArgsConstructor
public class UserInfo {
... |
/*
* 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 edu.ub.informatica.disseny.stub;
import model.*;
/**
*
* @author anna
*/
public interface DAO_STUB {
public Serie loa... |
package com.aifurion.track.entity.VO;
import java.io.Serializable;
import java.util.List;
/**
* @author :zzy
* @description:TODO 科室封装
* @date :2021/4/6 20:16
*/
public class DepartmentDoctorVO implements Serializable {
private static final long serialVersionUID = 8830957798297011778L;
private String secd... |
package LeetCodeTopics.graph.dfs.numberofenclaves;
public class Solution {
public static void main(String[] args) {
}
public int numClaves(int[][] grid) {
// grid =
int m = grid.length;
int n = grid[0].length;
boolean[][] visit = new boolean[m][n];
for (int i = 0;... |
/**
* MOTECH PLATFORM OPENSOURCE LICENSE AGREEMENT
*
* Copyright (c) 2010-11 The Trustees of Columbia University in the City of
* New York and Grameen Foundation USA. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... |
/*
Given a rope of length n. You need to find the maximun
no of pieces you can make that the length of every piece
is in set {a, b, c} for given 3 values a, b, c
*/
package Recursion.MaximumNumberofPieces;
class MaximumNoOfPieces {
public static void main(String[] args) {
int n = 23;
... |
package org.rw.crow.commons;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
public class MathUtilsTest {
@BeforeClass
public static void setUpBeforeClass() throws Exception {
}
@AfterClass
pub... |
package com.cube.storm.language.lib.factory;
import android.net.Uri;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.cube.storm.LanguageSettings;
import com.cube.storm.util.lib.resolver.Resolver;
import java.io.InputStream;
/**
* Factory class used to resolve a file based on it'... |
package pl.piomin.services.envoy.discovery.data;
public class DiscoveryHostRepository {
}
|
package file2;
public class Ifile1 {
public Ifile1() {
System.out.println("sdklfjdslaa");
}
public static void main(String[] args) {
System.out.println("sdklfjdslaa");
}
}
|
package com.example.demo.repository;
import com.example.demo.entity.Group;
import com.example.demo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import javax.transaction.Transactional;
... |
/**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode(int x) { val = x; }
* }
*/
public class Solution {
public void reorderList(ListNode head) {
if (head == null || head.next == null)
return;
ListNode fast ... |
/**
*Java main template
*/
class temp{
public static void main(String[] args) {
System.out.println("Salut");
}
} |
package src.Enums;
/**
* Created with IntelliJ IDEA.
* User: B. Seelbinder
* UID: ga25wul
* Date: 14.07.2014
* Time: 22:48
* *
*/
public enum EWatchMode {
OBSERVER, CONTROLLED_PLAYER, CUSTOM_PLAYER;
}
|
package com.worker.framework.control;
import java.util.ConcurrentModificationException;
import java.util.Date;
import java.util.Set;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.stereotype.Component;... |
package com.issp.ispp.service;
//ESTE SERVICIO HAY QUE BORRARLO
public class DefaultService {
}
|
package edu.buet.cse.spring.ch13.v4.controller;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.ModelAndVie... |
package com.javademo.rx;
import rx.Observable;
import rx.Scheduler;
import rx.Subscriber;
import rx.functions.*;
import java.io.File;
import java.util.concurrent.atomic.AtomicLong;
/**
* Created by zl on 16/9/7.
*/
public class Main1 {
public static void main(String[] args){
File file=new File("/Users... |
class Main {
public static void main(String[] args) {
ChuiniuRule cr = new ChuiniuRule();
int[] dices1 = { 1, 2, 3 };
if (! cr.satisfy(dices1, 2, 2, false))
throw new UnittestFailure();
int[] dices2 = { 2, 2, 3 };
if (! cr.satisfy(dices2, 2, 3, false))
throw new UnittestFailure();
}
}
|
package com.forsrc.cxf.server.restful.user.dao.impl;
import com.forsrc.base.dao.BaseHibernateDao;
import com.forsrc.base.dao.impl.BaseHibernateDaoImpl;
import com.forsrc.cxf.server.restful.user.dao.UserCxfDao;
import com.forsrc.exception.NoSuchUserException;
import com.forsrc.pojo.User;
import com.forsrc.springmvc.res... |
/***********************************************************************
* Module: PrescriptionMode.java
* Author: Geri
* Purpose: Defines the Class PrescriptionMode
***********************************************************************/
package com.hesoyam.pharmacy.medicine.model;
public enum PrescriptionMode ... |
// Sun Certified Java Programmer
// Chapter 4, P296_2
// Operators
class B extends A {
}
|
package com.espendwise.manta.web.validator;
import com.espendwise.manta.util.Constants;
import com.espendwise.manta.util.validation.*;
import com.espendwise.manta.web.forms.OrderItemNoteFilterForm;
import com.espendwise.manta.web.resolver.TextErrorWebResolver;
import com.espendwise.manta.web.util.WebErrors;
import o... |
package com.ewisnor.randomur.imgur.model;
/**
* Based on this: https://api.imgur.com/models/gallery_album
*
* Created by evan on 2015-01-02.
*/
public class GalleryAlbum {
private String id;
private String title;
private String description;
private Long dateTime;
private String cover;
priva... |
package ru.job4j.chessboardframe;
public abstract class Figure {
public final Cell position;
Figure(Cell position) {
this.position = position;
}
public abstract Cell[] way(Cell source, Cell dest) throws ImpossibleMoveException;
public abstract Figure copy(Cell dest);
}
|
package com.tencent.mm.plugin.collect.ui;
import android.view.MenuItem;
import android.widget.Toast;
import com.tencent.mm.g.a.qu;
import com.tencent.mm.plugin.collect.a.a;
import com.tencent.mm.plugin.collect.ui.CollectMainUI.13;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.plugin.wxpay.a.i;
i... |
package algorithm.baekjoon;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class _1012_OrganicCabbage {
static int M, N, K;
static int[][] map;
static int answer;
static int[] dy = {-1, 1, 0, 0}; // 상하좌우
static ... |
package com.example.retail.controllers.customers.edibleproducts_customer;
import com.example.retail.services.edibleproducts.EdibleProductsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.CrossOrigin;
import... |
package com.hedong.hedongwx.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import com.hedong.hedongwx.entity.Parameters;
/**
* @author origin
* 创建时间: 2019年5月24日 下午5:45:41
*/
public interface OperateRecordDao {
/**
* @Description: 查询操作记录数据
* @author: origi... |
package co.edu.banco;
import co.edu.banco.model.Banco;
import co.edu.banco.model.Bolsillo;
import co.edu.banco.model.exception.BolsilloException;
import co.edu.banco.model.exception.CuentaException;
public class Principal {
public static void main(String[] args) throws BolsilloException, CuentaException {
Banco b... |
package co.vn.giabao;
public class SingletonPatternDemo {
public static void main(String[] args) {
// call showMessage from EagerInitializedSingleton
EagerInitializedSingleton.getInstance().showMessage();
// call showMessage from LazyInitializedSingleton
LazyInitializedSingleton.getInstance().showMessa... |
package com.goldgov.gtiles.core.web.interceptor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web... |
package com.lanthaps.identime.model;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.Email;
/**
* Represents the contents of the account settings form.
* @author Andrew Miller
*/
public class AccountSettingModel {
public AccountSettingModel() {}
/**
* Creates a new ... |
package problems;
public class Roman_to_integer {
public static void main(String[] args) {
String s="III";
System.out.println(romanToInt(s));
}
public static int romanToInt(String s) {
int ans=0;
int[] nums={1000,900,500,400,100,90,50,40,10,9,5,4,1};
String... |
package com.example.safetyapp;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.text.SpannableString;
import android.text.Spanne... |
package com.ssm.wechatpro.service;
import com.ssm.wechatpro.object.InputObject;
import com.ssm.wechatpro.object.OutputObject;
public interface MWechatDeliveryAddressService {
public void insertDeliveryAddress(InputObject inputObject, OutputObject outputObject) throws Exception;
public void selectByDeliveryUserId... |
package info.blockchain.wallet.ethereum;
final class EthUrls {
private EthUrls() {
throw new UnsupportedOperationException("You can't implement this class");
}
/* Base endpoint for all ETH operations */
private static final String ETH = "eth";
/* Base endpoint for v2 ETH operations */
... |
import java.util.Random;
public class Board {
private int space[][] = new int[10][10];
private Random rand;
boolean bTryingtoPlace;
int direction;
int checkedBoardXpositionStart, checkedBoardXPositionEnd;
int checkedBoardYPositionStart, checkedBoardYPositionEnd;
boolean bThereisRoom;
... |
package game.entities;
/**
* Created by micha on 22.04.2017.
*
* Class for all in-game missiles fired by player's turrets.
*/
public class FriendlyMissile extends Missile {
// Constant sprite key for friendly missile.
private static final String FRIENDLY_MISSILE_SPRITE_KEY =
"friendly_missile.png"... |
package com.fourfire.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
im... |
package dao;
import dao.impl.CategoryDaoImpl;
import dao.impl.CommentDaoImpl;
import dao.impl.RateResourceDaoImpl;
import dao.impl.ResourceDaoImpl;
import dao.impl.RoleDaoImpl;
import dao.impl.UserDaoImpl;
import models.*;
import org.junit.Before;
import org.junit.Test;
import play.libs.Yaml;
import testutils.BaseTest... |
package stark.skplay.utils;
import android.text.format.DateUtils;
import java.util.Formatter;
import java.util.Locale;
public class TimeFormatUtil {
private static StringBuilder formatBuilder = new StringBuilder();
private static Formatter formatter = new Formatter(formatBuilder, Locale.getDefault());
/... |
package net.jefftran.tapestry5.kit.pages;
import org.apache.tapestry5.annotations.Property;
public class CapsLockDetectTest {
@Property
String text;
}
|
package com.creative.carviewslider;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.creative.carviewslider.ediciondatos.FragmentContactoItem;
import com.creative.carviewslider.ediciondatos.F... |
package com.blazejprzyluski.chess.Pieces;
public enum Color
{
WHITE,BLACK;
}
|
package com.yy.webservice.server.core;
public interface BaseService {
public String invoke(String params);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.