text stringlengths 10 2.72M |
|---|
package com.example.demo.controller;
import com.example.demo.service.AppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.we... |
package com.box.androidsdk.content.models;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Handler;
import android.os.Looper;
import android.widget.Toast;
import com.box.androidsdk.content.Box... |
package com.events;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Objects;
/**
* AccessEvent 刷卡访问事件的实体类对象
* */
//@Data
//@AllArgsConstructor
@NoArgsConstructor
public class AccessEvent implements Serializable {
public Integer id;
public Integer door_id;
public String d... |
public class Game
{
Frame frame;
Panel panel;
public Game()
{
openFrame();
initGame();
start();
}
// Frame functions
private void openFrame()
{
frame = new Frame();
initPanel();
//initPanelSize();
}
// Panel functions
private void initPanel()
{
panel = frame.ge... |
/*
* 12 de Mayo de 2020
* Ismael Salas López
* PROYECTO FINAL
* Clase Arrastra
*/
package salas_lopez_ismael_pf;
import java.awt.Color;
import java.awt.Container;
import java.awt.Cursor;
import java.awt.datatransfer.DataFlavor;
import java.awt.dnd.DragGestureListener;
import java.awt.dnd.DragSourceListener;
impor... |
package com.rolandopalermo.facturacion.ec.bo;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.UUID;
import javax.xml.bind.JAXBException;
import org.springframework.beans.factory.annot... |
package com.fang.example.db.store;
/**
* Created by andy on 6/25/16.
*/
public interface BlockView {
}
|
import java.util.ArrayList;
import java.util.List;
public class KidsWithTheGreatestNumberOfCandies {
public static List<Boolean> kidsWithCandies(int[] candies, int extraCandies) {
List<Boolean> booleanList = new ArrayList<>();
int length = candies.length;
int highest = 0;
for (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 tugasminggu11;
/**
*
* @author syaifuddin
*/
public class Keledai extends Binatang implements Herbivora{
private Strin... |
package com.tencent.mm.plugin.wallet_core.id_verify;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
class WalletRealNameVerifyUI$4 implements OnMenuItemClickListener {
final /* synthetic */ WalletRealNameVerifyUI pkE;
WalletRealNameVerifyUI$4(WalletRealNameVerifyUI wallet... |
package com.jjw.sparkCore.transformations;
import java.util.Arrays;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.api.java.function.VoidFunction;
import scala.Tuple2;
public class Operator_groupByKey {
pub... |
/*
* Copyright (C) 2023 Hedera Hashgraph, LLC
*
* 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 la... |
package techokami.computronics;
import java.io.IOException;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioFormat.Encoding;
import paulscode.sound.SoundBuffer;
import paulscode.sound.SoundSystem;
import techokami.computronics.gui.GuiTapePlayer;
import techokami.computronics.tile.TileTapeDriv... |
package edu.iit.cs445.StateParking.UnitTest;
import static org.junit.Assert.*;
import org.junit.Test;
import edu.iit.cs445.StateParking.Objects.*;
public class NullOrderTest {
private Order order = NullOrder.getinstance();
@Test
public void test() {
assertEquals(order.getId(),-1);
assertEquals(order.getOrder... |
package com.cdeid.pipeline.other;
import gate.Corpus;
import gate.CorpusController;
import gate.Factory;
import gate.Gate;
import gate.util.GateException;
import gate.util.Out;
import gate.util.persistence.PersistenceManager;
import java.io.File;
import java.io.IOException;
import org.apache.log4j.Level;
import org.... |
package com.shopify.shipment;
import java.util.Date;
import com.shopify.order.OrderData;
import lombok.Data;
@Data
public class ShipmentSkuData {
private String orderIdx;
private String goodsCode;
private String goods;
private String goodsType;
private String goodsSku;
private int price;
private int unitCost... |
/**
* @file: com.innovail.trouble.core - GameApplication.java
* @date: Jul 1, 2013
* @author: bweber
*/
package com.innovail.trouble.core;
/**
*
*/
public class GameApplication
{
public static String InternalPathPrefix = "";
public static void setInternalPathPrefix (final String prefix)
{
I... |
package pro.eddiecache.ioc.xml;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import org.dom4j.Document;
import org.dom4j.io.SAXReader;
import pro.eddiecache.ioc.xml.exception.DocumentException;
public class XmlDocumentHolder implements IDocumentHolder
{
private Map<String, Document> docs =... |
package com.zhouyi.business.core.model;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
public class LedenShareEmpowers implements Serializable {
private String appId = "";
private String pkId = "";
private String shareType = "";
private String nodeSign = "";
private... |
package br.edu.ifam.saf.api.endpoint;
import org.codehaus.jackson.map.ObjectMapper;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import ... |
package net.sourceforge.vrapper.vim.commands;
import java.util.Stack;
import net.sourceforge.vrapper.platform.SearchAndReplaceService;
import net.sourceforge.vrapper.utils.Position;
import net.sourceforge.vrapper.utils.Search;
import net.sourceforge.vrapper.utils.SearchOffset;
import net.sourceforge.vrapper.utils.Sea... |
package com.smxknife.energy.services.alarm.spi.service;
import com.smxknife.energy.services.alarm.spi.domain.AlarmRule;
import java.util.List;
/**
* @author smxknife
* 2021/5/17
*/
public interface AlarmRuleService {
List<AlarmRule> getAll();
void createRule(AlarmRule rule);
void edit(AlarmRule rule);
voi... |
package com.define.attachment.service;
import com.define.attachment.domain.FileDO;
import com.define.ueditor.domain.UeditorImageDO;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
import java.util.Map;
/**
* 文件管理
*
* @author caiww
* @email caiwwh@gzdefine.com
* @date 2019-03-15 1... |
package es.uma.sportjump.sjs.model.entities;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Bef... |
//dp题
class Solution {
public boolean isMatch(String s, String p) {
int slen = s.length();
int plen = p.length();
boolean[][] dp = new boolean[slen + 1][plen + 1];
for(int j = 0; j < plen + 1; j++){
for(int i = 0; i < slen + 1; i++){
if(j == 0){
... |
package com.tencent.mm.plugin.wear.model.e;
import com.tencent.mm.plugin.wear.model.a;
class a$1 implements Runnable {
final /* synthetic */ byte[] pJP;
final /* synthetic */ a pJQ;
a$1(a aVar, byte[] bArr) {
this.pJQ = aVar;
this.pJP = bArr;
}
public final void run() {
a... |
package com.tencent.mm.plugin.aa;
import com.tencent.mm.ab.d.a;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.messenger.foundation.a.n;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.protocal.d;
import com.tencent.mm.s.c;
import com.tencent.mm.sdk.platformtools.bi;
import com.tence... |
package com.tencent.mm.plugin.remittance.model;
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.md;
import com.tencent.mm.protocal.c.me;
import com.tencen... |
package megadescanso;
public class ProfessorModalidade {
private String dtAptidao;
private Professor professor;
private Modalidade modalidade;
public ProfessorModalidade() {
super();
}
public ProfessorModalidade(String dtAptidao, Professor professor,
Modalidade modalidade) {
super();
this.dtAptidao =... |
package bean;
/**
* Created by zhuxinquan on 16-8-14.
*/
public class MessageService {
private Message[] fakeMessage;
public MessageService(){
fakeMessage = new Message[3];
fakeMessage[0] = new Message("caterpillar", "caterpillar's message");
fakeMessage[1] = new Message("momor", "... |
package JoinProject;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.List;
import org.apache.commons.io.FileUtils;
import org.apache.hadoop.conf.Co... |
package Dao;
import java.sql.Timestamp;
public class Order
{
private int orderid;
private int userid;
private int productid;
private int qnty;
private int categoryid;
private String ordernumber;
private String productname;
private String address;
private Timestamp createdate;
private Timestamp updateddate;... |
package com.rc.portal.vo;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.rc.app.framework.webapp.model.BaseModel;
public class TCouponCardExample extends BaseModel{
protected String orderByClause;
protected List oredCr... |
package com.newaswan.seven;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class FacebookActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout... |
package www.chaayos.com.chaimonkbluetoothapp.domain.model.new_model;
/**
* Created by rohitsingh on 16/07/16.
*/
public class OrderInfo {
private int token;
private Order order;
private Customer customer;
private IdCodeName deliveryPartner;
private IdCodeName chann... |
package edu.imtl.BlueKare.Utils;
//matrix class
public class MatrixUtil {
public static float[] crossMatrix(float a1, float a2, float a3, float b1, float b2, float b3){
// cross product
float i = a2*b3 - a3*b2;
float j = a3*b1 - a1*b3;
float k = a1*b2 - a2*b1;
// unit vect... |
package lokinsky.dope.plugin;
import lokinsky.dope.plugin.Logic.PDO_MYSQL;
import lokinsky.dope.plugin.Models.Client;
import java.sql.SQLException;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
import org.bukkit.event.player.PlayerJo... |
package Chapter17;
import java.util.Arrays;
/**
* Created by sg on 08.03.18.
*/
public class Question6
{
/*
* Uses sorting. Time: O(nlogn) due to sorting, Space: O(n)
*/
static void minSorting( int[] input )
{
int minIndex = -1, maxIndex = -1;
int[] copy = input.clone();
... |
package com.capgemini.exceptions;
public class DuplicateVehicleException extends Exception {
public DuplicateVehicleException(String message) {
super(message);
}
}
|
package bai_tap.Point_MoveablePoint;
public class Test {
public static void main(String[] args) {
Point unknownPoint = new Point(20,30);
System.out.println(unknownPoint);
unknownPoint.setXY(10,20);
System.out.println(unknownPoint);
unknownPoint = new MoveAblePoi... |
package com.cinema_ticketing_sys.movie_cutting.dao;
import com.cinema_ticketing_sys.movie_cutting.entity.MovieCutting;
/**
* Created by huitianrui on 2017/5/28.
*/
public interface MovieCuttingsDAO {
/**
* 通过id查询场次
* @param id
* @return
*/
MovieCutting findCuttingById(int id);
}
|
package com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.builder;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.AusbringzeileType;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.AusbringzeileType.Abmass;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.SchweissnahtListeType;
impo... |
package com.techlab.case1.test;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import com.techlab.case1.Foo;
public class FooTest2 {
public static void main(String[] args) {
Foo obj = new Foo();
Class<?> cls = obj.getClass();
Method[] methods = cls.getMethods();
for (int m = 0; m ... |
package supportGUI;
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.border.Border;
import robotsimulator.SimulatorEngine;
class LogPanel
extends JPanel
{
protected static final double userShrinkFactor = 0.25D;
priva... |
package com.twitter.challenge.repo;
import com.google.gson.annotations.SerializedName;
public class WeatherResponse {
/**
* coord : {"lon":-122.42,"lat":37.77}
* weather : {"temp":14.77,"pressure":1007,"humidity":85}
* wind : {"speed":0.51,"deg":284}
* rain : {"3h":1}
* clouds : {"cloudiness":65}
... |
package la.opi.verificacionciudadana.util;
import android.content.Context;
import android.location.LocationManager;
import android.widget.Toast;
/**
* Created by Jhordan on 25/03/15.
*/
public class LocationStatus {
public static Boolean locationStatus(Context context) {
try {
LocationMan... |
public class WorkingWithParticles extends BaseGameActivity {
//====================================================
// CONSTANTS
//====================================================
public static final int WIDTH = 800;
public static final int HEIGHT = 480;
//==========================================... |
package conferenceplanner;
import org.junit.Test;
import static org.junit.Assert.*;
public class _ConferenceTest {
// A conference can contain multiple tracks
public void conferenceCanContainMultipleTracksTest() {
Conference conference = new Conference();
}
} |
package to;
import annotation.TestAnnotation;
public class ToWithNoEmptyConstructor {
@TestAnnotation(name="name")
private CharSequence field;
public ToWithNoEmptyConstructor(String name) {
this.field = name;
}
public CharSequence getName() {
return this.field;
}
@Override
public String toString() {
... |
/**
*
*/
package simplejava.nio.channel;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.Channels;
import java.nio.channels.Pipe;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.WritableByteChannel;
import java.util.Random;
/**
* @title PipeTes... |
package participate;
import java.sql.Connection;
import java.sql.DriverManager;
public class participate {
public static void main(String[] args) {
Connection con = null;
String className="org.gjt.mm.mysql.Driver";
String url ="jdbc:mysql://localhost:3306/shxdb?useSSL=false&useUnicode=true&characterEncodin... |
package zxn.web.funtions;
import zxn.domain.Category;
import zxn.service.BusinessService;
import zxn.service.impl.BusinessServiceImpl;
public class MyFuntion {
public static String getCategoryName(String category){
BusinessService s = new BusinessServiceImpl();
Category c = s.findCategoryById(category);
if (... |
package Intrumentos_Virtuales;
import java.awt.*;
import javax.swing.JPanel;
import javax.swing.JSlider;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.MeterInterval;
import o... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package cz.mutabene.service.manager;
import cz.mutabene.model.entity.ArticleEntity;
import java.util.LinkedList;
import java.util.List;
import javax.annotation.PostConstruct;
import org.apache.lucene.index.Term;
import ... |
package com.naztech.services;
public class InnerAnnomiousNestedClass {
/*
}
class NestedClass{
void fun() {
class LocalInnerClass{
void show() {
System.out.println("Is in LocalInnerClass");
}
}
}
void h() {
InnerClass k=new InnerClass();
}
public class InnerClass{
v... |
package ch04;
public class ThreadExample3 {
public static void main(String[] args) {
Runnable task = ()->{
try {
while(true) {
System.out.println("Hello,Lambda Runnable!");
Thread.sleep(500);
}
}catch (InterruptedException e) {
System.out.println("I'm interrupted");
}
};
Thread t... |
package com.lhx.shiro.demo.dao.auth;
import java.util.List;
import java.util.Set;
import org.springframework.stereotype.Repository;
import com.lhx.shiro.demo.domain.auth.Resource;
import com.lhx.shiro.demo.domain.auth.Role;
import com.lhx.shiro.demo.domain.auth.query.ResourceQuery;
@Repository
public in... |
package com.smxknife.zookeeper.curator.v5.demo01;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.framework.recipes.cache.CuratorCache;
import org.apache.curator.retry.ExponentialBackoffRetry;
import java.util.concurrent.Time... |
/**
* @author Paweł Włoch ©SoftLab
* @date 25 sty 2019
*/
package com.softlab.ubscoding.webserver.test.service;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.marketdata.Ticker;
impor... |
package com.mideas.rpg.v2.hud.instance;
import java.util.ArrayList;
import com.mideas.rpg.v2.utils.Frame;
public class InstanceMenuFrame extends Frame {
private InstanceCategoryButton selectedMenu;
private final Frame parentFrame;
private final ArrayList<InstanceCategoryButton> buttonList;
public InstanceMenu... |
package main;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
public class Fixer
{
//Removes triangles that are at the same spot
public static ArrayList<String> fixOBJ(ArrayList<String> rawFile)
{
String material = "";
ArrayList<String> verti... |
package com.tencent.mm.plugin.subapp.ui.voicetranstext;
import com.tencent.mm.sdk.platformtools.al.a;
import com.tencent.mm.sdk.platformtools.x;
class VoiceTransTextUI$4 implements a {
final /* synthetic */ int oqo;
final /* synthetic */ VoiceTransTextUI ouz;
VoiceTransTextUI$4(VoiceTransTextUI voiceTran... |
package test15PiDataProvidersEx;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Optional;
import org.testng.annotations.Test;
import test15PiDataProvidersEx.ExcelUtils;
import util.BaseTest;
public class Ex5readExcelGoo... |
package com.tencent.mm.plugin.mmsight.ui;
import com.tencent.mm.api.d;
import com.tencent.mm.api.l;
import com.tencent.mm.sdk.platformtools.x;
class a$5 implements l {
final /* synthetic */ a lpk;
a$5(a aVar) {
this.lpk = aVar;
}
public final void a(d dVar) {
x.i("MicroMsg.MMSightVid... |
/**
*
*/
/**
* @author Darkaz
*
*/
public class prob1 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int res = 0;
for (int i = 0; i < 1000; i++) {
if (i % 3 == 0 || i % 5 == 0)
res = res + i;
}
System.out.println(res... |
package edu.self.engine;
public class Controller {
private Engine engine;
public Controller(Engine engine) {
this.engine = engine;
}
}
|
package subjects.sample;
import java.util.LinkedList;
/**
* @description: 二叉树
* @author: dsy
* @date: 2020/4/10 13:22
*/
public class BinaryTree<T> {
/**
* 先序创建二叉树 返回根节点
*/
public TreeNode<T> createTreePre(LinkedList<T> dataList) {
TreeNode<T> root = null;
T data = dataList.remo... |
package com.example.pramath.textadventure2.MapData;
import com.example.pramath.textadventure2.Coordinate;
public class Map {
// Origin is top left corner
private final Coordinate bounds;
private final MapElement[][] map;
public Map() {
this.bounds = new Coordinate();
map = new MapElement[0][0];
}
... |
package com.zznode.opentnms.isearch.otnRouteService.manage;
import org.apache.commons.pool.KeyedPoolableObjectFactory;
import com.zznode.opentnms.isearch.otnRouteService.service.BusiAnalyser;
public class MyKeyedPoolableObjectFactory implements KeyedPoolableObjectFactory {
// 创建对象实例。同时可以分配这个对象适用的资源。
public Object... |
package task89;
import org.junit.Test;
import static junit.framework.Assert.assertEquals;
/**
* @author Igor
*/
public class Test89 {
@Test
public void testToInteger() {
assertEquals(8, Roman.toInteger("VIII"));
assertEquals(9, Roman.toInteger("IX"));
assertEquals(4444, Roman.toInt... |
/*
* 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 remise;
import java.util.Scanner;
/**
*
* @author 80010-92-01
*/
public class Remise {
public static void main(Str... |
import java.util.Scanner;
public class DhonisBattingPosition {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
System.out.println("The number of the over when the last wicket fell:");
int number_of_the_over=sc.nextInt();
System.out.println("The ball in over w... |
package Management.HumanResources.Staff;
import Management.HumanResources.DepartmentType;
import Management.HumanResources.FinancialSystem.Permission;
import Management.HumanResources.LeaveRequest;
import Presentation.Protocol.IOManager;
/**
* 会计类
* @author 尚丙奇
* @since 2021-10-16 14:00
*/
public class Accountant... |
package com.dataflow.exportable;
import com.github.javaparser.ast.expr.SimpleName;
import java.util.ArrayList;
import java.util.List;
public class TemplateClass {
public SimpleName className;
public String archetype;
public String templateId;
public List<TemplateField> fields;
public boolean isC... |
package com.text.mytab;
import android.app.ActivityGroup;
import android.content.Intent;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TabHost;
import andr... |
/*
* Copyright (c) 2009, 2013, 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 ... |
/*
* Copyright 2015 The Apache Software Foundation.
*
* 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 und... |
package com.websharp.dwtz.activity.user;
import java.net.ConnectException;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.net.URLEncoder;
import java.net.UnknownHostException;
import java.util.ArrayList;
import org.json.JSONException;
import org.json.JSONObject;
impo... |
package com.yinghai.a24divine_user;
import android.content.Context;
import com.tencent.tinker.loader.app.TinkerApplication;
import static com.tencent.tinker.loader.shareutil.ShareConstants.TINKER_ENABLE_ALL;
/**
* Created by:fanson
* Created on:2017/9/28 14:52
* Describe:
*/
public class SampleApplication exte... |
package com.lingnet.vocs.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import com.lingnet.common.entity.BaseEntity;
@Table(name = "REFUND")
@Entity
public class Refund extends BaseEnti... |
package com.george.projectmanagement.repository;
import com.george.projectmanagement.model.Project;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.b... |
package day18_ReadingUserInput;
import java.util.Scanner;
public class Lab4NumberOfmaleAnadNumbersOfFamles {
public static void main(String[] args) {
Scanner User_Input = new Scanner(System.in);
System.out.print("Please enter the number of males: ");
double numberOfMales= User_Input.nextInt();
per(... |
package in.hocg.app.params;
import in.hocg.defaults.base.params.BaseParams;
/**
* Created by hocgin on 16-12-20.
*/
public class N0Params extends BaseParams {
}
|
package collection.visualizer.examples;
import java.util.Date;
import collection.visualizer.controller.AController;
import collection.visualizer.datatype.bean.ABeanVisualizer;
import collection.visualizer.examples.OE.CreateCustomView;
import collection.visualizer.examples.bean.ABeanDate;
import collection.visualizer.... |
import java.util.Random;
import java.util.concurrent.ConcurrentLinkedQueue;
/**
* Clase que se encarga de simular un canal de comunicaci��n al
* hacer un traslado de Segmentos, de un buffer de entrada a un
* buffer de salida
*
* @author Vilchis Dom��nguez Miguel Alonso
* <mvilchis@ciencias.unam.mx>
*
* ... |
package cn.edu.tju.util;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Helper class to deal with dates
*
*/
public class Dates {
private SimpleDateFormat simpleDateFormat;
public Dates() {
simpleDateFormat = new SimpleDateFormat();
}
public Dates(String ... |
package Frame;
import Model.CreamCart;
import Model.Ocasion;
import javax.swing.*;
import java.awt.*;
import java.util.HashMap;
import java.util.Map;
/*
Класс, отвечающий за настройку окна приложения
*/
public class MainFrame {
// Переменные класса
private Font font = new Font("Impact", Font.BOLD, 32);
... |
package com.example.smartsoft.models.dto;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.Value;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.math.BigDecimal;
@Getter
@XmlRootElem... |
package cn.ganzhiqiang.searchnlp.util;
import cn.ganzhiqiang.searchnlp.DictAttribute;
import com.google.common.collect.Lists;
import java.io.*;
import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.TreeMap;
/**
* @author zq_gan
* @since 2020/5/3
**/
public class IOUtil {
public s... |
package agents.qoagent;
/**
* The AutomatedAgentDelayedMessageThread class allows to send a message in a delay
* @author Raz Lin
* @version 1.0
* @see AutomatedAgent
*/
public class AutomatedAgentDelayedMessageThread extends Thread {
public final static long SLEEP_TIME_FACTOR = 3; // sleep half of tur... |
package one;
import java.util.Arrays;
public class LIS {
public int[] ls(int[] arr) {
int max = 0;
int[] predecessor = new int[arr.length];
int[] maxTracker = new int[arr.length + 1];
for(int i = 0; i < arr.length; i++) {
int lo = 1;
int hi = max;
while(lo <= hi) {
int mid = (lo + hi)/... |
package com.tencent.mm.plugin.websearch;
public final class a {
}
|
package com.example.headfirst.designpattern;
/**
* 工厂:装饰者
* create by Administrator : zhanghechun on 2020/4/10
*/
public class CountingDuckFactory extends AbstractDuckFactory {
@Override
Quackable createMallardDuck() {
return new QuackCounter(new MallardDuck());
}
@Override
Quackable cr... |
import java.util.Random;
/**
* Created by wangshuyang on 2017/4/5.
*/
public class BubbleSort {
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 void bubble(int[] arra... |
package com.tencent.mm.ui.bizchat;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import com.tencent.mm.ac.a.n;
import com.tencent.mm.model.au;
class BizChatroomInfoUI$5 implements OnCancelListener {
final /* synthetic */ BizChatroomInfoUI tFD;
final /* synthe... |
package pacman.ghost;
import org.junit.Test;
import static org.junit.Assert.*;
public class PhaseTest {
@Test
public void getDurationChaseTest() {
int expected = 20;
assertEquals("getDuration() for Phase.CHASE is not working correctly",
expected, Phase.CHASE.getDuration());
... |
package com.raspyboxdroid.model;
public class Relay {
private int id;
private int channel;
private String device;
private boolean active;
public Relay() {
}
public int getChannel() {
return channel;
}
public void setChannel(int channel) {
this.channel = channel;
}
public int g... |
package com.tencent.tencentmap.mapsdk.a;
class te$a {
public static final te a = new te();
}
|
package fr.mb.volontario.model.bean;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import javax.persistence.*;
import java.io.Ser... |
package union.find;
import java.util.Arrays;
public class QuickUnionUF {
private int[] id;
public QuickUnionUF(int N) {
id = new int[N];
for(int i=0; i< N; i++) {
id[i] = i;
}
}
public int root(int i) {
while(id[i] != i) {
i = id[i];
}
return i;
}
public boolean connected(int p, int q) {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.