text stringlengths 10 2.72M |
|---|
package io.indreams.ecommerceuserinfoservice.dao;
import io.indreams.ecommerceuserinfoservice.model.UserDAO;
import org.springframework.data.mongodb.repository.MongoRepository;
public interface UserRepo extends MongoRepository<UserDAO,String> {
}
|
package com.starfall.datastructure.tree;
import org.junit.Test;
/**
* @author StarFall
* @project JavaProject
* @package com.starfall.datastructure.tree
* @className BalanceBinaryTreeTest
* @date 2019/6/23 17:47
* @description BalanceBinaryTreeTest 平衡二叉树测试
*/
public class BalanceBinaryTreeTest {
@Test
... |
package holder;
import java.util.*;
class SumObject {
int sumValue;
HashSet<Integer> sumPairs = new HashSet<>();
public SumObject() {
}
public SumObject(int sumValue, int sumPair) {
this.sumValue = sumValue;
this.sumPairs.add(sumPair);
}
public void addPair(int pair) {
this.sumPairs.add(pair);
}
}
... |
package sort;
public class Insertion extends AbstractSort{
public static void sort(Comparable[] a) {
for(int p=1; p<a.length; p++)
for(int j=p; j>0; j--)
if(less(a[j-1],a[j]) == false)
exch(a,j-1,j);
}
}
|
/*
* 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 conexion;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import j... |
package com.hc.element_ec.main;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import com.hc.element_ec.main.index.IndexFragment;
import com.heyskill.element_core.fragments.BaseFragment;
import com.heyskill.element_core.fragments.bottom.BaseBottomFragment;
import com.heyskill.eleme... |
package map;
import java.awt.Color;
import java.awt.Insets;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.ToolTipManager;
import map.model.T... |
/*
* Copyright 1999-2011 Alibaba Group Holding Ltd.
*
* 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 applica... |
package main.java.pane.simulation;
import java.util.ArrayList;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.scene.control.CheckBox;
import javafx.scene.control.Label;
import javafx.scene.control.ProgressBar;
import main.java.algorithms.tsp.HungarianAssignment;
imp... |
package com.pdd.pop.sdk.http.api.response;
import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;
import com.pdd.pop.sdk.http.PopBaseHttpResponse;
public class PddLogisticsCsSessionCloseResponse extends PopBaseHttpResponse{
/**
* response
*/
@JsonProperty("logistics_cs_session_close_... |
package it.univr.domain.safe.original;
import org.junit.Assert;
import org.junit.Test;
import it.univr.domain.safe.original.Bool;
import it.univr.domain.safe.original.Interval;
import it.univr.domain.safe.original.SAFEAbstractDomain;
import it.univr.main.Analyzer;
import it.univr.state.AbstractEnvironment;
import it.... |
package practise;
public class GenericsTest<T>
{
T a;
T b;
public GenericsTest(T a, T b) {
super();
this.a = a;
this.b = b;
}
}
|
/*
* 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 human;
/**
*
* @author hugo
*/
public class FysikerDemo {
public static void main(String[] args) {
Fysiker n... |
import java.util.Arrays;
/**
* Created with IntelliJ IDEA.
* User: dexctor
* Date: 12-12-13
* Time: 下午4:18
* To change this template use File | Settings | File Templates.
*/
public class LoadingBalancing {
private static class Job implements Comparable<Job>
{
private String name;
... |
package hu.cehessteg.Stage;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import hu.cehessteg.Screen.MenuScreen;
import hu.csanyzeg.master.MyBaseClasses.Assets.AssetList;
import hu.csanyzeg.master.MyBaseClasses.Game.MyGame;
impor... |
package com.example.hotel.service.paymethods;
import com.example.hotel.exceptions.EntityNotFoundException;
import com.example.hotel.model.paymethods.PayMethod;
import com.example.hotel.repository.paymethods.PayMethodRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
impor... |
package com.huaxiao47.just4fun.ui.home.recommend.banner;
import java.util.ArrayList;
import java.util.List;
public class BannerBean {
public String imgUrl;
public String title;
public String gotoUrl;
public BannerBean(String imgUrl, String title, String gotoUrl) {
this.imgUrl = img... |
package homework1.tasks;
import java.util.Scanner;
/**
* По длинам трех отрезков, введенных пользователем, определить возможность существования треугольника,
* составленного из этих отрезков. Если такой треугольник существует, то определить, является ли он разносторонним,
* равнобедренным или равносторонним.
*/
... |
package com.gsccs.sme.test;
import java.util.Date;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4Clas... |
package com.aut.yuxiang.lbs_middleware.lbs_net.entity;
import java.util.ArrayList;
/**
* Created by yuxiang on 16/12/16.
*/
public class GeolocationRequestEntity {
public static final String API_KEY = "AIzaSyBpRDMmaOkiZoQduKGGCyhthwlofCDiFLg";
public static final String GEOLOCATION_URL = "https://www.googl... |
package de.varylab.discreteconformal.functional.node;
import de.jtem.halfedge.Edge;
public class ConformalEdge <
V extends ConformalVertex<V, E, F>,
E extends ConformalEdge<V, E, F>,
F extends ConformalFace<V, E, F>
> extends Edge<V, E, F> {
protected double
lambda = 1.0,
alpha = 0.0,
beta = 0.... |
package go;
import java.awt.geom.Point2D;
import java.util.Scanner;
/**
*Classe Joueur
* @author bchevill
*/
public class Joueur {
private String couleur;
private int pionCapture;
// Constructeur
/**
*
*/
public Joueur(String couleur){
this.couleu... |
package com.onlyu.reactiveprog.repositories.reactive;
import com.onlyu.reactiveprog.domain.User;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
public interface UserReactiveRepository extends ReactiveMongoRepository<User, String> {
}
|
package com.programapprentice.app;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* User: program-apprentice
* Date: 8/22/15
* Time: 11:06 PM
*/
public class PermutationSequence_Test {
PermutationSequence_60 obj = new PermutationSequence_60();
@Test
public void test1() {
... |
package falcons.plugin;
import java.io.Serializable;
public class PluginCall implements Serializable {
private String pluginID;
private AbstractPluginData pluginData;
private int destination;
private int sender;
/**
* Creates a new PluginCall based on a plugin.
*
* @param plugin
* ... |
package com.test;
public class Test5 {
int id;
String name;
public static void main(String[] args) {
Test5 t5=new Test5();
System.out.println(t5.id);
System.out.println(t5.name);
}
}
|
package vnfoss2010.smartshop.serverside.database;
import com.google.gwt.user.client.rpc.IsSerializable;
/**
* <code>ServiceResult</code> presents a response from <code>RemoteService</code> <br/>
* <b>Usage</b>:
* <ul><li><code>isOK</code> check RPC service call is OK or not
* <li><code>result</code> de... |
package com.devpmts.dropaline.gui;
public class DROPALINE_GUI {
public static final String LINE_INPUT = "line_input";
public static final String NOTE_INPUT = "note_input";
public static final String ACTIVE_FIELD = "active_field";
public static final String SETTINGS_WINDOW_ID = "com.devpmts.dropaline.window.se... |
package org.vkedco.mobappdev.bindsumlib;
import android.os.Parcel;
import android.os.Parcelable;
public class SumResponse implements Parcelable {
long mSum = 0;
public SumResponse(long sum) {
mSum = sum;
}
public long getSum() { return mSum; }... |
package com.androidvoyage.bmc.utils;
import android.util.Log;
import com.androidvoyage.bmc.common.CommonConstants;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
/*... |
package com.mobiquityinc.packer;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.function.Consumer;
import java.util.regex.Pattern;
import java.util.stream.Stream;
import com.mobiquityinc.e... |
package com.edgit.server.jsf;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Collection;
import java.util.stream.Collectors;
import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import jav... |
package be.tcla.bookinventory.repository;
import be.tcla.bookinventory.mapper.EnumMapper;
import be.tcla.bookinventory.model.Book;
import be.tcla.bookinventory.model.Genre;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stere... |
package irix.measurement.service;
public interface MeasuringPeriodImp {
public String getStartTime();
public String getEndTime() ;
}
|
package ua.siemens.dbtool.dao.hibernate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;
import ua.siemens.dbtool.dao.ActivityDAO;
import ua.siemens.dbtool.model.entities.Activity;
import ua.siemens.dbtool.model.entities.User;
import ua.siemens.dbtool.model.en... |
package com.company.UnitTesting;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
import com.company.Maintenance;
import com.company.Ticket;
class Maintenance_Test {
@Test
void test() {
Maintenance test = new Maintenance();
assertNotNull(test.CompleteTicket(new Ticket("... |
/*
* 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 View;
import Controller.*;
import Controller.HibernateUtil;
import Controller.Medium_controller;
import Controller.Item_control... |
package de.mneifercons.webdriver;
/*
* Copyright (c) 2020 Markus Neifer
* Licensed under the MIT License.
* See file LICENSE in parent directory of project root.
*/
import io.cucumber.java.After;
import io.cucumber.java.Before;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
import org.openqa.se... |
package com.lenovohit.ssm.base.web.rest;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotatio... |
package com.infohold.el.web.rest;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.Re... |
package factoring.fermat.residue;
import factoring.math.PrimeMath;
import factoring.math.SquaresMod;
import java.util.Collection;
/**
* Created by Thilo Harich on 03.01.2018.
*/
public class FermatResiduesArray extends FermatResiduesRec {
int mod; // = 24
int repeat = 3;
public int xRange = mod * repe... |
package com.movie.web.grade;
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.HttpServletRespons... |
package Praticando;
import java.util.Scanner;
public class folha_de_pagamento {
void salario (double hora,int mes){
Scanner scanner = new Scanner(System.in);
System.out.println("Digite quanto voce ganha por hora");
hora = scanner.nextDouble();
System.out.println("Digite quantas hor... |
package com.jgermaine.fyp.rest.model.dao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.NonUniqueResultException;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import javax.persistence.TypedQuery;
impo... |
package com.tntdjs.midi.executer;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import com.tntdjs.midi.IMidiExecuter;
import com.tntdjs.midi.MidiTypeTypes;
import com.... |
package xplanner.model;
import network.model.response.CategoryResponse;
import network.model.response.EventResponse;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import service.RestClient;
import java.util.*;
/**
* Created by qiaoruixiang on 15/05/2017.
*/
public class PoiD... |
public class Solution{
//this method takes roughly O(n+km) time(k is occurences of t2's root in t1) and O(logn+logm) space.
public static boolean isSubTree(TreeNode t1,TreeNode t2){
if(t2==null){return true;}
return travseral(t1,t2);
}
private static boolean travseral(TreeNode t1,TreeNode t2){
if(t1==null){r... |
package ua.com.dao;
import ua.com.model.User;
public interface UserDAO extends CommonDAO<User> {
}
|
/*
* @(#)Nameable.java 1.0 06/24/99
*
*/
package org.google.code.netapps.chat.primitive;
/**
* The ability to have some name.
*
* @version 1.0 06/24/99
* @author Alexander Shvets
*/
public interface Nameable {
/**
* Get name of object.
*
* @return name of object as a string
*... |
package com.v.demo1;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
/**
* Created by Administrator on 2017/11/4.
*/
public class RecyclerViewAdapter extends RecyclerView.Adapter<RecyclerViewAdap... |
package org.composant.vehicule;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.database.vehicule.Moto;
import org.database.vehicule.Vehicule;
import org.database.vehicule.Voiture;
/**
* Session Bean implementat... |
package mx.santander.listener.model;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import jav... |
package com.example.workstudy.thread;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentHashMap;
public class ThreadReturnImpl implements Callable<String> {
/**
* 实现Callable接口的两种启动方式
* 一种是通过FutureTask
*
* 一种是通过Executor
*/
private static... |
package com.logicbig.example.componentscanfiltering;
public class MyBean2 {
} |
/*
* 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 stockmarket;
import java.util.ArrayList;
/**
*
* @author hugo
*/
public class Asset {
private String name;
privat... |
public class Reverser extends Transpose{
public Reverser(String text)
{
super(text);
}
public String reverseText(String word)
{
String[] tokens = word.split(" ");
String reverse = "";
for (int i = tokens.length -1; i >=0; i--)
reverse = reverse + tokens[... |
package io.report.modules.ser.service;
import com.baomidou.mybatisplus.service.IService;
import io.report.common.utils.PageUtils;
import io.report.modules.ser.entity.DtTableRsEntity;
import java.util.Map;
/**
* 数据集引用表关系表
*
* @author jizh
* @email jzh15084102133@126.com
* @date 2018-08-29 18:01:10
*/
public int... |
package FrontEnd;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import lk.sliitacademy.rustrepaircenter.ConnectionMSSQL;
import lk.sliitaca... |
package onlineMall.web.publicController;
import onlineMall.web.dao.DateConvert;
import onlineMall.web.dao.Impl.ShopDaoImpl;
import onlineMall.web.dao.Impl.UserDaoImpl;
import onlineMall.web.pojo.Shop;
import onlineMall.web.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframe... |
package pwnbrew.socks;
import java.io.IOException;
import java.net.InetAddress;
import pwnbrew.misc.Constants;
import pwnbrew.misc.DebugPrinter;
public class Socks4Impl {
private static final String NAME_Class = Socks4Impl.class.getSimpleName();
public byte SOCKS_Version = 0;
public SocksHandl... |
package code.demo.dao;
import java.util.List;
import org.hibernate.criterion.Criterion;
import code.demo.model.TestRecord;
public interface ITestRecordDao {
public List<TestRecord> selectAllTestRecord();
public List<TestRecord> selectTestRecordByRestrictions(Criterion criterion);
}
|
/*
* 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 domain;
import java.util.Date;
/**
*
* @author Marcos
*/
public class Pago {
private Integer idPago;
private ... |
package StepsDef;
import Utils.BoardUtils;
import com.jayway.restassured.response.Response;
import io.cucumber.java.en.And;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
import static junit.framework.TestCase.assertEquals;
import static com.jayway.restassured.Re... |
package pack.cd;
import pack.cd.exceptions.EmptyCdAlbumException;
import pack.cd.exceptions.NullAlbumObjectException;
import pack.cd.interfaces.DBable;
import pack.cd.interfaces.Library;
import pack.cd.interfaces.Sortable;
import java.io.*;
import java.nio.file.Files;
import java.nio.file.Paths;
import jav... |
package com.navarromugas.models;
public class Dios {
private Mundo mundo;
private Gps gps;
public Dios(Gps gps) {
this.gps = gps;
mundo = new Mundo(gps);
}
public void avanzarUnaGeneracion() {
Mundo viejoMundo = mundo.clonar();
for (int i = 0; i < gps.getParalelos(); i++)
for (int j = 0; j < gps.get... |
//package com.pshc.cmg.service;
//
//import java.io.FileInputStream;
//import java.io.IOException;
//import java.util.Arrays;
//import java.util.List;
//
//import org.springframework.stereotype.Service;
//
//import com.google.auth.oauth2.GoogleCredentials;
//import com.google.firebase.FirebaseApp;
//import com.google.f... |
package com.weathair.dto;
import com.weathair.entities.Role;
import com.weathair.entities.Township;
public class UserResponseDto {
private String pseudo;
private String email;
private String password;
private Township township;
private Role role;
public UserResponseDto() {
super();
}
public String get... |
package com.git.cloud.excel.service.impl;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.git.cloud.appmgt.service.IDeployunitService;
import com.git.cloud.common.dao.ICommonDAO;
import com.git.cloud.common.exception.RollbackableBizException;
import c... |
/**
* @Author: Mahmoud Abdelrahman
* User Entity is where all User specifications are declared.
*/
package com.easylearn.easylearn.entity;
import lombok.*;
import lombok.experimental.SuperBuilder;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import javax.persistence.*;
import java.ut... |
package com.soft1841.bookdemo;
import javax.swing.*;
/**
* 进度条的滚动
* @author 黄敬理
* 2019.04.11
*/
public class JoinThreadTest1 implements Runnable {
private JProgressBar jProgressBar1;
public void setjProgressBar1(JProgressBar jProgressBar1) {
this.jProgressBar1 = jProgressBar1;
}
@Override... |
package com.leinad.web.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
public class HelloDto {
@JsonProperty("name")
public String name;
@JsonProperty("message")
public String message;
}
|
package org.apache.hadoop.hdfs.server.namenode.lock;
import java.util.Collection;
import java.util.LinkedList;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.ReentrantLock;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.hd... |
package com.sun.xml.bind.v2.model.core;
/**
* Reference to a {@link NonElement}.
*
* This interface defines properties of a reference.
*
* @author Kohsuke Kawaguchi
*/
public interface NonElementRef<T,C> {
/**
* Target of the reference.
*
* @return never null
*/
NonElement<T,C> getT... |
package java8.functional_interface;
@FunctionalInterface
public interface SummableInterface {
public int sum(int a, int b);
}
|
package fr.utt.if26.memoria;
import android.content.Context;
import android.media.MediaPlayer;
import java.io.IOException;
public class SoundBox {
private static SoundBox instance = null;
private Context context;
private boolean soundsOn;
private MediaPlayer music;
private MediaPlayer bip;
p... |
package com.lumpofcode.expression;
import com.lumpofcode.utils.NumberFormatter;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by emurphy on 11/30/16.
*/
public class ExpressionTreeHelperTest
{
@Test
public void testEvaluateNextOperation()
{
// formatter truncates doubles to ints
fi... |
package chess;
/**
* Class performs all the functionality of the rook piece and inherits from the
* class ChessPiece.
*
* @author Andrew Olesak
* @version February 23, 2016
*/
public class Rook extends ChessPiece {
/**
* Constructor calls the super class to set the type of the player black or
* white
* ... |
package uk.co.mtford.jalp.abduction.logic.instance.term;
import choco.kernel.model.variables.Variable;
import choco.kernel.model.variables.set.SetVariable;
import uk.co.mtford.jalp.abduction.logic.instance.*;
import uk.co.mtford.jalp.abduction.tools.NameGenerator;
import java.util.Collection;
import java.util.HashMap... |
package dk.webbies.tscreate.main.patch;
import dk.au.cs.casa.typescript.types.SimpleType;
import dk.au.cs.casa.typescript.types.SimpleTypeKind;
import dk.au.cs.casa.typescript.types.Type;
import dk.webbies.tscreate.BenchMark;
import dk.webbies.tscreate.analysis.declarations.DeclarationPrinter;
import dk.webbies.tscrea... |
package capaPresentacion;
import java.io.Serializable;
import java.util.Date;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
import capaDatos.Persona;
@Named
@RequestScoped
public class PersonaMB implements Serializable
{
private static final long serialVersionUID = 1L;
private Person... |
package ua.com.dao;
import ua.com.model.Address;
public interface AddressDAO extends CommonDAO<Address> {
}
|
package br.com.vitormarcal.gestao_consulta.consulta.request;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDate;
public class FiltroConsultaDisponivelRequest {
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
private LocalDate data;
private Integer idEspecialidade;
... |
package tailminuseff.fx.model;
import java.util.regex.Pattern;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javax.inject.Singleton;
@Singleton
public class UserSearchModel {
private final ObjectProperty<Pattern> pattern = new SimpleObjectProperty<>();
... |
package sjtu.csdi.AndroidIOTool;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
public class MainAty extends Activity {
/**
* Called when the activity is first created.
*/
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(sa... |
package tarea.ordenamiento;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Empleado daniel = new Empleado();
daniel.setNombre("Daniel");
daniel.setApellido("Torres");
daniel.setEdad(19);
daniel.setSalario(500);
Em... |
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.applet.Applet;
/*<applet code="Registration" height=800 width=800>
</applet>*/
public class Registration extends Applet implements ActionListener,ItemListener{
String str="";
String s="";
String msg="";
Label l1,l2,l3,List,Choice;
TextField... |
package no.nav.vedtak.sikkerhet.abac.pdp;
public interface RessursDataKey {
String getKey();
}
|
package artgallery.Actors;
import java.util.ArrayList;
import artgallery.geometricalElements.Edge;
import artgallery.geometricalElements.RoutePoint;
public class Thief extends Actor{
private int x;
private int y;
private int currentPointIndex;
private int orientation;
private int maxSpeed;
private int observati... |
package com.github.tobby48.java.scene3.scatchbook;
/**
* <pre>
* com.github.tobby48.java.scene3.scatchbook
* Scatchbook.java
*
* 설명 :추상클래스와 인터페이스 예제
* </pre>
*
* @since : 2017. 11. 16.
* @author : tobby48
* @version : v1.0
*/
public class Scatchbook {
private String name;
private D... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package TimerScratch;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JLabel;
import javax.swing.JPanel;
import java.util.Timer;
impo... |
package com.example.workstudy.hauwei;
import com.example.workstudy.pattern.decorate.Man;
import java.util.Scanner;
public class Levenshtein {
/**
* 相关连接:https://www.iteye.com/blog/wdhdmx-1343856
* 编辑距离算法
* 最短编辑距离
* 两个字符串之间的相识度
* abc a b c
* abd 0 1 2 3
* a 1 0 1 2
... |
package _09_automated_testing_tdd.triangle_type;
import org.junit.Test;
import org.junit.jupiter.api.DisplayName;
import static org.junit.Assert.assertEquals;
public class TriangleTypeTest {
@Test
@DisplayName("Testing case1")
public void testCase1() {
int a = 2, b = 2, c = 2;
String expe... |
package com.cs.messaging.email;
import com.cs.player.Player;
import com.cs.user.User;
import com.google.common.base.Objects;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persisten... |
package com.stk123.repository;
import com.stk123.entity.StkFnDataUsEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface StkFnDataUsRepository extends StkFnData<StkFnDataUsEntity>, JpaRepository<StkFnDataUsEntity, StkFnData... |
package example;
import iboxdb.localserver.*;
import iboxdb.localserver.replication.*;
import java.io.*;
import java.util.concurrent.*;
import java.util.concurrent.atomic.*;
import java.text.*;
import java.util.*;
public class KeyOnly {
public static void main(String[] args) throws InterruptedException {
... |
package info;
import edit.DriverInsertionDialog;
import edit.InspectorInsertionDialog;
import edit.CheckupInsertionDialog;
import edit.DriverDeletion;
import edit.InspectorDeletion;
import edit.CheckupDeletion;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.Se... |
/*
* Copyright (c) 2013-2014, Neuro4j.org
*
* 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... |
package com.camila.web.dominio.models;
import java.math.BigDecimal;
import java.time.OffsetDateTime;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
i... |
/*
* Copyright 2012 GitHub Inc.
*
* 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 ... |
package dynamic_programming;
import java.util.Arrays;
/**
* Created by gouthamvidyapradhan on 27/01/2018.
* In a N x N grid representing a field of cherries, each cell is one of three possible integers.
0 means the cell is empty, so you can pass through;
1 means the cell contains a cherry, that you can pick up a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.