text stringlengths 10 2.72M |
|---|
/*
* Copyright: 2020 forchange Inc. All rights reserved.
*/
package com.research.redis;
import redis.clients.jedis.ShardedJedis;
import redis.clients.jedis.ShardedJedisPool;
/**
* @fileName: RedisExtendClient.java
* @description: jedis连接池扩展客户端
* @author: by echo huang
* @date: 2020-02-25 16:06
*/
public class... |
package hello.hellospring.aop;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;
@Aspect
@Component // S... |
package com.khaale.bigdatarampup.mapreduce.hw3.part2.parsing;
import org.apache.hadoop.io.Text;
/**
* Created by Aleksander_Khanteev on 3/30/2016.
*/
public class IpDataParser {
private static final int delimeter = '\t';
private String ip;
private String userAgent;
private Double biddingPrice;
... |
package com.elkattanman.farmFxml.controllers;
import com.elkattanman.farmFxml.controllers.settings.Preferences;
import com.elkattanman.farmFxml.domain.User;
import com.elkattanman.farmFxml.repositories.UserRepository;
import com.elkattanman.farmFxml.util.AlertMaker;
import com.elkattanman.farmFxml.util.AssistantUtil;
... |
package com.yhy.dataservices.dto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 修改用户权限时,使用的DTO
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UpdateUserAccessRequestDTO {
//用户表主键ID
private Integer id;
//角色表主... |
/**
* Copyright (C) 2009-2012 BonitaSoft S.A.
* BonitaSoft, 31 rue Gustave Eiffel - 38000 Grenoble
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2.0 of the License, or
... |
package com.tencent.mm.plugin.soter.b;
import com.tencent.d.b.a.b;
import com.tencent.d.b.a.c;
import com.tencent.d.b.a.e;
import com.tencent.mm.plugin.soter.c.a;
import com.tencent.mm.sdk.platformtools.x;
class g$1 implements b<c> {
final /* synthetic */ g onB;
g$1(g gVar) {
this.onB = gVar;
}
... |
package org.sbbs.base.searcher.impl;
import javax.servlet.http.HttpServletRequest;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import net.sf.json.JSONSerializer;
import org.sbbs.base.searcher.SearchFilter;
import org.sbbs.base.searcher.SearchRule;
public class JqgridSelfSearchFilter exte... |
package com.sdk4.boot.exception;
import lombok.Getter;
/**
* 数据库操作异常
*/
@Getter
public class DaoException extends RuntimeException {
private static final long serialVersionUID = 1L;
private int errorCode;
private String errorMessage;
public DaoException() {
super();
}
public DaoEx... |
package com.github.ezauton.visualizer.processor;
import com.github.ezauton.recorder.base.RobotStateRecorder;
import com.github.ezauton.recorder.base.frame.RobotStateFrame;
import com.github.ezauton.visualizer.util.DataProcessor;
import com.github.ezauton.visualizer.util.Environment;
import javafx.animation.Interpolato... |
package com.facebook.yoga;
public enum YogaFlexDirection {
COLUMN(0),
COLUMN_REVERSE(1),
ROW(2),
ROW_REVERSE(3);
private final int mIntValue;
static {
$VALUES = new YogaFlexDirection[] { COLUMN, COLUMN_REVERSE, ROW, ROW_REVERSE };
}
YogaFlexDirection(int paramInt1) {
thi... |
package com.kzw.leisure.ui.activity;
import android.app.DownloadManager;
import android.net.Uri;
import android.os.Bundle;
import android.view.MenuItem;
import com.kzw.leisure.R;
import com.kzw.leisure.base.BaseActivity;
import com.kzw.leisure.utils.Constant;
import com.kzw.leisure.utils.DocumentHelper;
import com.kz... |
package com.tencent.mm.plugin.setting.ui.setting;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
class SettingsTrustFriendUI$11 implements OnMenuItemClickListener {
final /* synthetic */ SettingsTrustFriendUI mUl;
SettingsTrustFriendUI$11(SettingsTrustFriendUI settingsTru... |
package org.estore.common.secure;
import java.awt.image.BufferedImage;
public class IdentityCodeUtils {
/**
* 生成验证码
* @return
*/
public static String generateIdentityCode(){
// TODO
return "";
}
/**
* 根据验证码生成验证码图片
* @param iCode
* @return
*/
public static BufferedImage gene... |
package cn.canlnac.onlinecourse.presentation.model;
/**
* 用户数据模型.
*/
public class UserModel {
private int id;
private long date;
private String status;
private String userStatus;
private long lockDate;
private long lockEndDate;
private String username;
private String password;... |
package xframe.example.pattern.chainofresp;
public class Response {
}
|
package ar.edu.utn.frlp.app.mapper;
import ar.edu.utn.frlp.app.domain.User;
import ar.edu.utn.frlp.app.dto.UserDTO;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
@Component
public class UserMapper implements EntityMapper<UserDTO, User> {
@Override
public... |
package com.vilio.nlbs.commonMapper.dao;
import java.util.List;
import java.util.Map;
import com.vilio.nlbs.commonMapper.pojo.NlbsOperationHistory;
/**
* @实体名称 操作历史表
* @数据库表 NLBS_OPERATION_HISTORY
* @开发日期 2017-06-15
* @技术服务 www.fwjava.com
*/
public interface NlbsOperationHistoryMapper {
/**
* 1.新增一条数据... |
package swexpert;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class SWEA_6782_D5_현주가_좋아하는_제곱근_놀이 {
private static double N;
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)... |
package rs.pupin.custompolyline2;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import android.*;
import android.Manifest;
import android.annot... |
package com.my.javap;
import org.junit.Test;
public class Calculate_Test {
@Test
public void test_success() {
Calculate calculate = new Calculate();
calculate.factorial(10);
}
@Test
public void test_fail() {
Calculate calculate = new Calculate();
calculate.factorial(0);
}
}
|
package com.jc.databinding.module.sampledatabind;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.databinding.OnRebindCallback;
import android.databinding.ViewDataBinding;
import android.os.Bundle;
import com.jc.data... |
package fr.solutec.entities;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
@Entity
public class ClientToClient {
@Id @GeneratedValue
protected Long id;
@ManyToOne
private Client clientEnvoi;
@ManyToOn... |
package huawei;
/**
* @author kangkang lou
*/
import java.util.Scanner;
public class Main_53 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
String s1 = sc.nextLine();
String s2 = sc.nextLine();
System.ou... |
package security;
class CameraFacade extends SecurityProductFacade {
CameraFacade() {
setSecurityProductFactoryType(new CameraFactory());
SecurityProductFactory cameraFactory = getSecurityProductFactory();
SecurityProduct securityProductBox = cameraFactory.createProduct(SecurityProductType... |
interface A{
public abstract void show();
}
interface B{
public void add (int a, int b);
}
class C implements A,B{
private int num;
public void add(int a, int b){
this.num = a + b;
}
public void show(){
MyUtil.println("a + b = " + num);
}
}
class D{
public static void main(String[] args){
C c = new C... |
package hyghlander.mods.ports.DragonScales.common;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import hyghlander.mods.ports.DragonScales.common.events.PlayerTickHandler;
import net.minecraft.client.model.ModelBiped;
public class CommonProxy {
public void preInit()
{
DragonSca... |
/**
* Clase encargada de guardar los atributos de los nodos, con el fin de facilitar la navegación en el árbol que genera el agente.
* @author Miguel Angel Askar Rodriguez - 1355842
* @author Danny Fernando Cruz Arango - 1449949
*/
public class Nodo
{
private Estado estado;
private int padre;
private... |
/*
* @Class
* Account.java
* @Purpose
* In this class, we need to test the Account.java, and make sure that it can converge 100%
* @Programmer YANG HONG
* @Programmer Haozhe Xu
*/
package tests;
import static org.junit.Assert.*;
import org.junit.Test;
import model.Account;
import model.Song;
public cla... |
import java.util.*;
/**
* @version 1.0
* @autor Maksym Bilozir
*/
public class Cinema {
private TreeMap<Days, Schedule> schedules = new TreeMap<>();
private ArrayList<Movie> moviesLibrary = new ArrayList<>();
private Time openTime;
private Time closeTime;
private ArrayList<Ticket> tickets = new... |
package com.example.dllo.notestudio.DemoBroTwoFr;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.su... |
/**
*
*/
package com.spower.business.therapy.service;
import java.util.List;
import com.spower.basesystem.common.command.Page;
import com.spower.business.therapy.command.TherapyEditInfo;
import com.spower.business.therapy.command.TherapyQueryInfo;
import com.spower.business.therapy.valueobject.Therapy;
... |
/*
* 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 dungeon;
import java.util.ArrayList;
/**
*
* @author Muzyk
*/
public class Map {
private int[][] mapDimensions;
p... |
/*
* Copyright (c) 2016, Oracle and/or its affiliates.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this ... |
package com.example.javax.xml;
import java.io.File;
import java.io.FileInputStream;
import javax.xml.stream.XMLEventReader;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamReader;
import javax.xml.stream.events.XMLEvent;
import org.apache.commons.lang3.StringUtils;
import org.junit.T... |
package com.zjm.design.d3_singleton;
public class Singleton {
private static Singleton instance = null;
private Singleton() {
}
// 线程不安全
public static Singleton getInstance() {
if (instance == null) {
instance = new Singleton();
}
return instance;
}
// 线程安全,但是每一次访问都有进行对象加锁
public s... |
package com.github.w4o.sa.domain;
import com.github.w4o.sa.commons.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Column;
import javax.persistence.Entity;
import java.util.Date;
/**
* TableList
*
* @author frank
* @date 2019-05-15
*/
@Entity
@Data
@EqualsAndHashCode(ca... |
package servlet;
import dao.UserDao;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import beans.Book;
import dao.BookDao;
public class BookDelete extends HttpServle... |
package com.contactlist.contactlist;
/**
* Created by saurabh on 5/20/2017.
*/
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
im... |
package org.nyer.sns.oauth.v1;
/**
* OAuth1服务协议
* @author leiting
*
*/
public interface OAuth1Protocal {
String authorizeUrl(OAuth1TokenPair requestTokenPair, String from, String scope);
OAuth1TokenPair getAccessToken(String oauthVerifier, OAuth1TokenPair requestTokenPair);
OAuth1TokenPair getReques... |
package chefcharlesmich.smartappphonebook.VcardProgram;
import android.content.ContentUris;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import andro... |
package com.github.jotagit.component;
public interface KafkaConsumidor {
void listen(String message);
}
|
//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2016.05.11 u... |
package com.tencent.mm.plugin.appbrand.jsapi.f.a;
class c$9 implements Runnable {
final /* synthetic */ c fTi;
c$9(c cVar) {
this.fTi = cVar;
}
public final void run() {
if (this.fTi.fSW != null) {
this.fTi.fSW.getView().setVisibility(8);
this.fTi.fSW.clean();
... |
package digitalInnovation.javaBasico;
import java.util.Optional;
import java.util.OptionalDouble;
import java.util.OptionalInt;
import java.util.OptionalLong;
public class Aula_12_Optionals {
public static void main(String[] args) {
Optional<String> optionalString = Optional.of("Valor presente"); //declaraca... |
package com.tencent.mm.plugin.luckymoney.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import com.tencent.mm.sdk.platformtools.x;
class LuckyMoneyNewYearReceiveUI$3 implements OnCancelListener {
final /* synthetic */ LuckyMoneyNewYearReceiveUI kWg;
Lucky... |
package com.yida.utils;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import com.google.gson.Gson;
/**
*********************
* 排序算法工具类
*
* @author yangke
* @version 1.0
* @created 2018年7月12日 下午5:14:02
***********************
*/
public class SortUtils {
publ... |
package learn.calorietracker.data;
import learn.calorietracker.models.LogEntry;
import learn.calorietracker.models.LogEntryType;
import org.springframework.context.annotation.Primary;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springfram... |
package MouseActions;
public class AnimDate {
}
|
package org.sankozi.rogueland.model.coords;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.AbstractSet;
import java.util.Iterator;
import static com.google.common.base.Preconditions.checkArgument;
/**
* Immutable set containing coordinates on a vertical line. F... |
package com.allen.lightstreamdemo;
import android.os.Handler;
import android.widget.TextView;
import com.allen.lightstreamdemo.base.Constant;
import com.lightstreamer.client.ItemUpdate;
import com.lightstreamer.client.Subscription;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
i... |
package com.tuanhk.ui.fragment;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.i... |
package com.salesianos.ModeloManyToMany.service;
import com.salesianos.ModeloManyToMany.model.JustAdded;
import com.salesianos.ModeloManyToMany.model.Playlist;
import com.salesianos.ModeloManyToMany.model.Song;
import com.salesianos.ModeloManyToMany.repositories.JustAddedRepository;
import com.salesianos.ModeloManyToM... |
package bgu.spl171.net.impl.packets;
public class DIRQPacket implements Packet {
@Override
public short opCode() {
return 6;
}
}
|
package vantoan.blog_security.repo;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import vantoan.blog_security.model.Blog;
@Repository
public interface BlogRepo extends CrudRepository<Blog,Long> {
}
|
package com.lingnet.vocs.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.lingnet.common.entity.BaseEntity;
/**
* 提醒
* @ClassName: JcsjRemind
* @Description: TODO
* @author 邹云鹏
* @date 2014-12-5 上午11:48:37
*
*/
@Entity
@Ta... |
package com.shopify.admin.code.popup;
import lombok.Data;
/**
* Code Data(Popup)
* @author : kyh
* @since : 2020-02-03
* @desc : tb_use_code 정보
*/
@Data
public class AdminCodePopupData {
//세션정보
private int shop_idx;
private String email;
private String id;
private String shop;
private String shop_id;
priv... |
/*
* SessionBean1.java
*
* Created on 13 janv. 2009, 08:46:39
* Copyright bbernard
*/
package an1;
import an1.exceptions.NonexistentEntityException;
import an1.exceptions.PreexistingEntityException;
import an1.exceptions.RollbackFailureException;
import an1.persistence.CodesEcrituresJpaController;
import an1.pers... |
package vpl;
import java.util.List;
import java.util.Map;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Przemysław Czuj
*/
public class VplScene {
// VplScene (single)
// |- VplExperiment (starting[] + current)
// ... |
package net.optifine;
public class TextureAnimationFrame {
public int index;
public int duration;
public int counter;
public TextureAnimationFrame(final int index, final int duration)
{
this.index = index;
this.duration = duration;
this.counter = 0;
}
}
|
package am.main.data.jaxb.log4jData;
import javax.xml.bind.annotation.XmlRegistry;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the am.main.data.jaxb.log4jData package.
* <p>An ObjectFactory allows you to programatically
*... |
package com.Mingyang.GossipBoard;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class GossipBoardApplication {
public static void main(String[] args) {
SpringApplication.run(GossipBoardApplication.class, args);... |
package lesson5.task3;
public class DoWhile {
public static void main(String args[]) {
int n = 1;
while (n < 11) {
n = getN(n);
}
}
private static int getN(int n) {
System.out.println("Task " + n);
n++;
return n;
}
}
|
package pattern_test.abstract_factory;
/**
* Description:
*
* @author Baltan
* @date 2019-04-02 11:09
*/
public class WheelB implements Wheel {
public WheelB() {
System.out.println("生产WheelB");
}
}
|
package com.tencent.mm.protocal;
import com.tencent.mm.protocal.c.g;
public class c$ee extends g {
public c$ee() {
super("nfcConnect", "nfcConnect", 140, false);
}
}
|
package com.dmzj.manhua.push;
import android.content.Context;
public class MessagePushTool {
public static native void onMessageObtain(Context context, String title,
String description, String customContentString);
public static native void onBaiduBind(String appid,String userId, String
channelId, Strin... |
package com.company;
public class Male extends Person {
public Male(int age, String gender) {
super(age, gender);
}
@Override
void talk() {
System.out.println("Person who talk is a men");
}
@Override
public String toString() {
return "Male{" +
"age=... |
package com.example.icebuild2;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import andro... |
package com.jadn.cc.services;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
/*
* Based on http://www.androidcompetencycenter.com/2009/06/start-service-at-boot/
*/
public ... |
package com.takeaway.gameofthree.event.service;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.takeaway.gameofthree.event.model.GameMo... |
//Author: Timothy van der Graaff
package views;
import java.util.ArrayList;
import utilities.Form_Validation;
import utilities.Find_and_replace;
public class Show_For_Sale_Item_Details {
//global variables
public static ArrayList<ArrayList<String>> for_sale_item_details = new ArrayList<>();
public st... |
package cn.lbxx;
import java.net.ConnectException;
import java.net.Socket;
import java.net.SocketException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class HandleRequest extends Thread {
private static String KHost = "Host:";
private Socket clSocket ;
private ... |
package com.company;
import java.util.Scanner;
public class Eleventh {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String str = in.next(),str1 = "";
int n = in.nextInt();
for (int i = 0; i < str.length(); i++) {
if (i != n - 1)
... |
/*
* Copyright (C) 2008 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... |
package Puzzles.GlobalLogic.Anagrams;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Map;
/**
* Created by skyll on 05.10.2017.
*/
public class Runner {
public static void main(String[] args) {
System.out.print("Str... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ter... |
package com.appc.report.common.enums;
public enum EncodingType {
UTF8("utf8"), GBK("gbk"), ISO8859_1("iso8859_1"), GB2312("gb2312");
private String code;
EncodingType(String code) {
this.code = code;
}
public static DataSourseType getTypeByCode(String code) {
for (DataSourseTyp... |
package com.flutterwave.raveandroid.ach;
import com.flutterwave.raveandroid.rave_java_commons.Payload;
public class NullAchView implements AchUiContract.View {
@Override
public void showProgressIndicator(boolean active) {
}
@Override
public void onAmountValidated(String amountToSet, int visibili... |
package fr.jmini.htmlchecker;
import static org.junit.Assert.assertEquals;
import java.io.File;
import org.junit.Before;
import org.junit.Test;
import com.google.common.io.Files;
public class HtmlUtilityTest {
protected File tempDirectory;
@Before
public void before() throws Exception {
tempDirectory =... |
package TextThread;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;
//创建线程 1:extends Thread,覆写run方法
class MyThread1 extends Thread {
private String name;
public MyThread1(String name) {
this.name = name;
}
@Overrid... |
package com.forsrc.utils;
import br.eti.mertz.wkhtmltopdf.wrapper.Pdf;
import br.eti.mertz.wkhtmltopdf.wrapper.page.PageType;
import br.eti.mertz.wkhtmltopdf.wrapper.params.Param;
import org.junit.*;
public class WkhtmltopdfTest {
@BeforeClass
public static void setUpBeforeClass() throws Exception {
}
... |
import java.util.Arrays;
import java.util.*;
/**
* Write a description of class Trip here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Trip
{
private ArrayList<Flight> flights;
public Trip(ArrayList<Flight> flights) {
this.flights = flights;... |
package nl.ru.ai.vroon.mdp;
import nl.ru.ai.SiemenLooijen4083679.reinforcement.ValueIteration;
/**
* This main is for testing purposes (and to show you how to use the MDP class).
*
* @author Jered Vroon
*
*/
public class Main
{
/**
* @param args,
* not used
*/
public static void main(String[... |
package com.dreamworks.example.service;
import com.dreamworks.example.model.Task;
import com.dreamworks.example.model.TaskVersion;
import com.dreamworks.example.model.request.TaskPayload;
import com.dreamworks.example.model.request.TaskVersionPayload;
/**
* Created by mmonti on 4/20/17.
*/
public interface TaskServ... |
package com.mszalek.cleaningservice.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.time.LocalDateTime;
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor... |
package com.lzt.roomsdemo;
import android.arch.persistence.db.SupportSQLiteDatabase;
import android.arch.persistence.room.Room;
import android.arch.persistence.room.migration.Migration;
import android.content.Intent;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import an... |
package ru.hitpoint.lib.hitpoint;
import android.Manifest;
import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Build;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
/**
* Created by hlopu on 28.03.201... |
package com.zpjr.cunguan.presenter.presenter.setting;
import com.zpjr.cunguan.common.retrofit.PresenterCallBack;
/**
* Description: 描述
* Autour: LF
* Date: 2017/8/22 11:31
*/
public interface ICMSWebViewPresenter {
//获取cms的内容
void getCmsContent(String url);
//获取关于我们
voi... |
package Login;
import java.awt.Container;
import javax.swing.*;
import java.awt.event.*;
import java.awt.Color;
import java.awt.Container;
import java.awt.Font;
public class CheckBox {
public static void main(String[] args) {
JFrame frame = new JFrame();
frame.setVisible(true);
frame.setDefaul... |
import java.util.function.Function;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.Group;
import javafx.scene.paint.Color;
import javafx.scene.shape.Line;
import javafx.scene.shape.Polygon;
import javafx.scene.shape.Polyline;
/**
* The main problems in... |
package samples.findbugs;
import java.util.List;
import javax.annotation.Nonnull;
@SuppressWarnings({ "PMD.OverrideBothEqualsAndHashcode", "checkstyle:equalshashcode" })
public class OnlyEqualsImplementation {
private final List<String> versions;
public OnlyEqualsImplementation(@Nonnull final List<String> versio... |
package com.chan.demo.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import com.chan.demo.vo.chattingVO;
import javax.validation.Valid;
@Repository("chattingMapper")
@Mapper
public interface chatMapper {
public void setChatRoom(@Valid chattingVO cv);
... |
package com.sapiy.controller;
import com.sapiy.domain.Hospital;
import com.sapiy.service.HospitalService;
import com.sapiy.service.ServiceInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotat... |
package org.scilab.forge.jlatexmath.geom;
import org.robovm.apple.coregraphics.CGRect;
import org.scilab.forge.jlatexmath.platform.geom.RoundRectangle2D;
public class RoundRectangle2DI implements RoundRectangle2D {
private CGRect mRect;
private double mArcw;
private double mArch;
public RoundRectangle2DI(double... |
package moe.vergo.seasonalseiyuuapi.adapter.out.web.dto;
public class AnimeSeiyuuDto {
private PersonDto person;
private String language;
public PersonDto getPerson() {
return person;
}
public String getLanguage() {
return language;
}
}
|
package gameLogic;
import gameLogic.goal.Goal;
import gameLogic.goal.GoalManager;
import gameLogic.resource.Resource;
import java.util.ArrayList;
import java.util.List;
/**
* class to store player info
* @author FVS, Lisa
*
*/
public class Player {
private PlayerManager pm;
private List<Resource> resource... |
package com.batiaev.java3.lesson4.homework.mfu;
public class Printer extends Device {
public Printer() {
super("Напечатано");
}
}
|
package start.entity;
import lombok.Data;
/**
* @Author: Jason
* @Create: 2020/10/11 16:37
* @Description 全局锁类 主要有名称与value值
*/
@Data
public class Lock {
private String name;
private String value;
public Lock(String name, String value){
this.name = name;
this.value = value;
}
}
|
/**
*
*/
package com.opendatams.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.an... |
package com.rawa.ac.uk;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Reader;
import java.net.HttpURLCon... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.