text stringlengths 10 2.72M |
|---|
package geometry;
// @author Raphaël
public class StraightCenteredEllipse extends Shape2D
{
protected double halfWidth, squaredHalfWidth, halfHeight, squaredHalfHeight;
public StraightCenteredEllipse(double halfWidth, double halfHeight)
{
this.halfWidth = halfWidth;
squaredHalfWidth ... |
package hu.mentlerd.hybrid;
import java.util.Vector;
public class Coroutine {
public static final int INITIAL_STACK_SIZE = 32;
public static final int INITIAL_FRAME_SIZE = 10;
public static final int MAX_STACK_SIZE = 1024;
public static final int MAX_FRAME_SIZE = 100;
public static void yield( Cal... |
import org.joda.time.*;
import java.util.*;
/**
* Created by Ali on 5/18/2017 AD.
*/
public class Main {
// public static void main(String[] args) {
// Scanner sc = new Scanner(System.in);
// String input;
// while (true){
// System.out.println("Hi, please enter your student num... |
package com.smyc.kaftanis.lookingfortable;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
import java... |
/*
* Copyright © 2018 www.noark.xyz All Rights Reserved.
*
* 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 !
* 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件:
*
* http://www.noark.xyz/LICENSE
*
* 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播;
* 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本;
* 3.无论你对源代码做出任何修改和改进,版权都归Noark... |
/*
* 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 poo.consultorio.ui;
import java.text.SimpleDateFormat;
import javax.swing.table.AbstractTableModel;
import poo.consultorio.Age... |
package Object;
import Object.Enum.GiornoEnum;
import java.util.ArrayList;
/**
* La classe GiornoAlimProgObject mappa la tabella "giorno_alim_prog" del database
*/
public class GiornoAlimProgObject extends GiornoAlimObject {
private int id_giorno;
protected int fabbisogno;
public GiornoAlimProgObject... |
package ru.job4j.array;
/**
* classic brute force search.
* @author Aliaksandr Kuzura (vorota-24@bk.ru)
* @version $Id$
* @since 0.1
*/
public class FindLoop {
/**
* Find element of array.
* @param data array
* @param el search value
* @return array's index
*/
public int indexO... |
package web.id.azammukhtar.subico.Adapter;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Filter;
import android.widget.Filterable;
import android.widget.ImageView;
import android.widget.TextVie... |
package cn.jaychang.scstudy.scmsgreceiver.mq;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Source;
/**
*
* <p>
* 用于接受订单创建成功的消息 注意注意!这里用的收 Source哦
* </p>
*
* @author zhangjie... |
package com.infoworks.lab.jjwt;
import com.it.soul.lab.sql.entity.Entity;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class JWTPayload extends Entity {
private long iat;
private long nbf;
private long exp;
private String iss;
private String sub;
private Map<Str... |
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet; /*here HttpServlet is a class*/
import javax.servlet.http.HttpServletRequest; /*HttpServletRequest is an interface*/
import javax.servlet.http.HttpServletRespons... |
package DataStructures.arrays;
import java.util.ArrayList;
import java.util.Arrays;
/**
You're given a 2D board which contains an m x n matrix of chars - char[][] board.
Write a method - printPaths that prints all possible paths from the top left cell to the bottom right cell.
Your method should return an ArrayLis... |
/*
* @(#)PlatFormType.java 1.0 2014-1-9
*
* Copyright (c) 2007-2014 Shanghai Handpay IT, Co., Ltd.
* 16/F, 889 YanAn Road. W., Shanghai, China
* All rights reserved.
*
* This software is the confidential and proprietary information of
* Shanghai Handpay IT Co., Ltd. ("Confidential Information").
* Yo... |
package com.lt.demo.controller;
import com.lt.demo.domen.entity.Device;
import com.lt.demo.domen.entity.Project;
import com.lt.demo.service.DeviceService;
import com.lt.demo.service.ProjectService;
import lombok.extern.slf4j.Slf4j;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.springf... |
package chapter5_heritance.objectAnalyzer_5_14;
import java.util.ArrayList;
// this program uses reflection to spy on objects
public class ObjectAnalyzerTest{
public static void main() {
ArrayList<Integer> squares = new ArrayList<>();
for (int i = 1; i <= 5; i++)
squares.add(i * i);
System.out.println(new... |
package com.pulsarsoft.popspot.Model;
/**
* @author Aurimas Degutis.
*/
public class Status {
private boolean hasProcessed;
public boolean getHasProcessed() {
return hasProcessed;
}
public void setHasProcessed(boolean hasProcessed) {
this.hasProcessed = hasProcessed;
}
}
|
package view;
import java.awt.Dimension;
import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.JTextField;
public class GroundSensorsPanel extends JPanel {
private static final long serialVersionUID = 1L;
private JTextField sensor1, sensor2, sensor3;
public GroundSensorsPanel() {
//s... |
package org.base.algorithm.sort;
/**
* Created by wangwr on 2016/6/2.
*/
public class SelectionSort extends Sort{
public static void main(String[] args){
new SelectionSort().run();
}
public int[] sort(int[] args){
for(int i=0;i<args.length;i++){
int minIndex = i;//依次取出元素和后面的... |
package person.zhao.thread;
import java.util.concurrent.Callable;
import java.util.concurrent.CompletionService;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorCompletionService;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* 使用Callable ... |
package com.smartmadsoft.wear.pdfreader;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import com.google.android... |
package com.crm.acute.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import com.crm.acute.generics.WebDriverUtils;
public class OrganizationPage
{
@FindBy(xpath = "//img[@title... |
package DatabaseAccess.View;
import DatabaseAccess.Domain.Client.ClientController;
import DatabaseAccess.Domain.Client.ClientView;
import DatabaseAccess.Domain.Expense.ExpenseController;
import DatabaseAccess.Domain.Expense.ExpenseView;
import DatabaseAccess.Domain.Package.PackageController;
import DatabaseAccess.Dom... |
/*
* Sample module ingest job settings panel in the public domain.
* Feel free to use this as a template for your module ingest job settings
* panels.
*
* Contact: Brian Carrier [carrier <at> sleuthkit [dot] org]
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is ... |
package doktuhparadox.wordcounter;
import org.apache.commons.cli.*;
import javax.swing.JFileChooser;
import javax.swing.filechooser.FileNameExtensionFilter;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.lang.reflect.Type;
import java.util.*;
imp... |
package com.itsoul.lab.application.bank;
import com.itsoul.lab.domain.models.TransactionSearchQuery;
import com.it.soul.lab.sql.SQLExecutor;
import com.it.soul.lab.sql.query.QueryType;
import com.it.soul.lab.sql.query.SQLJoinQuery;
import com.it.soul.lab.sql.query.SQLQuery;
import com.it.soul.lab.sql.query.models.Oper... |
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
import java.io.BufferedWriter;
import java.io.... |
package fr.softwaresemantics.howmanydroid.util;
import android.app.Activity;
import android.os.Handler;
import android.util.Log;
import android.view.Menu;
import android.webkit.WebView;
import fr.softwaresemantics.howmanydroid.R;
import fr.softwaresemantics.howmanydroid.model.formula.FormulaSyntax;
/**
* Created by... |
package sie.amplifier_conctroller.ui;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import andr... |
package com.esum.xtrus.boot.classloader;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.List;
/**
* xTrus의 Main ClassLoader, xTrus의 Engine 라이브러리가 등로된다.
*/
public class XtrusBoot... |
package com.example.tiny.config;
import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @ClassName: RabbitConfig
* @Description: Rabbit配置类
* @Author: yongchen
* @Date: 2021/3/17 16:15
**/
@Configuration
public... |
package com.beike.hesssian.test;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Resource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org... |
//------------------------------------------------------------------------------
// Copyright (c) 2012 Microsoft Corporation. All rights reserved.
//
// Description: See the class level JavaDoc comments.
//------------------------------------------------------------------------------
package com.microsoft.live;
impor... |
package Graphs.directed;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Nput_graph {
public Nput_graph() throws NumberFormatException, IOException {
// TODO Auto-generated constructor stub
create();
}
private void create() throws NumberFor... |
package com.larryhsiao.nyx.core.jots.moods;
/**
* Constant of {@link RankedMood}
*/
public class ConstRankedMood implements RankedMood {
private final String mood;
private final int usedTimes;
public ConstRankedMood(String mood, int usedTimes) {
this.mood = mood;
this.usedTimes = usedTim... |
package com.vicutu.batchdownload.utils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.Predicate;
import org.apache.commons.collection... |
package plugins.fmp.fmpSequence;
import java.io.File;
import java.nio.file.attribute.FileTime;
import java.util.ArrayList;
public class Experiment {
public String filename = null;
public SequenceVirtual vSequence = null;
public ArrayList <SequencePlus> kymographArrayList = null;
public Fi... |
/*
* ################################################################
*
* ProActive Parallel Suite(TM): The Java(TM) library for
* Parallel, Distributed, Multi-Core Computing for
* Enterprise Grids & Clouds
*
* Copyright (C) 1997-2011 INRIA/University of
* Nice-Sophia Antipolis/ActiveEon
... |
package com.gxtc.huchuan.data;
import com.gxtc.commlibrary.data.BaseRepository;
import com.gxtc.huchuan.bean.AccountSetInfoBean;
import com.gxtc.huchuan.bean.dao.User;
import com.gxtc.huchuan.http.ApiCallBack;
import com.gxtc.huchuan.http.ApiObserver;
import com.gxtc.huchuan.http.ApiResponseBean;
import com.gxtc.huchu... |
class NestFour
{
void m1(){
System.out.println("m1 NestFour class");
class InnerFour
{
void m2(){System.out.println("m2 InnerFour class");}
}
InnerFour f = new InnerFour();
f.m2();
}
void m3(){
System.out.println("m3 NestFour class");
class InnerFour
{
void m4(){System.out.println("m4 ... |
package com.smartboma.development.m_bankingapp.adapters;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.smartboma.development.m_bankingapp.R;
import c... |
package ru.shikhovtsev;//java -Xdebug -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n ru.otus.ru.shikhovtsev.RemoteDebug
public class RemoteDebug {
public static void main(String[] args) {
new RemoteDebug().loop();
}
private int counter = 0;
private void loop() {
while (true) {
c... |
package com.trump.auction.back.order.model;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* @author wangjian
*/
@Data
public class Logistics {
/**
* 主键,不为空
*/
private Integer id;
/**
* 物流第三发发货单号
*/
private String logisticsId;
/**
* 物流公司名称... |
package com.greenfox.exam.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Car {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
long id;
String plate;
String carBrand;... |
import java.util.Scanner;
public class main{
public static void main(String[]args){
Scanner l=new Scanner(System.in);
escribiendo es=new escribiendo();
System.out.println("Dame tu nombre: ");
es.setA(l.nextLine());
System.out.println("Dame tu numero de control: ");
es.setB(l.nextLine());
es.escribir();
}
}
|
package ru.steagle.views;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;
imp... |
package com.oracle.iot.sample.mydriveapp.datalogger;
public interface DataLoggerInterface
{
void setHeaders(Iterable<String> headers) throws IllegalStateException;
void addRow(Iterable<String> values) throws IllegalStateException;
void writeToFile();
}
|
package dao;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Properties;
public class BoardDAO {
private Connec... |
import edu.princeton.cs.algs4.MinPQ;
import java.util.LinkedList;
public class Solver {
private final boolean isSolvable;
private final int moves;
private final LinkedList<Board> solution;
private class SearchNode implements Comparable<SearchNode> {
private final Board board;
private ... |
package com.sun.xml.bind.v2.runtime.unmarshaller;
import com.sun.xml.bind.api.AccessorException;
import com.sun.xml.bind.v2.runtime.Transducer;
import org.xml.sax.SAXException;
/**
* Unmarshals a text into an object.
*
* <p>
* If the caller can use {@link LeafPropertyLoader}, that's usually faster.
*
* @see Le... |
package cz.utb.fai.translator.adapter;
import android.content.Context;
import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;
import cz.utb.fai.translator.R;
public class ViewPagerAdapter extends PagerAdapter {
private Context mContext;
public ViewPagerAdapter(C... |
package Arrays;
import java.lang.reflect.Array;
/**
* Created by student on 03-May-16.
*/
public class Array1 {
public static void main(String[] args)
{
int[] numbers = {1,2,3,4,5,6};
int[][] TwoArray = {{4,2,3},{1,5,4}};
Reminder();
Bigdiff();
System.out.println(Che... |
package com.roundarch.codetest.part2;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcel;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.T... |
/*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.github.niwaniwa.whitebird.core.command;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.github.niwaniwa.whitebird.core.util.Util;
public class PingCommand implements BaseCommand {
@Override
public boolean runCommand(Com... |
package dao;
// Generated 25 janv. 2017 00:17:46 by Hibernate Tools 4.3.1
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* Client generated by hbm2java
*/
public class Client implements java.io.Serializable {
private Integer idClient;
private String nom;
private String... |
/*
Copyright (C) 2013-2014, Securifera, Inc
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and... |
package by.academy.homework.homework2;
import java.util.Scanner;
public class Task1 {
public static void main(String[] args) {
System.out.println("Введите 2 слова: ");
Scanner str = new Scanner(System.in);
String[] array = new String[2];
for (int i = 0; i < 2; i++) {
array[i] = str.nextLine();
}
str... |
package bcg.common.service;
import java.util.List;
import bcg.common.entity.CompareBook;
public interface SearchService {
public List<CompareBook> searchService(String title);
}
|
package com.lfalch.korome;
import static org.lwjgl.opengl.GL11.GL_QUADS;
import static org.lwjgl.opengl.GL11.glBegin;
import static org.lwjgl.opengl.GL11.glEnd;
import static org.lwjgl.opengl.GL11.glTexCoord2d;
import static org.lwjgl.opengl.GL11.glVertex2d;
import java.io.IOException;
//Don't touch it, it just... wo... |
package cap.abstractinterface;
interface Inf1
{
void get();
}
class ABC implements Inf1
{
public void get()
{
System.out.println("get of ABC");
}
}
public class InterfaceDemo {
public static void main(String[] args) {
ABC a1=new ABC();
a1.get();
//Second Way
Inf1 i1=new ABC(); //Upcasting
i1.get(... |
package day13constructors;
public class Dog {
public String name;
public int weight;
public int height;
/*
- I created a constructor
- The constructor has no any parameter
- The constructor has nothing inside the body
- That kind of constructors are same with the default constructor
... |
package com.kotensky.testsk.activity.login.model;
import com.kotensky.testsk.activity.login.model.data.User;
import rx.Observable;
/**
* Created by Stas on 09.02.2017.
*/
public interface IModelLogin {
Observable<User> getUser(String basic);
}
|
package com.BDD.blue_whale.service;
import java.util.List;
import java.util.Optional;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.BDD.blue_whale.entities.Source;
import com.BDD.blue_whale.... |
package com.softeem.dao;
import java.util.List;
import com.softeem.bean.GoodsBean;
public interface IGoodsDao {
// 首页 : 1-12
List<GoodsBean> selectIndexGoods(int begin,int end);
// 分类查询(分页查询)
List<GoodsBean> selectByCate(int cateId);
List<GoodsBean> selectByPageAndCate(int pageNum,int pageSize,int cateId... |
import java.util.Scanner;
class Marks
{
public static void main(String args[])
{
int a[]=new int[10];
int high=0;
int fail=0;
int pass=0;
int sum=0;
float avg=0;
Scanner s=new Scanner(System.in);
System.out.println("Enter the marks of ten students");
for(int i=0;i<10;i++)
{
a[i]=s.nextInt();
}
int low=... |
package com.niksoftware.snapseed.core;
import android.graphics.Bitmap;
import com.niksoftware.snapseed.core.filterparameters.FilterParameter;
public class FilterChainNode {
private final FilterParameter filterParameter;
private Bitmap previewLayer = null;
public FilterChainNode(FilterParameter filterPara... |
package com.cmi.bache24.data.remote.interfaces;
import com.cmi.bache24.data.model.Report;
import java.util.List;
/**
* Created by omar on 12/12/15.
*/
public interface ReportsCallback extends CallbackBase {
void onReportsCallback(List<Report> reports);
void onReportsFail(String message);
}
|
package com.game.cwtetris.ui;
import android.graphics.Color;
import android.view.MotionEvent;
import android.view.View;
import com.game.cwtetris.CanvasView;
/**
* Created by gena on 12/15/2016.
*/
public abstract class UIElement implements View.OnTouchListener {
protected int x;
protected int y;
prote... |
/*
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.ipincloud.iotbj.srv.domain;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Time;
import java.sql.Date;
import java.sql.Timestamp;
import com.alibaba.fastjson.annotation.JSONField;
//(Baseman)基站管理
//generate by redcloud,2020-07-24 19:59:20
public class Baseman implements Serializ... |
package modelo;
/**
*
* @author Cristobal Torres
* @version junio 2019
* Clase Idioma que define los valores del mantenedor Idioma para posterior constructor
* @param idIdioma identificador de id idioma
* @param idioma variable de tipo string para definir idioma de libros
* @param traductor variable string ... |
package org.huangfugui.ibatis.po;
/**
* @author zqb
* @decription
* @create 2017/7/7
*/
public class Picture {
int id;
String path;
int mCount;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getPath() {
return p... |
/*
* Copyright 2002-2022 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 io.github.satr.aws.lambda.bookstore;
// Copyright © 2020, github.com/satr, MIT License
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.LambdaLogger;
import com.amazonaws.services.lambda.runtime.RequestHandler;
import com.fasterxml.jackson.core.type.TypeReferen... |
package com.lzx.xiuxian.activity;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.wid... |
package com.fanoi.dream.module.apps.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.fanoi.dream.R;
/**
* Created by Administrator on 2016/4/... |
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLExcep... |
package raceclient;
import java.net.DatagramSocket;
import java.net.InetAddress;
/**
* Created by IntelliJ IDEA.
* User: julian
* Date: Mar 8, 2008
* Time: 6:43:22 PM
*/
public class SoloDistanceEvaluator implements Evaluator {
final int numberOfTrials = 1;
final int numberOfTimesteps = 10000;
final... |
package com.qac.nbg_app.entities;
//Imports
import javax.persistence.*;
import javax.validation.constraints.*;
@Entity
@Table(name = "employeeinventorymanager")
//Named Queries
@NamedQueries ({
@NamedQuery (name=Employee.FIND_BY_FIRST_NAME, query = "SELECT a FROM EmployeeInventoryManager a WHERE a.firstName = :first... |
package com.gxtc.huchuan.ui.mine.incomedetail;
import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.view.View;
import android.widget.LinearLayout;
import com.gxtc.commlibrary.base.BaseRecyclerAdapter;
import com.gxtc.commli... |
package com.ants.theantsgo.base;
import com.ants.theantsgo.util.JSONUtils;
import com.ants.theantsgo.util.L;
import com.lzy.okgo.callback.StringCallback;
import com.lzy.okgo.model.Progress;
import com.lzy.okgo.model.Response;
import java.util.Map;
import okhttp3.Call;
/**
* ===============Txunda===============
* ... |
package de.lezleoh.mathgame.term;
public class Sum extends TermWithMultipleOperands {
public Sum() {
super((a, b) -> a + b, () -> "+", new Integer(0));
}
@Override
public TypeOfTerm getTypeOfTerm() {
return TypeOfTerm.SUM;
}
@Override
public TermInt copy() {
Sum newTerm = new Sum();
for... |
package br.com.dercilima.myfirstapp;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
public class DetalhesActivity extends AppCompatActivity {
@Override
protected void onC... |
package com.log4analytics.mobile.voiderecording;
import android.app.Activity;
import java.util.Arrays;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaRecorder;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
impor... |
package statistics;
/**
* Interfejs dla statystyk rycerza.
* @author Piotrek
*/
public interface KnightStatistics_Interface {
/**
* Setter dla liczby zabitych smoków.
* @param int numberOfKilledDragons
* @return KnightStatistics_Interface
*/
public KnightStatistics_Interface setNumb... |
package practise;
public class TestMath
{
private int i,j,k,l;
float f,f1;
double d,d1;
public TestMath(int i, int j) {
super();
this.i = i;
this.j = j;
}
void evaluate()
{
f=12.456f;
d=3.0;
System.out.println("sum is "+Math.addExact(i, j));
System.out.println(Math.abs(f));
System.out.println(M... |
package com.example.ajays.dirac.Forum;
import java.lang.reflect.Array;
import java.util.ArrayList;
public class ForumModel {
String post_title;
String post_description;
Integer num_upvotes;
ArrayList<String> comments;
public ForumModel(){}
public ForumModel(String post_title, String post_des... |
package com.heyskill.element_core.fragments.bottom;
import java.util.LinkedHashMap;
/**
* 把每一个Fragment和底部的按钮对象进行绑定,组装成一个LinkedHashMap的集合
*/
public final class ItemBuilder {
private final LinkedHashMap<BottomTabBean,BottomItemFragment> ITEMS = new LinkedHashMap<>();
//简单工厂模式
static ItemBuilder builde... |
package by.client.android.railwayapp.support.database.room;
import android.arch.persistence.room.Database;
import android.arch.persistence.room.RoomDatabase;
import by.client.android.railwayapp.model.SearchTrain;
/**
* Created by PanteleevRV on 04.09.2018.
*
* @author Q-RPA
*/
@Database(entities = {SearchTrain.cl... |
package com.allure.service.request;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotEmpty;
/**
* Created by yang_shoulai on 7/20/2017.
*/
@Setter
@Getter
public class TokenRefreshRequest {
@NotEmpty(message = "NotEmpty.tokenRefreshRequest.accessToken")
private Stri... |
package com.macys.util.json.generator;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.macys.mobile.gateway.sdpstub.fitnesse.json.ComparisonResult;
import com.macys.mobile.gateway.sdpstub.fitnesse.json.JsonComparator;
im... |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... |
package EntityManagers.Offline;
import java.util.List;
import javax.ejb.Stateless;
import javax.enterprise.inject.Default;
import javax.inject.Inject;
import Entities.Screen;
import Entities.Seat;
import EntityManagers.ScreenManager;
import Utilities.DummyData;
@Default
@Stateless
public class ScreenManagerOffline ... |
package com.leador.picassodemo;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.squareup.picasso.Picasso;
import java... |
package com.alex;
import com.alex.eat.DyploNutsCollection;
import com.alex.eat.Nut;
import org.assertj.core.api.Assertions;
import org.junit.Assert;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
public class DyploNutsCollectionTest {
@Test
public void testAd... |
package com.git.test;
/**
* @Author 牛技艺
* @Date 2019-07-12 14:24
*/
public class user {
private String name;
private int age;
private int a;
//wgw
private String wgw;
}
|
package com.snxy.pay.service.dto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* Created by 24398 on 2018/11/14.
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxBillSuccessPay {
/* 交易时间,应用ID,商户ID,设备号,微信订单号,商户订单号,用户标识... |
package de.varylab.discreteconformal.startup;
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsEnvironment;
import java.awt.GridLayout;
... |
package com.discount.calculator.model;
import com.discount.calculator.util.CustomerType;
public class OrderDetails {
private Double purchaseAmount;
private CustomerType customerType;
public OrderDetails(Double purchaseAmount, CustomerType customerType) {
this.purchaseAmount = purchaseAmount;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.