text stringlengths 10 2.72M |
|---|
package edu.palindrome.sweezy.kenneth;
import edu.jenks.dist.palindrome.*;
public class PalindromeChecker extends AbstractPalindromeChecker {
public static void main(String[] args) {
PalindromeChecker instance = new PalindromeChecker();
System.out.println(instance.isPalindrome("%%"));
}
p... |
package com.hlx.view.play;
import com.hlx.model.Score;
import com.hlx.view.common.BackgroundLabel;
import com.hlx.view.common.TipLabel;
import com.hlx.view.common.TranslucentPanel;
/**
* The component that serve the RankPanel
* @author hlx
* @version 1.0 2018-3-21
*/
public class ScorePanel extends ... |
package com.lovers.base.service;
import com.lovers.base.mapper.BaseMapper;
/**
* @Auther: wangzefeng
* @Date: 2019-09-27 22:14
* @Description:
*/
public interface BaseService<E,PK> {
int insert(E e);
int deleteByPrimaryKey(PK pk);
E selectByPrimaryKey(PK pk);
int updateByPrimaryKey(E e);
}
|
package shop.itis.kpfu.ru.server;
import shop.itis.kpfu.ru.client.GreetingService;
import org.springframework.stereotype.Service;
@Service("greetingService")
public class GreetingServiceImpl implements GreetingService {
@Override
public String greet(String name) {
return "Hello, " + name + "!";
}... |
package com.example.studentmanagment;
import java.io.File;
import java.io.FileNotFoundException;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
impor... |
package com.zzwc.cms.common.utils.qiniu;
import com.qiniu.common.QiniuException;
import com.qiniu.common.Zone;
import com.qiniu.http.Response;
import com.qiniu.storage.Configuration;
import com.qiniu.storage.UploadManager;
import com.qiniu.util.Auth;
import com.qiniu.util.StringMap;
import com.qiniu.util.UrlSafeBase64... |
package com.tongchuang.huangshan.admin.controller;
import com.tongchuang.huangshan.admin.annotation.Log;
import com.tongchuang.huangshan.admin.service.ISysRoleService;
import com.tongchuang.huangshan.admin.utils.SecurityUtils;
import com.tongchuang.huangshan.common.base.ResultVO;
import com.tongchuang.huangshan.common... |
package com.bytest.autotest.model.juzifenqi;
import lombok.Data;
/**
* <h3>tool</h3>
* <p>照片信息</p>
*
* @author : hh
* @date : 2020-03-19 23:24
**/
@Data
public class ImgNameList {
private String imageUrl;
private String imageType;
private String transportProtocol;
}
|
public class SmallTest {
public static void main(String[] args) {
String str1 = "abc" , str2;
System.out.println(str1.hashCode());
str2 = str1;
System.out.println(str1 + " " + str1.hashCode() + " " + str2 + str2.hashCode() );
str1 = str1 + "a";
System.out.println(str1 + " " + str1.hashCode() + " " + str2 ... |
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import javax.imageio.ImageIO;
import java.io.*;
class Plansza extends JPanel implements MouseMotionListener, MouseListener
{
int maxAmountOfBalls = 10;
int ballCount = 1;
... |
package com.example.mohammedmansour.newsapp;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com... |
package pl.bykowski.springbootdata;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface CorpseRepo extends CrudRepository<Corpse, Long> {
List<Corpse... |
package com.migu.spider.util;
public class ReflectUtil {
/**
* getObject: 利用反射生成对象. <br/>
*
* @author breeze
* @param path
* @return
* @throws ClassNotFoundException
* @throws InstantiationException
* @throws IllegalAccessException
*/
public static Object getObject... |
package com.example.test;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.util.Base64;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import an... |
/*
* Copyright 2013 Basho 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
package structural.bridge;
public class Test {
public static void main(String[] args){
IImplementation implementation = new ImplementationB();
AAbstraction abstraction = new Abstraction();
abstraction.setImplementation(implementation);
abstraction.operation();
}
}
|
package com.jgw.supercodeplatform.project.zaoyangpeach.controller;
import com.jgw.supercodeplatform.project.zaoyangpeach.service.BatchInfoService;
import com.jgw.supercodeplatform.trace.common.model.RestResult;
import com.jgw.supercodeplatform.trace.common.model.page.AbstractPageService;
import com.jgw.supercodeplatf... |
package Command;
import Exceptions.CommandExecuteException;
import Exceptions.CommandParseException;
import Logic.Game;
import Managers.PrinterManager;
import Printer.BoardPrinter;
public class PrintCommand extends Command {
private String modo;
public final static String commandLetter = "p";
public fin... |
import java.util.Scanner;
import java.io.PrintWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.*;
/**
* This class holds all methods concerning the player.
*
* @author Ahmed Mansour
* @version 8/3/17
*/
public class Player
{
private String name; //name of the p... |
package cn.bdqn.stumanage;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MgrBackFrontApplication {
public static void main(String[] args) {
SpringApplication.run(MgrBackFrontApplication.class, args);
}
... |
package org.jre.sandbox;
import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import or... |
package com.flyusoft.apps.jointoil.action;
import java.util.List;
import org.hibernate.exception.ConstraintViolationException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import com.flyu... |
package com.lucianoscilletta.battleship.ui;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import com.lucianoscilletta.battleship.graphics.*;
import com.lucianoscilletta.battleship.*;
import com.lucianoscilletta.battleship.ui.*;
public class CannonLight extends GameComponen... |
/*
* Copyright (C) 2008-2010 Martin Riesz <riesz.martin at gmail.com>
*
* 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 License, or
* (at your option) any later ve... |
package com._08_method_Reference;
import java.util.function.BiFunction;
@FunctionalInterface
interface Calculater1 {
public int carpmaMessage1(int a, int b);
}
class Calculater {
public static int carpma(int a, int b) {
return a * b;
}
}
public class Example_2 {
public static void main(Stri... |
import java.util.Vector;
public class Controllo {
private Passeggero passeg;
private TipoEsito esito;
private Vector<Merce> merci;
public Controllo(Passeggero passeg, Merce merci, TipoEsito esito){
this.passeg = passeg;
this.merci = merci;
this.esito = esito;
}
public ... |
package az.itcity.etaskify.mapper;
import az.itcity.etaskify.dto.OrganizationDto;
import az.itcity.etaskify.entity.Organization;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
@Mapper
public interface OrganizationDtoMapper {
Organiz... |
package com.example.forcatapp.Group;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import android.content.Context;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import com.example.forcatapp.R;
import com.example.forcatapp.util.BottomNavBar... |
package com.hoanganhtuan95ptit.awesomekeyboard.view.model;
import java.io.Serializable;
/**
* Created by DuyPC on 5/23/2017.
*/
public class Photo implements Serializable {
private String url;
private long time;
private boolean select=false;
public String getUrl() {
return url;
}
... |
package fr.ecole.eni.lokacar.bddHelper;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import fr.ecole.eni.lokacar.contract.ClientContract;
import fr.ecole.eni.lokacar.contract.GlobalContract;
import fr.ecole.eni.lokacar.contract.Salarie... |
package com.metoo.core.domain;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import com.metoo.core.annotation.Loc... |
package com.huadin.huadin;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.huadin.biz.FeedbackBiz;
import com.huadin.utils.ExceptionUtil... |
package com.robin.springboot.demo.db.jdbc;
import com.robin.springboot.demo.db.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Service;
import java.sql.Re... |
package com.dbs.util;
public class PaddingUtil {
public static final int PADDING_NONE = 0;
public static final int PADDING_LEFT = 1;
public static final int PADDING_RIGHT = 2;
public static String paddingLeftItem(String target, String item, int length){
String output = target;
if (output != null... |
package Actions;
import Articles.*;
import Attributes.Attribute;
import Utils.Data;
import java.util.ArrayList;
public class Fetch extends Action {
Article type;
ArrayList<Attribute> limiters = new ArrayList<>();
boolean noLimit=true;
ArrayList<Integer> attributeIDs;
boolean allAtt=true;
publ... |
package cn.hellohao.dao;
import cn.hellohao.pojo.Group;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author Hellohao
* @version 1.0
* @date 2019/8/19 16:11
*/
@Mapper
public interface GroupMapper {
List<Group> grouplist();
Group id... |
package com.vincent.thread;
/**
* Created by chenjun on 2020-03-10 22:10 ,变量可见性测试
*/
public class VariableVisibleTest {
private static boolean initFlag = false;
public static void monitor() {
while (!initFlag) {
}
System.out.println("监听状态被另外的线程更改就行啦");
}
public static vo... |
/*
* 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 org.sayesaman.app3;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.widget.Image... |
package sk.somvprahe.client;
import java.util.Date;
public class SvpEntity {
protected Date parseDate(String date) {
return new Date( Long.parseLong( date ) * 1000 );
}
}
|
package com.xue.trainingclass.activity;
import java.util.List;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.EditTe... |
package com.example.consumer.mapper;
import com.example.consumer.entity.MessageTest;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface MessageTestMapper {
List<MessageTest> findAll();
}
|
package org.bridgedb.webservicetesting.BridgeDbWebservice;
import org.restlet.data.MediaType;
import org.restlet.representation.Representation;
import org.restlet.representation.StringRepresentation;
import org.restlet.resource.Get;
public class NoMatch extends RestletResource {
@Get
public Representation getNoMat... |
package com.alibaba.druid.pool;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.PriorityQueue;
import java.util.Properties;
import java.util.Stack;
i... |
package edu.sjsu.assignment3;
import org.junit.jupiter.api.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.time.LocalDate;
import java.util.Arrays;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class AppointmentTest {
@Test
public void testOccursOn()... |
package use_collection.use_list;
public class UseArrayList {
}
|
package org.jenkinsci.test.acceptance.docker.fixtures;
import org.jenkinsci.test.acceptance.docker.DockerContainer;
import org.jenkinsci.test.acceptance.docker.DockerFixture;
import java.io.IOException;
import java.net.URL;
/**
* Runs Foreman container.
*
*/
//CS IGNORE MagicNumber FOR NEXT 2 LINES. REASON: Mock ... |
package com.beike.util;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.security.MessageDigest;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.... |
package com.pmikee.kir;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class Product implements Serializable {
private static final long serialVersionUID = 1L;
String id;
String name;
String description;
BigDecimal st... |
package selenium;
import selenium.helpers.SeleniumHelpersAnswers;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Iteration2Answers {
... |
package Instantiation;
public class Airplane {
public static void main(String[] args)
{
Boeing B = new Boeing();
B.takeOff();
B.takeDown();
Airbus A = new Airbus();
A.takeOff();
A.takeDown();
}
}
class Boeing extends Airplane implements Flight
{
public void takeOff()
{
... |
package com.sai.one.config;
import com.sai.one.constants.PropertyConstants;
import com.sai.one.dto.User;
import com.sai.one.mq.RabbitMQ.listeners.RegisterListenerRabbitMQ;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.DirectExcha... |
package com.taim.content.mapper;
import com.taim.backendservice.model.Staff;
import com.taim.content.model.StaffOverviewView;
import org.springframework.stereotype.Component;
@Component
public class StaffOverviewMapperImpl implements StaffOverviewMapper {
@Override
public StaffOverviewView map(Staf... |
package im.compIII.exghdecore.servlets;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/")
public... |
package com.myvodafone.android.model.service;
import com.myvodafone.android.utils.GlobalData;
import com.myvodafone.android.utils.StaticTools;
import com.myvodafone.android.utils.VFPreferences;
import java.io.Serializable;
import java.util.ArrayList;
public class Bundle_item extends BundlesAddons implements Serializ... |
package com.petclinicspring.com.services.map;
import com.petclinicspring.com.models.Owner;
import com.petclinicspring.com.services.PetService;
import com.petclinicspring.com.services.PetTypeService;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
imp... |
package com.pan.al.graph;
import java.util.ArrayList;
import java.util.List;
public class minlu {
/**
* 从一顶点到其余各顶点的最短路径 o(n2)
* @param gr
* @param i
* @param dist
* @param path
*/
public static void Dijkstra(AdjacencyGraph gr,int i,int [] dist,List[] path)
{
//利用迪克... |
package net.klonima.reddittechnicaltest.activities;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.ProgressBar;... |
package io.github.satr.aws.lambda.bookstore.entity;
// Copyright © 2020, github.com/satr, MIT License
import java.util.UUID;
public class Book {
private String isbn;
private String title;
private String author;
private int issueYear;
private double price = 0.0;
public Book() {
this.is... |
package tree;
import java.util.List;
public interface Tree {
List<TreeNode> preOrder(boolean withRec, TreeNode currentNode);
List<TreeNode> inOrder(boolean withRec, TreeNode currentNode);
List<TreeNode> postOrder(boolean withRec, TreeNode currentNode);
List<TreeNode> levelOrder(TreeNode currentNo... |
package quizapp.core;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class UserTest {
private User user;
@Before... |
package nju.joytrip.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import ... |
/*
* 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 edu.uha.miage.core.entity;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.p... |
package com.eshop.models;
import com.eshop.exceptions.InvalidInputException;
public class Mouse extends Article {
private String resolution;
public Mouse(String label, String model, double price, String resolution, String image, int id)
throws InvalidInputException {
super(label, model, price, image, id)... |
//this is just like the Main.java file in the Treehouse coursework
public class Example{
public static void main(String args[]){
//Person is a data type
//create persons
Person student1 = new Person("Josh",30);
Person student2 = new Person("Sandie",20);
Per... |
package restaurant;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
public class Main {
private static SessionFactory sessionFactory;
public static void main(String[] args) {
Session session = null;
try {
// This step will read hibernate.cfg.xml ... |
package com.lesports.albatross.adapter.learn;
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.facebook.drawee.view.SimpleDraweeView;
import com.lesport... |
package pathfinding;
import java.util.ArrayList;
public class Simulator {
private PF_Core pf;
private PF_Core pf2;
private PathFinding PFS;
private double[] Position = {1,0.8};
private double step = 100;
private boolean is_simulated = false;
private ArrayList<Integer> waypointListX = new ArrayList<Integer>(... |
package com.pescamillam.ewavefem.window;
import java.awt.BorderLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileInputStream;
import java.io.Fil... |
package com.udacity.gradle.builditbigger.utils;
import com.google.api.client.extensions.android.http.AndroidHttp;
import com.google.api.client.extensions.android.json.AndroidJsonFactory;
import com.google.api.client.googleapis.services.AbstractGoogleClientRequest;
import com.google.api.client.googleapis.services.Googl... |
public class HorseChessProblem1 {
public static void main(String[] args) {
int a[][] = new int[8][8];
int i=3;
int j = 4;
a[3][4] = 1;
if (i - 2 >= 0 && j + 1 <a.length) {
a[i - 2][j + 1] = 2;
}System.out.println();
if(i-2>=0 && j-1>=0)
{
a[i-2][j-1]=2;
}
if(i-1>... |
package com.atguigu.edu.controller;
import com.atguigu.commonutils.R;
import com.atguigu.edu.entity.subject.OneSubject;
import com.atguigu.edu.service.EduSubjectService;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import... |
package com.example.geoquiz;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
public class Output extends AppCompatActivity {
private TextView mScore;
//total sco... |
package count_vowels;
import java.util.HashMap;
import java.util.Map.Entry;
import java.util.Set;
/*-*
Count Vowels –
Enter a string and the program counts the number of vowels in the text.
For added complexity have it report a sum of each vowel found.
*/
/**
*
* @author jingchen
*
*/
public class CountVowels {
... |
package com.soldevelo.vmi.scheduler.validation;
import com.soldevelo.vmi.config.acs.model.HostParams;
import com.soldevelo.vmi.enumerations.TestProtocol;
import com.soldevelo.vmi.packets.TestRequestPhase2;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
... |
package org.example.DataStreams.service;
import java.util.Collections;
import org.apache.kafka.clients.consumer.Consumer;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.example.DataStre... |
package Network_Module;
public class NetworkConstant {
//将本机服务端的ip地址,和port搭配启动Netty服务
public static String serverIp = "192.168.1.207";
//默认为8080.但是在Netty服务启动之后就会被改变为一个[9000-49152]之间的任意一个数值
public static int serverPort = 8088;
//最大数据节点数
public static final int MAX_IN_NODES = 10;
//最大数据节点数
... |
package com.git.cloud.common.exception;
public class RollbackableBizException extends BizException{
/**
* 异常版本号
*/
private static final long serialVersionUID = 1L;
/**
* 一般的异常构造,由于不包含异常代码,不建议使用
*/
public RollbackableBizException() {
super();
}
public RollbackableBizException(String mes... |
/*
* 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.innovaciones.reporte.service;
import com.innovaciones.reporte.dao.DetalleReporteInstalacionNuevaDAO;
import com.innovacion... |
package com.outfitterandroid;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.BaseAdapter;
import android.widget.Button;
imp... |
package com.cg.go.greatoutdoor.dto.salesReport;
public class CreateSalesReportRequest {
private String productId;
private String productName;
private Integer quantitySold;
private double totalSale;
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.produ... |
package dk.webbies.tscreate.paser.AST;
import com.google.javascript.jscomp.parsing.parser.util.SourceRange;
import dk.webbies.tscreate.paser.ExpressionVisitor;
import java.util.Arrays;
/**
* Created by erik1 on 23-05-2016.
*/
public class RegExpExpression extends Expression {
private final String value;
p... |
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class BankAccountTests {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public void test_in... |
package com.ifeng.recom.mixrecall.common.constant;
import com.ifeng.recom.mixrecall.common.util.IPUtil;
/**
* Created by jibin on 2017/12/26.
*/
public class GyConstant {
/**
* 本机ip,用作系统缓存分片使用
*/
public final static String linuxLocalIp = IPUtil.getLinuxLocalIp();
/**
* ... |
package com.snapup.service;
import com.snapup.pojo.SeatTicket;
import java.util.List;
public interface TicketService {
double EARTH_RADIUS = 6378.137; //地球半径(单位:千米)
//真正的初始化:
public int initial(int run_serial);
//创建座位价格信息:
public void createTicket(int run_serial, String depart_station_... |
package com.study.yf.grpc.Server;
import io.grpc.Server;
import io.grpc.ServerBuilder;
import io.grpc.stub.StreamObserver;
import learn_grpc.LearnGrpc;
import learn_grpc.ServiceGrpc;
import java.io.IOException;
/**
* @author: YangFei
* @description:
* @create:2020-12-02 15:33
*/
public class ServiceServer {
... |
package com.t11e.discovery.datatool;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.FileFilterUtils;
import org.jun... |
package Termin9;
public class Addierer {
public static void main(String[] args) {
int[] zahl1 = {3, 4, 2};
int[] zahl2 = {6, 2, 9};
int[] erg = addiere(zahl1, zahl2);
for (int d : erg) {
System.out.print(d); //Gebe die Zahl aus
}
System.out.println();
}
public static int [] addiere(int[] z... |
/*
* 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 mx.appsw.frontend.ui;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.enterprise.context.Sess... |
package ru.innopolis.common;
/**
* CurruncyConventer.
*
* @author lifeandfree
*/
public interface CurrencyConverter {
double convert(double sum);
Money convertMoney(Money money);
}
|
package bupt.hpcn.onlinestandard.controller;
import bupt.hpcn.onlinestandard.domain.CityDO;
import bupt.hpcn.onlinestandard.domain.ProvinceDO;
import bupt.hpcn.onlinestandard.service.LocationService;
import com.alibaba.fastjson.JSONObject;
import netscape.javascript.JSObject;
import org.springframework.beans.factory.a... |
package common.solr;
import java.util.ArrayList;
public class ResultList<T> extends ArrayList<T> {
private long start = 0;
private long total = 0;
public ResultList() {
}
public ResultList(long total) {
this.setTotal(total);
}
public ResultList(long total, long start) {
this.setTotal(... |
package top.piao888.thrift;
import org.apache.thrift.TProcessor;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.server.TNonblockingServer;
import org.apache.thrift.server.TServer;
import org.apache.thrift.transport.TFastFramedTransport;
import org.apache.thrift.transport.TNonblockin... |
package com.example.kkopite.zhihudemo.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by forever 18 kkopite on 2016/7/1 21:01.
*/
public class DBHelper extends SQLiteOpenHelper {
public static final String TABLE_... |
package app.servlets;
import app.service.UserService;
import app.service.UserServiceImp;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet... |
package com.lesports.airjordanplayer.utils;
/**
* Created by litzuhsien on 8/19/15.
*/
public class ExceptionUtils {
public static Throwable findRootCause(Throwable throwable) {
if (throwable == null) return null;
Throwable cause = throwable;
while (cause.getCause() != null) {
... |
package ch.mitti.geometrische_figuren;
import java.awt.geom.*; //Alle Klassen des Geometrie-Pakets
public class Ellipse extends Figur {
// Attribute
private int radius1;
private int radius2;
// Konstruktor
public Ellipse() {
super(50,50,"magenta");
this.radius1=15;
thi... |
package algorithms.search.symboltable.client;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import algorithms.search.ST;
import algorithms.utils.TimeWatch;
import lombok.Getter;
import lombok.Setter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springfra... |
package com.example.fileshare.service;
import org.springframework.core.io.Resource;
import org.springframework.web.multipart.MultipartFile;
import java.nio.file.Path;
import java.util.List;
public interface StorageService {
void init();
String store(MultipartFile file);
Path load(String filename);
... |
package com.redsun.platf.util;
import org.springframework.security.authentication.encoding.Md5PasswordEncoder;
import org.springframework.security.authentication.encoding.MessageDigestPasswordEncoder;
import org.springframework.security.authentication.encoding.ShaPasswordEncoder;
import org.springframework.security.cr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.