text stringlengths 10 2.72M |
|---|
package windowChange1;
public class SingletonCls { //delegate
private static SingletonCls sc = null;
WIndowone one;
WindowTwo two;
private SingletonCls() {
one = new WIndowone();
two = new WindowTwo();
}
public static SingletonCls getInstance() {
if(sc == null) {
sc = new SingletonCls();
... |
package Sekcja4.Exercise;
public class Exercise1SpeedConverter {
public static long toMilesPerHour(double kilometersPerHour){
return kilometersPerHour >= 0 ? Math.round(kilometersPerHour/1.609) : -1;
}
public static void printConversion(double kilometersPerHour) {
System.out.println(toMil... |
package top.docstorm.documentstormcommon.service.impl;
import com.alibaba.fastjson.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.jms.core.JmsMessaging... |
package com.thoughtworks.tdd.models;
public class ParkingGarage {
private final int capacity;
private final String name;
private int used;
public ParkingGarage(final String name, final int capacity) {
this.name = name;
this.capacity = capacity;
}
public int getCapacity() {
... |
package com.atguigu.zookeeper.test;
import static org.junit.Assert.*;
import java.io.IOException;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeep... |
package user.com.foodexuserui;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.FragmentTransaction;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.StrictMode;
import android.support.v7.app.AppCompatAc... |
package Lector8.Task8_1;
public class MainTask8_1 {
public static void main(String[] args) {
new Menu().start();
}
} |
package info.datacluster.common.lock;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.framework.recipes.locks.InterProcessMutex;
import org.apache.curator.retry.ExponentialBackoffRetry;
import java.net.InetAddress;
import jav... |
package com.zc.pivas.docteradvice.entity;
import com.zc.base.common.util.StrUtil;
import com.zc.base.sys.common.util.NumberUtil;
import java.io.Serializable;
import java.util.Map;
/**
*
* 其他规则bean
*
* @author cacabin
* @version 0.1
*/
public class OtherRule implements Serializable
{
/**... |
package com.zc.pivas.app.service;
import com.zc.pivas.app.bean.ScanOutputParamBean;
/**
* 配置费计算服务接口
*
* @author kunkka
* @version 1.0
*/
public interface ScanBottleService {
/**
* 处理扫描
*
* @param bottleNum 瓶签号码
* @return 收费是否成功
* @throws Exception
*/
ScanOu... |
package Italian;
public class MargeritaPizza extends Pizza {
@Override
public double cost() {
return 250.0;
}
@Override
public String getDescription() {
return "MargeritaPizza";
}
}
|
package solution;
import problem.Range;
import math.Vector2d;
import math.Vector3d;
import problem.Problem;
public class HillClimber
{
private Problem problem;
public void initialize(Problem problem) {
this.problem = problem;
}
public Vector3d findOptima(int iterations, double stepsize, int neighbours) {
if... |
package com.rubic.demo.work;
import com.lmax.disruptor.WorkHandler;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
/**
* LongEventHandler:元素处理类
*
* @author rubic
* @since 2018-07-17
*/
public class LongEventHandler implements WorkHandler<LongEvent> {
private List<LongEvent> list;
... |
/**
*
*/
package com.erasolon.config;
import javax.persistence.EntityManagerFactory;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframewor... |
package program.oops;
public class StudentInfo {
int rollno;
int mark1;
int mark2;
int mark3;
public int getRollno() {
return rollno;
}
public void setRollno(int rollno) {
this.rollno = rollno;
}
public int getMark1() {
return mark1;
}
public void setMark1(int mark1) {
this.... |
package store;
import java.io.*;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;
public class Store {
public static final String ANSI_RESET = "\u001B[0m";
public static final String ANSI_BLACK = "\u001B[30m";
public static final Stri... |
/**
* @author Coleman R. Lombard
* @file passmanGUI.java
* This file contains the passmanGUI class, used to display all components
* of the passman application.
*
* All member functions are documented in the javadoc style, each comment
* block is preceded by a tag "(#)" for ease of searching. To view do... |
package com.mtl.demo.serviceA.controller;
import com.mtl.demo.serviceA.service.HulkServiceA;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HulkCo... |
package constants;
public class IOConstants {
public static final int JOYSTICK_DRIVER = 0;
public static final int JOYSTICK_OPERATOR = 1;
public static final int DRIVE_MOTOR_FL = 8;
public static final int DRIVE_MOTOR_FR = 9;
public static final int DRIVE_MOTOR_BL = 6;
public static final int DRIVE_MOTOR_BR ... |
package haw.ci.lib.nodes;
public class TypeDeclarationNode extends AbstractNode {
private static final long serialVersionUID = -1319709422716461088L;
private IdentNode ident;
private AbstractNode type;
public TypeDeclarationNode(IdentNode ident, AbstractNode type) {
this.ident = ident;
this.type = type;
}
... |
package com.github.it18monkey.current;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
public class ExecutorsTest {
public static void main(String[] args) {
ExecutorService service = Executors.newScheduledThreadPool(1);
serv... |
package com.example.ayaali.fastfoodfp;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import com.example.ayaali.fastfoodfp.activity.RecipesListActivity;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import static android.support... |
package com.demo.decorator.login;
import lombok.Data;
/**
* @author: Maniac Wen
* @create: 2020/4/6
* @update: 20:46
* @version: V1.0
* @detail:
**/
@Data
public class ResultMsg {
private int code;
private String msg;
private Object data;
public ResultMsg(int code,String msg,Object data){
... |
package ModeloRel;
/**
* Classe de informações das colunas
* @author Renan
*/
public class Coluna {
public boolean pk, auto_inc, nullable, fk = false;
public String nome, tipo, fk_nome_coluna, fk_nome_tabela;
public int tamanho_str;
public Coluna(boolean pk, boolean auto_inc, boo... |
package br.com.ocjp7.classesInternas;
public class ClassesDentroDeMetoso {
public static void main(String[] args) {
// TODO Auto-generated method stub
}
void put(){
int x;
class MyMethod{
//não pode acessar varivale do metodo que seja declarada antes.
final int x = 0; //ok funciona se final
voi... |
package com.yc.education.service.impl.basic;
import com.github.pagehelper.PageHelper;
import com.yc.education.mapper.basic.EmployeeBasicMapper;
import com.yc.education.model.basic.EmployeeBasic;
import com.yc.education.service.basic.EmployeeBasicService;
import com.yc.education.service.impl.BaseService;
import org.spr... |
package br.com.guarulhosemdestaque.portalnoticia.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndV... |
package com.quickly.module.content;
import com.quickly.bean.ArticleItem;
import com.quickly.bean.news.NewsArticleItem;
import com.quickly.module.base.IBaseListView;
import com.quickly.module.base.IBasePresenter;
import com.quickly.module.base.IBaseView;
public interface INewsContent {
interface View extends IBas... |
package com.thomson.dp.principle.zen.lsp.domain;
public class MachineGun extends AbstractGun {
@Override public void shoot() {
System.out.println("机枪扫射.......");
}
@Override public void setShape(String color) {
super.setShape("机枪的形状");
}
}
|
package com.tpg.brks.ms.expenses.web.resources;
import lombok.Getter;
import lombok.Setter;
import org.springframework.hateoas.Link;
import org.springframework.hateoas.Resource;
import org.springframework.hateoas.ResourceSupport;
@Getter
@Setter
public abstract class IdentifiedResource<T> extends Resource<T> {
pr... |
package team.groupproject.entity;
import java.io.Serializable;
import javax.persistence.AssociationOverride;
import javax.persistence.AssociationOverrides;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Joi... |
/*
ASCII Signature: AJM
,. ,.
{^ \-"-/ ^}
" """ "
{ <O> _ <O> }
==_ .:Y:. _==
."" `--^--' "".
(,~-~."" "" ,~-~.)
------( )----( )-----
^-'-'-^ ^-'-'-^
_____________________... |
package com.what.yunbao.history;
import android.content.Context;
import android.database.Cursor;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CursorAdapter;
import android.widget.TextView;
import com.what.yunbao.R;
import com.what.yunbao... |
package Lector12.Task12_3;
public class MainTask12_3 {
public static void main(String[] args) {
try {
System.out.println("Введите слово");
String str = Other.ReadFromConsole.readFromConsoleStr();
checkExcep(str);
} catch (MyExcepcion e) {
e.printStack... |
package com.jyn.masterroad.utils.dagger2.module;
import javax.inject.Inject;
/**
* Created by jiao on 2020/8/17.
*/
public class Car2 {
@Inject
Engine2 engine;
public Car2() {
}
public Engine2 getEngine() {
return this.engine;
}
}
|
package com.sitp.activities;
import android.content.Intent;
import android.graphics.Typeface;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.InputType;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButt... |
package Program;
import java.util.HashMap;
import java.util.Map;
/**
*
* La clase Mapa genera a traves de un HashMap una sucesion de puntos.
*
*/
public class Mapa {
protected HashMap<String,Coordenada> puntos = new HashMap<>();
public void setPunto (String nombre, Coordenada punto)... |
package com.egova.eagleyes.adapter;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.egova.eagleyes.R;
import com.egova.eagleyes.model.respose.PersonInfo;
import java.util.List;
import androidx.annotation.Nullable;
public class PersonSearchAdapte... |
package pacoteBase08.VIEW;
import java.awt.*;
import java.io.File;
import javax.swing.*;
import pacoteBase08.CONTROL.ControlarAplicativo;
public class MontarPainelInicial {
private JFrame baseFrame;
private JPanel basePanel;
private JPanel outputPanel, outputPanelEsq, outputPanelCen, outputPan... |
package com.soa.interceptor;
import com.soa.domain.hero.Hero;
import com.soa.service.JMSService;
import javax.inject.Inject;
import javax.interceptor.AroundInvoke;
import javax.interceptor.Interceptor;
import javax.interceptor.InvocationContext;
@Tracked
@Interceptor
public class TrackedInterceptor {
@Inject
... |
package nesto.base.widget;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.view.MotionEvent;
/**
* Created on 2017/3/23.
* By nesto
*/
public class Touch {
public static double calculateDistance(MotionEvent event) {
if (event.getPointerCount() < 2) return 0;
ret... |
package br.com.guisfco.onlineshopping.util;
public class RandomUtils {
public static int nextInt(final int minInclusive, final int maxExclusive) {
return minInclusive + (int) (Math.random() * (maxExclusive - minInclusive));
}
public static double nextDouble(final int min, final int max) {
... |
package algo3.fiuba.modelo.cartas.moldes_cartas.cartas_monstruos;
import algo3.fiuba.modelo.jugador.Jugador;
import algo3.fiuba.modelo.cartas.Monstruo;
import algo3.fiuba.modelo.cartas.efectos.EfectoNulo;
import algo3.fiuba.modelo.cartas.estados_cartas.EnJuego;
import algo3.fiuba.modelo.cartas.modo_monstruo.ModoDeAtaq... |
package com.xxglpt.sjjs.bean;
import java.io.Serializable;
import java.util.List;
/**
* 汇交测绘实体
* @author xnq
*
*/
public class JcchMx implements Serializable {
private static final long serialVersionUID = 1L;
private String id;
private String jcchId;
private String xh;
private String sjlx;
private... |
package net.nowtryz.mcutils.command.graph;
import com.google.common.base.Strings;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import net.nowtryz.mcutils.command.contexts.NodeSearchContext;
import net.nowtryz.mcutils.command.exceptions.ExecutorDuplicationException;
import net... |
package com.controller;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @author yuanqinglong
* @since 2021/2/18 9:15
*/
@Controller
public class TranslationController {
@Transa... |
package com.star.entity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.util.Date;
/**
* 编辑修改文章实体类
*/
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class ShowBlog {
private Long id;
private String flag;
private ... |
package com.reactnative.googlecast.types;
import android.graphics.Color;
import androidx.annotation.Nullable;
public class RNGCColor {
public static int fromJson(final @Nullable String color) {
if (color == null) return 0; // COLOR_UNSPECIFIED
try {
if (color.startsWith("#")) {
// Android's ... |
/*
* Copyright © 2018 www.noark.xyz All Rights Reserved.
*
* 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 !
* 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件:
*
* http://www.noark.xyz/LICENSE
*
* 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播;
* 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本;
* 3.无论你对源代码做出任何修改和改进,版权都归Noark研发团队所有,我们保... |
//среднее арифметическое всех цифр /3 в диапазоне от a до b
package Loop;
import java.util.Scanner;
public class Loop5 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int i = 0;
int k =... |
/*
* Copyright (C) 2017 The Android Open Source Project
*
* 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 app... |
/**
* Copyright (C) 2008 Atlassian
*
* 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 t... |
package com.youkol.sms.core.exception;
/**
* 短信第三方账户余额不足
*
* @author jackiea
*/
public class SmsInsufficientException extends SmsException {
private static final long serialVersionUID = 1L;
public SmsInsufficientException(String msg) {
super(msg);
}
public SmsInsufficientException(Strin... |
package org.appsugar.service.account;
import static org.mockito.Mockito.when;
import org.appsugar.BaseServiceMockTestCase;
import org.appsugar.entity.account.User;
import org.appsugar.repository.account.UserRepository;
import org.appsugar.service.account.impl.UserServiceImpl;
import org.junit.Assert;
import org.junit... |
package aula_0520.arvoresOO;
public class No {
}
|
package ziegler.concurrent;
public class Elevator {
private int currentFloor;
private int requestedFloor;
public boolean isInUse() {
return requestedFloor > 0;
}
//need to make method thread safe
public void setRequestedFloor(int requestedFloor) {
if(isInUse()){
return;
}
this.requestedFloor = reque... |
package uchet.service.indocs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactiona... |
//package com.oa.email;
//
//import com.oa.email.entity.MailServer;
//import com.oa.email.service.MailService;
//import com.oa.email.service.MailServiceImpl;
//
//public class SendMailDemo {
// public static void main(String[] args) {
// // 设置邮件服务器信息
// MailServer mailInfo = new MailServer();
// mailInfo.se... |
package services;
import java.io.IOException;
import java.nio.channels.SelectionKey;
/**
* Интерфейс, отвечающий за приём подключений к серверу
*/
public interface ClientAcceptor {
/**
* Блок, отвечающий за принятие подключений
* @param key - ключ селектора
* @throws IOException - и... |
/*
* 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 applicab... |
package com.infohold.bdrp.authority.shiro.session.dao.impl;
import org.apache.shiro.cache.AbstractCacheManager;
import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import o... |
package com.ibisek.outlanded.storage;
import java.util.List;
import com.ibisek.outlanded.R;
import android.content.Context;
public class TemplatesDao {
private static final String MESSAGE_TEMPLATES_FILENAME = "message-templates.bin";
private Context context;
private InternalStorage<Templates> stor... |
package com.example.ivan.memento;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.loopj.android.http.... |
package com.example.lbyanBack.service.impl;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.lbyanBack.mapper.LjxxMapper;
import com.example.lbyanBack.pojo.Ljlx;
import com.example.lbyan... |
package com.joy.tank;
import java.util.Random;
/**
* @author joy
* @date 2021/9/13
*/
public enum Dir {
L, U, R, D;
private static Random random = new Random();
public static Dir RamDir(){
return values()[random.nextInt(values().length)];
}
}
|
package com.rory.security.core.validate.code.sms;
import com.rory.security.core.validate.code.sms.sender.SmsCodeSender;
import com.rory.security.core.validate.code.support.ValidationCode;
import com.rory.security.core.validate.code.support.impl.AbstractValidationCodeProcessor;
import org.springframework.beans.factory.... |
/*
* Copyright 2002-2023 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.rubic.demo.value;
import com.lmax.disruptor.BatchEventProcessor;
import com.lmax.disruptor.BusySpinWaitStrategy;
import com.lmax.disruptor.RingBuffer;
import com.lmax.disruptor.SequenceBarrier;
import com.lmax.disruptor.util.DaemonThreadFactory;
import java.util.concurrent.*;
/**
* 三个生产者一个消费者,测试并发量
* @... |
/**
* Copyright 2005 Sean J. Barbeau
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 i... |
package com.sakthi.springmvc.demo;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.servlet.config.annotation.ResourceHa... |
package com.wangzhu.spring.aware;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
public class MyApplicationAware implements ApplicationContextAware {
public void setApplicationContext(ApplicationCont... |
/*
* $Header: /home/cvsroot/HelpDesk/src/com/aof/webapp/form/SecurityGroupForm.java,v 1.3 2004/11/30 04:09:21 shilei Exp $
* $Revision: 1.3 $
* $Date: 2004/11/30 04:09:21 $
*
* ====================================================================
*
* Copyright (c) Atos Origin INFORMATION TECHNOLOGY All rights res... |
package com;
import java.util.Date;
public class UserInfo {
private Integer userId;
private String userName;
private String userSex;
private Date birthday;
public UserInfo(Integer userId, String userName, String userSex, Date birthday)
{
this.userId= userId;
this.userName = userName;
this.userSex = us... |
package java.com.kaizenmax.taikinys_icl.presenter;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.util.Base64;
import android.widget.Toast;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Res... |
package utils;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;
import test.Program;
public class DbUtil
{
static Properties prop;
static
{
try
{
InputStream inputStream = Program.c... |
package attractions;
import org.junit.Before;
import org.junit.Test;
import people.Visitor;
import static org.junit.Assert.*;
public class PlaygroundTest {
Playground playground;
Visitor visitor15;
Visitor visitor8;
Visitor visitor19;
@Before
public void setUp() throws Exception {
pl... |
package com.stk123.common.util;
import com.thoughtworks.xstream.XStream;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.input.SAXBuilder;
import org.xml.sax.InputSource;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
... |
/*
* Created on 2004-12-2
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.aof.component.helpdesk;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import net.sf.hibernate.Hi... |
/**
*
*/
package org.artifact.security.domain;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.artifact.base.domain.IdEntity;
import com.... |
import java.util.ArrayList;
import com.sun.tools.javac.util.List;
/*
* [17] Letter Combinations of a Phone Number
*
* https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/
*
* algorithms
* Medium (37.67%)
* Total Accepted: 264.8K
* Total Submissions: 702.9K
* Testcase Example: ... |
package net.bdsc.service.impl;
import net.bdsc.entity.Member;
import net.bdsc.entity.MineMachine;
import net.bdsc.entity.MineMachineOrder;
import net.bdsc.entity.Sn;
import net.bdsc.service.MineMachineOrderService;
import net.bdsc.service.SnService;
import org.springframework.beans.factory.annotation.Autowired;
impor... |
package com.blog.util;
import org.apache.commons.codec.digest.DigestUtils;
public class MD5Coder {
/**
*
* @param data ¼ÓÃܵÄÊý¾Ý
* @return byte[]
*/
public static byte[] encodeMD5 (String data) {
return DigestUtils.md5(data);
}
public static String encodeMD5Hex(String data) {
return DigestUtils.... |
package hashing;
import java.util.HashMap;
import java.util.Map;
/**
* Created by gouthamvidyapradhan on 16/12/2017.
* Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1.
Example 1:
Input: [0,1]
Output: 2
Explanation: [0, 1] is the longest contiguous subarray wi... |
package net.kkolyan.elements.engine.utils;
import java.util.ArrayDeque;
/**
* @author nplekhanov
*/
public class SimplePool<T> implements Pool<T> {
private ArrayDeque<T> pool = new ArrayDeque<>();
private ObjectProvider<T> initializer;
public SimplePool(ObjectProvider<T> initializer) {
this.ini... |
package com.example.ahmadrizaldi.traveloka_retrofit.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 com.example.ahmadrizaldi.traveloka_retrofit.Mo... |
package com.hlx.view.option;
import com.hlx.config.SoundEnum;
import com.hlx.service.SoundService;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import java.util.Arrays;
impor... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
package org.xbill.DNS;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
/**
* IPv6 Address Record - maps a domain name to an IPv6 address
*
* @author Brian Wellin... |
package plugins.fmp.fmpTools;
import java.awt.Point;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.attribute.FileTime;
import java.util.ArrayList;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.util.CellReference;
import org.apache.poi.xssf.us... |
package com.pehom.deepvoidplayer;
import androidx.room.TypeConverter;
import java.util.ArrayList;
public class TracksConverter {
@TypeConverter
public String fromTracks(ArrayList<Track> tracks){
String s = "";
for (int i=0; i < tracks.size(); i++){
s=s+tracks.get(i).getArtist()+"%... |
package com.unicom.patrolDoor.entity;
public class Recommend {
private Integer id;
private Integer questionId;
private String recommendTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getQuestionId() {
... |
package kr.co.people_gram.app;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentPagerAda... |
package com.example.pucp.Controller;
import com.example.pucp.Entity.Actividad;
import com.example.pucp.Entity.Area;
import com.example.pucp.Entity.Usuario;
import com.example.pucp.Repository.AreaRepository;
import com.example.pucp.Repository.UsuarioRepository;
import org.springframework.beans.factory.annotation.Autowi... |
package me.ivt.com.ui.tablayout;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Line... |
package com.vicutu.op.query;
public interface QueryTemplateManager {
QueryTemplate getQueryTemplate(String name);
}
|
package com.biblio.api.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.biblio.api.core.Exemplaire;
@Repository
public interface ExemplaireRepository extends JpaRepository<Exemplaire, Long> {
public Iterable<Exemplaire> findByLivre_Id(l... |
package com.yc.education.service;
import com.yc.education.model.PermissionsEmployee;
import java.util.List;
/**
* @ClassName PermissionsEmployeeService
* @Description TODO
* @Author QuZhangJing
* @Date 2019/3/1 10:22
* @Version 1.0
*/
public interface PermissionsEmployeeService extends IService<PermissionsEmpl... |
package example.lgcode.launchstatus.presenters;
import com.squareup.otto.Subscribe;
import example.lgcode.launchstatus.adapters.LaunchListAdapter;
import example.lgcode.launchstatus.dtos.LaunchDTO;
import example.lgcode.launchstatus.models.LaunchStatusModel;
import example.lgcode.launchstatus.utils.BusProvider;
impor... |
/*
* Copyright 2002-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.melusyn.sendgrid;
import org.vertx.java.core.json.JsonObject;
public class SendGridResponse {
private int code;
private String message;
private boolean status;
static SendGridResponse instance() {
return new SendGridResponse();
}
public SendGridResponse code(int code) {
this.code = code;
r... |
package com.max.harrax.game.state;
import com.max.harrax.events.Event;
import com.max.harrax.layer.Layer;
import java.util.ArrayList;
public class State {
private ArrayList<Layer> layerStack;
public State() {
this.layerStack = new ArrayList<Layer>();
}
public void onUpdate(float delta) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.