text stringlengths 10 2.72M |
|---|
package org.squonk.core.config;
/**
* Created by timbo on 13/03/16.
*/
public class SquonkClientConfig {
public static final String CORE_SERVICES_SERVER = "http://coreservices:8080";
public static final String CORE_SERVICES_PATH = "/coreservices/rest/v1";
public static final String CORE_SERVICES_BASE =... |
package com.gxc.stu.converter;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.core.convert.converter.Converter;
public class DateConverter implements Converter<String, Date>{
@Override
public Date convert(String so... |
/**
*
* @author Jere Kaplas
*/
package carrental;
import java.util.Date;
public class Rental {
private Customer customer;
private Car car;
private Date startDate;
private Date endDate;
public Rental(Customer renter, Car rentalCar, Date start, Date end) {
this.car = rentalCar;
... |
package com.liangjing.mylibrary.view;
import android.animation.TypeEvaluator;
import android.graphics.PointF;
import com.liangjing.mylibrary.util.BezierUtil;
/**
* Created by liangjing on 2017/7/17.
* 功能:Evaluator是属性动画中非常重要的一个东西,他根据输入的初始值和结束值以及一个进度比,
* 那么就可以计算出每一个进度比下所要返回的值。
*/
public class BezierEvalua... |
class Frame{
//doubly linked list to hold frames
float time = 0.f;
float value = 0.f;
Frame next = null;
Frame prev = null;
public Frame(){}
public Frame(float t){
time = t;
}
public Frame(float t, float v){
time=t;
value=v;
}
public void Append(Frame f){
if((next!=null)&&(next.time<f.time))
next.... |
package strategy01;
public interface Freight {
public double calculate(Integer numKilometers);
}
|
package dev.fujioka.eltonleite.presentation.dto.employee;
import java.time.LocalDate;
public class EmployeeRequestTO {
private String name;
private LocalDate dateBirth;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
publ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package cput.codez.angorora.eventstar.model;
/**
*
* @author allen
*/
public final class CashPayment {
private String id;
private String payeeId;
private double amount;
private String eventId;
p... |
package rs.ac.bg.etf.pmu.sv100502.monopoly.helpers;
import android.util.DisplayMetrics;
import rs.ac.bg.etf.pmu.sv100502.monopoly.GameActivity;
import rs.ac.bg.etf.pmu.sv100502.monopoly.classes.ColorGroup;
import rs.ac.bg.etf.pmu.sv100502.monopoly.classes.FieldCoordinates;
import rs.ac.bg.etf.pmu.sv100502.mono... |
public class controller {
public static void main(String[] args) {
manager ob=new manager();
staff s1=new staff(10, "Aloy", ob);
}
}
|
package abiguime.tz.com.tzyoutube._commons.customviews;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.Gravity;
import android.view.SurfaceView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.wid... |
package it.apulia.Esercitazione3.accessManagement;
import it.apulia.Esercitazione3.accessManagement.model.Utente;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UserRepository extends MongoRepository<Utente,String> {
... |
package nz.co.fendustries.whatstheweatherlike.domain.responseModels;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by joshuafenemore on 5/12/16.
*/
public class ForecastResponse
{
private double latitude;
private double longitude;
private String timezone;
... |
package com.wrathOfLoD.Models.Target;
import com.wrathOfLoD.Models.Entity.Character.Pet;
import com.wrathOfLoD.Models.Items.Item;
/**
* Created by matthewdiaz on 4/9/16.
*/
public class AvatarTargetManager extends TargetManager {
public AvatarTargetManager(){
super();
}
/**
* do nothing, a... |
package com.nanyin.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.common.base.Objects;
import io.swagger.annotations.ApiModel;
import lombok.*;
import org.checkerframework.checker.units.qual.C;
import org.hibernate.annotations.*;
import ... |
package core.client.game.operations;
import java.util.EnumSet;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Queue;
import java.util.stream.Collectors;
import cards.Card;
import cards.equipments.Equipment.EquipmentType;
import commands.server.ingame.InGameServerCo... |
package com.company;
import java.util.ArrayList;
import java.util.List;
public class DayCare {
List<Animal> animals = new ArrayList<>();
public void addAnimal(Animal animal) {
animals.add(animal);
}
public void displayAnimals() {
for (Animal animal : animals) {
if (anima... |
package com.rhino.mailParser.data;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;
public class UserDataDAO {
private Session session;
public Session getSession() {
return session;
}
public void setSession(Ses... |
package hengxiu.courseraPA.w3;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class BruteCollinearPoints {
private List<Point> pointList;
private List<LineSegment> segList;
// finds all line segments containing 4 points
public BruteCo... |
package com.examples.io.linkedlists;
public class ReverseLinkedListMtoNPlaces {
public static void main(String[] args) {
Node node = new Node(1);
node.next = new Node(2);
node.next.next = new Node(3);
node.next.next.next = new Node(4);
node.next.next.next.next = new Node(5)... |
package SingleNumber136;
/**
* @author fciasth
* @desc https://leetcode-cn.com/problems/single-number/
* @date 2019/10/26
*/
public class Solution01 {
public int singleNumber(int[] nums) {
int result = nums[0];
for (int i = 1; i < nums.length; i++) {
result = result ^ nums[i];
... |
package com.ferreusveritas.growingtrees.blocks;
import com.ferreusveritas.growingtrees.trees.GrowingTree;
import net.minecraft.block.Block;
import net.minecraft.block.BlockLeaves;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.IBlockAccess;
import net.... |
package egovframework.usr.svc.controller;
import java.io.File;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.commons.logging.Log;
impo... |
package com.turios.settings.modules;
import javax.inject.Inject;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
import android.os.Bundle;
import android.preference.CheckBoxPref... |
package com.flores.easycurrencyconverter.widget;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.RemoteViews;
import com.flores.easycur... |
package dev.bltucker.conway.rules;
import dev.bltucker.conway.cells.Cell;
public interface CellCondition {
public boolean checkCell(Cell cell);
}
|
package sampleproject.remote;
import java.rmi.Remote;
import sampleproject.db.DBClient;
/**
* The remote interface for the GUI-Client.
* Exactly matches the DBClient interface in the db package.
*
* @author Denny's DVDs
* @version 2.0
*/
public interface DvdDatabaseRemote extends Remote, DBClient {
... |
/*
*
* * Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/... |
/*
* *
* * Created by Amit kremer ID 302863253 on 12/12/19 1:53 PM
* * Copyright (c) 2019 . All rights reserved.
* * Last modified 12/12/19 1:53 PM
*
*/
package com.example.hw1;
import android.content.Context;
import android.media.MediaPlayer;
public class MyMediaPlayer {
private MediaPlayer mPlayer;
... |
package com.isban.javaapps.reporting.service;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.LinkedList;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.ParameterMode;
import javax.persistence.StoredProcedureQuery;
... |
/**
* Copyright 2017 伊永飞
*
* 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 agreed to in writin... |
package com.atakan.app.dao;
import java.util.List;
import java.util.Optional;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import javax.transaction.Transactional;
import org.hibernate.Session;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframew... |
package gov.noaa.eds.byExample.trySimpleVfsSftp;
import java.io.IOException;
/**
*/
public class SftpUtilsTest {
/**
* Method main.
* @param args String[]
*/
public static void main(String[] args) {
try {
new SftpUtilsTest().uploadTest();
} catch (IOException e) {
// TO... |
package tech.liujin.drawable.progress.decoration;
import android.graphics.Canvas;
import android.graphics.Paint.Style;
import android.graphics.Path;
import android.graphics.Path.Direction;
import android.graphics.PathMeasure;
import android.graphics.Rect;
import android.graphics.RectF;
import android.support.annotatio... |
package Belorusets.Inheritance;
public class QAEngineer extends Employee{
private double bonus;
QAEngineer(String sName, double dSalary, String sCompany, double dBonus)
{
super(sName, dSalary, sCompany);
bonus = dBonus;
}
public double getBonus() {
return bonus;
}
}
|
package com.crunchshop.exception;
import graphql.ExceptionWhileDataFetching;
import graphql.execution.ExecutionPath;
import graphql.language.SourceLocation;
public class CustomExceptionWhileDataFetching extends ExceptionWhileDataFetching {
private final String customMessage;
public CustomExceptionWhileDataF... |
/*
* Dryuf framework
*
* ----------------------------------------------------------------------------------
*
* Copyright (C) 2000-2015 Zbyněk Vyškovský
*
* ----------------------------------------------------------------------------------
*
* LICENSE:
*
* This file is part of Dryuf
*
* Dryuf is free softw... |
package com.tac.kulik.waveaudiovizualization;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.Attribute... |
package com.driva.drivaapi.mapper.dto;
import com.driva.drivaapi.model.product.Product;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
@Getter
@Setter
@NoArgsConstructor
public class ProductDTO {
... |
/*
* 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 Collections;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Ran... |
package com.revature.bloodbank.service;
import com.revature.bloodbank.exception.BloodBankDuplicateCenterIdException;
import com.revature.bloodbank.model.BloodBankCenter;
import com.revature.bloodbank.exception.BloodBankInvalidDetailsException;
public interface BloodBankService {
public void addBloodBankCenter(... |
package com.dian.diabetes.activity.eat.adapter;
import java.text.DecimalFormat;
import java.util.List;
import android.content.Context;
import android.view.View;
import android.widget.TextView;
import com.dian.diabetes.R;
import com.dian.diabetes.activity.MBaseAdapter;
import com.dian.diabetes.db.dao.Eat;
... |
/**
* Sencha GXT 3.0.1 - Sencha for GWT
* Copyright(c) 2007-2012, Sencha, Inc.
* licensing@sencha.com
*
* http://www.sencha.com/products/gxt/license/
*/
package com.sencha.gxt.desktopapp.client.canvas;
import net.edzard.kinetic.Kinetic;
import net.edzard.kinetic.Stage;
import com.google.gwt.user.client.ui.Widge... |
package com.dambroski.services;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.... |
package com.ag.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
@Data
public class CategoryDto {
private String name;
private Integer type;
}
|
/*
* Copyright 2002-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.example.ecoleenligne.util;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.example.ecoleenligne.R;
import com.example.ecoleenligne.model.Item;
import ... |
/**
* Square subclass of superclass Shape. Overrides toString, getPerimeter, and area methods.
*
* @CollinWen
*/
public class Square extends Shape
{
public Square() {
this(4, "A");
}
public Square(int length, String name) {
super(4, length, name);
}
@Override
public ... |
package com.example.firstprogram;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android... |
package mk.finki.ukim.dians.surveygenerator.surveygeneratorcore.domain.jpamodels;
import lombok.*;
import javax.persistence.*;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Entity
@Table(schema = "surveys", name = "surveys_answers")
public class SurveyAnswer {
@Id
@GeneratedValu... |
package org.codingdojo.kata.parkinglot;
import org.codingdojo.kata.parkinglot.Bean.Car;
import org.codingdojo.kata.parkinglot.Bean.Credit;
import org.codingdojo.kata.parkinglot.parkingboy.SuperParkingBoy;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
p... |
package com.mattcramblett.primenumbergenerator;
import static org.junit.Assert.assertEquals;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.Arrays;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class MainTest extends AbstractTest {
private final... |
package week2.assignment;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Actions;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.chrome.ChromeDriver;
import io.github.bonigarcia.wdm.WebDriverManag... |
package cliente;
public abstract class CirculoBase{
public CirculoBase(String id, int limite){
}
public void setLimite(int limite) {
}
public String getId() {
return null;
}
public int getLimite() {
return 0;
}
public abstract int getNumberOfContacts();
} |
package _00_config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
import org.springframework.data.redis.c... |
package Hang.Java.Common.Helpers;
import java.io.*;
import java.net.URL;
import java.net.URLConnection;
public class HttpHelper {
public String Get(String url, String encoding) {
String result = "";
BufferedReader in = null;
try {
URLConnection conn = new URL(url).openConnect... |
public class ThreeSortDemo {
public static void main(String[] args) {
int N = 100000;
int[] A = new int[N];
for(int i = 0;i < A.length;i++) {
A[i] = (int) (Math.random() * N * 10);
//System.out.printf("%4d",A[i]);
}
double t0 = System.nanoTime() / 1e6;
SelectionSor... |
package com.android.recommender;
//reference: http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/
import android.app.Fragment;
import android.app.FragmentManager;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.widget.DrawerLayout;
import android.support.... |
class NestSeven
{
void m1(){}
void m2(){}
}
//lets write code with anonymous class without InnerSix type of class decalred in NestSix.java
class SevenNest
{
NestSeven s = new NestSeven()
{void m1(){System.out.println("M1 Method from anonymous class");}
void m2(){System.out.println("M2 Method from anonymous... |
package com.peregudova.multinote.app;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import androidx.annotation.NonNull;
import... |
package com.qst.chapter09;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
/**
* Created by Adminstrator on 2016/10/19.
*/
public cl... |
package com.codigo.smartstore.sdk.core.struct.iterate.array;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import com.codigo.smartstore.sdk.core.structs.iterate.array.ArrayIterable;
import ... |
package com.taim.content.mapper;
import com.taim.backendservice.model.Vendor;
import com.taim.content.model.VendorOverviewView;
public interface VendorOverviewMapper {
VendorOverviewView map(Vendor vendor);
}
|
package cn.xeblog.xechat.utils;
import java.util.UUID;
/**
* uuid工具类
*
* @author yanpanyi
* @date 2019/03/27
*/
public class UUIDUtils {
/**
* 生成uuid
*
* @return
*/
public static String create() {
return UUID.randomUUID().toString().replace("-", "");
}
}
|
package com.example.university.repo;
import com.example.university.dto.DegreeCount;
import com.example.university.model.Degree;
import com.example.university.model.Department;
import com.example.university.model.Lector;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.r... |
package org.dimigo.oop;
public class CarTest {
public static void main(String[] args) {
Car car[] = { new Car(), new Car(), new Car() };
car[0].setCompany("현대자동차");
car[0].setModel("제네시스");
car[0].setColor("검정색");
car[0].setMaxSpeed(225);
car[0].setPrice(50000000);
... |
package com.egova.eagleyes.util;
import com.egova.eagleyes.model.respose.PersonInfo;
import java.util.Comparator;
public class PersonLetterComparator implements Comparator<PersonInfo> {
@Override
public int compare(PersonInfo o1, PersonInfo o2) {
if (o1 == null || o2 == null) {
return 0;... |
package ideablog.dao;
import ideablog.model.CloudFile;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface ICloudFileDao {
CloudFile selectCloudFileById(long id);
List<CloudFile> selectAllCloudFiles();
List<Clo... |
package com.eveena.instantfix;
public class TupleFixFiller implements IFiller<TupleFixMessage> {
public void fill(TupleFixMessage msg, PairDataReader data) {
msg.setValue(data.readHeader(), data.readString());
}
public TupleFixMessage newObj() {
return new TupleFixMessage();
}
}
|
package Telas;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.EmptyB... |
package ch.bfh.bti7301.w2013.battleship.gui;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Bounds;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Group;
import javafx.scene.control.Button;
import javafx.scen... |
package com.ipl.ipldashboard.respository;
import com.ipl.ipldashboard.model.Match;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframe... |
package com.lenovohit.ssm.base.web.rest;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.b... |
package com.jiacaizichan.baselibrary.activity;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.AppComp... |
package f.star.iota.milk.ui.threeycy.ycy;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import f.star.iota.milk.Net;
import f.star.iota.milk.base.PVContract;
import f.star.iota.milk.base.StringPr... |
package com.example.yandextest;
public class History {
private int _id;
private String _name;
public History(){}
public History(final String _name) {
this._name = _name;
}
public int get_id(){
return _id;
}
public void set_id(final int _id){
this._id = _id;
... |
import javax.xml.parsers.*;
import org.xml.sax.SAXException;
import org.w3c.dom.*;
import datastructures.DefaultBinaryTree;
import datastructures.DefaultBinaryTreeNode;
import java.io.*;
/**
* parses the xml file into a binary tree
* @author Pooja Kundaje
*
*/
public class TreeFileReader {
//private static De... |
package com.codingchili.social.model;
import java.util.*;
import com.codingchili.core.context.CoreContext;
/**
* @author Robin Duda
* <p>
* Tracks accounts that are online for friendlists and chat.
*/
public class OnlineDB {
private CoreContext context;
private Map<String, Set<String>> connected = new Ha... |
package com.joalib.DAO;
import java.io.IOException;
import java.io.Reader;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.Sql... |
/**
* Created by riddle on 5/2/17.
* Code by Samya: Hope it is correct.
*/
package com.company;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import org.jdom2.Attribute;
import org.jdom2.Document;
import org.... |
package com.example.lubabaislam.scavangerhunt.DataObjects;
/**
* Created by lubaba.islam on 6/11/2016.
*/
public class Clue {
private String mClue;
private int mId;
public static final String KEY="userCurrentClue";
public Clue(String mClue, int mId) {
this.mClue = mClue;
this.mId =... |
package com.example.demo.exceptions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
im... |
package com.zevzikovas.aivaras.terraria.repositories;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.zevzikovas.aivaras.terraria.R;
import com.zevzikovas.ai... |
package com.kamilbolka.util;
import android.util.Log;
/**
* This is a simple debug logging class that will control if there should be logging or not.
* The reason for this class is to allow the developer to develop with log but release the app
* without log to increase the performance for this app.
*/
public clas... |
import java.util.*;
class pattern2
{
public static void main(String args[])
{
int n,i,j,c=1,k,count=0;
Scanner sc = new Scanner(System.in);
System.out.println("Enter number of rows");
n = sc.nextInt();
for(i=0;i<n;i++)
{
for(j=0;j<=i;j++)
{
co... |
// FPNumber.java
// The FPNumber class splits a floating point number into the S, E, and F fields.
// The F field will actually be 26 bits long, as this automatically adds the leading 1
// and the two guard bits.
//
// To use:
// FPNumber fa = new FPNumber(a);
// This allocates a new FPNumber and loads i... |
package nine.oop;
public class Kafana {
public static void main(String[] args) {
Beverage kafa = new Kafa();
System.out.println("Račun= " + kafa.cost());
Beverage kafa1 = new Kafa();
Beverage kafaMlijeko = new MilkDecorator(kafa1);
System.out.println("Račun= " + kafaMlijeko.... |
/*
* #%L
* Diana UI Core
* %%
* Copyright (C) 2014 Diana UI
* %%
* 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 req... |
package basic_programs;
public class SwapWithTwo {
public static void main(String args[])
{
int a=10;
int b=20;
System.out.println("before swapping");
System.out.println("value of num1 is"+ a);
System.out.println("value of num2 is"+b);
a=a+b;
b=b-a;
a=a-b;
System.out.println("after swapping")... |
package lyrth.makanism.bot.commands.admin;
import lyrth.makanism.api.GuildCommand;
import lyrth.makanism.api.annotation.CommandInfo;
import lyrth.makanism.api.object.AccessLevel;
import lyrth.makanism.api.object.CommandCtx;
import reactor.core.publisher.Mono;
import java.util.Map;
@CommandInfo(
aliases = {"setAl... |
import java.util.ArrayList;
import java.util.Date;
import java.util.UUID;
public class VideoPost extends TextPost{
/**
* maximum video length
*/
static final double maxVideoLength = 10;
/**
* video's filename
*/
private String videoFilename;
/**
* video's duration
*/
private String ... |
package override;
public class Veiculo {
protected void travar() {
System.out.println("Pressione com o pe direito no pedal do meio");
}
}
|
package com.xljt.freight.service;
/**
* The interface Capital flow service.
*
* @author xu
* @date 2020.04.13
*/
public interface CapitalFlowService {
/**
* Capital flow upload.
*
* @author xu
* @date 2020.04.13
*/
void capitalFlowUpload();
}
|
package me.sh4rewith.persistence.mongo.mappers;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import me.sh4rewith.domain.SharedFileFootprint;
import me.sh4rewith.persistence.keys.SharedFileFootprintKeys;
import org.springframework.dao.DataAccessException;
import com.mongodb.DBObject;
imp... |
package production.Staging;
import java.sql.SQLException;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.sup... |
/**
* Test Stub
* - 더미 객체가 마치 실제로 동작하는 것처럼 보이게 만들어놓은 객체다.
* - 실제로 스텁을 사용할 때는 테스트에 필요한 메서드 부분만 하드코딩하면 된다.
*/
package shop;
public class StubCoupon implements ICoupon {
@Override
public String getName() {
// TODO Auto-generated method stub
return "VIP 고객 한가위 감사쿠폰";
}
@Override
public boole... |
package br.com.itau.creditcardtransactionservices.repository;
import br.com.itau.creditcardtransactionservices.repository.entity.CreditCardTransactionEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;... |
package ru.job4j.condition;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Class PointTest тестирует метод класса Point.
* @author Goureev Ilya (mailto:ill-jah@yandex.ru)
* @version %G%
* @since 1
*/
public class PointTest {
/**
* Тестирует... |
package xpadro.spring.security.config;
import org.h2.tools.Server;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import java.sql.SQLException;
@ComponentScan(basePackages = "xpadro.spring.security.web")
public class ServletConfig {
/**
* Av... |
package cn.itcast.core.common;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.util.CellRa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.