text stringlengths 10 2.72M |
|---|
package com.mahendracandi.app.model;
public class DetailTransaksi{
private int id;
private String noTrans;
private String kodeSayur;
private double harga;
private int qty;
private double subtotal;
public void setId(int id){
this.id=id;
}
public int getId(){
return id;
}
public void setNoTrans(String... |
package com.xiaoxz.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.io.Serializable;
import java.util.List;
/**
* 客户
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Custom implements Serializable {
private String cid;
private String referralCode;
private String type;
... |
package io.ceph.rgw.client.core.subscribe;
import io.ceph.rgw.client.SubscribeClient;
import io.ceph.rgw.client.action.ActionExecutor;
import io.ceph.rgw.client.action.ActionFuture;
import io.ceph.rgw.client.action.ActionListener;
import io.ceph.rgw.client.action.SubscribeActionFuture;
import io.ceph.rgw.client.conver... |
package com.git.cloud.tenant.model.po;
import com.git.cloud.common.model.base.BaseBO;
/**
* 租户配额
* @author
*/
public class QuotaPo extends BaseBO implements java.io.Serializable{
/**
*
*/
private static final long serialVersionUID = 6519577748840786940L;
private String id;
private St... |
package com.madadata.testjdbi;
import com.codahale.metrics.annotation.Timed;
import com.google.common.base.Strings;
import io.dropwizard.jersey.params.IntParam;
import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
... |
import java.io.IOException;
class RunVector {
public static void main(String[] args) throws IOException {
Vector3 vector1 = new Vector3(1F, 2F, 3F);
Vector3 vector2 = new Vector3(0F, -1F, 0F);
Vector3 vector3 = new Vector3(2F, 3F, 4F);
Vector3 vector4 = new Vector3(5F, 6F, 7F);
System.out.println("Dot... |
package com.min.edu.ctrl;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Mode... |
package com.myvodafone.android.model.service;
import com.myvodafone.android.service.ServiceResponse;
public class LastBillPDF extends ServiceResponse {
private String pdfUrl;
public String getPdfUrl() {
return pdfUrl;
}
public void setPdfUrl(String pdfUrl) {
this.pdfUrl = pdfUrl;
}
}
|
package com.svalero.examen.controller;
import com.svalero.examen.domain.Job;
import com.svalero.examen.service.JobService;
import com.svalero.examen.utils.Alerts;
import javafx.application.Platform;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.Event;
import jav... |
package springmvc.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Medicine {
@Override
public String toString() {
return "Medicine [MedicineId=" + MedicineId + ", medicine_Name=" + medicin... |
package com.tacademy.board.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import com.tacademy.board.vo.Board;
public class BoardDAO {
private String listSQL = "select * from board order by seq desc";
private... |
package com.github.olly.workshop.imageorchestrator.config;
import brave.SpanCustomizer;
import com.github.olly.workshop.imageorchestrator.model.Image;
import com.github.olly.workshop.imageorchestrator.model.Transformation;
import com.github.olly.workshop.imageorchestrator.model.TransformationRequest;
import org.slf4j.... |
public class StackOrQueueException extends RuntimeException{
public StackOrQueueException(String msg)
{
super(msg);
}
public StackOrQueueException()
{
super();
}
}
|
package com.test.app.cacheapi.services;
import com.test.app.cacheapi.model.LRUCacheResponse;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class CacheServiceImplTest {
CacheServiceImpl cacheService = new CacheServiceImpl();
@Before
public void setUp() throws Exception {... |
/*
* Copyright (C) 2015 Adrien Guille <adrien.guille@univ-lyon2.fr>
*
* 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 3 of the License, or
* (at your option) any later vers... |
package JavaPackage;
import java.util.ArrayList;
public class WebPage {
//This WebPage is Associated with WebPage
String title;
String url;
ArrayList<String> linksList;
final static String logo = "Amazon";
//First Constructor can be create with ONLY Non-Static properties. No Static
public WebPage(St... |
package com.joalib.controller;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
imp... |
package edu.colostate.cs.cs414.soggyZebras.rollerball.Client.menu;
import edu.colostate.cs.cs414.soggyZebras.rollerball.Client.menu.listdisplay.PendingInviteListDisplay;
import edu.colostate.cs.cs414.soggyZebras.rollerball.Server.Invite;
import javax.swing.*;
import javax.swing.event.ListSelectionEvent;
import javax.... |
package headedTests;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import org.jtimer.Runner;
import org.jtimer.Annotations.DisplayName;
import org.jtimer.Annotations.Settings;
import org.jtimer.Annotations.Time;
import org.jtimer.Misc.Setting;
import org.... |
package algo3.fiuba.modelo.cartas.moldes_cartas.cartas_campo;
import algo3.fiuba.modelo.Juego;
import algo3.fiuba.modelo.Turno;
import algo3.fiuba.modelo.cartas.Carta;
import algo3.fiuba.modelo.cartas.moldes_cartas.cartas_monstruos.*;
import algo3.fiuba.modelo.jugador.Jugador;
import algo3.fiuba.modelo.cartas.Monstru... |
package com.qumla.domain.answer;
public class CountryResult {
private String country;
private Long count;
private Long max;
private String countryname;
private Long option;
private String text;
private Float percent;
private Long total;
private String region;
public String getCountry() {
return country;
}... |
package com.cloudaping.cloudaping.utils;
import com.cloudaping.cloudaping.entity.productType.*;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.*;
public class ConvertDuplicate {
private static Object getFieldValueByFieldName(String fieldName, Object object) {
try {
... |
package com.beike.service.impl.user;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.beike.dao.GenericDao;
import com.beike.dao.user.UserAddressDao;
import com.beike.entity.user.UserAddress;
import com.beike.service.impl.... |
package com.pelephone_mobile.mypelephone.ui.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.pelephone_mobile.R;
import com.pelephone_mobile.mypelephone.ui.components.ArialTextView;
/**... |
package de.varylab.discreteconformal.plugin;
import static java.awt.RenderingHints.KEY_ANTIALIASING;
import static java.awt.RenderingHints.VALUE_ANTIALIAS_ON;
import java.awt.BasicStroke;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Path2D;
import javax.s... |
package com.sys2017.android_app_test;
import java.io.Serializable;
/**
* Created by N552VW on 2017-08-16.
*/
public class AlbumItem implements Serializable {
String id;
String img;
String memo;
String date;
public AlbumItem(String id, String imgUrl, String memo, String date) {
this.id... |
package com.stk123.repository;
import com.stk123.entity.StkPeEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
@Repository
public interface StkPeRepository extends JpaRepository<StkPeEntity, String> {
... |
package com.cs192.foodwatch;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
public class RecordSubmenu extends Activity {
String id;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generate... |
package stepDef;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import junit.framework.Assert;
import pages.homepageFacebook;
public class stepd... |
/**
*
*/
package net.itinajero.app.service;
import net.itinajero.app.model.Noticia;
/**
* @author Jose Alvaro
*
*/
public interface INoticiasService {
/**
*
* @param noticia
*/
void guardar(Noticia noticia);
}
|
package assignment4;
import java.time.Instant;
import java.util.ArrayList;
import java.util.List;
import java.util.ListIterator;
/**
* Filter consists of methods that filter a list of tweets for those matching a
* condition.
*
* DO NOT change the method signatures and specifications of these methods,... |
package com.zhaoyan.ladderball.dao.eventofmatch;
import com.zhaoyan.ladderball.domain.eventofmatch.db.EventOfMatch;
import java.util.List;
public interface EventOfMatchDao {
/**
* 事件的uuid是否重复
*/
boolean isEventUUIDRepeated(String uuid);
/**
* 添加一个事件
*/
void addEvent(EventOfMatch... |
// File : Cell.java
// PIC : Letivany Aldina - 13514067
/**
*
* @author Letivany Aldina - 13514067
*/
abstract class Cell implements Renderable {
private int x;
private int y;
private String tipeCell;
/**
* konstruktor sebuah Cell
* @param x posisi x sebuah Cell
* @param y posis... |
package com.qust.mapper;
import com.qust.model.tkb_Prorelation;
public interface tkb_ProrelationMapper {
int deleteByPrimaryKey(Integer id);
int insert(tkb_Prorelation record);
int insertSelective(tkb_Prorelation record);
tkb_Prorelation selectByPrimaryKey(Integer id);
int updateByPrimaryKeySe... |
package com.emiza.exception;
import com.emiza.constants.Constant;
public class DivideByZero extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 8674526552568884728L;
public DivideByZero() {
super(Constant.DIVIDE_BY_ZERO);
}
}
|
package com.capstone.kidinvest.repositories;
import com.capstone.kidinvest.models.Business;
import com.capstone.kidinvest.models.Ingredient;
import com.capstone.kidinvest.models.Inventory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.u... |
package us.gibb.dev.gwt.server.inject;
import static com.google.inject.matcher.Matchers.annotatedWith;
import static com.google.inject.matcher.Matchers.not;
import static com.google.inject.matcher.Matchers.subclassesOf;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
import us.gibb.dev.gw... |
package com.leetcode;
public class ReverseWords {
public static void main(String [] args) {
ReverseWords t = new ReverseWords();
System.out.println(t.reverseWord(" she is my sin ") + ".");
System.out.println(t.reverseWord2(" she is my sin ") + ".");
}
public String reverseWord(String s... |
package dao;
import java.util.List;
import enterprise.Personel;
public interface PersonelDAO {
public void createOlustur1(Personel personel);
public void createOlustur2(Personel personel);
public Personel readOku1(int id);
public Personel readOku2(int id);
public void updateGuncelle1(Personel personel, in... |
import java.util.*;
public class Main{
public static class Node{
int data;
ArrayList<Node> children = new ArrayList<>();
}
public static void main(String[] args) {
int[] arr = {10,20,50,-1,60,-1,-1,30,70,-1,-1,40,80,-1,90,100,-1,-1,-1,-1};
Stack<Node> st = new Stack<>();
Node root = null;
... |
package cn.edu.cugb.information_program.go_test;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.Edit... |
package ru.goodroads.data;
import java.io.Serializable;
import java.lang.annotation.Retention;
import java.util.Date;
import com.google.gson.annotations.SerializedName;
@SuppressWarnings("unused")
public class Hole implements Serializable {
private static final long serialVersionUID = -8606143116953832890L;
@S... |
package com.tyj.venus.service.impl;
import com.tyj.venus.entity.UserMsg;
import com.tyj.venus.service.UserMsgService;
import org.springframework.stereotype.Service;
@Service("userMsgService")
public class UserMsgServiceImpl extends BaseServiceImpl<UserMsg,Integer> implements UserMsgService {
}
|
import processing.core.*;
import processing.data.*;
import processing.event.*;
import processing.opengl.*;
import processing.video.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.io.File;
import java.io.BufferedReader;
import java.io.PrintWriter;
import java.io.InputStream;
import java... |
package com.exam.controller;
import com.alibaba.fastjson.JSONObject;
import com.exam.entity.User;
import com.exam.service.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
i... |
package com.beadhouse.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import com.beadhouse.domen.Contact;
@Mapper
public interface ContactsMapper {
void insertContact(Contact contact);
Contact selectBycontacts(Contact contact);
List<Contact> selectByLoginUserId(Integer loginUserId);
L... |
package com.jgw.supercodeplatform.trace.common.cache;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ... |
package com.beike.common.bean.trx.partner;
import java.util.Date;
import java.util.List;
/**
* Title : ParT800OrderParam.java <br/>
* Description : 800传入信息转换后的参数集<br/>
* Company : Sinobo <br/>
* Copyright : Copyright (c) 2010-2012 All rights reserved.<br/>
* Created : 2012-11-7 上午10:55:13 <br/>
*
... |
package br.com.douglastuiuiu.biometricengine.model.document;
import br.com.douglastuiuiu.biometricengine.model.dto.DocumentDTO;
import br.com.douglastuiuiu.biometricengine.model.enumeration.DocumentTypeEnum;
import org.springframework.data.mongodb.core.mapping.Field;
/**
* @author douglas
* @since 23/03/2017
*/
@o... |
package org.vpontus.vuejs.web.rest;
import io.micrometer.core.annotation.Timed;
import lombok.extern.log4j.Log4j2;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springfram... |
package com.gaoshin.stock;
import java.util.ArrayList;
import java.util.List;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Color;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import c... |
package cn.math.fibonacciSequence;
import cn.math.arithmeticSeries.ArithmeticSeries;
import cn.math.geometricSeries.GeometricSeries;
import lombok.extern.slf4j.Slf4j;
import javax.swing.*;
import java.awt.*;
/**
* Created by xiaoni on 2019/8/17.
* 斐波那契弧线
*/
@Slf4j
public class FibonacciArc extends JPanel {
//... |
/*
* 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 serverPrgms;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import j... |
<<<<<<< HEAD
package in.vamsoft.excersise1.shape1;
public class Square extends Rectangle {
/** Builds a Square with the given side as both its width and its height. */
public Square(double side) {
super(side, side);
}
private void setSides(double side) {
super.setWidth(side);
sup... |
//package com.example.demo.config;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//@Configuration
//public class InterceptorBean implements ... |
package org.cnodejs.android.md.display.adapter;
import android.app.Activity;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Im... |
package com.tech.interview.siply.redbus.handlers.exceptions;
import java.util.HashMap;
import java.util.Map;
public class RedBusException extends Exception {
private final Map<String, Object> exceptionExtensions = new HashMap<>();
public RedBusException(String errMsg) {
super(errMsg);
}
publ... |
package ch6;
public class Ex_Power {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(power(3,0));
System.out.println(power(3,2));
System.out.println(power(3,4));
System.out.println(power(3,3));
}
public static double power(double x, int n) {
... |
package product;
//concrete product
public class Order1 implements Order {
// ...
}
|
package com.syntax.class06;
import java.util.Scanner;
public class Homework037 {
public static void main(String[] args) {
Scanner input;
input = new Scanner(System.in);
boolean thirsty;
boolean sleep;
String drink;
System.out.println("Are you thirsty?");
thirsty = input.nextBoolean();
System.out.pr... |
/*
* 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 Topic32List;
class StringBuild {
public static void main(String[] args) {
StringBuilder sB = new StringBuilder( );
for(int i = 0; i<10; i++){
sB.append( i );
sB.append( "a" );
}
sB.replace( sB.length()-12, sB.length()-7, "x");
System.out.pr... |
/* Program Name: CrapsGame.java
* Created on : 04-11-2015
* Author : Jon Bilsbury
* Version : 1.0
*/
public class CrapsGame {
private int sum, point, d1, d2;
static DiceFacePanel panel;
//constructor for the class
public CrapsGame() {
point = 0;
pane... |
package com.bnade.wow.repository;
import com.bnade.wow.entity.ItemSearchStatistic;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
/**
* 物品搜索统计
* Created by liufeng0103@163.com on 2017/7/13.
*/
public interface ItemSearchSt... |
public class bagmati extends Nepal//c
{
public static void kathmandu()// disp c
{
System.out.println("KTM is in Bagmati");
}
} |
/*
* 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 zajecia.OOP.bookstore;
/**
* Created by RENT on 2017-04-24.
*/
public class Application {
public static void main(String[] args) {
Bookstore bookstore = new Bookstore();
insertExampleData(bookstore);
// bookstore.showBooks();
// Book[] books = bookstore.getBooks("Henryk ... |
package coin.coininventory.entity;
import javax.persistence.*;
@Entity
@Table(name = "locationdependency")
public class LocationDependency {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long locationdependencyid;
@ManyToOne(cascade = CascadeType.MERGE, fetch = FetchType.EAGER)
... |
/*
* @(#) ISvcInfoDAO.java
* Copyright (c) 2007 eSumTech Co., Ltd. All Rights Reserved.
*/
package com.esum.wp.ebms.svcinfo.dao;
import java.util.List;
import com.esum.appframework.dao.IBaseDAO;
import com.esum.appframework.exception.ApplicationException;
/**
*
* @author heowon@esumtech.com
* @version $Rev... |
package com.juannarvaez.taskworkout.view.Adapter;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
import com.juannarvaez.taskworkout.view.Fragment.AgendaFragment;
import com.juannarvaez.taskwork... |
package edu.upenn.cis455.Indexer.EMRIndexer;
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.InputSplit;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
im... |
package service.lecture;
import java.io.File;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import model.dto.hr.SubjectDTO;
import repository.lecture.FileGetRepository;
import repository.lecture.... |
package com.lojaDeComputadorV3.domain;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
impor... |
/*
// Definition for a Node.
class Node {
public int val;
public List<Node> children;
public Node() {}
public Node(int _val) {
val = _val;
}
public Node(int _val, List<Node> _children) {
val = _val;
children = _children;
}
};
*/
// 1: Recursive
class Solution {
... |
package com.codingchili.instance.controller;
import com.codingchili.core.protocol.Api;
import com.codingchili.core.protocol.exception.AuthorizationRequiredException;
import com.codingchili.instance.context.GameContext;
import com.codingchili.instance.model.admin.AdminEvent;
import com.codingchili.instance.model.dialog... |
package com.github.gaoyangthu.core.hbase;
import org.apache.hadoop.hbase.client.HTableInterface;
import org.apache.hadoop.hbase.client.Put;
import org.apache.hadoop.hbase.util.Bytes;
import java.io.IOException;
/**
* Created with IntelliJ IDEA.
* Author: gaoyangthu
* Date: 14-3-11
* Time: 下午2:48
*/
public class... |
package com.sl.app.doorlock.register.dao;
import com.sl.app.doorlock.register.vo.AppDoorlockRegisterVO;
import net.sf.json.JSONObject;
public interface AppDoorlockRegisterDAO {
JSONObject selectOneCheck(AppDoorlockRegisterVO vo);
JSONObject selectOneInsert(AppDoorlockRegisterVO vo);
}
|
package cn.fuyoushuo.fqbb.view.flagment;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.FragmentManager;
import android.text.TextUtils;
import android.view.Lay... |
package SimpleCalculate;
import java.util.Stack;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class StackCalculate
{
int numRange;
public StackCalculate(int numRange)
{
this.numRange = numRange;
}
public StackCalculate()
{
}
/*
... |
package com.ferreusveritas.growingtrees.worldgen;
import cpw.mods.fml.common.eventhandler.Event.Result;
import cpw.mods.fml.common.eventhandler.EventPriority;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.event.entity.EntityEvent.EntityConstructing;
import net.minecraftforge.event.t... |
package com.example.server.dto;
public class TokenRequest {
private String client_id="xhxgUDdxeLAHFGp0zml60cT4Pj8SRrIt5fhcusAFOt9NPZrGCs";
private String client_secret= "2Zu2jzMqAey53iOxOGh4Qn2abEIXJF0VJY1F3kuH";
private final String grant_type= "client_credentials";
public TokenRequest() {
}
... |
package script.groovy.runtime;
import java.lang.annotation.Annotation;
import java.util.Collection;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import chat.errors.CoreException;
import chat.logs.LoggerEx;
import groovy.lang.GroovyObject;
import org.apache.commons.lang.StringUtils;
import scr... |
import java.util.Scanner;
public class divisiblenumber {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();int p=0;int arr[]=new int[t];
while(p<t)
{
int n=sc.nextInt();
if(n%2020==0||n%2020==2021)
{
int j=n-2020;
if(j==0)
{
arr[p]=0;
}
... |
package com.github.iam20.http;
import java.util.Map;
public class HttpRequestMessageBuilder {
private HttpRequestMessage httpRequestMessage;
public HttpRequestMessageBuilder() {
httpRequestMessage = new HttpRequestMessage();
}
public HttpRequestMessageBuilder method(String method) {
httpRequestMessage.setMe... |
package ws;
public interface WebSocketCallback {
public void onConnect();
public void onDisconnect();
public void onMessage(ws.Frame frame);
public void onError(Throwable t);
}
|
import java.awt.*;
import java.util.*;
import java.awt.event.*;
import java.lang.*;
import java.io.*;
import java.net.*;
import javax.swing.*;
import java.math.*;
import java.text.*;
class RandomGuy {
public Socket s;
public BufferedReader sin;
public PrintWriter sout;
Random generator = new Random();
... |
package com.example.demo.controller;
import com.example.demo.entity.PaymentSplitParams;
import com.example.demo.service.IPaymentDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.Reque... |
package com.goldenasia.lottery.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.Toast;
import com.goldenasia.lottery.R;
import com.goldenasi... |
package com.aaron.mvpsample.view;
public interface IMainView {
void showToast(String msg);
void showProgress();
void hideProgress();
void load(String data);
String getInput();
void clearInput();
}
|
package util;
import business.model.Date;
public class HandleUserValidation {
public static Boolean verifyLogin(String login) throws UserLoginException {
Boolean tamanhoMinMax = false;
Boolean dontContainNumber = false;
try {
tamanhoMinMax = login.matches("[a-zA-Z]{1,20}");
dontContainNumb... |
package com.sen.myshop.commons.persistence;
import lombok.Data;
import java.io.Serializable;
/**
* @Auther: Sen
* @Date: 2019/8/10 02:17
* @Description:
*/
@Data
public abstract class BaseTreeEntity<T extends BaseEntity> extends BaseEntity implements Serializable {
private T parent;
private Boolean isPa... |
package net.wasdev.ftadmin;
public class Config {
private String username;
private String password;
private String truststorePath;
private String truststorePass;
private String host;
private String port;
private String contrPackageDir;
private Boolean clearCPD;
public Config() {
super();
this.username = ... |
package info.revenberg.loader.service;
import info.revenberg.dao.jpa.BundleRepository;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springfra... |
package com.thoughtworks.userService.security;
import com.thoughtworks.userService.model.User;
import com.thoughtworks.userService.repository.UserRepository;
import com.thoughtworks.userService.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeade... |
package com.example.attest.model.api;
import com.example.attest.model.domain.TransactionStatus;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import java.math.BigDecimal;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
@JsonInclude(Include.... |
package testforMe;
import Prog1Tools.IOTools;
public class EingabeTest {
public static void main(String[] args) {
int i = IOTools.readInt("Geben Sie ein int zahl ein");
System.out.println("Eingebene Zahl:"+i);
}
}
|
package com.evature.evasdk;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator;
import android.animati... |
package cn.ctw.spider.controller;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import cn.ctw.spider.SpiderAppli... |
package com.tyland.musicbox.ui;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.w... |
package cn.sau.one.po;
import java.util.Date;
public class Picture {
private Integer pictureId;
private String pictureUrl;
private String pictureType;
private Date pictureTime;
private Integer userId;
public Integer getPictureId() {
return pictureId;
}
public void setPict... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.