text stringlengths 10 2.72M |
|---|
package kr.co.shop.batch.kakaopay.model.master.base;
import lombok.Data;
import java.io.Serializable;
import kr.co.shop.common.bean.BaseBean;
@Data
public class BaseRvKakaoComparison extends BaseBean implements Serializable {
/**
* 이 필드는 Code Generator를 통하여 생성 되었습니다.
* 설명 : 결제고유번호
*/
... |
package com.improlabs.auth.ResponseBuilder;
import java.net.SocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.DatagramChannel;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import ... |
/*
* Copyright © 2018 www.noark.xyz All Rights Reserved.
*
* 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 !
* 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件:
*
* http://www.noark.xyz/LICENSE
*
* 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播;
* 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本;
* 3.无论你对源代码做出任何修改和改进,版权都归Noark研发团队所有,我们保... |
package jgame.entity.mob.ai;
import jgame.entity.Mob;
import jgame.level.Path;
/**
*
* @author hector
*/
public class Killer extends Seeker
{
private static final int SEEK_RADIUS = 15;
public Killer(Mob mob)
{
super(mob);
}
@Override
public void update(int delta)
{
... |
package com.t.core.remote;
/**
* @author tb
* @date 2018/12/18 17:02
*/
public enum RemoteEventType {
CONNECT,
CLOSE,
READER_IDLE,
WRITER_IDLE,
ALL_IDLE,
EXCEPTION,
;
}
|
package services;
import models.Reservation;
import models.Performance;
import readwrite.write.Writer;
public class ReservationService {
private Reservation reservation;
private final Writer audit = new Writer();
public boolean confirmReservation(Reservation reservation, String answer) {
audit.wr... |
package cliente;
public class CirculoNotFoundException extends Exception{
/**
*
*/
private static final long serialVersionUID = -7331861696548215622L;
public CirculoNotFoundException(String circuloId) {
}
public String getCirculoNaoEncontrado() {
return null;
}
}
|
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 PddGoodsCpsUnitChangeResponse extends PopBaseHttpResponse{
/**
* 是否修改成功
*/
@JsonProperty("is_change_success")
private Bo... |
package scater.Handle;
import javax.servlet.http.HttpSession;
import org.json.JSONObject;
import scater.Service.FoodOrderService;
import csAsc.EIO.MsgEngine.CEIOMsgRouter.CParam;
public class FoodOrderHandle extends CMsgBaseHandle {
@Override
public int handleMsg(CParam param) throws Exception {
JSONObject data... |
package com.ekuaibao.invoice;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.codec.binary.Hex;
import com.google.gson.Gson;
import com.tenpay.TencentSM.SM2Algo;
import com.tenpay.TencentSM.SM3Algo;
import com.tenpay.TencentSM.SM4Algo;
import java.io.ByteArrayInputStream;
import java.io.Byt... |
package com.chaojicode;
public class TopEngine implements Engine {
@Override
public void run() {
System.out.println("我是顶级跑车引擎,点火启动");
}
}
|
package play;
/**
* @author husan
* @Date 2013-10-15
* @description
*/
public class InterfaceImplementTest {
public static void main(String[] args) {
Interface1 ii1 = new InterfaceImplement1();
ii1.method1();
}
}
|
package com.freakybyte.movies.control.movies.constructor;
/**
* Created by Jose Torres on 20/10/2016.
*/
public interface GridMoviesPresenter {
void getMovies(int page);
void setFilterType(int filter);
int getFilterType();
void getMovieDetail(int id);
void onDestroy();
void cancelDown... |
package de.mbur.acme.storage;
import java.time.LocalDateTime;
import javax.inject.Inject;
import de.mbur.acme.User;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase;
import org.springframework.... |
/*
* Copyright 2017 Rundeck, Inc. (http://rundeck.com)
*
* 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 appli... |
/**
* 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... |
class Base
{
void f1()
{
System.out.println("base class function");
}
public static void main(String... harsh)
{
Base b=new Child();
b.f1();
System.out.println("base class");
}
}
class Child extends Base
{
void f1()
{
System.out.println("child class function");
}
} |
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.List;
public class ViewBook extends HttpServlet {
private static final long serialVersionUID = 1L;
public void doGet(HttpServletRequest request, HttpServletResponse response) throws Serv... |
package com.social.server.service.impl;
import com.social.server.dao.EventRepository;
import com.social.server.dao.UserRepository;
import com.social.server.dto.EventDto;
import com.social.server.entity.Event;
import com.social.server.entity.EventType;
import com.social.server.service.EventService;
import lombok.extern... |
package ex01;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
public class ProductDAO {
//데이터접속
public Connection con() throws Exception{
String driver = "oracle.jdbc.driver.OracleDriver";
String url = "jdbc... |
package com.example.daniel.podcastplayer.fragment;
import android.app.ActivityOptions;
import android.content.Intent;
import android.database.Cursor;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.... |
package utils;
import java.util.HashMap;
import org.json.JSONObject;
import com.baidu.aip.ocr.AipOcr;
public class BaiDuOCR {
//设置APPID/AK/SK
public static final String APP_ID = "16730582";
public static final String API_KEY = "I6Z5VNyvKVgXGGpOCsYtRM1P";
public static final String SECRET_KEY = "pRUMi... |
package com.karya.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.karya.dao.IU... |
package company.classes;
import java.util.Locale;
import java.util.Scanner;
/**
* Class function utils
*/
public class FunUtils {
/**
* Rewrites to US output format and rounding numbers
* @param number Number
* @return Reformatting number
*/
public static String floatFromat (final double ... |
import java.util.Scanner;
public class Main10 {
/**
*
* xcopy /s c:\ d:\,
* 参数1:命令字xcopy
* 参数2:字符串/s
* 参数3:字符串c:\
* 参数4: 字符串d:\
* 请编写一个参数解析程序,实现将命令行各个参数解析出来。
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scanner = new Scanner(System.in);
while(sc... |
package com.company;
public class Cliente {
private int idCliente;
private int tiempoArribo;
private int tiempoSeAtendio;
private int tiempoServicio;
public Cliente(int id,int t_a,int t_s_a,int t_s){
this.idCliente = id;
this.tiempoArribo = t_a;
this.tiempoSeAtendio = t_s... |
package com.experian.brand.enums;
/**
* 榜单类别
* 榜单性质、榜单大类、榜单小类
* @author e00898a
*
*/
public enum BrandType {
NATURE(),BIG(),SMALL()
}
|
package com.intel.realsense.camera;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.w... |
import processing.core.*;
import processing.xml.*;
import java.applet.*;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.event.MouseEvent;
import java.awt.event.KeyEvent;
import java.awt.event.FocusEvent;
import java.awt.Image;
import java.io.*;
import java.net.*;
import java.t... |
package com.example.administrator.killdragonx.ThreadTest;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.FutureTask;
/**
* Created by Administrator on 2017/3/26 0026.
*/
public class ThirdThread {
public stat... |
package com.spr.controller;
import com.spr.exception.CoworkingSpaceNotFound;
import com.spr.model.CoworkingSpace;
import com.spr.model.Office;
import com.spr.model.User;
import com.spr.utils.InitialSpacesFactory;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
imp... |
package factoring.fermat.mod;
import factoring.fermat.FermatFact;
import factoring.math.PrimeMath;
import factoring.math.SquaresMod;
import java.util.Collection;
import static factoring.math.PrimeMath.mod;
/**
* It factorizes the number n, by
*
* For x^2 + 1 = y^2 mod 24 there is only two solution for x (0, 12).... |
// github.com/sweetpand
import java.util.Scanner;
// Time Complexity: O(n)
// Space Complexity: O(1) by doing an "in place" rotation
public class Solution {
public static void main(String[] args) {
/* Save input */
Scanner scan = new Scanner(System.in);
int size = scan.nextInt();
... |
package io.taaem.vertretungsplan;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.util.Log;
import java.net.URL;
import java.net.ProtocolException;
import java.io.InputStream;
import java.io.BufferedInputStream;
import java.io.Reader;
import java.i... |
package com.bofsoft.laio.customerservice.Database;
import java.util.List;
/**
* 数据库查询结果回调
*
* @param <T>
* @author yedong
*/
public interface DBCallBackImp<T> {
/**
* 返回查询的T
*
* @param data
*/
void onCallBackData(T data);
/**
* 返回查询的List<T>
*
* @param list
*/... |
package com.qfc.yft.ui.custom.list;
import java.util.ArrayList;
import java.util.List;
import com.qfc.yft.YftApplication;
import android.content.Context;
import android.util.SparseArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.B... |
package com.rkc.codeQualityAnalysis.payloads;
import java.util.ArrayList;
import java.util.List;
public class CPDReport {
private String requestId;
private String totalWarnings;
private String averageWarnings;
private String totalFiles;
List<CPDFileReport> cpdFileReports = new ArrayList<>();
... |
package dao;
import models.Department;
import models.User;
import org.junit.*;
import org.sql2o.Connection;
import org.sql2o.Sql2o;
import java.util.Arrays;
import static org.junit.Assert.*;
public class Sql2oUserDaoTest {
private static Connection conn;
private static Sql2oUserDao userDao;
private sta... |
package cn.edu.njnu.main_part;
import cn.edu.njnu.nnu_creative_cloud.R;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Edit... |
package com.example.ive.ggbw2.Room;
import android.app.Activity;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import com.example.ive.ggbw2.Dialog.CreateRoom;
im... |
package edu.rit.se.reichmafia.htmleditor.models;
/**
* Interface for elements in an HTML file.
*
* @author Team ReichMafia
*/
public interface Element {
/**
* Get the name of this Element.
*
* @return Name of this Element.
*/
public String getName();
}
|
package negocio.repositorio;
import hibernate.util.HibernateUtil;
import java.util.List;
import negocio.basica.Monitor;
public class RepositorioMonitor {
public void incluir(Monitor pMonitor){
HibernateUtil.getSession().save(pMonitor);
}
public void alterar(Monitor pMonitor){
Hibern... |
package practice;
import java.util.Scanner;
public class TwoProduct {
public static void main(String[] args) {
// WAP to find product of two numbers without using "*"
Scanner s = new Scanner(System.in);
System.out.println("Enter two numbers:");
int num1 = s.nextInt();
int num2 = s.nextInt();
int produc... |
package ru.job4j.utils;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Properties;
/**
* Класс PropertyLoader реализует функционал загрузки файлов свойств.
* @author ... |
package com.example.fiszking;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.provider.UserDictionary;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import... |
package io.github.yanhu32.xpathkit.converter;
import io.github.yanhu32.xpathkit.utils.Strings;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
/**
* @author yh
* @since 2021/4/22
*/
public class LocalDateTextConverter extends AbstractDateTimeTextConverter<LocalDate> {
public LocalDateT... |
/*
* Copyright (c) 2004 Steve Northover and Mike Wilson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software
* without restriction, including without limitation the rights to use, copy, ... |
import java.io.FileInputStream;
import java.util.Properties;
public class AsignarPropiedadesDelSistema {
public static void main(String[] args){
try {
FileInputStream archivo = new FileInputStream("src/config.properties");
Properties p = new Properties(System.getProperties());
... |
package cualtos.examples;
public class Operand {
}
|
package com.adam.base.weatherview.util;
import android.content.Context;
/**
* Created by adamDeng on 2019/11/8
* Copyright © 2019年 . All rights reserved.
*/
public class DisplayUtils {
public static int dp2px(Context context, float dpValue)
{
float scale = context.getResources().getDisplayMetrics()... |
package com.fotoable.fotoime.fonts.callback;
/**
* Created by chenxiaojian on 2016/12/6.
*/
public interface DownloadCallback {
public void notNetwork();
public void downloadSuccess();
public void downloadFail();
}
|
package guillaumeagis.perk4you.api;
import android.app.Activity;
import guillaumeagis.perk4you.managers.ProfileManager;
/**
* Created by Appytemplate
* http://www.appytemplate.com/
* Copyright © 2016 AppyTemplate
*
* Execute calls to the API from within thread to not block the main thread / UI
*/
public fina... |
/*
* 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 com.burgosanchez.tcc.venta.ejb;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence... |
package enchanted;
import interfaces.AbstractRoom;
public class EnchantedRoom implements AbstractRoom {
public EnchantedRoom() {
}
@Override
public void create() {
System.out.println("Você criou uma porta mágica!");
}
}
|
package adapter;
import adapter.duckturkeyadapter.Duck;
import adapter.duckturkeyadapter.Turkey;
import adapter.duckturkeyadapter.TurkeyAdapter;
import adapter.duckturkeyadapter.WildTurkey;
import java.util.Arrays;
import java.util.List;
/**
* Преобразует интерфейс класса к другому интерфейсу, на который рассчитан ... |
package com.XJK.service.impl;
import com.XJK.dao.UserDao;
import com.XJK.dao.impl.UserDaoImpl;
import com.XJK.pojo.User;
import com.XJK.service.UserService;
/**
* 实现UserService功能
*/
public class UserServiceImpl implements UserService {
private UserDao userDao = new UserDaoImpl();
@Override
public void r... |
package project;
/**************************************************************************************************
* Created by: Robert Darrow
* Date: 9/24/18
* Description: subclass of product that implements multimediaControl interface to create
* an object representing an audio player.
*********... |
package com.company.javasample;
import java.util.HashMap;
import java.util.Set;
public class TransparencyCheckerImpl implements TransparencyChecker {
private HashMap<String, Integer> reachabilityMap = new HashMap<String, Integer>();
public boolean isTransparent(Set<Exchange> exchanges) {
// ... |
/*
* Zzt_JIF_Buliding.java
*
* Created on __DATE__, __TIME__
*/
package zzt.view;
import java.lang.reflect.Array;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Vector;
import javax.swing.DefaultBoundedRangeModel;
import javax.swing.JOptionPane;
import javax... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.db.generic;
import org.apache.ibatis.session.SqlSession;
import pl.edu.icm.unity.exceptions.EngineException;
/**
* Implementation is notified about the pre- add/up... |
package com.fb.controller.sys;
// _ooOoo_
// o8888888o
// 88" . "88
// (| -_- |)
// O\ = /O
// ____/`---'\____
// . ' \\| |// `.
// ... |
package nesto.walker.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.ArrayList;
import nesto.walker.R;
import nesto.walker.bean.Distanc... |
/*
* Copyright (c) 2013 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.db.generic.reg;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Comp... |
package com.tiger.util;
public class hash {
private String data;
private String method;
public hash(String _data){
this.data = _data;
this.method = "DJB";
}
public long generate(String _data){
switch(this.method){
case "DJB":
return this.DJB(_data);
}
return 0;
}
public long DJB(String _data... |
package com.sunny.netty.chat.server.handler;
import com.sunny.netty.chat.protocol.request.HeartBeatRequestPacket;
import com.sunny.netty.chat.protocol.response.HeartBeatResponsePacket;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInbo... |
package eu.bittrade.steem.steemstats.datacollector.dao;
import java.util.List;
import javax.persistence.NoResultException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.hibernate.Session;
import org.hibernate.Transaction;
import eu.bittrade.steem.steemstats.datacolle... |
package com.gtambit.gt.app.mission;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListe... |
package xhu.wncg.firesystem.modules.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import xhu.wncg.firesystem.modules.mapper.PoliceStationMapper;
import xhu.wncg.firesystem.modules.service.Police... |
package net.mapthinks.web.rest.common;
import com.codahale.metrics.annotation.Timed;
import net.mapthinks.domain.base.AbstractBaseEntity;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.http.Media... |
package maven_ssm.utils;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
public class DigestUtil {
private DigestUtil() {}
private static Dig... |
package stack;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Stack;
/**
* Created by gouthamvidyapradhan on 20/01/2018.
* Given the running logs of n functions that are executed in a nonpreemptive single threaded CPU, find the exclusive
* time of these functions.
Ea... |
package awaitTermination;
import java.util.concurrent.Callable;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
/**
* @author zhuzhisheng
* @Description
* @date on 2016/6/1.
*/
public class TestShutdown {
public static void ma... |
package com.psl.training.college;
public class GraduateFaculty extends Faculty implements IPerson, ITemporary, ISalaried {
public int contract = ISalaried.years;
public int id;
public String name;
public GraduateFaculty(int id, String name) {
// TODO Auto-generated constructor stub
super(id,name);
}
@Over... |
package blackbird.core.packets;
import blackbird.core.HostDevice;
import blackbird.core.Packet;
/**
* The handshake packet used by the host connection to identify
* the device on the remote side of the connection.
*/
public class HandshakePacket extends Packet {
private static final long serialVersionUID = 56... |
import java.util.Scanner;
public class MetodeBiseksi{
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
float a,b,e,fa,fb;
float xr = 0;
float fxr = 0;
int n;
System.out.print("Batas bawah : ");
a=input.nextFloat();
System.... |
package com.github.gaoyangthu.esanalysis;
import com.github.gaoyangthu.esanalysis.bdb.service.BDBService;
import com.github.gaoyangthu.esanalysis.bdb.service.impl.BDBServiceImpl;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
/**
* BerkeleyDB 定时任务
*
* Author:... |
package com.bnebit.sms.util.page;
import java.io.IOException;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.tags.form.AbstractHtmlElementTag;
import org.springframework.web.servlet.t... |
package Problem_1436;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int count = 0;
int answer = 666;
String str;
for(int i = 666; count < N; i++) {
str = String.valueOf(i);
if(str.contai... |
/*
* Copyright 2002-2022 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.baitaptuan9;
public class Music {
private String tenbh;
private String mota;
private int hinh;
public Music(String mota, String tenbh, int hinh) {
this.mota = mota;
this.tenbh = tenbh;
this.hinh = hinh;
}
public String getMota() {
return mot... |
/*
* 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 br.com.oop;
import java.util.ArrayList;
/**
*
* @author root
*/
public class Database {
private static ArrayList<Pesso... |
/*package utility;
import org.apache.commons.mail.EmailException;
import org.openqa.selenium.WebDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import com.relevantcodes.extentreports.Ext... |
package ca.brocku.cosc3p97.bigbuzzerquiz.messages.host;
import org.json.JSONArray;
import org.json.JSONException;
import java.util.ArrayList;
import java.util.List;
import ca.brocku.cosc3p97.bigbuzzerquiz.messages.common.JsonMessage;
import ca.brocku.cosc3p97.bigbuzzerquiz.messages.common.Response;
/**
* A respon... |
package com.layduo.web.test;
import java.util.Random;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
/**
* @author layduo
* @createTime 2019年11月15日 上午10:28:12
*/
/**
* 一、线程池: 提供一个线程队列,队列中保存着所有等待状态的线程。避免了创建与销毁的额外开销,提高了响应的速度。
二、线程池的体系结构:
j... |
package com.programapprentice.app;
import java.util.HashMap;
/**
* User: program-apprentice
* Date: 8/18/15
* Time: 6:29 PM
*/
public class MultiplyStrings_43 {
public String addStrings(String s1, String s2) {
if(s1 == null || s2 == null) {
return null;
}
if(s1.equals("")) ... |
package com.needii.dashboard.service;
import java.util.List;
import com.needii.dashboard.model.AdminBalanceHistory;
import com.needii.dashboard.utils.Option;
public interface AdminBalanceHistoryService {
List<AdminBalanceHistory> findAll();
List<AdminBalanceHistory> findAll(Option option);
long count(Option... |
package com.billy.cc.core.ipc;
import android.text.TextUtils;
import android.util.Log;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class CP_Util {
private static final String TAG = "IPCCaller";
private static final String VERBOSE_TAG = "IPCCaller_VERBOSE";
... |
package Exception;
public class AlunoInexistenteException extends Exception {
public AlunoInexistenteException(String e){
super(e);
}
}
|
package myProject;
import java.awt.Graphics;
public class M {
public static void main(String []args)
{
Display1 a = new Display1();
a.setVisible(true);
}
}
|
package sonar.socket;
import static org.junit.jupiter.api.Assertions.*;
import java.util.Random;
import java.util.concurrent.*;
import java.util.zip.CRC32;
import org.junit.jupiter.api.*;
import org.junit.jupiter.api.condition.*;
import sonar.minimodem.*;
public class SocketTest {
@BeforeEach
public void setUp()... |
package com.intel.realsense.librealsense;
public enum StreamType {
ANY(0),
DEPTH(1),
COLOR(2),
INFRARED(3),
FISHEYE(4),
GYRO(5),
ACCEL(6),
GPIO(7),
POSE(8),
CONFIDENCE(9);
private final int mValue;
private StreamType(int value) { mValue = value; }
public int value(... |
package com.fr.io;
import java.io.File;
import java.io.FileOutputStream;
import com.fr.base.FRContext;
import com.fr.base.dav.LocalEnv;
import com.fr.report.ResultWorkBook;
import com.fr.report.WorkBook;
import com.fr.report.io.CSVExporter;
import com.fr.report.io.ExcelExporter;
import com.fr.report.io.PDFExporter;
i... |
package com.extnds.competitive.datastructures;
import org.junit.jupiter.api.Test;
import java.util.stream.IntStream;
import static org.junit.jupiter.api.Assertions.*;
class CircularListTest {
@Test
public void test1() {
CircularList<Integer> circularList = new CircularList<>();
IntStream.r... |
package roc.cjm.shapeimageview;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
... |
package com.jgw.supercodeplatform.trace.pojo.zaoyangpeach;
import java.util.Date;
public class SortingPlace {
private Integer id;
private String sortingPlaceName;
private Date createTime;
private String organizationId;
public String getOrganizationId() {
return organizationId;
}
... |
import javax.swing.JFrame;
/**
* Display class
* It will handle initializing our mainwindow display
* It will create our m x n grid and draw the borders
* It will handle drawing the Nodes -> (A node can be a wall (black) , visited (green), or open (white))
* It will handle drawing the shortest path after path-fin... |
package home_work_3.calcs.superDuper;
public class TestSuper1 {
public static void main(String[] args) {
// CalculationLowPriority calculationLowPriority = new CalculationLowPriority();
//// CalculationMediumPriority calculationMediumPriority = new CalculationMediumPriority();
// SortedNull so... |
package util;
public interface Filter<T> {
/**
* Applies this filter to a given object
* @param object The object to apply the filter on
* @return true if the object passes the filter, false if it doesn't
*/
public boolean apply(T object);
}
|
import java.io.*;
import java.util.*;
class occurk
{
public static void main(String[] args)
{
Scanner kb =new Scanner(System.in);
int n=kb.nextInt();
int k=kb.nextInt();
if(n>0&&n<100001&&k>=0&&k<10)
{
String str= Integer.toString(n);
String st=Integer.toString(k);
int count=0;
for(int i=0;i<str... |
package lixh.ireader.util;
import android.util.Log;
public class InjectLog {
public static void PrintFunc() {
PrintFunc(null);
}
public static void PrintFunc(String log1) {
PrintFunc(log1, null);
}
public static void PrintFunc(String log1, String log2) {
PrintFunc(log1, l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.