text stringlengths 10 2.72M |
|---|
package gov.nih.mipav.view.renderer.WildMagic.BallPivoting;
import java.util.*;
public class TriMesh {
/// Set of vertices
public Vector<Vertex> vert = new Vector<Vertex>();
/// Real number of vertices
public int vn;
/// Set of faces
public Vector<Face> face = new Vector<Face>();
/// Real number of faces
p... |
package com.tutorialspoint;
/**
* @author warlord
*
*/
public class TextEditor {
private SpellChecker spellChecker;
private int numberOfWords;
private String textOwner;
// public TextEditor(SpellChecker spellChecker, int numberOfWords, String textOwner) {
// System.out.println("Inside TextEditor ... |
/* $Id$ */
package djudge.acmcontester.structures;
import java.util.HashMap;
import djudge.acmcontester.AuthentificationData;
import djudge.utils.xmlrpc.AbstractRemoteTable;
import djudge.utils.xmlrpc.HashMapSerializable;
public class UserData extends HashMapSerializable
{
public String id = "-1";
pu... |
/*******************************************************************************
* Copyright 2013 SecureKey Technologies Inc.
*
* 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
*
* ht... |
/**
* Copyright 2017 伊永飞
*
* 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 writin... |
package cz.cvut.panskpe1.rssfeeder.activity.main;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConn... |
import java.util.Hashtable;
import java.util.Iterator;
public class Keyframe{
private Hashtable<Long, Control> bookmarks;
final long loop_time;
public Keyframe(long loop)
{
this.bookmarks = new Hashtable<Long, Control>();
this.loop_time=loop;
}
public synchronized void put(long usecs, Control cont){
... |
package com.jooink.experiments.gwtwebgl.client.tests.params;
import com.google.gwt.canvas.client.Canvas;
import com.google.gwt.dom.client.CanvasElement;
import com.google.gwt.typedarrays.shared.Float32Array;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasWidgets.ForIsWidget;
import... |
package com.limefriends.molde.menu_map.report;
import com.limefriends.molde.menu_map.entity.MoldeReportEntity;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Headers;
import retrofit2.http.POST;
public interface MoldeReportRestService {
@Headers("C... |
package com.netcracker.entities;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.netcracker.services.Channels.Deliverable;
import org.hibernate.validator.constraints.Range;
import org.locationtech.jts.geom.Point;
import org.springframework.transaction.annotation.Transactional;
import javax.persistence... |
package com.memory.platform.core.exception;
public class ModuleActivatorException extends Exception {
/**
*
*/
private static final long serialVersionUID = -1700620098387621128L;
}
|
package com.happyldc.util;
import android.annotation.SuppressLint;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.PixelFormat;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable... |
package com.zantong.mobilecttx.base.interf;
/**
* Created by jianghw on 2017/4/26.
*/
public interface IMvpPresenter {
void onSubscribe();
void unSubscribe();
}
|
/*
* Created by Angel Leon (@gubatron), Alden Torres (aldenml)
* Copyright (c) 2011-2014,, FrostWire(R). All rights reserved.
*
* 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 versi... |
package org.isj.gestionenseignant2.services;
import org.isj.gestionenseignant2.repository.Enseignant;
import org.isj.gestionenseignant2.repository.EnseignantRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
publi... |
package com.sxb.controller;
import java.util.Date;
import javax.annotation.Resource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframewo... |
package com.xld.common.redis;
import com.xld.common.other.LogUtil;
import com.xld.common.other.StrUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.ster... |
package br.com.cleitonkiper.hiperion.interfaces;
import java.io.FileNotFoundException;
import java.io.InputStream;
public interface Builder<T> {
T build() throws Exception ;
T build(InputStream template) throws Exception ;
// withTemplate(InputStream template);
}
|
/*
* Copyright 2002-2021 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... |
/*
* 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.ut.healthelink.dao.impl;
import com.ut.healthelink.dao.newsArticleDAO;
import com.ut.healthelink.model.newsArticle;
impor... |
package com.flyusoft.apps.jointoil.service.impl;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com... |
package io.flyingmongoose.brave.fragment;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
impo... |
package Lesson3;
import java.util.Random;
import java.util.Scanner;
public class Bingo {
Scanner scanner = new Scanner(System.in);
int unknownNumber;
int range;
int attempt;
public static void main(String[] args) {
Bingo bingo = new Bingo();
bingo.start();
}
public void s... |
package game.Blackjack;
import java.util.ArrayList;
import java.util.List;
public class Test {
public static void main(String[] args) {
System.out.println("Test");
Table table = new Table();
table.setup();
table.round(2);
}
}
/*
//Freddy's Testing Table
if (x == 5 && y ... |
package net.datacrow.core;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Properties;
import java.util.UUID;
import net.datacrow.util.Utilities;
public class DataCrowProperties {
private static final String _USERDIR = "user.home";
private static fi... |
package com.orderMaster.model;
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.List;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.... |
package api.block;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.BlockBreakable;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
... |
package com.gitlab.davinkevin.podcastserver.youtubedl.utils;
import java.io.IOException;
import java.io.InputStream;
public class StreamGobbler extends Thread {
private InputStream stream;
private StringBuffer buffer;
public StreamGobbler(StringBuffer buffer, InputStream stream) {
this.stream = ... |
public class TestModule {
public TestModule() {
System.out.println("Yes! Just do it.");
}
public void sayHello() {}
}
|
public class Father extends GrandFa {
private int nai = 55;
private int house = 1;
public String gabo = "황금돼지";
public Father() {
System.out.println("");
}
public Father(int nai) {
this.nai=nai;
}
public int getNai() {
return nai;
}
public void setNai(int nai) {
this.nai = nai;
}
public int... |
package com.example.android.navigationaldrawer2.rest.interfaces;
import com.example.android.navigationaldrawer2.models.Flower;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
/**
* Created by Andrițchi Alexei on 9/27/16.
*/
public interface FlowerService {
@GET("/feeds/flowers.json")... |
package PaymentProcessor;
public interface ICardDetails {
String expDate = null;
String accNo = null;
String sNo = null;
void showCardDetails();
}
|
package demo.rabbitmq.hello;
import com.rabbitmq.client.*;
import demo.rabbitmq.SimpleChannelFactory;
import java.io.IOException;
import java.util.concurrent.TimeoutException;
/**
* Created by dongsj on 2017/4/11.
*/
public class Receiver {
private static final String QUEUE_NAME = "hello";
public static v... |
package com.pooyaco.person.web.controller;
import com.pooyaco.gazelle.si.BaseService;
import com.pooyaco.gazelle.web.controller.GazelleLazyDataController;
import com.pooyaco.person.dto.PersonDto;
import com.pooyaco.person.si.PersonService;
import org.primefaces.model.SortOrder;
import org.springframework.context.annot... |
package com.version.SpringOne.service;
import com.version.SpringOne.Model.PostObject;
import com.version.SpringOne.Repository.PostRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class PostService {
@Autowired
PostRepo postRepo... |
package com.avinash.book.Controller;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
impor... |
package com.wjfit.anno;
//使用注解时,当只有一个属性并且名称为value,此时可以省略value
@SuppressWarnings("all")
@Deprecated
@VIP(name = "xx",age=20, hobby = { "java" })
public class Employee {
}
|
package com.gs.tablasco.spark;
import org.apache.spark.api.java.JavaRDD;
import java.util.List;
/**
* A distributed table that can be compared by SparkVerifier
*/
@SuppressWarnings("WeakerAccess")
public class DistributedTable
{
private final List<String> headers;
private final JavaRDD<List<Object>> rows;
... |
package com.company;
public interface manosCalientes {
public boolean cocinarPlatillo(boolean i, boolean j);
}
|
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Image;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.beans.Statement;
import ja... |
package com.appsala.app.services;
import java.util.List;
import java.util.Optional;
import com.appsala.app.entities.Ambiente;
import org.springframework.stereotype.Service;
import com.appsala.app.repository.AmbienteRepository;
import org.springframework.beans.factory.annotation.Autowired;
@Service
public class Ambien... |
package com.thonline.common;
import java.sql.Connection;
import java.util.Hashtable;
import java.util.Properties;
import javax.sql.DataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.xnarum.bi.common.PropertyReader;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDa... |
package com.bnrc.ui.rjz;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Constructor;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.bouncycastle.crypto.tls.AlertLevel;
import org.json.JSONArray;
import or... |
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.junit.Test;
public class SuffixTrieTest {
@Test
public void testBuildSuffixTrie() throws Exception {
SuffixTrie st = new SuffixTrie("banana");
// System.out... |
package com.citibank.ods.entity.pl.valueobject;
/**
* @author m.nakamura
*
* Representação da tabela de Crítica Lógica
*/
public class TplLogicCritEntityVO extends BaseTplLogicCritEntityVO
{
} |
package me.x1machinemaker1x.shootinggallery.utils;
import java.util.HashMap;
import java.util.UUID;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.Player;
public class ScoreManager {
private static ScoreManager instance = new ScoreManager();
HashMap<UUID, Integer> scores;
public s... |
package org.team16.team16week5;
import java.io.IOException;
import java.util.Scanner;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
public class AppController {
private static final Logger logger = Logger.getLogger(Bill.class.getName());
private Fil... |
package com.mycompany.sentenciasdecontrol2;
public class SWITCH {
public static void main(String[] args) {
package sentenciasdecontrol2;
import java.util.Scanner;
public class Switch {
private String nombredelcurso;
private int total;
private int contadorCalif;
private int acuent... |
package com.dongh.funplus.view.other;
import com.dongh.funplus.di.scope.FragmentScope;
import com.dongh.funplus.base.mvp.BaseModel;
import javax.inject.Inject;
/**
* Created by chenxz on 2017/12/3.
*/
@FragmentScope
public class OtherModel extends BaseModel implements OtherContract.Model {
@Inject
public... |
package Horners_Rule;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Input_func {
// this class will be engaged with console input of the arrays of
// coefficients and exponents
int coefficient[];
int exponent[];
int x;
public void Horne... |
package bupt.hpcn.onlinestandard.service;
import bupt.hpcn.onlinestandard.mapper.StandardMapper;
import bupt.hpcn.onlinestandard.domain.StandardDO;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Lis... |
/**
* Copyright (C) 2014-2017 Philip Helger (www.helger.com)
* philip[at]helger[dot]com
*
* 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/LICE... |
package api.militancia;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Optional;
@Service
@Transactional
public class ServicioMilitancia {
@Auto... |
package FactoryPattern;
public abstract class Pepperoni {
private String name;
public Pepperoni(String name) {
super();
this.name = name;
}
public String getName() {
return this.name;
}
}
|
/**
* Time complexity : O(n). We traverse the list containing n elements only once. Each look up in the table costs only O(1) time.
* Space complexity : O(n). The extra space required depends on the number of items stored in the hash table, which stores at most n elements.
*
*/
public class Solution {
public i... |
package java8.optional;
import java.util.Optional;
public class WithOptional {
public static void main(String[] args) {
String str[] = new String[10];
//str[5] = "Hello";
Optional<String> checkNull = Optional.ofNullable(str[5]);
if(checkNull.isPresent()) {
System.out.println(checkNull.get());
} else... |
package com.itsoul.lab.generalledger.exception;
/**
*
*/
public class LedgerAccountException extends BusinessException {
private static final long serialVersionUID = -6113857738235916873L;
public LedgerAccountException(String accountRef) {
super("Ledger does not contain account with reference '" + accountR... |
package com.example.movieapp;
import com.example.movieapp.JsonResponse;
import com.example.movieapp.JsonResultsResponse;
public interface SearchListener {
void onSuccessResponse(JsonResponse data);
void onErrorResponse(String data);
}
|
package com.aegamesi.mc.soundboard;
import java.util.ArrayList;
import java.util.Random;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Sound;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Firework;
import org.bukkit.entity.Player;
public class SoundboardPlayer {
public int ... |
public class MissingLCM {
public int getMin(int N) {
if(N == 1) {
return 2;
}
int max = 0;
boolean[] comp = new boolean[N + 1];
for(int i = 2; i < comp.length; ++i) {
if(!comp[i]) {
int pow = 1;
while(i <= N/pow) {
... |
package com.gome.manager.dao;
import com.gome.manager.domain.ManagerUserToken;
public interface ManagerUserTokenMapper {
int deleteByPrimaryKey(Long id);
int insert(ManagerUserToken record);
int insertSelective(ManagerUserToken record);
ManagerUserToken selectByPrimaryKey(Long id);
int updateB... |
package com.pelephone_mobile.mypelephone.network.rest.pojos;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Gali.Issachar on 29/01/14.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class CatalogItem extends Pojo implements... |
package com.infohold.el.base.utils.excel;
import org.apache.poi.ss.usermodel.Row;
public interface PoiCallback {
boolean HandleDataRow(Row row, Object obj) throws Exception;
}
|
import java.util.ArrayList;
import java.util.List;
public class Test {
public static void main(String[] args) {
System.out.println("Hello");
/*********************************************************/
//public Seller(String username, String password)
//public SellerList(List<Seller> list)
String name1 = "sell... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Controller.Client;
import Business.AccountBAL;
import Business.RoleBAL;
import Entity.Account;
import Utility.MD5;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
/**
*
* @author e... |
package com.defalt.lelangonline.data.items.edit;
import android.os.AsyncTask;
import androidx.annotation.NonNull;
import com.defalt.lelangonline.data.RestApi;
import com.defalt.lelangonline.ui.SharedFunctions;
import com.defalt.lelangonline.ui.items.edit.ItemsEditActivity;
import org.json.JSONException;
import org.... |
package com.allthelucky.share.sdk;
import org.json.JSONObject;
import android.app.Activity;
import android.os.Bundle;
/**
* 测试程序
*
* @author savant-pan
*
*/
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedIns... |
import java.util.ArrayList;
import java.util.Random;
import static java.lang.Math.exp;
import static java.lang.Math.pow;
public class Populacao {
public ArrayList<Individuos> individuos;
public Populacao() {
this.individuos=new ArrayList<>();
}
public double fun(double X, double Y){
r... |
package com.huaxiao47.just4fun.ui.home.recommend;
import androidx.appcompat.widget.LinearLayoutCompat;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProviders;
import android.app.Activity;
import android.content.Context;
import android.graphics.Rect;
import android.os.Bundle;
impo... |
package com.example.bob.health_helper;
import android.app.Application;
import android.content.Context;
import android.os.Build;
import com.example.bob.health_helper.Base.AppConstant;
import com.iflytek.cloud.SpeechConstant;
import com.iflytek.cloud.SpeechUtility;
import com.lifesense.ble.LsBleManager;
import com.orha... |
package br.com.lucro.server.controller;
import java.util.Calendar;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.log4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpSt... |
package com.git.cloud.appmgt.model;
/**
* 应用管理的枚举类
* @author liangshuang
* @date 2014-9-23 下午5:25:33
* @version v1.0
*
*/
public enum AppMgtEnum {
DIC_TYPE_CODE_DU_SERVICE_TYPE("DU_SEV_TYPE"),//服务器角色服务类型
DIC_TYPE_CODE_USE_STATUS("USE_STATUS");//服务器角色服务状态
private final String value;
pri... |
package alien4cloud.json.deserializer;
import alien4cloud.model.components.AbstractPropertyValue;
import alien4cloud.model.components.ComplexPropertyValue;
import alien4cloud.model.components.FunctionPropertyValue;
import alien4cloud.model.components.ListPropertyValue;
import alien4cloud.model.components.ScalarPropert... |
package com.csalazar.formularioventas.holder;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.csalazar.formularioventas.R;
/**
* Created by csalazar on 28/09/2017.
*/
public class ItemHolderCliente extends Recycle... |
package com.foodaholic.asyncTask;
import android.os.AsyncTask;
import com.foodaholic.interfaces.FoodofthedayListener;
import com.foodaholic.items.ItemMenu;
import com.foodaholic.items.ItemRestaurant;
import com.foodaholic.utils.Constant;
import com.foodaholic.utils.JsonUtils;
import org.json.JSONArray;
import org.js... |
package src.modulo2.exercicios;
import com.sun.opengl.util.Animator;
import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.media.opengl.GL;
import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLCanvas;
import javax.media.opengl.GLEventListener;
impo... |
import java.io.BufferedReader;
import java.io.InputStreamReader;
class Stack {
private char[] stackArray = null;
private int maxSize = 5;
private int top;
public Stack() {
this.stackArray = new char[maxSize];
top = -1;
}
public Stack(int maxSize) {
this.maxSize = max... |
package com.csc.capturetool.myapplication.utils.xml;
public interface XmlEditorInter {
/**
* 保存 key-value键值
*/
public EditorInter edit();
/**
* 获取key对应的int值
* @param key 数值key名称
* @param defaultValue int默认值
* @return key对应的int值
*/
public int getInt(String ke... |
package com.xh.image;
import java.net.URL;
import android.graphics.Bitmap;
import android.view.View;
import com.xh.image.display.XhScreenDisplay;
import com.xh.util.XhImageUtile;
import com.xh.util.XhLog;
/**
* @version 创建时间:2017-11-20 下午3:04:57 项目:XhlackAD-eclipse 包名:com.Xhlack.tv.image
* 文... |
package me.sh4rewith.persistence.mongo;
import static me.sh4rewith.persistence.mongo.mappers.AbstractMongoDocumentMapper.MONGO_DOC_ID;
import static me.sh4rewith.persistence.mongo.mappers.RawFileInfoMapper.CONTENT_TYPE;
import static me.sh4rewith.persistence.mongo.mappers.RawFileInfoMapper.INFO_SUFFIX;
import static m... |
package jikanganai.server;
import org.hibernate.boot.model.naming.Identifier;
import org.hibernate.boot.model.naming.PhysicalNamingStrategy;
import org.hibernate.engine.jdbc.env.spi.JdbcEnvironment;
import java.util.regex.Pattern;
public class CamelCasePhysicalNamingStrategy implements PhysicalNamingStrategy {
@... |
package com.smartlead.api.user.security;
import com.smartlead.common.vo.UserVO;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
import java.util.Collection;
import java.util.List;
public class SecUser extends User {
private int userId;
pr... |
package com.yuneec.test;
import android.os.Handler;
import android.util.Log;
import com.yuneec.uartcontroller.UARTController;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.net.Socket;
import org.json.JSONObject;
public class Transfer implements Runnab... |
package com.jpa.servises;
import com.jpa.entity.Ticket;
import javax.persistence.EntityManager;
import javax.persistence.Persistence;
import javax.persistence.TypedQuery;
import java.util.List;
/**
* Created by Дарья on 09.03.2015.
*/
public class TicketServices {
public EntityManager em = Persistence.createE... |
package somani.siddharth.tophawkstraining;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import and... |
import javax.faces.bean.ManagedBean;
import java.io.Serializable;
/**
* Created by reda-benchraa on 22/02/17.
*/
@ManagedBean
public class Arithm implements Serializable{
private float n1,n2;
public Arithm() {}
public char getOp() {
return op;
}
public void setOp(char op) {
thi... |
package com.mediafire.sdk.api.responses;
import com.mediafire.sdk.api.responses.data_models.WebUploads;
/**
* Created by Chris on 5/19/2015.
*/
public class UploadGetWebUploadsResponse extends ApiResponse {
private WebUploads[] web_uploads;
public WebUploads[] getWebUploads() {
return web_uploads;
... |
package com.github.xuchengen.request;
/**
* 公共请求参数模型
* 作者:徐承恩
* 邮箱:xuchengen@gmail.com
* 日期:2019-08-27
*/
public class UnionPayCommonRequest {
/**
* 交易类型
*/
private String txnType;
/**
* 交易子类
*/
private String txnSubType;
/**
* 接入类型
*/
private String access... |
package com.bac.rest.config;
import javax.ws.rs.core.Configuration;
import javax.ws.rs.core.Feature;
import javax.ws.rs.core.FeatureContext;
import javax.ws.rs.ext.MessageBodyReader;
import javax.ws.rs.ext.MessageBodyWriter;
import org.glassfish.jersey.internal.InternalProperties;
import org.glassfish.jersey... |
/*
* Copyright 2020 WeBank
*
* 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 writi... |
package testCase;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Test;
import generics.RedBlackTree;
import junit.framework.TestCase;
class RedBlackTreeTest extends TestCase {
private RedBlackTree<String> redblackTree;
private String refers;
... |
package br.com.mixfiscal.prodspedxnfe.domain.enums;
import br.com.mixfiscal.prodspedxnfe.domain.ex.EnumDesconhecidoException;
public enum ETipoNotaFiscal {
Entrada((byte)0),
Saida((byte)1);
private final byte tipoNotaFiscal;
private ETipoNotaFiscal(byte tipoNotaFiscal) {
this.tipoNot... |
package com.liuzhenkun.cms.dao;
import com.liuzhenkun.cms.entity.VoteContent;
public interface VoteContentDao extends BaseDao<VoteContent>{
}
|
//Lonnie Williams
//Jump Training
public class HeadOrTailTally {
public static void main(String[] args) {
int heads = 0;
int tails = 0;
for(int x=0;x<1000;x++){
if (Math.random() < 0.5) {
tails = tails +1;
} else {
heads = heads +1;
}
}
System.out.println... |
package com.augen.bookstore.constants;
public enum DeliveryServiceEnum {
MOTORBIKE("MotorBike", 5.0, 0.5, 1.5, 1.0),
TRAIN("Train", 10.0, 0.8, 1.8, 1.0),
AIRCRAFT("AirCraft", 20.0, 0.8, 2.0, 1.0);
private final String type;
private final Double cost;
private final Double juneToAug;
private... |
package com.prj.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.prj.pojo.Orderform;
import com.prj.service.IOrderformService;... |
package com.cs240.server.dao;
import model.Event;
import java.sql.*;
import java.util.ArrayList;
/***
* Performs the following SQL Statements on the Event Table:
* Create Table
* Drop Table
* Select (Single)
* Select (All)
* Insert (Single)
* Delete (Associated User)
* Delete (All)
*/
public class EventDAO {... |
package com.traineeapp.model.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.traineeapp.model.dao.factory.ConnectionFactory;
import com.traineeapp.web.entity.User;
import com.traineeapp.web.exception.DataAccessException;
import co... |
package com.prince.stream.map;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public class StreamMapExample {
public static void main(String[] args) {
List<String> alist = new ArrayList<>();
alist.add("abc");
alist.add("xyz");
alist.add("mno");
al... |
package com.github.gaoyangthu.core.hbase.mapper;
import com.github.gaoyangthu.core.hbase.RowMapper;
import org.apache.hadoop.hbase.KeyValue;
import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.util.Bytes;
/**
* Created with IntelliJ IDEA.
* Author: gaoyangthu
* Date: 14-3-11
* Time: 下午4:4... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.