text stringlengths 10 2.72M |
|---|
/*
* Copyright (c) 2014 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.server.translation.out;
import org.apache.log4j.NDC;
import pl.edu.icm.unity.exceptions.EngineException;
import pl.edu.icm.unity.server.translation.TranslationAction... |
package leetcode.solution;
/**
* 116. 填充每个节点的下一个右侧节点指针
* <p>
* https://leetcode-cn.com/problems/populating-next-right-pointers-in-each-node/
* <p>
* 给定一个 完美二叉树 ,其所有叶子节点都在同一层,每个父节点都有两个子节点。二叉树定义如下:
* <p>
* struct Node {
* int val;
* Node *left;
* Node *right;
* Node *next;
* }
* 填充它的每个 next 指针,让这个指针指向其下一个右侧... |
package github.dwstanle.tickets;
import github.dwstanle.tickets.model.Account;
import github.dwstanle.tickets.model.Event;
import github.dwstanle.tickets.model.Section;
import github.dwstanle.tickets.model.Venue;
import github.dwstanle.tickets.repository.*;
import org.springframework.boot.CommandLineRunner;
import org... |
package com.amundi.tech.onsite.db.model;
import lombok.Data;
import javax.persistence.*;
import java.time.LocalDate;
@Entity
@Data
public class RestaurantCapacity {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@ManyToOne
@JoinColumn(name = "restaurant", nullable = false)... |
package com.itfacesystem.domain.sourcegenerator;
import java.io.Serializable;
/**
* Created by wangrongtao on 16/3/16.
*/
public class FieldModel implements Serializable {
private String type;
private String id;
private String name;
private boolean queryAble;
private boolean showInList;
priv... |
package com.everysports.service;
import com.everysports.domain.PaymentVO;
public interface PaymentService {
public PaymentVO selectPayment(Long teacher_ID, Long class_ID);
}
|
package com.robin.springboot.demo.java_designPatterns.adapter;
/**
* 调用的接口
*/
public interface A {
void a();
}
|
package com.bridgelabz.linkedlist;
public class LinkedList<K> {
Node<K> head;
Node<K> tail;
public LinkedList() {
this.head = null;
this.tail = null;
}
// Method to add element at first
public void addFirst(K key) {
Node<K> newNode = new Node<K>(key);
if (tail == null) {
tail = newN... |
public class Transportation {
private int id;
private int type;
private double MAX_LOAD;
private double load;
private double speed;
private double charge;
public Transportation(int type, int max, int speed, int charge, int load) {
// TODO Auto-generated constructor stub
this.type = type;
this.load = load... |
/*
* Copyright (c) 2015 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.server.translation.form;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org.apache.log4j.NDC;
import pl.edu.icm.unity.confirmat... |
package ch.mitti.geometrische_figuren;
import java.awt.geom.*; //Alle Klassen des Geometrie-Pakets
public class Kreis extends Figur {
// Attribute
private int radius; //Radius des Kreises
//Konstruktor
public Kreis() {
super(50,50,"blue");
this.radius=10;
this.draw();
}
... |
package com.delaroystudios.teacherassistant;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
/**
* Created by Sourabh Amancha on 2/3/2017.
*/
public class admin2 extends Activity {
@Override
protected void onCreate(Bundle save... |
/*
* 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 org.exolin.sudoku.solver.view;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphi... |
package com.foxweave.connector.cloudant.query;
import com.foxweave.connector.cloudant.CloudantInputConnector;
import com.foxweave.connector.cloudant.InputQueryHandler;
import com.foxweave.exception.FoxWeaveException;
import com.foxweave.http.HttpUtil;
import com.foxweave.internal.util.ExchangeUtil;
import com.foxweave... |
package com.gaoshin.onsalelocal.osl.entity;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class FollowDetailsList {
private User user;
private List<FollowDetails> items = new ArrayList<FollowDetails>();
public List<FollowDetails> getIte... |
package lk.logic;
/**
*@author Veranga Sooriyabandara
*Our Java Class
*/
public interface UserInterface {
public boolean checkUserCredential(String username,String password);
}
|
package proeza.sah.desktop.core;
import org.springframework.beans.factory.annotation.Autowired;
import com.digi.xbee.api.exceptions.XBeeException;
import com.guiBuilder.api.component.application.DesktopApp;
import proeza.sah.device.DeviceNetwork;
public class MainApp extends DesktopApp<MainFrame, Splash> {... |
package algo.backtracking;
/**
* Created by orca on 2018/12/28.
*问题;正则表达式匹配
* 输入:正则表达式、字符串
* 输出:是否匹配
*/
public class Pattern {
public boolean match = false;
public void match(int i,int j,String in,String p){
}
}
|
package structural.decorator.my.htmldemo.decorators;
import structural.decorator.my.htmldemo.htmlnodes.HtmlNode;
// 祖先包装器
public class Decorator extends HtmlNode{
// 引用 HtmlNode 对象
protected HtmlNode htmlNode;
public Decorator(HtmlNode node) { htmlNode = node; }
@Override
public String getText()... |
/*
* 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 dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLEx... |
package com.csalazar.activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bund... |
package edu.asu.commons.net.event;
import edu.asu.commons.event.AbstractEvent;
import edu.asu.commons.net.Identifier;
/**
* $Id$
*
* Signifies that a disconnection should happen for the given identifier.
*
* @author Allen Lee
* @version $Revision$
*/
public class DisconnectionRequest extends AbstractEvent {
... |
package com.everis.controller;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotatio... |
/*
* @lc app=leetcode.cn id=260 lang=java
*
* [260] 只出现一次的数字 III
*
*
*/
// @lc code=start
class Solution {
public int[] singleNumber(int[] nums) {
int twoNumsDiff = 0;
for (int num : nums) {
twoNumsDiff ^= num;
}
// 要查找的两个数的这一位不同。一个1 另一个0
int firstRightB... |
package com.busekylin.springboottest.repository.impl;
import com.busekylin.springboottest.domain.Web;
import com.busekylin.springboottest.repository.WebRepository;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.... |
package com.g74.rollersplat.model.menu;
import java.util.Arrays;
import java.util.List;
public class Menu {
private final List<String> entries;
private final List<String> colors;
private final List<String> levels;
private int currentEntry = 0;
private int currentColor = 0;
private int currentL... |
package org.shazhi.businessEnglishMicroCourse.repository;
import org.shazhi.businessEnglishMicroCourse.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import java.io.Serializable;
public interface UserManagerRe... |
package com.moive.web.global;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.movie.web.memer.MemberController;
public class Seperator {
public static String[] doSomething(HttpServletRequest request, HttpServletResponse response){
String id="",pass... |
package com.example.rentacar.services;
import java.util.List;
import java.util.Optional;
import com.example.rentacar.entitity.ClientEntity;
public interface ClientService {
List <ClientEntity> findAllClients(String name);
Optional<ClientEntity> findClientId(Integer id);
Optional<ClientEntity> findClientDni(... |
package com.alibaba.dubbo.config.spring.context.annotation;
import org.springframework.context.annotation.Import;
import java.lang.annotation.*;
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Import(DubboConfigConfigurationSelector.class)
public @interface EnableDubboConfig {... |
package com._520it.servlet2;
public class MyServlet2 implements IMyServlet{
@Override
public void init() {
System.out.println("劳资来啦");
}
@Override
public void service() {
System.out.println("MyServlet2开始为你服务");
}
@Override
public void destory() {
System.out.println("劳资走了");
}
}
|
package com.gsccs.sme.plat.site.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import or... |
package hu.alkfejl.model;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
public class Movie{
private IntegerProperty id = new SimpleIntegerProperty();
private Stri... |
/*
* (C) Mississippi State University 2009
*
* The WebTOP employs two licenses for its source code, based on the intended use. The core license for WebTOP applications is
* a Creative Commons GNU General Public License as described in http://*creativecommons.org/licenses/GPL/2.0/. WebTOP libraries
* and wapplets are ... |
package com.alex;
public class Main {
public static void main(String[] args) {
// write your code here
System.out.println("Nos hemos conectado a Github");
}
}
|
package com.ssm.service;
public interface UserRedPacketService {
/**
* 保存抢红包信息
* @param redPacketId 红包id
* @param userId 用户id
* @return 抢红包信息
*/
int grapRedPacket(Long redPacketId, Long userId);
/**
* 保存抢红包信息 --悲观锁
*
* @param redPacketId 红包id
* @param use... |
package com.esum.comp.dbc.task;
import java.io.IOException;
import org.apache.commons.lang.StringUtils;
import com.esum.comp.dbc.DbcException;
import com.esum.framework.core.config.Configurator;
import com.esum.framework.jdbc.JdbcException;
import com.esum.framework.jdbc.JdbcSqlSessionFactory;
import com.esum.framew... |
import java.util.Scanner;
class Quadequation
{
public static void main( String [] args)
{
int a,b,c;
double r1,r2,D;
Scanner in=new Scanner(System.in);
System.out.println("Enter the value of 'a' :");
a=in.nextInt();
System.out.println("Enter the value of 'b' :");
b=in.nextInt();
System.out.println("Enter the v... |
package net.playmymc.conradus.commands.sub;
import net.playmymc.conradus.conradus.CommandInterface;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
//ArgsCmd also implements CommandInterface
public class ArgsCmdR implements CommandInterface
{
... |
package com.gcc;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@M... |
package swsk.cn.rgyxtq.subs.work.C;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import swsk.cn.rgyxtq.R;
/**
* Created by apple on 16/3/1.
*/
public class InstructionsListItemActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... |
package com.krishna.assist.utils;
import android.content.Context;
import android.content.SharedPreferences;
import android.text.TextUtils;
import android.util.Log;
import com.krishna.assist.api.ApiClient;
import com.krishna.assist.api.ApiInterface;
import com.krishna.assist.api.NotificationData;
import com.krishna.as... |
package leoliang.gqueuesinbox;
import leoliang.gqueuesinbox.ItemRepository.Item;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Typeface;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
... |
package org.maas.messages;
import java.util.Vector;
public class BakingRequest extends GenericGuidMessage {
private int bakingTemp;
private float bakingTime;
private Vector<Integer> productQuantities;
public BakingRequest(Vector<String> guids, String productType, int bakingTemp, float bakingTime, Vect... |
package be.darkshark.parkshark.domain.entity;
public enum AllocationStatus {
ACTIVE,
STOPPED;
}
|
//
// Decompiled by Procyon v0.5.36
//
package com.davivienda.sara.cuadrecifras.general.bean;
import java.math.BigInteger;
public class DatosMovimientoCajeroBean
{
public BigInteger idRegistro;
public String descripcion;
public String valor;
public Integer concepto;
public String contadores;
... |
package com.xcl.entity;
import lombok.Data;
@Data
public class OrderDetail {
private Integer id;
private Product product;
private Integer quantity;
private Double cost;
}
|
package com.example.shouhei.mlkitdemo.data;
import java.util.Date;
import java.util.UUID;
public class Run {
private UUID mId;
private String mDistance;
private String mCalory;
private String mDuration;
private String mAvePace;
private String mAveHeartRate;
private Date mDate;
public Run() {
mId... |
package com.mvc4.bean;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* Created with IntelliJ IDEA.
* User: uc203808
* Date: 6/16/16
* Time: 4:14 PM
* To change this template use File | Settings | File Templa... |
import java.util.Scanner;
public class D26Q2
{
static int minRemove(int arr[], int n)
{
int LIS[] = new int[n];
int len = 0;
for (int i = 0; i < n; i++)
LIS[i] = 1;
for (int i = 1; i < n; i++) {
for (int j = 0; j < i; j++) {
if (arr[i] > a... |
package com.designurway.idlidosa.model;
import java.util.ArrayList;
public class DashComboDataModel {
private String status;
private ArrayList<DashComboModel> data;
public DashComboDataModel(String status, ArrayList<DashComboModel> data) {
this.status = status;
this.data = data;
}
... |
package com.ajhlp.app.integrationTools.model;
import java.util.regex.Pattern;
import org.hibernate.criterion.DetachedCriteria;
/**
* 查询条件模型
* @author ajhlp
*
*/
public interface IConditionModel {
public static final Pattern PATTERN_YMD = Pattern.compile("\\d{4}-\\d{2}-\\d{2}");
public static final Pattern PATT... |
package com.bluecode.mhmd.prototypes.Component;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.LinearGradient;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RectF;
impor... |
package ch.mitti.yahtzee.controller;
import java.util.ArrayList;
import ch.mitti.yahtzee.view.DiceBoardView;
import ch.mitti.yahtzee.view.GameBoardView;
public class DiceBoardController {
public DiceBoardView diceBoardView;
public GameBoardView gameBoardView;
public DiceBoardController(GameBoardView gameBoardVi... |
package com.jade.Dao;
import com.jade.bean.Admin;
import com.jade.sql.sqlTool;
import com.jade.util.MD5Util;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.HashMap;
import java.util.Vector;
public class AdminDaoImpl implements AdminDao... |
import javax.swing.text.Element;
import java.util.Arrays;
public class VettoreInteri {
private int size = 0;
private int[] vector;
private char sep = '|';
public VettoreInteri(int dim){
this.size = (dim > 0) ? dim: 0;
vector = new int[dim];
//initialize vector to 0
... |
package edu.duke.ra.core.operator;
import java.sql.SQLException;
import java.util.ArrayList;
import edu.duke.ra.core.db.DB;
public class Table extends RAXNode{
protected String _tableName;
public Table(String tableName) {
super(new ArrayList<RAXNode>());
_tableName = tableName;
}
publ... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.StringTokenizer;
/* URL
http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=729&sca=50&sfl=wr_hit&stx=1457&sop=a... |
package us.gibb.dev.gwt.demo.client.command;
import us.gibb.dev.gwt.command.inject.CommandClasses;
public class RecipeCommandClasses extends CommandClasses {
protected void addCommands() {
add(GetRecipesCommand.class);
add(GetRecipeCommand.class);
add(SaveRecipeCommand.class);
}
}
|
package com.sheygam.loginarchitectureexample.data.repositories.contactList.web;
import com.sheygam.loginarchitectureexample.data.dao.Contacts;
import com.sheygam.loginarchitectureexample.data.repositories.contactList.prefstore.IContactsListStoreRepository;
import io.reactivex.Single;
import retrofit2.Response;
/**
... |
package unae.lp3.notas.controller;
import java.util.List;
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.web.bind.annotation.Path... |
import java.math.BigInteger;
import java.util.*;
class Julka {
public static void main(String [] args){
Scanner scan=new Scanner(System.in);
int turn=10;
while((turn--)>0){
BigInteger x;
BigInteger num=scan.nextBigInteger();
BigInteger more=scan.nextBigInteger();
x=(num.subtract(more)).di... |
package gui.form.valid;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
import str.Token;
/**
* Validator for textual data. This is a powerful validator which
* supports comparing multiple regular expre... |
package exam02;
import java.util.ArrayList;
import java.util.List;
public class ArraySelector {
public String selectEvens(int[] array) {
if (array.length == 0) {
return "";
}
List<Integer> events = new ArrayList<>();
for (int i = 0; i < array.length; i++) {
... |
/**
* -------------------------------------------------------------*
* COPYRIGHT(C) 2019 *
* National Audit Office of the People’s Republic Of China *
* *
* ... |
package com.example.user.chendemo;
import android.content.Intent;
import android.media.Image;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.util.Log;
import ... |
package com.example.dbdemo;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.... |
package com.test.spring.batch;
import org.apache.camel.ProducerTemplate;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.StepContribution;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.spring... |
package com.luojia.springcloud.alibaba. dao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.luojia.springcloud.alibaba.domain.Order;
@Mapper
public interface OrderDao {
// 新建一个订单
public void create(Order order);
// 修改订单状态
public void update(@Param... |
/*
* Copyright (c) 2015 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE file for licensing information.
*
* Created on 11 gru 2015
* Author: K. Benedyczak
*/
/**
* Registration form related translation profiles. Those profiles are stored together with registration form.
* @author K. Benedyczak
*... |
// VVimp, instantiating abstract class using anonymous classes.
abstract class Person{
abstract void eat();
}
public class AnonymousInner {
public static void main(String[] args) {
// TODO Auto-generated method stub
Person p = new Person(){
void eat(){
System.out.println("Nice Fruits");
}
};
p.eat(... |
package com.sirma.itt.javacourse.objects.task5.heterogeneousTree;
import com.sirma.itt.javacourse.InputUtils;
import com.sirma.itt.javacourse.objects.task2.shapes.Figure;
import com.sirma.itt.javacourse.objects.task2.shapes.Point;
import com.sirma.itt.javacourse.objects.task2.shapes.rectangularShapes.Parallelogram;
im... |
package com.zd.christopher.validator;
import java.util.Set;
import javax.validation.ConstraintViolation;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.core.annotation.Order;
import org.springframework.ster... |
package io.ceph.rgw.client.core.admin;
import io.ceph.rgw.client.model.admin.AddUserCapabilityResponse;
import io.ceph.rgw.client.model.admin.RemoveUserCapabilityResponse;
import io.ceph.rgw.client.model.admin.UserCap;
import org.junit.Assert;
import org.junit.Test;
import org.junit.experimental.categories.Category;
... |
package com.example.demo;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;... |
package com.example.szupek.datepickerszupek;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.w... |
package com.stk123.web.action;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
import com.stk123.model.tree.Tree;
import com.stk123.common.util.JsonUtils;
import com.stk123.common.CommonConstant;
import com.stk123.service.IndexSe... |
package apartment;
import form.FromApartment;
import form.FormRoom;
import form.FormTenant;
import form.FormTenantRoom;
import formManagement.FormMainApartment;
import formManagement.FormRentApartment;
import javax.swing.JOptionPane;
import report.ReportNetIncome;
import report.ReportRentCondition;
import report.Report... |
package com.example.lbyanBack.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import com.example.lbyanBack.poj... |
package io.ceph.rgw.client.model.admin;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.ListTrait;
import softwar... |
package com.eron.gbox.gui;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
... |
package behavioral.mediator;
public interface IMediator {
public void send(String message,AColleague colleague);
}
|
package com.arrays;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Majority {
public static void main(String[] args) {
Majority major = new Majority();
List<Integer> input = new ArrayList<Integer>();
input.add(1);
input.add(2);
input.add(... |
package jire.plugin;
import java.io.File;
import java.lang.reflect.Method;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
public final class UniversalPluginLoader extends AbstractPluginLoader {
@Override
@SuppressWarni... |
package com.networks.ghosttears.user_profiles;
/**
* Created by NetWorks on 9/18/2017.
*/
public class PowerUps {
private int skip;
private int hint;
private int ban;
public PowerUps(){}
public PowerUps(int hint, int skip, int ban){
this.hint = hint;
this.skip = skip;
... |
package com.yc.education.controller.basic;
import com.github.pagehelper.PageInfo;
import com.yc.education.constants.SpringFxmlLoader;
import com.yc.education.controller.BaseController;
import com.yc.education.model.ProductStock;
import com.yc.education.model.basic.*;
import com.yc.education.model.purchase.InquiryProdu... |
package org.jaxws.stub2html.util;
import java.util.Collection;
/**
*
* @author chenjianjx
*
*/
public class MyClassUtils {
public static boolean isClassArrayOrCollection(Class<?> clazz) {
return clazz.isArray() || Collection.class.isAssignableFrom(clazz);
}
}
|
package com.sherry.epaydigital.data.model;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "epay_me_link")
public class EpayDigitalMeLink implements Serializable {
private static final long serialVersionId = -3009157732242241606l;
@Id
@GeneratedValue
private Long id;
... |
package com.project.universitystudentassistant.data;
import android.app.Activity;
import android.content.Context;
import androidx.lifecycle.LiveData;
import com.project.universitystudentassistant.models.Subject;
import com.project.universitystudentassistant.models.SubjectSchedule;
import com.project.universitystuden... |
package ua.siemens.dbtool.model.entities;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import ua.siemens.dbtool.model.enums.EmployeePosition;
import ua.siemens.dbto... |
package com.davivienda.sara.cuadrecifras.general.helper;
import com.davivienda.sara.cuadrecifras.general.bean.MovimientoCuadreCifrasBean;
import java.util.Calendar;
import java.util.Collection;
/**
* DiarioElectronicoHelperInterface - 27/08/2008
* Descripción :
* Versión : 1.0
*
* @author jjvargas
* Davivienda... |
package com.yc.education.service.impl.check;
import com.github.pagehelper.PageHelper;
import com.yc.education.mapper.check.CheckDataMapper;
import com.yc.education.model.check.CheckData;
import com.yc.education.service.check.CheckDataService;
import com.yc.education.service.impl.BaseService;
import org.springframework... |
kkksjsjsjsjjsjjsjjsjsjkk:Wq
k
ooookkkko
|
package org.apache.hadoop.hdfs.server.namenode.persistance.storage.mysqlserver;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.apache.hadoop.hdfs.server.namenode.persistance.storage.StorageException;
/**
* This class is to do count o... |
package nobile.riccardo.azienda;
public class GestioneContabile {
}
|
package com.konew.musicapp.repository;
import com.konew.musicapp.entity.Artist;
import com.konew.musicapp.entity.Track;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.... |
package hu.juzraai.proxymanager.cli;
import com.beust.jcommander.Parameters;
/**
* @author Zsolt Jurányi
*/
@Parameters(commandNames = "stat", commandDescription = "Prints statistics of proxy lists")
public class StatCommand {
}
|
package me.kpali.wolfflow.core.scheduler;
import me.kpali.wolfflow.core.exception.TaskFlowStopException;
import me.kpali.wolfflow.core.exception.TaskFlowTriggerException;
import java.util.concurrent.ConcurrentHashMap;
/**
* 任务流调度器
*
* @author kpali
*/
public interface ITaskFlowScheduler {
/**
... |
package utils;
import java.util.Date;
public class DateValidator {
/**
* Used for validate the check-in and check-out date.
* 1. check-in date should be a future date
* 2. check-out date should after check-in date
* @param checkInDate
* @param checkOutDate
* @return
*/
public static boolean validate... |
package ch.ethz.geco.t4j.internal.json;
import java.util.List;
/**
* Represents a discipline json object.
*/
public class DisciplineObject {
public long id;
public String name;
public String shortname;
public String fullname;
public String copyrights;
public List<String> platforms_available;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.