text stringlengths 10 2.72M |
|---|
package com.mxf.course.websocket;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;
/**
* Create By B... |
/*
* [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 LinkedList;
public class Main {
public static void main(String[] args) {
MyLinkedList list = new MyLinkedList();
list.add(1);
list.add(2);
list.add(3);
list.add(4);
list.add(5);
System.out.println(list);
list.delete();
System.out.println(list);
System.out.println(list.get(0));
list.s... |
package com.tencent.mm.plugin.freewifi;
public class k$a {
public String bIQ;
public String bIR;
public int bVU;
public String bssid;
public String hKX;
private int jia;
public String jib;
public String jic;
public String jid;
public int jie;
public long jif;
public Stri... |
package org.dota.steam.service.http.json;
import lombok.Value;
@Value
public class DotaHeroJson {
private final Integer id;
private final String name;
private final String localizedName;
}
|
package com.mygdx.game.systems;
import com.badlogic.gdx.Gdx;
import com.mygdx.game.components.ImageComponent;
import com.mygdx.game.components.MakeSpriteSmallerComponent;
import com.scs.basicecs.AbstractEntity;
import com.scs.basicecs.AbstractSystem;
import com.scs.basicecs.BasicECS;
public class MakeSpriteSmallerSys... |
package com.takshine.wxcrm.service.impl;
import java.util.List;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereot... |
package no.hiof.tmwasbra;
public class Transportfly extends Fly{
private double maksLast, bruktLast;
public Transportfly() {
maksLast = 1000;
}
public Transportfly(String modell, int passansjerer, int seter, double maksLast) {
super(modell, passansjerer, seter);
this.maksLast ... |
package com.mycompany.app;
/**
* Created by supfe_000 on 08.08.2015.
*/
public class ShippingRequestValueContainerAquanika extends ShippingRequestValueContainer {
private String file_path = "C:\\testReq\\aqua.xls";
private String name; // B
private String dateLoad; ... |
package com.mindvalley.asyncloader.callback;
import android.graphics.Bitmap;
public interface ImageRequestListener {
void onLoadFailed(String errorMessage);
void onResourceReady(Bitmap bitmap);
}
|
package com.excilys.formation.cdb.persistence.hibernate;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TransactionRequiredException;
import javax.transaction.Transactional;
import org.slf4j.Logger;
import org.springframework.stere... |
package com.example.elon.sockettest;
import android.app.AlertDialog;
import android.content.Context;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.view.Window;
import android.view.animation.Animation;
import android.view.animation.LinearInterpolator;
import android.... |
package com.ibm.jikesbt;
/*
* Licensed Material - Property of IBM
* (C) Copyright IBM Corp. 1998, 2003
* All rights reserved
*/
/**
* Instances of this class are stored in each {BT_Field} so that {BT_Field#accessors}
* will keep a list of each location where the field is accessed from. The
* vecto... |
package com.rs.game.player.content.citadel;
import com.rs.game.player.content.PlayerLook;
import com.rs.game.player.dialogues.Dialogue;
@SuppressWarnings("unused")
public class Enter extends Dialogue {
@Override
public void start() {
sendDialogue(
"You have the option to join ones citadel, or create your",
... |
import api.*;
import org.junit.jupiter.api.Test;;
import java.util.*;
import static org.junit.jupiter.api.Assertions.*;
public class DW_GraphTest
{
@Test
void nodeSize() {
directed_weighted_graph g = new DW_Graph();
for(int i=1;i<6;i++)
{
Node_D n=new Node_D();
... |
package com.magicalcoder.youyaboot.service.goodscategory.service.impl;
import com.magicalcoder.youyaboot.service.goodscategory.mapper.GoodsCategoryMapper;
import com.magicalcoder.youyaboot.service.goodscategory.service.GoodsCategoryService;
import com.magicalcoder.youyaboot.model.GoodsCategory;
import com.magicalcoder... |
/*
* 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 cl.duoc.ptf8502.ejb.exception;
/**
*
* @author Mauri
*/
public class ValidationException extends Exception {
... |
package onejar_guice;
import java.util.logging.Handler;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.simontuffs.onejar.test.Testable;
public class Main extends Testable {
protected static Throwable thrown;
... |
package services;
import models.LuisResponse;
import models.ResponseToClient;
import play.libs.Json;
import play.libs.ws.WSClient;
import play.mvc.Result;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import utils.ConfigUtilities;
import javax.inject.Inject;
import java.util.concurrent.Comple... |
/*
* 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 snakesandladders.Squares;
import snakesandladders.main.Board;
import snakesandladders.main.Player;
import snakesandla... |
package com.example.server.thread;
import com.example.model.entity.RandomCode;
import com.example.model.mapper.RandomCodeMapper;
import com.example.server.utils.RandomUtil;
/**
* 随机数生成唯一的订单id测试
*
**/
public class CodeGenerateThread implements Runnable {
private RandomCodeMapper randomCodeMapper;
public C... |
package com.gracecode.android.btgps.ui.fragment;
import android.bluetooth.BluetoothDevice;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
... |
package com.smxknife.java2.collections.deque;
import java.util.ArrayDeque;
/**
* @author smxknife
* 2020/7/20
*/
public class ArrayDequeDemo2 {
public static void main(String[] args) {
ArrayDeque<String> deque = new ArrayDeque<>();
deque.addFirst("nihao");
//deque.addFirst("hello");
// String pop = deque.... |
/*
* Copyright 2016 Leonardo Pirro
*
* 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 ... |
package cn.e3mall.item.listeners;
import cn.e3mall.common.exception.ItemDescNotFoundException;
import cn.e3mall.common.util.E3Result;
import cn.e3mall.item.vo.Item;
import cn.e3mall.pojo.TbItem;
import cn.e3mall.service.ItemDescService;
import cn.e3mall.service.ItemService;
import freemarker.template.Configuration;
im... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
package com.tencent.mm.plugin.qqmail.ui;
import com.tencent.mm.R;
import com.tencent.mm.plugin.qqmail.ui.ComposeUI.11;
import com.tencent.mm.plugin.qqmail.ui.b.b;
class ComposeUI$11$2 implements b {
final /* synthetic */ 11 mfx;
ComposeUI$11$2(11 11) {
this.mfx = 11;
}
public final void boM(... |
package com.yoeki.kalpnay.hrporatal.Request;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class SaveTraningRequest {
@SerializedName("UserId")
@Expose
private String UserId;
@SerializedName("Date")
@Expose
private String Date;
@Seria... |
package com.example.lib.data;
import android.content.ContentValues;
import android.content.Context;
import android.net.Uri;
import org.json.JSONObject;
//
public class SPDataOperation extends DataOperation{
public SPDataOperation(Context context) {
super(context);
}
@Override
public int inse... |
package pl.edu.amu.datasupplier.dto;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import pl.edu.amu.datasupplier.dto.format.ObjectIdJsonSerializer;
import pl.edu.amu.datasupplier.model.Status;
import java.util.Hash... |
package Util.UDP;
import Http.Server;
abstract public class Listenable {
protected Server serverInstance;
public Listenable(Server server)
{
this.serverInstance = server;
}
protected int getUDPPort()
{
switch (this.serverInstance.getProcessNumber())
{
cas... |
package sarong.discouraged;
import sarong.StatefulRandomness;
import sarong.util.CrossHash;
import sarong.util.StringKit;
import java.io.Serializable;
/**
* A Non-Linear Feedback Shift Register that may be used like a StatefulRandomness but is not truly random. This is
* based on the {@link LFSR} class, and is les... |
package com.momori.wepic.model;
/**
* Created by Hyeon on 2015-05-01.
*/
public class AlbumUserModel extends UserModel{
private String user_state;
public String getUser_state() {
return user_state;
}
public void setUser_state(String user_state) {
this.user_state = user_state;
}... |
package com.airplanesoft.dms.service.impl;
import com.airplanesoft.dms.dto.DeviceDto;
import com.airplanesoft.dms.dto.UserDto;
import com.airplanesoft.dms.service.UserService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowi... |
package cn.imooc.dao.mysql;
import cn.imooc.entity.mysql.MysqlBlog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
/**
*
*/
//JpaRepository<MysqlBlog,Integer> 这里2个泛型的说明,第一个不用说,第二个是指主键的类型
public interface MysqlBlogDao extend... |
package com.cognizant.ormlearnpayroll;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import javax.transaction.Transactional;
import org.slf4... |
package com.runner;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(features="C:\\Users\\Greens-12\\eclipse-workspace\\ragu\\Automation\\src\\test\\resources\\LoginPage.feature",glue={"com.step"})
public class RunnerC... |
package control;
import java.io.IOException;
import java.sql.SQLException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import model.BoardService;
import model.ReplyVO;
public class ReplyupdateformController implements Controller{
@Override
public Mod... |
package com.auction.entity.enums;
public enum UserStatus {
USER("USER"),
ADMIN("ADMIN");
String userStatus;
UserStatus(String userStatus){
this.userStatus = userStatus;
}
public String getUserStatus() {
return userStatus;
}
}
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
import java.util.Scanner;
public class Add002 {
public static void main(String[] args) {
Scanner scan2 = new Scanner(System.in);
System.out.println("첫번째 숫자를 입력해 주세요");
int 처음값 = scan2.nextInt();
System.out.println("두번째 숫자를 입력해 주세요");
int 두번값 = scan2.nextInt();
int sumNumber = 처음값 + 두번값;
System.out.pr... |
package com.poly.duc.DucQuanLyQuanAO.controller;
import com.poly.duc.DucQuanLyQuanAO.model.Product;
import com.poly.duc.DucQuanLyQuanAO.sevice.ProductSevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org... |
package com.bulldozer.domain.bulldozer;
import com.bulldozer.domain.site.TraversableSite;
public class BulldozerFactory {
public static IBulldozerController createBulldozer(TraversableSite site) {
return new BulldozerController(new Bulldozer(), site);
}
}
|
package com.goldgov.gtiles.core.security.impl;
import org.apache.commons.codec.digest.DigestUtils;
import com.goldgov.gtiles.core.security.ITextEncoder;
public class PasswordEncoder implements ITextEncoder{
@Override
public String encode(String text) {
return DigestUtils.md5Hex(text);
}
}
|
package gui;
import java.awt.Color;
import java.awt.Font;
import javax.swing.JLabel;
/**
*
* CWLabel - Rewrite JLabel to make it beautiful
* @author Group 15
* @version v1.0
* 2019/12/11 16:08:58
*
* 2019 Group 15. All rights reserved.
*/
public class CWLabel extends JLabel{
private static final long seri... |
/***********************************************************************
* Module: User.java
* Author: vule
* Purpose: Defines the Class User
***********************************************************************/
package com.hesoyam.pharmacy.user.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
impor... |
import java.io.InputStreamReader;
import java.util.ArrayList;
import database.AprioriDataset;
import frequentPattern.Apriori;
import frequentPattern.FrequentItemSet;
public class DataMiningMain {
public static void main(String[] args) {
System.out.println("**************************************************");
... |
package de.jmda.app.uml.diagram.type;
import java.util.Optional;
import javax.enterprise.inject.spi.CDI;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import de.jmda.app.uml.diagram.type.TypeDiagram;
import de.jmda.app.uml.diagram.type.TypeDiagramController;
import d... |
/**
* A cat as a Pet.
*
* @author Ben Godfrey
* @version 20 MAR 2018
*/
public class Cat extends Pet {
/**
* Constructs a new Cat, given its name.
*
* @param name The cat's name.
*/
public Cat(String name) {
super(name);
}
/**
* Makes the cat's sound.
*
... |
package org.apache.commons.net.io;
import java.io.IOException;
public class CopyStreamException extends IOException {
private static final long serialVersionUID = -2602899129433221532L;
private final long totalBytesTransferred;
public CopyStreamException(String message, long bytesTransferred, IOException ... |
package com.fb.graph;
import java.util.HashSet;
public class FindCycle<T> {
/**
* Finding cycle in an Directed Graph. Like a topologocal sort
* Run on all nodes and do dfs
*/
private DirectedGraph<T> graph;
private HashSet<T> visited = new HashSet<T>();
private HashSet<T> completed = new HashSet<T>();
p... |
package com.beratkara;
import java.util.Scanner;
public class UserInput {
/**
* Fonksiyonların sonuçlarını ekrana yazdırmak için kullandığım class
*/
public static Print print = new Print();
/**
* Kullanıcıdan yazıyı alıp gerekli işlemleri yaptırdığım fonksiyon
*/
public void uni... |
package modelo;
public interface Combo {
void detallarDescripcion();
double conocerMontoTotal();
}
|
package com.SkyBlue.hr.attendance.applicationService;
import java.util.List;
import com.SkyBlue.hr.attendance.to.ConditionBean;
import com.SkyBlue.hr.attendance.to.DailyAttdBean;
public interface DailyAttdAppService {
public List<DailyAttdBean> findDailyAttdList(String empCode,String fromDate,String toDate);
pub... |
package com.tencent.mm.plugin.appbrand.media.record;
import com.tencent.mm.e.b.b.a;
import com.tencent.mm.sdk.platformtools.x;
class a$2 implements a {
a$2() {
}
public final void onError() {
x.e("MicroMsg.Record.AudioRecorder", "onError");
a.lg(-1);
}
}
|
package com.catalyst.zookeeper.daos.impl;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.Transactional;
import org.springframework.stereotype.Repository;
import com.catalyst.zookeeper.daos.FoodDAO;
import com.catalyst.zookeeper.en... |
package com.takshine.wxcrm.model;
import com.takshine.wxcrm.base.model.BaseModel;
/**
* 组织
* @author liulin
*
*/
public class OrganizationModel extends BaseModel{
private String name = null;//企业名称
private String industry = null;//企业所属行业
private String website = null;//企业网址
private String crmurl = null;//企业后... |
package com.perfectorial.dao;
import com.perfectorial.entity.Product;
import org.springframework.stereotype.Service;
/**
* @author Reza Safarpour (rsafarpour1991@gmail.com) on 9/25/2015
*/
@Service
public class ProductDao extends AbstractGenericDao<Product> {
}
|
package es.utils.mapper.annotation;
import es.utils.mapper.converter.AbstractConverter;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
... |
package com.rs.game.player.content.commands;
import com.rs.game.player.content.TicketSystem;
import com.rs.game.player.controlers.FightKiln;
import com.rs.Settings;
import com.rs.cache.loaders.ItemDefinitions;
import com.rs.cache.loaders.NPCDefinitions;
import com.rs.game.ForceTalk;
import com.rs.game.World;
import c... |
package gdut.ff.sort;
/**
* @Author bluesnail95
* @Date 2020/10/11 20:51
* @Description
*/
public class PrintSort {
public static void print(int[] numbers) {
for (int i = 0; i < numbers.length; i++) {
System.out.print(numbers[i] + " ");
}
System.out.println();
}
}
|
package exercicio_227;
import java.util.Scanner;
/**
*
* @author user
*/
public class Exercicio_227 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner teclado = new Scanner(System.in);
String palavra;
System.out.println("Imprim... |
package com.canby.command.commands;
import com.canby.command.Command;
/**
* A deliberate no operation command, to avoid {@link java.lang.NullPointerException
* }
* @author acanby
*/
public final class NoopCommand implements Command {
@Override
public void execute() {
// do nothing, intentionally
... |
package com.cnk.travelogix.contract.provisioning.data;
import java.util.ArrayList;
import java.util.List;
import javax.xml.datatype.XMLGregorianCalendar;
public class ChargingContractItemRevision
{
protected String chargePlanClassId;
protected String refillPlanClassId;
protected String id;
protected String e... |
package com.cg.javafullstack.object;
public class TestC {
public static void main(String[] args) {
Marker m=new Marker();
m.cost=10;
m.name="Camlin";
Marker a=new Marker();
a.cost=10;
a.name="Camlin";
System.out.println(a.equals(m));
}
}
|
package model;
import db.DBUtil;
import model.beans.Room;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
/**
* Created by milos on 31-May-16.
*/
public class ModelReservation {
private String dateFrom;
private ... |
package com.jidouauto.mvvm.constants;
/**
* @author leosun
* Created by Leosun on 2019/1/8 16:14
*/
public class DbConstants {
public static final String SEARCH_DB_NAME = "search.db";
}
|
package com.forex.external.util;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.forex.external.domain.CurrencyRates;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.... |
package com.slort.model;
import java.util.HashSet;
import java.util.Set;
/**
* AbstractCalculoubicacion generated by MyEclipse Persistence Tools
*/
public abstract class AbstractCalculoubicacion implements java.io.Serializable {
// Fields
private Integer idCalculoDeUbicacion;
private Integer codUnidad;
priva... |
package spring.model.memo;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.... |
package collectionpackage;
import java.util.HashMap;
public class MapClass {
public static void main(String[] args) {
// TODO Auto-generated method stub
HashMap h = new HashMap();
h.put(1, 20);
h.put(4, 78);
h.put(3, 20);
h.put(2,45);
System.out.println(h);
System.out.println("For Key value 4- "+h.g... |
package pro.eddiecache.kits.paxos.messages;
import java.io.Serializable;
import pro.eddiecache.kits.paxos.comm.Member;
/**
* @author eddie
* Accept由当选的leader发出,要求成员接受消息
*/
public class Accept implements SpecialMessage
{
private static final long serialVersionUID = 1L;
public long viewNo;
public long seqNo;
pu... |
package com.github.w4o.sa.service.impl;
import com.github.w4o.sa.domain.Admin;
import com.github.w4o.sa.dto.AdminReadResult;
import com.github.w4o.sa.dto.CreateAdminParam;
import com.github.w4o.sa.dto.UpdateAdminParam;
import com.github.w4o.sa.repository.AdminRepository;
import com.github.w4o.sa.service.AdminService;
... |
package com.xutao.insert.fields;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
/**
* Customer 每分钟的单例类
* @author xutao
*
*/
public class CustomerRTSingleton {
private static CustomerRTSingleton instance = null;
private static Queue<String> customerRTQueue = new ConcurrentLinkedQueue<... |
package com.chensuworks.contentproviderdojo;
import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
public class MainActivity extends ListActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Stri... |
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class Jiemian implements ActionListener
{
private JFrame frame;
private JPanel pan... |
package com.latinnet.model;
// default package
// Generated 18/05/2015 17:51:39 by Hibernate Tools 3.4.0.CR1
/**
* Comentario generated by hbm2java
*/
public class Comentario implements java.io.Serializable {
private int id;
private String contenido;
private Estados estado;
private Post post;
pr... |
package com.locadoraveiculosweb.modelo;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Entity
@NamedQueries({
@NamedQuery( name = "Acessorio.findAll",
query = "select a from Acessorio a "... |
package com.hp.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "provider")
public class Provider {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
priva... |
package Page;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.CacheLookup;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import Utility.BasePage;
import Utility.DriverFactory;
public class LoginPage extends BasePage{
public Log... |
/*
* 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.maestria.programacioni_2021_01.tareaclase5;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt... |
package nyc.c4q.hakeemsackes_bramble.sensormanager;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.Senso... |
package Common;
/**
* @File : IdGenerator.java
* @Author(s) : Michael Brouchoud & Thomas Lechaire
* @Date : 17.10.2018
*
* @Goal : Use to generate id for packets
*
* @Comment(s) : -
*
* @See : IMessageProcessor
*/
public class IdGenerator {
private byte generatedClientId =... |
package com.study.security.demospringsecurityform.config;
import com.study.security.demospringsecurityform.account.AccountService;
import org.springframework.boot.autoconfigure.security.servlet.PathRequest;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org... |
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner lukija = new Scanner(System.in);
// implement your program here
// do not put all to one method/class but rather design a proper structure to your program
// 42... |
import java.util.Scanner;
public class Jd01 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while (in.hasNextInt()) {//注意while处理多个case
int n = in.nextInt();
if (n < 1 || n > 100000) {
return;
}
int sum = 0;
for(... |
package club.eridani.cursa.gui;
import club.eridani.cursa.client.FontManager;
import club.eridani.cursa.gui.font.CFontRenderer;
import net.minecraft.client.Minecraft;
import java.awt.*;
/**
* Created by B_312 on 01/10/21
*/
public abstract class Component {
public CFontRenderer font = FontManager.fontRenderer... |
package io.s3soft.proxyapp.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.w... |
package com.stryksta.swtorcentral.util.database;
import java.util.ArrayList;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.readystatesoftware.sqliteasset.SQLiteAssetHelper;
import com.stryksta.swtorcentral.models.DatacronItem;
pu... |
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
@TeleOp(name="FlatStanleyKidsCode", group="Protobot")
public class FlatStanleyKidsCode extends OpMode {
// Stat... |
package ga.islandcrawl.object;
import ga.islandcrawl.draw.Oval;
import ga.islandcrawl.draw.Renderer;
import ga.islandcrawl.form.Animation.Foam;
import ga.islandcrawl.map.Map;
import ga.islandcrawl.state.Animation;
/**
* Created by Ga on 2/14/2016.
*/
public class Wave extends Projectile {
protected Foam effectF... |
package edu.tuan1;
public class BaiTap1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int i=0;
for(i=4; i<100; i++) {
if(i>=4 && kTraSoNt(i)==0) {
System.out.print(" " + i);
}
}System.out.println(" Truong Quoc Viet 20198341");
}
public static int... |
/*
* 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 net.kmycode.javaspeechserver.audio;
import com.google.protobuf.ByteString;
import javax.sound.sampled.AudioFormat;
import java... |
package ga.islandcrawl.draw;
import android.opengl.GLES20;
/**
* Created by Ga on 7/9/2015.
*/
public class Light extends Shape {
public Light(float width, float height, float[] color, int shader){
this.color = color;
data = new float[]{
-width/2f, -height/2f, 0.0f,
... |
package com.kingaspx.contatoswhatsapp.Model;
import java.util.Comparator;
public class ContatoComparator implements Comparator<Contato> {
public int compare(Contato o1, Contato o2) {
return o1.getName().compareTo(o2.getName());
}
}
|
package com.xunfang.util;
import com.xunfang.pojo.TreeNode;
import java.util.ArrayList;
import java.util.List;
public class TreeBuild {
public static List<TreeNode> buildtree(List<TreeNode> nodes,int id){
List<TreeNode> treeNodeList = new ArrayList<TreeNode>();
for (TreeNode treeNode:nodes
... |
import java.awt.*;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.EnumSet;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import java.util.stream.Collectors;
public class... |
package com.e6soft.api.bpm.dto;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* 流程流转中的过程数据
* @author 陈福忠
*
*/
public class BpmRunInfo implements Serializable{
private static final long serialVersionUID = 1L;
private String workflowId;
private String requestId;
pr... |
package com.baizhi.entity;
public class Itemdetail {
private Integer item_id;
private Double item_price;
private Integer item_count;
private Book book;
private Integer order_id;
public Integer getItem_id() {
return item_id;
}
public Book getBook() {
return book;
}
public void setBook(Book book) {
this.... |
package com.tencent.mm.plugin.luckymoney.b;
public abstract class ab extends q {
public String aBL() {
return "/cgi-bin/mmpay-bin/hongbao";
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.