text stringlengths 10 2.72M |
|---|
package com.g7s.ics.testcase.ReportDayFinance;
import com.g7s.ics.api.ReportDayFinanceApi;
import io.qameta.allure.Description;
import io.qameta.allure.Epic;
import io.qameta.allure.Feature;
import io.restassured.response.Response;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import ... |
package lab5_jorgevega;
/**
Jorge Vega
*/
public class Clase_Estudiante {
private String GENE;
private String APELLI;
private String NAME;
private String CARRE;
private int EDAD;
private int COUNT;
public Clase_Estudiante() {
}
public Clase_Estudiante(String NOMBRE, String A... |
package com.rhysnguyen.casestudyjavaweb.service;
import com.rhysnguyen.casestudyjavaweb.entity.Employee;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
public interface EmployeeService {
Page<Employee> findAll(Pageable pageable);
Employee findById(Long id);
v... |
package com.yinghai.a24divine_user.module.divine.book.pay;
import com.yinghai.a24divine_user.base.MyBasePresenter;
import com.yinghai.a24divine_user.bean.AliPayBean;
import com.yinghai.a24divine_user.bean.WechatPayBean;
/**
* @author Created by:fanson
* Created Time: 2017/11/16 17:09
* Describe:
*... |
package me.themgrf.skooblock.utils;
import org.bukkit.ChatColor;
import org.bukkit.inventory.ItemStack;
import java.util.List;
/**
* A simple string modification class to colour or reformat text
*/
public class Text {
/**
* Format a string to contain Bukkit colour codes
*
* @param msg The messa... |
package math;
public class Matrix {
public static int[][] plus(int[][] a, int[][] b) {
int rows = a.length;
int cols = a[0].length;
int[][] c = new int[rows][];
for (int i = 0; i < rows; i++)
c[i] = new int[cols];
for (int row = 0; row < rows; row++) {
for (int col = 0; col < cols; col++) {
c[row]... |
package com.lbins.FruitsBusiness.data;
/**
* Created by Administrator on 2015/8/12.
* "id": "9",
"url": "http://www.baidu.com/",
"dateline": "1446422704",
"imgurl": "/Uploads/2015-11-02/5636a8b031af8.png"
*/
public class AdSlide {
private String id;
private String url;
private String dateline... |
import java.io.*;
import java.util.*;
import java.util.stream.Collectors;
public class WordCount {
public static void main(String[] args){
ArrayList<String> list = new ArrayList<String>();
ArrayList<String> listScanner = new ArrayList<String>();
try(
BufferedReader in = new BufferedReader( new Fil... |
package com.smxknife.annotation.processor;
import javax.annotation.processing.Filer;
import javax.lang.model.util.Elements;
/**
* @author smxknife
* 2019-03-28
*/
public interface DataPointGenerator {
void generate(Elements elements, Filer filer);
}
|
/*
* 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.test.BikeRentalApp.exceptions;
/**
*
* @author Keagan Nigel Gonsalves <kg19aaj@herts.ac.uk>
*/
public class ... |
package org.codeshifts.spring.core.contextconfiguration;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframewo... |
package com.android.testapplication.dataModels;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
/**
* TestApplication
* Created by Alex on 18.05.2017.
* contact on luck.alex13@gmail.com
* © Alexand... |
package characters;
/**
* Created by Stark on 2017/12/14.
* 新的整数字面表达式
* -"0b" 二进制前缀
* -"_" 连接符
*/
public class Character_3 {
public static void main(String[] args) {
//下面的值相同
byte b1 = 0b00100001; //二进制表示
byte b2 = 040;//八进制表示
byte b3 = 0x21;//16进制
byte b4 = 32; //十进制
... |
package com.bastiaanjansen.jwt;
import com.bastiaanjansen.jwt.algorithms.Algorithm;
import com.bastiaanjansen.jwt.exceptions.JWTCreationException;
import com.bastiaanjansen.jwt.exceptions.JWTDecodeException;
import com.bastiaanjansen.jwt.exceptions.JWTExpiredException;
import com.bastiaanjansen.jwt.exceptions.JW... |
package nelsys.modelo;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Funcionario {
@Id
private String idpessoafuncionario;
public void setIdpessoafuncionario(String idpessoafuncionario) {
this.idpessoafuncionario = idpessoafuncionario;
}
public String getIdpessoafunciona... |
/*
* YNAB API Endpoints
* Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudget.com
*
* OpenAPI s... |
package synchronized_test;
public class Synchronized {
//1,同步方法 2,加入static关键字
public void method1(){
System.out.println("method1 start!");
try {
synchronized(this){
System.out.println("method1 excute");
Thread.sleep(3000);}
} catch (InterruptedException e) {
// TODO Auto... |
package com.tencent.mm.plugin.remittance.model;
import android.net.wifi.WifiInfo;
import com.tencent.mm.ab.b;
import com.tencent.mm.ab.b.a;
import com.tencent.mm.ab.e;
import com.tencent.mm.ab.l;
import com.tencent.mm.g.a.fo;
import com.tencent.mm.kernel.g;
import com.tencent.mm.network.k;
import com.tencent.mm.networ... |
package jetris.model;
import org.apache.commons.lang3.RandomUtils;
import jetris.model.Tetromino.Shape;
class RandomTetrominoFactory implements TetrominoFactory {
@Override
public Tetromino create() {
Shape shape = Shape.values()[RandomUtils.nextInt(0, Shape.values().length)];
return new Tet... |
package tests_dominio;
import dominio.Asesino;
import dominio.Elfo;
import dominio.Guerrero;
import dominio.Humano;
import java.util.HashMap;
import org.junit.Assert;
import org.junit.Test;
public class TestGuerrero {
@Test
public void testDobleGolpe() {
HashMap <String,Integer> mapa = new HashMap<String,Integ... |
package PhotosView;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.ResourceBundle;
import app.Persistance;
import app.Photo;
import app.User;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FX... |
package com.hladkevych.menu.utils.mlp;
import java.io.IOException;
import org.apache.log4j.Logger;
import org.datavec.api.records.reader.RecordReader;
import org.datavec.api.records.reader.impl.csv.CSVRecordReader;
import org.datavec.api.split.FileSplit;
import org.datavec.api.util.ClassPathResource;
import org.deeple... |
package com.example.michael.e_;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
/*
有别于后台服务
不会被回收 优先级高
*/
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle... |
package com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.builder;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.GLUEHENPlanungType;
import com.thyssenkrupp.tks.fls.qf.server.qcs.receive.xml.ProgrammzeileType.BEHGN3;
import java.io.StringWriter;
import javax.xml.bind.JAXBElement;
import javax.xml.bi... |
/**
* KITE
*/
package com.kite.modules.att.dao;
import javax.websocket.server.PathParam;
import org.apache.ibatis.annotations.Param;
import com.kite.common.persistence.CrudDao;
import com.kite.common.persistence.annotation.MyBatisDao;
import com.kite.modules.att.entity.SysBaseCoach;
/**
* 教练员DAO接口
* @author lyb... |
package com.cibertec.controller;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.sp... |
package com.example.hbase;
import com.example.hbase.utils.RedisClusterUtil;
import com.example.hbase.utils.RedisParam;
import com.example.hbase.utils.RedisUtil;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.co... |
package simplePageRank;
import java.io.IOException;
import java.util.*;
import org.apache.hadoop.io.*;
import org.apache.hadoop.mapreduce.*;
public class simplePageRank_reduce extends Reducer<Text, Text, Text, Text>{
public static float randomJump = 0.85f;
public void reduce(Text key, Iterable<Text> values, Co... |
package com.tencent.mm.ui.base;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.AttributeSet;
import android.view.View.OnClickListener;
import android.view.View.OnFocusChangeLi... |
package joshelser.hashtable;
import java.util.Collection;
import java.util.Map.Entry;
import java.util.Set;
public interface HashTable<K,V> {
public V get(K key);
public boolean put(K key, V value);
public V remove(K key);
public int size();
public Set<K> keySet();
public Collecti... |
package com.java.michael.chesstutor;
public class Cell {
Boolean hasPiece;
int row;
int column;
Cell(int row, int column, Boolean hasPiece){
this.row = row;
this.column = column;
this.hasPiece = hasPiece;
}
Cell(int row, int column){
this.row = row;
this.... |
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
public class DaysBetweenTwoDays {
//Write a program to calculate the difference between two dates in number of days.
//The dates are entered at two consecutive lines in format day-month-year.
//Day... |
package cn.org.cerambycidae.mapper;
import cn.org.cerambycidae.pojo.StudentJSFInfo;
import cn.org.cerambycidae.pojo.StudentJSFInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface StudentJSFInfoMapper {
long countByExample(StudentJSFInfoExample example);
int deleteB... |
package com.tecapro.ldap.cache;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IMap;
import com.unboundid.ldap.sdk.LDAPConnectionPool;
import org.springframework.util.Assert;
import java.util.HashMap;
import java.util.Map;
/**
* Created by chai65 on 12/21/2016.
*/
public class CacheFactory ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.insat.gl5.crm_pfa.web.controller;
import java.io.Serializable;
import javax.enterprise.context.Conversation;
import javax.inject.Inject;
import org.jboss.solder.logging.Logger;
/**
*
* @author Mu7ammed 3... |
package com.tradeshift.todo.webentity;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import org.codehaus.jackson.map.annotate.JsonRootName;
@XmlAccessorType(XmlAccessType.... |
/*
Даны координаты двух различных полей шахматной доски x1, y1, x2, y2 (целые числа, лежащие в диапазоне 1–8). Проверить истинность высказывания: «Данные поля имеют одинаковый цвет».
*/
public class Ex_20_func {
public static boolean cond(int x1, int y1, int x2, int y2){
boolean cond = false;
if (x1 < 1 || x1 > 8)... |
package com.goodhealth.web.Timer;
import com.goodhealth.comm.util.DateUtils;
import org.springframework.stereotype.Component;
import java.util.Date;
/**
* @Description
* @Author WDH
* @Date 2019/9/28 10:51
**/
@Component
public class TimeWork {
public void task(){
System.out.println("现在是北京时间:"+ Date... |
package com.example.zhifou.entity;
import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Entity;
import javax.persistence.Id;
@Data
@Entity
@DynamicUpdate
public class CommentInfo {
@Id
private int commentId;
}
|
package com.getlosthere.apps.peep.fragments;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.widget.Toast;
import com.getlosthere.apps.peep.applications.TwitterApplication;
import com.getlosthere.apps.peep.helpers.NetworkHelper;
import com.getlosthere.apps... |
package com.lch.testscripts;
import java.net.ConnectException;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Guice;
import org... |
package com.tinyurl.service;
import java.util.Optional;
import org.springframework.cache.annotation.Cacheable;
import com.tinyurl.model.TinyUrl;
public interface TinyUrlService {
public TinyUrl createTinyUrl(String longUrl) throws Exception;
@Cacheable(value = "retrieveTinyUrlCache", key = "#shortUrl")
public O... |
package com.xujiangjun.archetype.service.component;
import com.alibaba.fastjson.JSONArray;
import com.xujiangjun.archetype.support.RpcResult;
import com.xujiangjun.archetype.enums.ResponseEnum;
import com.xujiangjun.archetype.exception.BusinessException;
import lombok.extern.slf4j.Slf4j;
import org.aopalliance.interce... |
package com.gtfs.dao.impl;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import org.apache.log4j.Logger;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cri... |
package com.espendwise.manta.web.tags;
import com.espendwise.manta.util.alert.AppLocale;
import com.espendwise.manta.auth.Auth;
import com.espendwise.manta.i18n.I18nUtil;
import javax.servlet.jsp.tagext.TagSupport;
import javax.servlet.jsp.JspException;
import java.io.IOException;
public class DayMonthProm... |
package com.test;
import java.lang.reflect.Field;
import java.rmi.AlreadyBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.util.Properties;
import com.interf.test.Constant;
import examples.Config;
//import model.nn_c... |
package com.johacks;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.SignatureException;
import java.security.spec.... |
package com.tt.miniapp.impl;
import com.tt.option.v.b;
public class HostOptionSceneDependImpl implements b {
public String getScene(String paramString) {
return "";
}
}
/* Location: C:\Users\august\Desktop\tik\df_miniapp\classes.jar!\com\tt\miniapp\impl\HostOptionSceneDependImpl.clas... |
package com.example.demo;
public class MethodOverride {
public static void main(String[] args){
Animal animal = new Animal();
animal.makeNoise();
Cat cat = new Cat();
cat.makeNoise();
}
}
class Animal{
void makeNoise(){
System.out.println("Animal makes noise.");
... |
package com.yuyang.wirelesstransmission;
import android.app.AlertDialog;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Co... |
package seveida.firetvforreddit.response.objects;
import com.squareup.moshi.Json;
public class Gildings {
@Json(name = "gid_1")
public int gid1;
@Json(name = "gid_2")
public int gid2;
@Json(name = "gid_3")
public int gid3;
/**
* No args constructor for use in serialization
*
... |
package fss;
import shared.*;
import shared.Error;
import java.lang.*;
public class ShowTestSetPerf{
/* ShowTestSetPerf ENUM */
public final static byte showNever = 0;
public final static byte showFinalOnly = 1;
public final static byte showBestOnly = 2;
public final static byte showAlways = 3;
/* END ENUM ... |
package com.example.gayashan.limbcare;
import android.Manifest;
import android.content.ContentValues;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Bitmap;
import android.graphics.BitmapFac... |
package utils;
import java.util.Scanner;
public class SendGmailUtil {
public static void sendGmail(String gmail,String sub,String msg) {
final String user = "nsklap2611@gmail.com";
final String pass="maiyeu97";
SendMail.send(gmail, sub, msg, user, pass);
}
}
|
package com.gsonkeno.elasticsearch;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.client.Client;
import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.search.SearchHit;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/** es滑动查询结果容器
* Crea... |
package ar.edu.design.examples.clientesTarjetaCredito.domain;
public interface CondicionComercial {
public void comprar(int monto, Cliente cliente);
}
|
package com.tencent.mm.plugin.recharge.ui;
public interface MallEditText$b {
void bqa();
void fE(boolean z);
}
|
package com.encore.spring.model.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.encore.spring.domain.MyProduct;
import... |
package com.paytechnologies.DTO;
public class NavDrawerItems {
private int id;
private int category;
private String itemName;
private int icon;
private int selectedIcon;
private int pressesIcon;
private boolean isSelected = false;
public int getId() {
return id;
}
public void setId(int id) {
this.id ... |
package owner;
public class OwnerImpl implements Owner {
private String name;
public OwnerImpl(String name) {
this.name = name;
}
@Override
public String getName() {
return name;
}
}
|
package queue;
import java.util.LinkedList;
import java.util.Queue;
public class Programmars_2 {
public static void main(String[] args){
Programmars_2 s = new Programmars_2();
int[] priorities = {2, 1, 3, 2};
System.out.println(s.solution(priorities, 2));
priorities = new int[]{1,... |
package cn.com.custom.widgetproject.callback;
/**
* 请求事件
* Created by custom on 2016/6/14.
*/
public class ReuqstEvent {
public String mMsg;//传递的信息
public int cateGoryCode;//分类号
public ReuqstEvent(String Message,int cate) {
mMsg = Message;
this.cateGoryCode =cate;
}
}
|
public class LisasKlasse {
}
|
/*
* Copyright (C) 2023 Hedera Hashgraph, LLC
*
* 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 la... |
package com.wx.service;
import org.springframework.web.client.RestOperations;
/**
* Created by Shawn on 2014/4/30.
*/
public class RestService {
private RestOperations restTemplate;
public RestOperations getRestTemplate() {
return restTemplate;
}
public void setRestTemplate(RestOperations ... |
package com.milos.client;
import com.milos.domain.Answer;
import com.milos.domain.logger.PrimitiveLogger;
import com.milos.domain.Message;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.concurrent.BlockingQueue;
import static com.milos.domain.Answer.Type.ACKNOWL... |
package com.test.taskSix;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
public class Main {
/**
* Имеется набор вещей, которые необходимо поместить в рюкзак.
* Рюкзак обладает заданной грузоподъемностью. Вещи в свою
* очередь обладают двумя парам... |
abstract class Player{
abstract void Play(String song, String jack, int Vol);
}
class MP3Player extends Player{
@Override
void Play(String song, String jack, int vol) {
System.out.println("Song to be played = "+ song);
System.out.println("Selected Mode = "+ jack);
System.out.println("Selected Volume Le... |
package com.tencent.mm.plugin.talkroom.model;
import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.IBinder;
import android.os.Looper;
import com.tencent.mm.plugin.talkroom.component.a.a;
import com.tencent.mm.sdk.platformtools.ag;
import com.tencent.mm.sdk.platformtools.x;
... |
package com.tencent.mm.plugin.account.friend.a;
import com.tencent.mm.aa.j;
import com.tencent.mm.aa.q;
import com.tencent.mm.protocal.c.arf;
import com.tencent.mm.protocal.c.arh;
import com.tencent.mm.sdk.platformtools.ah.a;
import com.tencent.mm.sdk.platformtools.x;
import java.util.Iterator;
class ag$1 implements ... |
package com.insat.gl5.crm_pfa.model;
import com.insat.gl5.crm_pfa.enumeration.Salutation;
import java.util.LinkedList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistenc... |
package com.tencent.liteav.network;
public interface TXIStreamDownloader$a {
void onRestartDownloader();
}
|
package com.ht.springboot_power.mapper;
import com.ht.springboot_power.entity.UserEntity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
/**
* @company 宏图
* @User Kodak
* @create 2019-06-03 -20:36
* @Email:2270301642@qq.com
*/
public interface UserMapper {
... |
package br.com.physics.app;
import br.com.physics.control.Control;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
new Control();
}
}
|
package com.dreamcatcher.member.action;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.json.simple.JSONObject;
import com.dreamcatch... |
package buildcraftAdditions.entities;
import buildcraft.core.inventory.SimpleInventory;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
/**
* Copyright (c) 2014, AEnterprise
* http://bu... |
package modul4.chapter4;
public class Lotto {
public Lotto(int[] randomLottoNumbers) {
this.randomLottoNumbers = randomLottoNumbers;
}
private int[] randomLottoNumbers;
public int calcResult(int[] inputNumbers) {
int counter = 0;
for (int lottoNumber : randomLottoNumbers) {
... |
package com.tiandi.logistics.entity.front;
import lombok.Data;
import java.math.BigDecimal;
/**
* @author kotori
* @version 1.0
* @date 2020/12/7 09:50
* @description
*/
@Data
public class PutOrder {
/**
* 物品编号
*/
private String idGoods;
/**
* 订单编号
*/
private String idOrder... |
package com.hly.o2o.dao;
import com.hly.o2o.entity.Award;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface AwardDao {
/**
* 根据传入的条件查询奖品列表
*
* @param awardCondition
* @param rowIndex
* @param pageSize
* @return
*/
List<Award> queryAwardLis... |
package grid.model;
/**
* Creates the Hipster object.
* @author jmen1495
* @version 1.4 11/20/13 Added getters/setters, overloaded constructor for additional hipsters, documentation comments.
*/
public class Hipster
{
/**
* The name of the Hipster
*/
private String name;
/**
* The type of the Hipster
*... |
package com.wangyi.wangyi_yanxuan.service;
import com.wangyi.wangyi_yanxuan.domain.Perssion;
import com.wangyi.wangyi_yanxuan.vo.R;
import java.util.List;
public interface PerssionService {
List<String> queryByUid(Integer uid);
/**
* 根据id删除Perssion对象
*
* @param id
* @return
*/
... |
package com.miaoshaproject.service;
import com.miaoshaproject.error.BusinessException;
import com.miaoshaproject.service.model.UserModel;
public interface UserService {
/**
* 通过用户id获取用户对象的方法
* @param id
*/
UserModel getUserById(Integer id);
void register(UserModel userModel) throws Bu... |
package mygroup;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
class ForbidLock { // 自定义不可重入锁
private boolean isLocked = false;
public synchronized void lock... |
execute(registers, memory) {
String st0 = registers.get("ST0");
Double result = Double.parseDouble(st0);
Converter converter = new Converter(st0);
st0 = converter.toDoublePrecisionHex();
// examine st0
String first = st0.charAt(0) + "";
converter = new Converter(first);
first = converter... |
package map;
import java.util.HashMap;
import java.util.Map;
import java.util.StringTokenizer;
import map.MapReduce;
import ordo.Job;
import formats.Format;
import formats.FormatReader;
import formats.FormatWriter;
import formats.KV;
//celui donné par le sujet
public class MapReduceImpl implements MapReduce {
priv... |
package com.tangdi.production.mpnotice.constants;
/**
* 支付宝 参数 配置 类
*
* @author limiao
*
*/
public class AliPayConfig {
}
|
package org.sbbs.app.gen.service.impl;
import org.sbbs.app.gen.dao.GenEntityDao;
import org.sbbs.app.gen.model.GenEntity;
import org.sbbs.app.gen.service.GenEntityManager;
import org.sbbs.base.service.impl.BaseManagerImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewo... |
package org.tc.service;
import org.tc.bean.UserInfo;
public interface SysUserService {
public UserInfo findUserByName(String userName);
public String getValueByKey(String key);
}
|
package com.javasongkb.changgou.mapper;
import com.javasongkb.changgou.model.Spu;
public interface SpuMapper {
int deleteByPrimaryKey(Long id);
int insert(Spu record);
int insertSelective(Spu record);
Spu selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(Spu record);
int update... |
package com.wellness.eva;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.format.DateFormat;
import android.view.Menu;
import android.view.Menu... |
/**
* 在该类中包含遗传算法本身的操作所需的方法和变量
* 这个类包括处理交叉、变异、适应度评估和终止条件检查的逻辑
* @author jpgong
*
*/
public class GeneticAlgorithm {
private int populationSize; //种群规模
private double mutationRate; //变异率
private double crossoverRate; //交叉率
private double elitismCount; //精英成员数
public GeneticAlgorithm(int population... |
package NivelDeAcceso.Usuario;
public abstract class Employee {
public String name;
private int hireRent;
protected String country;
public int getHireRent() {
return hireRent;
}
public void setHireRent(int hireRent) {
this.hireRent = hireRent;
}
protected abstract double monthlyPay();
protected abstrac... |
package kr.ds.store;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Map;
import kr.ds.custom.StaticValue;
import kr.ds.mylotto.R;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Intent;
import android.content.pm.PackageManager.... |
package poc.ignite.controller;
import java.util.Set;
import java.util.TreeMap;
import javax.annotation.PostConstruct;
import org.apache.ignite.Ignite;
import org.apache.ignite.IgniteCache;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
imp... |
package com.team.vo;
import java.util.List;
import lombok.Data;
@Data
public class TaskList {
private int listNo;
private int projectNo;
private String listName;
private boolean deleted;
private List<Task> tasks;
}
|
package sort;
public class RadixSort {
public static void radixSort(int[] arr){
if(arr == null || arr.length < 2){
return;
}
}
}
|
/* 1: */ package com.kaldin.setting.forgotpassword.hibernate;
/* 2: */
/* 3: */ import com.kaldin.common.util.HibernateUtil;
/* 4: */ import com.kaldin.setting.forgotpassword.dto.forgotPasswordDTO;
/* 5: */ import com.kaldin.user.register.dto.CandidateDTO;
/* 6: */ import com.kaldin.user.registe... |
package com.rockwellcollins.atc.limp.translate.basicblocks.lustre;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import jkind.lustre.BinaryExpr;
import jkind.lustre.BinaryOp;
import jkind.lustre.BoolExpr;
import jkind.lustre.Equatio... |
package org.hpe.dnslog;
import java.util.Map;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.kafka.common.serialization.Deserializer;
import org.apache.kafka.common.serialization.Serializer;
public class DNSLogDESER implements Serializer<DNSLogEntry>, Deserializer<DNSLogEntry> {
@Override
... |
/**
*
*/
package game.ui.handler;
import game.commands.AbstractCommand;
import game.commands.RemoveArrowCommand;
import game.commands.RemoveGrayedCommand;
import game.commands.RemoveStarCommand;
import game.commands.SetArrowDownCommand;
import game.commands.SetArrowDownLeft;
import game.commands.SetArrow... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.