text stringlengths 10 2.72M |
|---|
package PackagesInterfaces.p2;
public class OtherPackage {
OtherPackage()
{
PackagesInterfaces.AccessModifier.Protection pm = new PackagesInterfaces.AccessModifier.Protection();
System.out.println("This is a other Packge ");
System.out.println("The value of n_pub is " +pm.n_pub);
//Private,DEfaul... |
/*
* 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 org.rdcit.oc_scto;
import java.io.File;
import org.rdcit.tools.SpreadsheetReader;
import org.rdcit.tools.SpreadsheetW... |
package ma.adria.banque.entities;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
... |
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
/*<applet code="Project.java" width=700 height =800></applet>*/
public class Project extends Applet implements Runnable{
Thread t;
String str="";int count=0;
Font f=new Font("SansSerif",Font.PLAIN+Font.BOLD,30);
public void init(){
setBackground(... |
package com.evan.demo.yizhu.yushi_fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
impo... |
package com.google.gwt.ParkIt.client;
import com.google.gwt.ParkIt.shared.UserEntry;
import com.google.gwt.ParkIt.shared.UserMapEntry;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
@RemoteServiceRelativePath("UserMapDataService")
public interface... |
package com.learning.arrays;
public class Task12270 {
/**
* Method get 4 chars from corners of the 2 dimensional array
* and return them
*
* @param array 2 dimensional char array that you want work with
* @return StringBuilder representation of result
*/
public StringBuilder getC... |
package com.redhat.insurance.claims.reports;
import java.io.File;
import java.util.Arrays;
import net.masterthought.cucumber.Configuration;
import net.masterthought.cucumber.ReportBuilder;
import net.masterthought.cucumber.Reportable;
public class CucumberReportGenerator {
private String[] jsonFiles;
publi... |
package com.ufcg.virtualmusicbox;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import... |
package com.jeffdisher.thinktank.chat;
import java.io.IOException;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Set;
import java.util.UUID;
import org.eclipse.jetty.websocket.api.RemoteEndpoint;
import com.eclipsesource.json.JsonObject;
import com.jeffdisher.laminar... |
package com.bean;
import com.db.connection;
public class signup {
String Fname;
String Lname;
String Email;
String pass;
/**
* @return the fname
*/
public String getFname() {
return Fname;
}
/**
* @param fname the fname to set
*/
public void setFname(String fname) {
Fname = fname... |
package com.zxt.framework.dictionary.service;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import net.sf.jsqlparser.JSQLParserException;
/**
* 数据字段缓存操作
*
* @author chinazxt
*
*/
public interface DictionaryCacheService {
/**
* 数据库表添加缓存功能
* 1、添加trigger
* 2、添加数据库表记录
... |
package controller;
import entity.DepotDraw_insert;
import entity.DepotDraw_select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframe... |
package com.leanthoughts.sjics.view;
import com.vaadin.annotations.Theme;
import com.vaadin.navigator.Navigator;
import com.vaadin.server.FontAwesome;
import com.vaadin.server.VaadinRequest;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.spring.annotation.SpringUI;
import com.vaadin.spring.navigator.... |
package server;
import generator.util.ExerciseComparator;
import generator.util.ExerciseStatistics;
import generator.util.tags.ConceptTag;
import server.data.Exercise;
import server.services.GeneratorService;
import java.util.List;
import java.util.stream.Collectors;
public class Test {
public static void main(... |
package back.service;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import org.springframework.stereotype.Service;
@Service
public class PasswordServiceProvider implements PasswordService {
private static final List<String> normals = new CopyOnWriteArrayList<>();
private static final Li... |
/*
* 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 pbo3.pkg10117089.latihan61.bangunruang;
/**
*
* @author a
*/
public class Bola implements BangunRuang{
private dou... |
public class Dog extends Animals{
private static String name = "Danger";
public String sounds(){
// System.out.println("Dog Barks!!!");
return "Barks";
}
}
|
package example.core;
/**
* Generates a hello message.
*/
public class HelloMessageGenerator {
/**
* Generate a hello message.
*
* @param name recipient name
* @return hello message
*/
public static String helloMessage(final String name) {
if (name == null) {
return "Hello, World!";
... |
package com.example.ips.model;
import java.util.Date;
public class ServerplanNpmMaintain1 {
private Integer id;
private String storehouseUse;
private String develop;
private String construct;
private String releaseW;
private String releaseB;
private String mappinfAddress;
privat... |
package io.nekohasekai.tmicro;
public class Locale {
public String appName;
public String exit;
public static class English extends Locale {
{
appName = "TMicro";
exit = "Exit";
}
}
private static Locale instance;
public static Locale getCurrent() {
... |
package dto;
import java.util.HashMap;
public class PeopleHashMap {
private static final HashMap<Integer, Person> hashMap = new HashMap<>();
public static void addPersonToMap(Person p) {
hashMap.put(p.getId(), p);
}
public static void removePersonFromMap(Person p) {
hashMap.remove(p... |
/*
* © Copyright 2016 CERN. This software is distributed under the terms of the Apache License Version 2.0, copied
* verbatim in the file “COPYING“. In applying this licence, CERN does not waive the privileges and immunities granted
* to it by virtue of its status as an Intergovernmental Organization or submit itsel... |
package com.sise.bishe.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.stereotype.Component;
/**
* 邮箱发送
*/
@Component
public class MailService {
@Autowi... |
package dev.nowalk.repositories;
import java.util.List;
import dev.nowalk.models.Department;
public interface DepartmentRepo {
public void addDepartment(Department d);
public List<Department> getAllDepartments();
public Department getDepartment(int id);
public Department getDepartmentByName(String name);
... |
import financialdata.*;
import java.util.ArrayList;
import java.util.Arrays;
public class DriverV2{
ArrayList<double[]> masterTraining = new ArrayList<double[]>(); // data is read and stored offline
ArrayList<Double> masterTarget = new ArrayList<Double>();
ArrayList<double[]> masterTestData = new ArrayList<double... |
/*
* Copyright (c) 2015, Jirav All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.engine.mock;
import java.util.Map;
import java.util.concurrent.Future;
import org.mockito.Mockito;
import org.springframework.stereotype.Component;
import pl.edu.icm.unity.exceptions.E... |
package eecs.ai.p1.commands;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import eecs.ai.p1.Board;
import eecs.ai.p1.BoardState;
import eecs.ai.p1.Directions;
public abstract class Command{
private List<ArrayLi... |
package J_51;
/**
* Created by IBM_ADMIN on 10/16/2016.
*/
public class Bird extends AbstractAnimal {
private void fly() {
System.out.println("Fly Fly!");
}
public void height() {
System.out.println("20cm");
}
public void weight() {
System.out.println("100g");
}
... |
package introsde.assignment3.soap;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlTyp... |
package com.taurus.openbravo.integracionPOS.XML.entidades;
public class GT_CLS_Inventario implements GT_CLS_EntidadBase {
private String id;
private String sucursal;
private String almacen;
private String articulo;
private String cantidad;
private String unidadMedida;
private String movementDate;
public Str... |
package br.com.infoCenter.persistencia;
import java.sql.Connection;
import java.sql.DriverManager;
public class Conexao {
private static Connection con;
public static Connection getConexao() {
if (con == null) {
try {
Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnect... |
package com.andy.myapplication.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.view.View;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.andy.myapplication.Collector.BaseActivity;
import com... |
package presentation;
import business.implementation.AchievementsManager;
import business.implementation.Interfaces.AchievementsManagerInterface;
import business.implementation.Interfaces.ReviewInterface;
import business.implementation.Interfaces.UserManagementInterface;
import business.implementation.ReviewManagement... |
package com.proyecto.utils;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
public class UtilsService {
public static Calendar dateToCalendar(final Date date) {
final Calendar cal = new GregorianCalendar();
cal.setTime(date);
return cal;
... |
package com.onightperson.hearken.scroll;
import java.util.ArrayList;
import java.util.List;
/**
* Created by liubaozhu on 17/8/29.
*/
public class ScrollUtils {
public static List<String> getData() {
String[] names = new String[] {
"David",
"John",
"Lily... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.1-05/30/2003 05:06 AM(java_re)-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
/... |
/*
* Copyright 2019 Claire Fauch
* 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 ... |
package com.opentangerine.maven;
import java.io.File;
import java.io.IOException;
import java.nio.file.*;
import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE;
import static java.nio.file.StandardWatchEventKinds.ENTRY_DELETE;
import static java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY;
import java.n... |
package com.flowedu.define.datasource;
public enum BusType {
TERM, VACATION, ETC
}
|
package com.example.zhkh.Comunication.WorkerComunication;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vi... |
package com.wrathOfLoD.Utility;
import java.util.Comparator;
/**
* Created by Mitchell on 4/13/2016.
*/
public class RenderPositionComparator implements Comparator<Position>{
@Override
public int compare(Position pos1, Position pos2){
if(pos1.getR() == pos2.getR()){
if(pos1.getQ() == pos2.getQ()){
ret... |
package com.arthur.bishi.wangyi0821;
import java.util.Arrays;
import java.util.Scanner;
/**
* @description:
* @author: arthurji
* @date: 2021/8/21 14:32
* @modifiedBy:
* @version: 1.0
*/
public class No3 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Str... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package censure;
/**
*
* @author cfmak
*/
public class CensureParam {
public int imageSize;
public float nonMaxSuppThreshold;
public float harrisThreshold;
public CensureParam(int imgSize, float ... |
package br.com.branquinho.jpa.venda.casosDeUso.dto;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import br.com.branquinho.jpa.venda.model.FormaPagamento;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
@Builder
@Getter
@Setter
public class VendaView {
private Long id;
priv... |
/* Ara - capture species and specimen data
*
* Copyright (C) 2009 INBio ( Instituto Nacional de Biodiversidad )
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the L... |
/*
* 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 org.una.clienteaeropuerto.controllers;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import jav... |
package com.pdd.pop.sdk.http.api.request;
import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;
import com.pdd.pop.sdk.http.api.response.PddPromotionGoodsCouponCreateResponse;
import com.pdd.pop.sdk.http.HttpMethod;
import com.pdd.pop.sdk.http.PopBaseHttpRequest;
import com.pdd.pop.sdk.common.util.JsonUtil... |
package exercicio01;
public class Empregado
{
private String nome;
double salario;
double horasTrabalhadas;
double aumentoSalario;
public Empregado (String nome, double salario)
{
setNome(this.nome);
setSalario(this.salario);
this.horasTrabalhadas=8;
}
private void setNome(String nome... |
package com.jhc.servlet;
import com.jhc.dao.*;
import com.jhc.entity.Content;
import com.jhc.entity.Interface;
import com.jhc.entity.User;
import javax.jws.soap.SOAPBinding;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.h... |
/*
Copyright 2013 Andrew Joiner
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
d... |
package org.mydotey.rpc.client.http.apache.async;
import java.io.IOException;
import java.net.SocketTimeoutException;
import java.util.Objects;
import java.util.concurrent.CancellationException;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executor;
import java.util.concurrent.ForkJoinPoo... |
package net.awesomekorean.podo.lesson.lessonNumber.numbers;
import net.awesomekorean.podo.R;
import net.awesomekorean.podo.lesson.lessons.LessonInit;
import net.awesomekorean.podo.lesson.lessons.LessonItem;
public class NumberMoney extends LessonInit implements Number, LessonItem {
private String lessonId = "N_m... |
package oop;
import java.util.Scanner;
public class Project {
public static void main(String[] args) {
watchlog watchlog = new watchlog();
char exit;
do {
watchlog.loginstore();
Scanner put = new Scanner(System.in)... |
package com.itheima.day_02.sports;
public class PingpongCoach extends Coach implements StudyEnglish {
public PingpongCoach() {
}
public PingpongCoach(String name, int age) {
super(name, age);
}
@Override
public void teach() {
System.out.println("教授乒乓球技巧。。。");
}
@Override
public void eat() {
System.o... |
package com.flatirons.training.resources;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework... |
package gui.editors;
import gui.form.TextCellItem;
import java.awt.Component;
import javax.swing.AbstractCellEditor;
import javax.swing.Icon;
import javax.swing.JTable;
import javax.swing.table.TableCellEditor;
import utils.ImageTools;
/** Allows simple text editing using a TextAreaItem. */
public ... |
package net.kkolyan.elements.tactics;
/**
* @author nplekhanov
*/
public interface SurfaceTypeAware {
void setSurfaceType(SurfaceType surfaceType);
}
|
package onlineShop.model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "authorities")
public class Authorities implements Serializable {... |
package com.apecoder.apollo.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import javax.validation.constraints.NotNull;
@Data
public class ArticleEntity extends BaseEntity {
//文章id
// @TableId(value="id",type= IdType.AUTO)
// private Integer id;
@NotNull(message = "... |
package com.ahu.controller;
import com.ahu.constant.MessageConstant;
import com.ahu.constant.RedisConstant;
import com.ahu.entity.Result;
import com.ahu.pojo.Order;
import com.ahu.service.OrderService;
import com.ahu.utils.SMSUtils;
import com.alibaba.dubbo.config.annotation.Reference;
import com.aliyuncs.exceptions.C... |
package com.androidbook.Drawing;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.os.Bundle;
import android.view.View;
public class DrawBitmap extends Dra... |
/**
*/
package iso20022;
import java.lang.String;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Model Entity</b></em>'.
* <!-- end-user-doc -->
*
* <!-- begin-model-doc -->
* Abstract definition of ... |
package com.MY.project1;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import... |
/*
* 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 may ... |
package com.jackfahdin.otaupdate;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.os.RecoverySystem;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
impor... |
package dk.jrpe.monitor.webservice.cxf.async;
import java.util.Random;
import javax.xml.ws.AsyncHandler;
import javax.xml.ws.Response;
import dk.jrpe.monitor.webservice.cxf.generated.endpoint.SendHTTPAccessDataResponse;
/**
*
* @author Jörgen Persson
*
*/
public class WebServiceAsyncHandler implements AsyncHan... |
package com.adwork.microservices.admessage.conrtoller;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.... |
package com.redstoner.remote_console.utils;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.InvalidObjectException;... |
package com.xt.activemq.spring;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.stereotype.Service... |
package worldData.tileInfo;
public class tileDungeonPoison {
public String tileName; //The name to display the tile as
public String description = null; //A general description of the tile.
public boolean isWalkable = true; // Can the player walk on this tile?
public int localTemp = 72; //Do liquids... |
package dto;
import entities.GeoCityDetails;
import entities.Photo;
import entities.PhotoCandidates;
import java.util.List;
/**
*
* @author miade
*/
public class StandartDTO {
private String time;
private RealtorDTO realtorDTO;
private String placeID;
private List<String> photoRefs;... |
package com.chao.wifiscaner.action;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.util.ArrayList;
import me.drakeet.materialdialog.MaterialDialog;
import android.content.Intent;
import android.os.AsyncTask;
import android.view.View;
import android.view.View.OnClickListener... |
package org.vaadin.addons.tokenfilter.model;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class TestFilterType extends AbstractFilterType<String> {
public TestFilterType(String val) {
super(val);
}
public TestFilterType(String val, String... options) {
super(val);
... |
package com.stylefeng.guns.rest.modular.auth.validator.impl;
import com.alibaba.dubbo.config.annotation.Reference;
import com.cskaoyan.service.UserService;
import com.stylefeng.guns.core.util.MD5Util;
import com.stylefeng.guns.rest.modular.auth.validator.IReqValidator;
import com.stylefeng.guns.rest.modular.auth.vali... |
package net.cglab.hotelpraktikum.utils;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import net.cglab.hotelpraktikum.dto.User;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
... |
package twice.pbdtest;
import android.util.Log;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.iid.FirebaseInstanceId;
import com.google.firebase.iid.FirebaseInstanceIdService;
impor... |
package bis.project.model;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import com.fasterxml.jackson.annotation.JsonIgnore;
im... |
package model;
public class Board_Type_DTO {
private String board_type;
private int row_index;
public String getBoard_type() {
return board_type;
}
public void setBoard_type(String board_type) {
this.board_type = board_type;
}
public int getRow_index() {
return row_index;
}
public void set... |
package com.blackbird.model.zone;
import java.io.Serializable;
public class Zone implements Serializable {
private static final long serialVersionUID = 1L;
private Integer zoneId;
private String zoneName;
private Integer accountId;
public Zone(Integer zoneId, String zoneName, Integer account... |
package algebra;
import java.util.ArrayList;
import java.util.List;
/**
* Decomposition a number into a series of prime factors
*
* Partial problem of Eratosthenes Sieve
*/
public class PrimeDecomposition {
List<Integer> primeDecompose(int n) {
List<Integer> primeFactors = new ArrayList<>();
... |
package com.company.semaphore;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Semaphore {
private static final Logger logger = LoggerFactory.getLogger(Semaphore.c... |
package com.ccspace.facade.domain.common.util;
import org.apache.commons.codec.binary.Base64;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
/**
* @AUTHOR CF
* @DATE Created on 2017/9/8 16:21.
*/
public class SecurityLogic {
stati... |
class resizable_main extends ResizableCircle
{
public static void main(String[] args)
{
ResizableCircle rc=new ResizableCircle(10.0);
System.out.println("perimeter"+rc.getPerimeter());
System.out.println("area"+rc.getArea());
}
} |
package enshud.s2.parser.parsers;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import enshud.minipascal.SyntaxSetting;
public class NonterminalParser extends AbstractNonterminalParser {
private static HashMap<String, Map<Integer, ArrayList<IParser>>> parseRuleMe... |
package de.kopis.db.dao;
import java.util.List;
import de.kopis.db.model.Report;
public interface ReportDAO {
void saveReport(Report report);
List<Report> listReports();
}
|
// Copyright (C) 2016 The Android Open Source Project
//
// 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 ... |
package com.Action;
import java.io.File;
import java.io.FileInputStream;
import java.text.SimpleDateFormat;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.Workboo... |
package org.vaadin.peter.contextmenu.client;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google... |
/*
* 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.sg.bullsandcows.data;
import com.sg.bullsandcows.models.Game;
import com.sg.bullsandcows.models.Round;
import java.util.Li... |
package com.bjit.spring.model;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
@Entity(n... |
package com.bakerystudios.game.questions;
import java.util.List;
public class Question {
private String text;
private List<Answer> answers;
private int correctIndex;
public Question(String text, List<Answer> answers, int correctIndex) {
this.text = text;
this.answers = answers;
this.setCorre... |
package org.uva.forcepushql.parser.ast.elements.expressionnodes;
import org.uva.forcepushql.parser.ast.visitors.ASTExpressionVisitor;
import org.uva.forcepushql.parser.ast.visitors.ASTVisitor;
import org.uva.forcepushql.parser.ast.elements.ExpressionNode;
public class DecimalNode extends ExpressionNode
{
private ... |
package com.cisc181.core;
import java.util.UUID;
public class Enrollment {
private int SectionID;
private UUID StudentID;
private UUID EnrollmentID;
private double grade;
public Enrollment(int SectionID, UUID StudentID, double grade){
this.SectionID = SectionID;
this.StudentID = StudentID;
t... |
package exchange_match_engine;
import java.util.ArrayList;
public class Create extends Request {
ArrayList<RequestElement> requestElements;
public Create() {
super(Type.CREATE);
this.requestElements = new ArrayList<>();
}
}
|
package ir.ac.kntu.objects;
import java.io.Serializable;
public class OrangeWall extends MyObjects implements Serializable {
public OrangeWall(double x, double y, double width, double length){
super(x, y, width, length, true, "./src/main/java/resources/map/wall1.jpg");
}
}
|
package cal;
import java.util.Stack;
/**
* 表达式计算
* 中缀表达式转换为后缀表达式,进行表达式运算
*/
public class Postfix {
public static void main(String[] args) {
String s1 = "3*(3+2)+3*7*2*(2+1)";
//String s2 = "14+5*32*12+*+";
StringBuilder s2 = ch(s1);
System.out.println(s2);
String reg = "... |
/*
* Copyright (c) 2014 ICM Uniwersytet Warszawski All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.test.headlessui;
import java.util.NoSuchElementException;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.Assert;
import org.junit.Bef... |
package com.codingchili.logging.configuration;
import com.codingchili.common.Strings;
import com.codingchili.core.configuration.ServiceConfigurable;
import com.codingchili.core.files.Configurations;
import com.codingchili.core.protocol.Serializer;
import com.codingchili.core.storage.JsonMap;
import io.vertx.cor... |
package com.taim.content.controller.vendor;
import com.taim.backendservice.client.vendor.VendorClient;
import com.taim.content.mapper.VendorOverviewMapper;
import com.taim.content.model.VendorOverviewView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Contro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.