text stringlengths 10 2.72M |
|---|
package io.peppermint100.server.repository;
import io.peppermint100.server.entity.OrderItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
imp... |
package com.ifli.mbcp.validator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
import com.ifli.mbcp... |
package l2_servers;
import java.io.File;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import javafx.util.Pair;
/**
* This class will act as ... |
package foo.dbgroup.RDFstruct.datasource;
import java.util.ArrayList;
import java.util.List;
import foo.dbgroup.mongo.entity.EndPointSparql;
public class EndpointRepository {
private List<EndPointSparql> lista;
public EndpointRepository() {
super();
lista = new ArrayList<EndPointSparql>();
//sena... |
package com.acms.model;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.annotation.Resource;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet... |
package jumpingalien.part3.programs.Statements;
import jumpingalien.model.LivingCreatures;
import jumpingalien.part3.programs.Program;
public class StopJump extends BasicStatement{
@Override
public void execute(Program program) {
LivingCreatures object = program.getPossessedObject();
object.endJump();
}
}
|
package models;
import javax.persistence.Entity;
import play.db.jpa.Model;
import java.sql.*;
public class BaseModel extends Model {
public Timestamp createTime;
public Timestamp updateTime;
public String createUser;
public String updateUser;
public Boolean deleted;
}
|
package COM.JambPracPortal.BEAN;
import COM.JambPracPortal.DAO.DAO;
import com.sendgrid.Content;
import com.sendgrid.Email;
import com.sendgrid.Mail;
import com.sendgrid.Method;
import com.sendgrid.Request;
import com.sendgrid.Response;
import com.sendgrid.SendGrid;
import java.io.IOException;
import java.s... |
package geometry;
import java.awt.Color;
import math.Coord;
import math.Point3D;
import math.Vecteur3D;
public class Cube extends Shape3D {
/** Constructeur */
public Cube(Shape3D parent, double x, double y, double z) {
super(parent, x, y, z);
Point3D p1 = new Point3D(0, 0, 0);
Point3D p2... |
package com.blog.system.action;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRespon... |
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class JDBC5 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Connection con = null;
Statement st ... |
package org.basic.comp.adapter;
import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx;
import com.orientechnologies.orient.core.record.impl.ODocument;
import org.basic.comp.abst.WidgetPrivilege;
import org.basic.comp.listener.MasterInterface;
import org.basic.comp.listener.WiddgetSyncInterface... |
package Stack.SpecialStack;
public class SpecialStack extends Stack {
private Stack min;
public SpecialStack() {
this.min = new Stack();
}
/*
* SpecialStack's member method to insert an element to it. This method makes
* sure that the min stack is also updated with appropriate mini... |
package com.dreamcatcher.factory;
import com.dreamcatcher.action.Action;
import com.dreamcatcher.member.action.*;
public class MemberActionFactory {
private static Action memberJoinAction;
private static Action memberMyInfoAction;
private static Action memberModifyAction;
private static Action memberL... |
package ru.kappers.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import ru.kappers.model.leonmodels.MarketLeon;
import ru.kappers.model.leonmodels.OddsLeon;
import ru.kappers.model.leonmodels.RunnerLeon;
import java.util.List;
public interface RunnerLeonRepository extends JpaRepository<Ru... |
package br.univel.produto;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* ge... |
package com.Flonx.TestEquals;
/**
* @Auther:Flonx
* @Date:2021/1/17 - 01 - 17 - 9:36
* @Description: com.Flonx.TestEquals
* @Version: 1.0
*/
public class Cat {
}
|
public class GoldenSectionRatio {
public static void main(String[] args) {
float mindiff = 100;
float result = 0;
float breakpoint = 0.618f;
int answerFenzi = 0;//找到的分子
int answerFenmu = 0;//找到的分母
for (int fenzi = 1;fenzi<20;fenzi++){
for (int fenm... |
/*
* 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.itesm.services;
import com.itesm.classes.Login;
import com.itesm.classes.checkLogged;
import com.vaadin.event.ItemClickEve... |
package com.cricmania.models;
import java.util.List;
import java.util.regex.Pattern;
import play.modules.mongodb.jackson.MongoDB;
import net.vz.mongodb.jackson.JacksonDBCollection;
public class Team extends Modifiable {
private String name;
private List<PlayerMetaData> players;
private String sponsoredBy;
privat... |
package day09_scanner_practice;
import java.util.Scanner;
public class TemperatureConv {
public static void main(String [] args ){
Scanner input =new Scanner(System.in);
System.out.println("Change F to C ");
double faren = input.nextDouble();
System.out.println("Temperature in F i... |
//
// Este archivo ha sido generado por la arquitectura JavaTM para la implantación de la referencia de enlace (JAXB) XML v2.2.7
// Visite <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Todas las modificaciones realizadas en este archivo se perderán si se vuelve a compilar el esquema de... |
package com.hhz.springboot.service;
import com.hhz.springboot.bean.Student;
import java.util.List;
public interface StudentService {
List<Student> getAllStudent();
}
|
package com.xhs.property.exception;
import com.alibaba.fastjson.support.spring.FastJsonJsonView;
import com.xhs.property.pojo.ResultEntity;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.ModelAndView;
import sun.tools.tree.NullExpression;
import javax.servlet.h... |
package dao;
import dao.impl.RoleDaoImpl;
import dao.impl.UserDaoImpl;
import utilities.Dependencies;
import models.Role;
import models.User;
import org.junit.Test;
import testutils.BaseTest;
import static org.junit.Assert.*;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
publ... |
package com.yicheng.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.spring... |
package com.igitras.codegen.common.next;
import com.igitras.codegen.common.next.annotations.NotNull;
/**
* JavaResolveResult holds additional information that is obtained
* when Java references are being resolved.
* <p>
* Created by mason on 1/5/15.
*/
public interface JavaResolveResult extends ResolveResult {
... |
package kz.kbtu.auth.base;
import kz.kbtu.util.CustomHasher;
import java.io.Serializable;
import java.util.Objects;
public abstract class User extends Person implements Serializable {
private String login;
private String password;
private String phoneNumber;
private String email;
{
this.... |
package cn.zhoudbw.customizer;
import org.springframework.boot.web.server.ConfigurableWebServerFactory;
import org.springframework.boot.web.server.ErrorPage;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.ann... |
package com.example.androidtest;
import android.app.Activity;
import android.os.Bundle;
/**
* Created by linyun on 14-5-4.
*/
public class LauncherActivity extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
} |
package com.chris.projects.fx.ftp.fix;
import com.chris.projects.fx.ftp.core.OrderBookService;
import quickfix.MessageCracker;
import quickfix.SessionID;
import quickfix.fix44.NewOrderSingle;
public class FTPFixMessageReceiver extends MessageCracker {
private OrderBookService orderBookService;
public FTPFi... |
package com.tt.miniapp;
import com.tt.miniapp.util.ToolUtils;
import com.tt.miniapphost.AppBrandLogger;
import com.tt.miniapphost.AppbrandApplication;
import com.tt.miniapphost.entity.AppInfoEntity;
import com.tt.miniapphost.util.ProcessUtil;
import com.tt.option.q.d;
import java.util.Map;
import okhttp3.ac;
... |
package boardFinder.demo.service;
import boardFinder.demo.domain.Shape;
import boardFinder.demo.repository.ShapeRepository;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
*
* @author Eri... |
package twilight.bgfx;
/**
*
* @author tmccrary
*
*/
public class VertexDecl {
/** */
private long vertexDeclPtr;
/** */
private boolean buildActive;
/** */
private boolean valid;
private VertexDecl() {
valid = false;
buildActive = false;
}
/**
*
... |
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package micronaut.starter.kit;
import io.micronaut.context.ApplicationContext;
import org.dom4j.DocumentException;
public class App {
public static void main(String[] args) {
ApplicationContext ctx = ApplicationContext.run();
... |
package Vista;
/**
*
* @author Jorge Herrera - Sergio Ruiz
*/
public class AcercaDe extends javax.swing.JDialog {
public AcercaDe(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapse... |
package Flowers.Decorator;
import Flowers.Item;
/**
* Created by Yasya on 22.11.16.
*/
public class RibbonDecorator extends ItemDecorator {
public RibbonDecorator(Item i){
super(i);
}
public String getDescription() {
return "Bouquet is decorated with ribbon\n";// Total price:" + Double.... |
package com.tencent.mm.g.a;
public final class gr$a {
public String bPS;
}
|
/*
* 文 件 名: ApiConstant.java
* 版 权: Zskj Technologies Co., Ltd. Copyright YYYY-YYYY, All rights reserved
* 描 述: <描述>
* 修 改 人: hewei
* 修改时间: 2016年6月6日
* 跟踪单号: <跟踪单号>
* 修改单号: <修改单号>
* 修改内容: <修改内容>
*/
package com.nemo.api.services.constant;
import java.util.ResourceBundle;
/**
* ... |
package pro.anuj.challenge.motrics;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import pro.anuj.challenge.motrics.domain.Metric;
import pro.anuj.challenge.motrics.utils.StripedLockProvider;
import java.util.Map;
import java.util.UUID;
import java.ut... |
/*******************************************************************************
* Copyright (C) 2011 Peter Brewer.
*
* 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 th... |
package com.omnicuris;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages={"com.omnicuris"})
public class CartOrderRestApiApplication {
public static void main(String[] args) {
SpringApplication.run(CartOr... |
package com.involves.json;
import java.util.ArrayList;
import java.util.List;
public class JSONArray implements JSONable {
private String key;
private List<Object> values;
public JSONArray(String key) {
this.key = key;
this.values = new ArrayList<>();
}
public JSONArray(String key, List<Object> values) {
... |
package com.example.rikvanbelle.drinksafe;
import android.arch.persistence.room.Room;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.Ra... |
package br.com.casadocodigo.loja.infra;
import java.io.IOException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.model... |
package com.kh.efp.alarm.model.vo;
import java.sql.Date;
public class Alarm implements java.io.Serializable{
private String nType;
private Date alarm_Date;
private String bContent;
private String bName;
private String mName;
private int boardId;
private int nid;
private int ref_Bid;
public ... |
package ga.islandcrawl.other;
/**
* Created by Ga on 12/18/2015.
*/
public class Timer {
private int time;
private int max;
public Timer(int max){
set(max);
}
public Timer(int now, int max){
this(max);
time = now;
}
public void set(int max){
this.max = max;... |
package xin.altitude.lock.service;
import lombok.SneakyThrows;
import lombok.Synchronized;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.recipes.locks.InterProcessMutex;
import org.redisson.api.RLock;
import org.redisson.api.RedissonClient;
import org.springframework.beans.f... |
/*
* 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 writing, software
* distr... |
package facing;
/**
* @author admin
* @version 1.0.0
* @ClassName wanggeMinPath.java
* @Description
*
* 给定一个包含非负整数的 m x n 网格 grid ,请找出一条从左上角到右下角的路径,使得路径上的数字总和为最小。
*
* 说明:每次只能向下或者向右移动一步。
* 由于路径的方向只能是向下或向右,因此网格的第一行的每个元素只能从左上角元素开始向右移动到达,
* 网格的第一列的每个元素只能从左上角元素开始向下移动到达,此时的路径是唯一的,
* 因此每个元素对应的最小路径和即为对应的路径上的数字总和。
... |
package com.takshine.wxcrm.message.sugar;
import java.util.List;
/**
* 查询日程接口 从sugar响应回来的参数
* @author liulin
*
*/
public class UsersResp extends BaseCrm{
/**
* 调用sugar接口传递的参数
*/
private String count ;//数字
private List<UserAdd> users ;//任务列表
public String getCount() {
return count;
}
public void set... |
import java.util.Scanner;
class RemoveDuplicateFromArray {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
System.out.print("Enter the size of array : ");
int size = scan.nextInt();
int arr[] = new int[size];
System.out.println();
System.out.printl... |
package com.zhouyi.business.controller;
import com.zhouyi.business.core.common.ReturnCode;
import com.zhouyi.business.core.model.PageData;
import com.zhouyi.business.core.model.Response;
import com.zhouyi.business.dto.SysDataLogConditionsDto;
import com.zhouyi.business.core.model.SysLogData;
import com.zhouyi.business... |
package com.weekendproject.connectivly.controller;
import java.io.IOException;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import org.json.JSONException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;... |
package enthu_l;
//Which of the following statements are true if the above program is run with the command line :
//java Test closed
public class e_1173 {
public static void main(String[] args)
{if (args[0].equals("open"))
if (args[1].equals("someone"))
System.out.println("Hello!");
else System.out.println("... |
package com.ricettadem.model;
import java.util.Objects;
public class RichiestaLottiNre {
private String codiceRegione;
private String paramDimensioneLotto;
private String codiceFiscale;
public String getCodiceRegione() {
return codiceRegione;
}
public void setCodiceRegione(String co... |
package com.tuitaking.everyDay;
import com.tuitaking.common.MockUtil;
import com.tuitaking.point2offer.Robot_13;
import org.junit.Assert;
import org.junit.Test;
public class Robot_13T {
@Test
public void test(){
Robot_13 robot_13=new Robot_13();
// for(int i = 0 ;i<100;i++){
// int m... |
package za.co.edusys.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import ... |
/*
* Copyright (c) 2009-2011 by Jan Stender, Bjoern Kolbeck,
* Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
package org.xtreemfs.mrc.osdselection;
import java.net.InetAddress;
import java.util.Comparator;
import org.xtreemfs.common.uuids.ServiceUUID... |
package com.smxknife.algorithm.simple;
/**
* @author smxknife
* 2021/2/4
*/
public class _01_Int_bit_print {
public static void main(String[] args) {
print(1);
print(-1);
print(0);
print(Integer.MAX_VALUE);
print(Integer.MIN_VALUE);
print(-Integer.MIN_VALUE); // 最小的负数取反+1后就是它自己
print(Integer.MAX_VAL... |
package com.tencent.mm.plugin.appbrand.page;
import com.tencent.mm.plugin.appbrand.jsapi.an;
public enum aa {
APP_LAUNCH("appLaunch"),
NAVIGATE_TO(an.NAME),
NAVIGATE_BACK("navigateBack"),
REDIRECT_TO("redirectTo"),
RE_LAUNCH("reLaunch"),
AUTO_RE_LAUNCH("autoReLaunch"),
SWITCH_TAB("switchTa... |
import javafx.scene.Group;
import javafx.stage.Stage;
import java.util.ArrayList;
/**
* Deals with tasks at the 2-D level including
* placing pieces and figuring out if a connect four
* exists.
*/
public class Plane implements CONNECT_CONSTANTS{
private Piece[][] boardPlane;
private int height;
/**
... |
package com.yida.design.command.demo.command;
/**
*********************
* 增加需求的命令
*
* @author yangke
* @version 1.0
* @created 2018年5月12日 上午10:28:58
***********************
*/
public class AddRequirementCommand extends AbstractCommand {
@Override
public void execute() {
// 找到需求
super.re... |
package com.smxknife.java2.thread.forkjoin.demo07;
import java.util.concurrent.RecursiveTask;
/**
* @author smxknife
* 2020/5/29
*/
public class ForkSumTask extends RecursiveTask<Integer> {
private int begin;
private int end;
public ForkSumTask(int begin, int end) {
this.begin = begin;
this.end = end;
}
... |
package 线程交互.PC1;
public class Product_1 {
private int count = 0;
public synchronized void produce() {
try {
while (count != 0) {
this.wait();
}
count++;
System.out.println(Thread.currentThread().getName() + "生产,当前商品数:" + count);
... |
package com.rudecrab.springsecurity.model.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* @author RudeCrab
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = tru... |
package com.timmy.highUI.recyclerview.interactive;
import android.graphics.Canvas;
import android.graphics.Color;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.helper.ItemTouchHelper;
import com.timmy.library.util.Logger;
/**
* Created by admin on 2016/12/5.
*/
public class MyItem... |
package com.tamimattafi.mydebts.ui.fragments.drawer.base.debts;
import java.lang.System;
@kotlin.Metadata(mv = {1, 1, 16}, bv = {1, 0, 3}, k = 1, d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0018\u00002... |
package com.mindfultrader.webapp.controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework... |
package com.tencent.mm.protocal.c;
import f.a.a.c.a;
import java.util.LinkedList;
public final class cdc extends bhd {
public int hcE;
public String rHk;
public int rjC;
public String rlo;
public int sdX;
public int syH;
public int syI = 2;
public double syJ;
public double syK;
... |
package com.tencent.map.swlocation.api;
import android.content.Context;
import android.os.Handler;
import android.text.TextUtils;
import com.d.a.a.q;
import com.d.a.a.t;
public class SwEngine {
public static void startContinousLocationUpdate(Handler handler, int i, int i2, LocationUpdateListener locationUpdateLis... |
package datatype;
public class DataTypeDemo5 {
public static void main(String[] args) {
// 기본 자료형의 형변환
// 자동 형변환
// 컴파일러가 알아서 타입을 변환한다.
// 크기가 작은 타입의 값을 크기가 큰 타입으로 변환시키는 것
// 정밀도가 낮은 타입의 값을 정밀도가 높은 타입으로 변환시키는 것
// 값의 손실이 발생하지 않는 타입 변환이다.
// byte -> short -> char -> int -> long -> float -> d... |
/**
* OpenKM, Open Document Management System (http://www.openkm.com)
* Copyright (c) 2006-2015 Paco Avila & Josep Llort
*
* No bytes were intentionally harmed during the development of this application.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU G... |
package com.example.amitkumarroshan.amaderaninos;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.google... |
package com.tencent.mm.plugin.wear.model;
import com.tencent.mm.plugin.wear.model.e.r;
import com.tencent.mm.plugin.wear.model.f.d;
class b$2 extends d {
final /* synthetic */ b pIZ;
b$2(b bVar) {
this.pIZ = bVar;
}
public final void execute() {
a.bSl();
r.b(20008, null, fals... |
package com.jeju.trip.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.jeju.trip.vo.Criteria;
import com.jeju.trip.vo.ReplyVO;
public interface ReplyMapper {
int insert(ReplyVO vo);
ReplyVO read(Long rseq);
int delete(Long rseq);
int update(ReplyVO vo);
List<ReplyV... |
package corgi.hub.core.mqtt.bean;
import corgi.hub.core.mqtt.ServerChannel;
/**
* Created by Terry LIANG on 2016/12/23.
*/
public class MqttSession implements HubSession {
private String clientId;
private ServerChannel channel;
private boolean cleanSession;
public MqttSession(String clientId, Serve... |
/*
* 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 dotrunner;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JFrame;
/**
*
* @author jelly
*/
public cla... |
package polarpelican.units;
/**
* A <code>Stance</code> is a team's relationship with the player team.
* @author cabbagebot
*/
public enum Stance {
HOSTILE, NEUTRAL, FRIENDLY, PLAYERTEAM
}
|
package br.com.maikel.poc.bold.facebold.entity;
import java.util.Date;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import jav... |
/*
* $HeadURL: $
* $Id: $
* Copyright (c) 2016 by Riversoft System, all rights reserved.
*/
package com.riversoft.nami;
import java.io.File;
import java.net.URL;
import com.riversoft.vote.VoteTask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* NAMI平台类<br>
* 保存NAMI对应的各类路径
*
... |
package Composition.Challange;
/**
* @Author pankaj
* @create 4/26/21 3:38 PM
*/
public class Wall {
private String direction;
public Wall(String direction) {
this.direction = direction;
}
public String getDirection() {
return direction;
}
}
|
package com.example.demo;
import javax.persistence.*;
@Entity
// SE EU QUISER MUDAR O NOME DA TABELA SEM MUDAR O NOME DA CLASSE-@Table(name="Produtos")
public class Produto
{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
@Column
private String nome;
}
|
package com.tencent.mm.ui;
class LauncherUI$5 implements Runnable {
final /* synthetic */ LauncherUI tkA;
LauncherUI$5(LauncherUI launcherUI) {
this.tkA = launcherUI;
}
public final void run() {
this.tkA.tkn.tjF.cqC();
}
}
|
package com.example.teamboolean.apprentidash.Controllers;
import com.amazonaws.regions.Regions;
import com.amazonaws.services.simpleemail.AmazonSimpleEmailService;
import com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClientBuilder;
import com.amazonaws.services.simpleemail.model.*;
import com.example.tea... |
/*
* Copyright 2008 University of California at Berkeley.
*
* 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... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package base_dato;
import java.awt.Image;
import java.io.BufferedWriter;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.Fi... |
package com.example.atos.myapplication.controller;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.widget.ImageView;
import com.example.atos.myapplication.R;
/**
* Created by Atos on 06/09/17.
*/
public class RoundedImag... |
package com.zhcw.analysisdata.utils;
import android.util.Base64;
/**
* Created by YangChun .
* on 2017/3/11.
*/
public class Base64Util {
public static byte[] encode(byte[] s) {
if (s == null)
return null;
return Base64.encode(s, Base64.DEFAULT);
}
public static byte[] dec... |
package com.beiyelin.account.bean;
import lombok.Data;
/**
* @Author: xinsh
* @Description: 前端绑定具体账户到第三方账户的token上
* @Date: Created in 8:38 2018/8/19.
*/
@Data
public class OAuthRegister {
private String code;//第一次第三方平台返回的code
private String username;
private String email;
private String phone;
... |
package dao;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import entity.*;
public class Dao {
private static EntityManagerFactory emf = Persistence.createEntityManagerFactory("DevPU");
// CREATE DEVICE
public void saveTransactions... |
package enthu_l;
public class e_1000 {
static String s = "";
public static void m0(int a, int b) {
s += a;
m2();
m1(b);
}
public static void m1(int i) {
s += i;
}
public static void m2() {
throw new NullPointerException("aa");
}
public static void m() {
m0(1, 2);
m1(3);
}
public static voi... |
package org.springframework.sync;
import lombok.RequiredArgsConstructor;
import org.springframework.shadowstore.ShadowStore;
import org.springframework.shadowstore.ShadowStoreFactory;
import org.springframework.sync.diffsync.DiffSync;
import org.springframework.sync.diffsync.Equivalency;
import org.springframework.syn... |
package com.StringAssignment_10_Sep_2021;
public class Split {
public static void main(String args[]) {
String string = "My,name,is,Dheeru";
String[] arrayOfString = string.split(",");
for (String array : arrayOfString)
System.out.println(array);
}
} |
package com.uwetrottmann.trakt5.entities;
public abstract class GenericProgress {
public SyncEpisode episode;
public SyncShow show;
public SyncMovie movie;
public Double progress;
}
|
package com.example.ComicToon.Models.ModelRepositories;
import java.util.List;
import com.example.ComicToon.Models.ComicModel;
import org.springframework.data.mongodb.repository.MongoRepository;
import java.util.ArrayList;
public interface ComicRepository extends MongoRepository<ComicModel, String>{
public Com... |
/*
* Copyright © 2019 The GWT Project 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
public class Number21 {
public static void main(String[]args){
Long startTime = System.nanoTime();
int sum = 0;
int n = 160000;
for(int i = 1; i <- n; i++)
for(int j = 1; j <= i * i; j++)
if(j % i == 0)
for(int k = 0; k < j; k++)
sum++;
Long runTime = System.nanoTime() - startTime;
Syste... |
package abstractfactory.design.pattern.edureka.assignment;
public class IgnorableError extends Error {
@Override
void setErrorType(String errType) {
errorType = errType;
}
}
|
package Chapter3;
//문자형 변수 ch가 영문자(대문자 OR 소문자)이거나 숫자일때만 변수 b의 값이 true가 되도록 하는 코드
public class Exercise3_9 {
public static void main(String args[]) {
char ch = 'z';
boolean b = ('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z') || ('0' <= ch && ch <= '9');
System.out.println(b);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.