text stringlengths 10 2.72M |
|---|
package com.example.fragmentlab;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullabl... |
package com.tencent.mm.plugin.exdevice.ui;
import com.tencent.mm.ab.l;
import com.tencent.mm.plugin.exdevice.a.b;
import com.tencent.mm.plugin.exdevice.c.a.a;
import com.tencent.mm.sdk.platformtools.x;
class ExdeviceConnectedRouterActivateStateUI$1 implements b<a> {
final /* synthetic */ ExdeviceConnectedRouterAc... |
package com.tencent.mm.plugin.shake.ui;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import com.tencent.mm.R;
import com.tencent.mm.k.g;
import com.tencent.mm.model.au;
import com.tencent.mm.model.c;
import com.tencent.mm.platformtools.af;
import com.tencent.mm.plugin.shake.a;... |
package com.github.hippo.util;
/**
* 序列化工具 fst
*
* @author sl
*/
public class SerializationUtils {
private SerializationUtils() {
}
/**
* 序列化
*
* @param obj obj
* @param <T> 泛型
* @return data[]
*/
@SuppressWarnings("unchecked")
public static <T> byte[] serializ... |
package com.example.solo.newremindapp.domain;
public class Remind {
private int id;
private String date;
private String time;
private String remind;
public Remind() {
}
public Remind(int id, String date, String time, String remind) {
this.id = id;
this.date = date;
... |
package pages;
import elements.Language;
import elements.ProductItem;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.FindBy;
public class HomePage extends BasePage {
@FindBy(className = "blocks__item--cfd")
public ProductItem cfdProduct;
@FindBy(id = "language-menu")
public... |
package com.goodhealth.framework.entity.user;
/**
* 用户客户端信息
*/
public class UserClientInfoEntity {
/**
* 客户端ip
*/
private String clientIp;
/**
* 标识客户使用的操作系统及版本、CPU 类型、浏览器及版本、浏览器渲染引擎、浏览器语言、浏览器插件等
*/
private String userAgent;
public String getClientIp() {
return clientIp;
}
public void setClientI... |
package com.vilio.nlbs.commonMapper.pojo;
public class NlbsRoleMenu {
private Integer id;
private String code;
private String roleCode;
private String menuCode;
public NlbsRoleMenu(Integer id, String code, String roleCode, String menuCode) {
this.id = id;
this.code = code;
... |
package com.links.gaurav.lnotes;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatAc... |
/**HW3 - Factory design Decorator
* Cesar Hernandez
* cherna83
*
*/
//=============================================================
public class FactoryDecorator
{
public static void main(String[] args)
{
System.out.println("\nChoose between 5 burger decorators to build your burger:");
Sy... |
package myproject;
import java.util.ArrayList;
import java.util.Collections;
public class Mainclass {
public static void main(String[] args) {
ArrayList<String> F = new ArrayList<String>();
F.add("Rose");
F.add("Lilly");
F.add("Hibiscus");
F.add("Jasmine");
System.out.println("Original item... |
package com.hqhcn.android.service.impl;
import com.hqh.android.dao.KsldMapper;
import com.hqh.android.entity.Carinfo;
import com.hqh.android.entity.CarinfoExample;
import com.hqh.android.entity.Ksld;
import com.hqh.android.entity.KsldExample;
import com.hqh.android.service.CarinfoService;
import com.hqh.android.servic... |
package edu.mayo.cts2.framework.core.timeout;
import java.util.concurrent.ConcurrentHashMap;
public class Timeout
{
private static ConcurrentHashMap<Long, Boolean> timedOutThreads = new ConcurrentHashMap<Long, Boolean>();
public static boolean isTimeLimitExceeded()
{
return isTimeLimitExceeded(Thread.currentTh... |
package org.star.uml.designer.ui.newWiazrds;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.dnd.Clipboard;
import org.eclipse.swt.dnd.FileTransfer;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.s... |
/**
* TaskSpider Testing class
* @author Simone Notargiacomo, Giuseppe Schipani
*/
package taskspider.spider.testing;
import websphinx.searchengine.*;
import websphinx.*;
import java.net.*;
import java.io.*;
import java.util.*;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.... |
/*
* Copyright (c) 2012-2013 ${developer}, <http://windwaker.me>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use,... |
/*
* @file GoodcatManageDaoImpl.java
* 文件摘要.
* 文件的详细说明
* :
* @author 刘青勇
* @copyright 青岛一凌网集成有限公司2013
* @version 20120101 刘青勇 v1.0
*/
package com.lingnet.vocs.dao.impl.jcsj;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.text.SimpleDateFormat;
import java.util.Da... |
package com.ht.springboot_shiro.controller;
import com.ht.springboot_shiro.domain.User;
import com.ht.springboot_shiro.service.UserService;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.IncorrectCredentialsException;
import org.apache.shiro.authc.UnknownAccountException;
import org.apache... |
package com.tencent.mm.plugin.sport.ui;
import android.content.Intent;
import com.tencent.mm.model.au;
import com.tencent.mm.model.c;
import com.tencent.mm.model.s;
import com.tencent.mm.plugin.sport.b.d;
import com.tencent.mm.pluginsdk.ui.applet.ContactListExpandPreference.a;
class SportBlackListUI$2 implements a {
... |
package ioio.examples.hello;
import ioio.lib.api.exception.ConnectionLostException;
public interface MotorController {
public void turnMotorA(boolean direction) throws ConnectionLostException;
public void turnMotorB(boolean direction) throws ConnectionLostException;
public void setMotorA_speed(float speed) throws... |
/*
* 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 contactmanagementsoftware;
/**
*
* @author jiefo
*/
public class VoidState extends PanelState {
public VoidState(MUI m... |
package com.johan.workexecutor;
/**
* Created by Administrator on 2016/9/26.
*/
public interface WorkResultReceiver {
void receiveWorkSuccess(DataProvider dataProvider);
void receiveWorkCancel();
void receiveWorkFail(Exception exception);
}
|
package it.unical.asd.group6.computerSparePartsCompany.core.services.implemented;
import it.unical.asd.group6.computerSparePartsCompany.core.services.WarehouseService;
import it.unical.asd.group6.computerSparePartsCompany.data.dao.WarehouseDao;
import it.unical.asd.group6.computerSparePartsCompany.data.entities.Wareho... |
package com.vilio.plms.service.quartz;
import com.vilio.plms.exception.ErrorException;
public interface PayRepaymentScheduleDetailService{
void execute()throws Exception;
}
|
package omr.caesarcipher;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class CaesarCipherEncryptDecryptTest {
@Test
public void caesarCipherRotateLeft() {
assertEquals("E", new CaesarCipher("E").rotateLeft(0).getText());
assertEquals("D", new CaesarCipher("E").r... |
package org.ah.minecraft.armour.utils;
import org.ah.minecraft.armour.Plugin;
import org.bukkit.Effect;
import org.bukkit.Material;
import org.bukkit.block.Block;
public class FrostedBlock {
private Block b;
public long time = 0;
public long max = 30;
private Material to;
private Material type;
... |
package MRTopUser;
import java.io.IOException;
import java.net.URISyntaxException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.i... |
//347. Top K Frequent Elements
class Solution {
public int[] topKFrequent(int[] nums, int k) {
Map<Integer, Integer>
hashMap = new HashMap();
int count = 0;
for (int i = 0; i < nums.length; i++)
{
count = hashMap.getOrDefault(nums[i], 0);
... |
package algorithms.tasks;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
class PowerSumTest {
@Test
void testCase1() {
int x = 10;
int y = 2;
int expected = 1;
int result = PowerSum.powerSum(x, y);
assertThat(result).isEqu... |
package com.xiaoxiao.service.backend.impl;
import com.xiaoxiao.feign.RedisCacheFeignClient;
import com.xiaoxiao.mapper.MenuMapper;
import com.xiaoxiao.pojo.XiaoxiaoMenu;
import com.xiaoxiao.service.backend.MenuService;
import com.xiaoxiao.utils.Result;
import com.xiaoxiao.utils.StatusCode;
import org.springframework.b... |
package org.throwable.wheel;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
/**
* =========... |
package com.tt.miniapphost;
import com.storage.async.Scheduler;
import java.util.concurrent.ThreadPoolExecutor;
public class LaunchThreadPool implements Scheduler {
private static volatile boolean sIsLowPriorityLaunch;
private ThreadPoolExecutor mHighPriorityExecutor = getHighPriorityThreadPool();
... |
package com.cz.android.simplehttp.request;
import com.sun.istack.internal.Nullable;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* A request.
*/
public final class Request {
final String url;
final Map<Class<?>, Object> tags;
Request(Builder builder) {
this.ur... |
execute(des, src, registers, memory) {
if(src.isRegister()) {
String EAXRegister;
int size = registers.getBitSize(src);
switch(size) {
case 8:
EAXRegister = registers.get("AL");
break;
case 16:
EAXRegister = registers.get("AX");
... |
import java.text.*;
public class Students {
public static void main(String[] args) {
DecimalFormat fmt = new DecimalFormat("0.00");
Grades student1 = new Grades(100, 92, 98, 95);
Grades student2 = new Grades(100, 100, 100, 100);
Grades student3 = new Grades(98, 90, 83, 80);
double stu1Avg = (student1... |
package com.yuorfei.interceptor;
import com.yuorfei.service.VisitorService;
import com.yuorfei.util.RequestUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import or... |
package javaProject;
import java.util.*;
// Find the sub array with given sum
// Sliding window solution
public class subarraycount {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int arr[] = new int[10];
for(int i=0; i<10; i++) {
arr[i] = sc.nex... |
class Shape {
int x; int y; double total;
public void setArea(int x, int y){
this.x = x;
this.y = y;
}
public double getArea(){
return total;
}
}
class Circle extends Shape{
public void setArea(int x, int y){
total = x*y*3.14;
}
public double getArea(){
return total;
}
}
class Rect... |
package day4_arithmeticOperator;
//this progrsm calculate the hourly wages
public class Wages {
public static void main(String[] args) {
// TODO Auto-generated method stub
double regularWage;
double basePay=25;
double regularHours=40;
double overtimeWages;
double overTimePay=37.5;
double overTimeHo... |
package daggerok;
import io.vertx.core.Vertx;
import io.vertx.core.http.HttpServerResponse;
import io.vertx.core.json.Json;
import io.vertx.ext.web.Router;
import io.vertx.ext.web.RoutingContext;
import io.vertx.ext.web.handler.StaticHandler;
import lombok.SneakyThrows;
import lombok.experimental.FieldDefaults;
impor... |
package com.cmpickle.volumize.domain;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.media.AudioManager;
import android.os.Build;
import android.preference.PreferenceManager;
import android.provider.Set... |
/*
* Copyright (C) 2015 Miquel Sas
*
* 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
* version.
*
* This program is d... |
package www.limo.com.mymovies.entities;
import java.util.*;
public class Network {
private long id;
private String name;
private Country country;
public long getID() { return id; }
public void setID(long value) { this.id = value; }
public String getName() { return name; }
public void set... |
package lotto.step2.domain;
import java.util.*;
public class Lotto {
private static final int LOTTO_PRICE = 1000;
private List<LottoTicket> lottoTickets;
public Lotto(int money) {
if (money < LOTTO_PRICE) {
throw new IllegalArgumentException("돈이 부족합니다. 로또 1장의 가격은 " + LOTTO_PRICE + "원입... |
package com.lingnet.vocs.service.leaguer;
import com.lingnet.common.service.BaseService;
import com.lingnet.qxgl.entity.QxUsers;
import com.lingnet.util.Pager;
/**
* 会员信息管理
*
* @ClassName: LeaguerService
* @Description: TODO
* @author wanl
* @date 2017年7月10日 上午10:15:09
*
*/
public interface... |
/*!
* Copyright 2002 - 2017 Webdetails, a Pentaho company. All rights reserved.
*
* This software was developed by Webdetails and is provided under the terms
* of the Mozilla Public License, Version 2.0, or any later version. You may not use
* this file except in compliance with the license. If you need a cop... |
package com.spower.business.desktop.controller;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.spri... |
package server;
import java.net.InetSocketAddress;
import java.net.InetAddress;
import java.util.Set;
import java.util.HashSet;
import java.util.Map;
import java.util.HashMap;
import client.*;
import util.*;
public class KVServer extends GroupMemberServer {
private Map<Integer, String> dataMap = new HashMap<Intege... |
package projetobd.DAO;
import java.sql.Connection;
import projetobd.connection.ConectarBD;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JOptionPane;
import projetobd.bean.Item;
import projetobd.bean.Destino;
import projetobd.bean.HistoricodeConsumo;
/*... |
/* To ignore the warning
"The serializable class ClASSNAME does not declare a static final serialVersionUID......
*/
@SuppressWarnings("serial")
public class NumberInhabitantsException extends Exception {
public NumberInhabitantsException() {
System.out.println("You're trying to instanciate a City class wi... |
package org.tomat.translate.brooklyn.exceptions;
import org.tomat.translate.exceptions.NotSupportedTypeByTechnologyException;
/**
* Created by Kiuby88 on 19/10/14.
*/
public class BrooklynVisitorRelationConfigurationNotSupportedType extends Exception implements
BrooklynException{
public BrooklynVisito... |
package ds1_project.Responses;
import java.io.Serializable;
public class ReadResponse implements Serializable {
/**
* ReadResponse : Message replied by a node to a client
* requesting to read its value. It takes as argument the
* node value.
*/
private static final long serialVersionUID = 1L;
private fin... |
package SeliniumSessions;
public class GoogleTest {
public static void main(String[] args) {
BrowserActions br=new BrowserActions();
br.launchBrowser("chrome");
br.launchUrl("http://www.Google.com");
String title=br.doGetTitle();
System.out.println("page title is:"+title);
if(title.equals(... |
package 그래픽프로그램;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JButton;
import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.Color;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class 버튼3개 {
public static void main(String[] args) {
J... |
package leecode.DP;
//对最后一行一列修改一定要注意,如果有一个1,则后面全部为0;不像上个题目全赋值为1,从后向前赋值
public class 不同路径Ⅱ_63 {
public int uniquePathsWithObstacles(int[][] obstacleGrid) {
int m=obstacleGrid.length;
int n=obstacleGrid[0].length;
if(m<0||n<0){
return 0;
}
int[][]dp=new int[m][n];
... |
/**
* Created by Мутщь on 24.03.2016.
*/
public class ArrayQueue extends AbstractQueue{
static final int SIZE = 3;
private Object[] queue = new Object[SIZE];
private int first = 0;
private void check(int size) {
if (size <= this.queue.length) {
return;
}
Object[] n... |
/**
* The CommandMe package is a suite of tools that can be used to easily create CLI tools in Java.
*
* @author Rukmal Weerawarana
*
* @version 1.0.0
*
* @since 1.0.0
*/
package me.rukmal.commandme; |
package com.pfchoice.springboot.service.impl;
import com.pfchoice.springboot.configuration.ConfigProperties;
import com.pfchoice.springboot.model.MembershipHedisMeasure;
import com.pfchoice.springboot.repositories.MembershipHedisMeasureRepository;
import com.pfchoice.springboot.service.MembershipHedisMeasureService;
i... |
package me.jprichards.elsimclient;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONObject;
import me.jprichards.elsimclient.model.ModelRepresentation;
/**
* Abstract class containing basic logic for an external controller for
* our modified elevator simu... |
package assignment;
/**
* An {@link UpdateVisitor} to update all of the {@link GUIElement}s.
* @author I.A
*/
public final class DefaultUpdateVisitor implements UpdateVisitor {
// TODO missing code here
public void updateButton(Button element, float deltaTime) {
// TODO missing code here
}
// TODO missing co... |
package edu.oakland.GUI;
import edu.oakland.*;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.geometry.HPos;
import javafx.geometry.Insets;
import javafx.geometry.VPos;
import javafx.scene.Node;
import javafx.scene.Parent;
impo... |
package com.zengjx.test;
import com.zengjx.dao.UserDao;
import com.zengjx.domain.User;
import com.zengjx.mybatis.SqlSession;
import com.zengjx.mybatis.SqlSessionFactory;
import com.zengjx.mybatis.SqlSessionFactoryBuilder;
import org.junit.Test;
import java.io.InputStream;
import java.util.List;
/**
* @ClassName Hell... |
package com.tencent.mm.compatible.loader;
import android.os.Process;
import com.tencent.mm.sdk.platformtools.ad;
import com.tencent.mm.sdk.platformtools.bd;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.x;
class f$1 extends bd<String> {
final /* synthetic */ f dfO;
publi... |
package com.dungeonsandoodragons;
/**
* Bugbear.java
*
* A Bugbear is intended to be a "medium-strength" monster.
*/
class Bugbear extends NonPlayerCharacter {
private final int GOLD_MULTIPLIER = 200;
private final int HEALTH_MULTIPLIER = 15;
public Bugbear() {
name = "Bugbear";
this.myWeapon = new ... |
package Task3;
import lombok.SneakyThrows;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class RegularTest {
@Test
@SneakyThrows
void getImgReferences() {
System.out.println(Regular.getImgReferences());
}
@Test
@SneakyThrows
void checkImgRe... |
package rent.common.projection;
import org.springframework.data.rest.core.config.Projection;
import rent.common.entity.AccountEntity;
import java.time.LocalDate;
import java.util.List;
@Projection(types = {AccountEntity.class})
public interface AccountBasic extends AbstractBasic {
String getAccountNumber();
... |
package com.yash.pms.daoimpl;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.yash.pms.dao.ProductDAO;
import com.yash.pms.model.Product;
import com.yash.pms.util.JDBCUtil;
public class ProductDAOImp... |
package controller.commands;
import controller.commands.impl.*;
import controller.commands.impl.api.*;
import java.util.HashMap;
import java.util.Map;
/**
* Created by vlad on 20.04.17.
*/
public class CommandFactory {
private final String GET_PATH="GET:";
private final String POST_PATH="POST:";
privat... |
/**
*
*/
package com.cnk.travelogix.common.facades.product.impl;
import de.hybris.platform.core.Registry;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.collections.CollectionUtils;
import com.cnk.travelogix.common.facades.product.data.CnkFacetData;
import com.cnk.travelogix.common.f... |
package animatronics.utils.helper;
import java.util.Iterator;
import java.util.List;
import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CraftingManager;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.item.crafting.Shaped... |
package chapter13.Exercise13_19;
import java.math.BigInteger;
import java.util.Scanner;
public class TestExercise13_19 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Enter a decimal number: ");
String number = input.next();
boolean positive ... |
package graphics;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.Group;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.image.Image;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
impor... |
package com.winterchen.lambda;
import com.winterchen.lambda.interfaces.SayHello;
import com.winterchen.lambda.model.User;
/**
* @author CENTURY
* @version 1.0
* @date 2021/9/22 10:35
**/
public class LambdaDemo02 {
public static void main(String[] args) {
User user = new User();
user.setUsern... |
package com.dzz.gateway.routers;
import com.dzz.gateway.config.CommonProperties;
import com.dzz.gateway.filter.TimingFilter;
import com.dzz.gateway.limiter.RateLimitByIpGatewayFilter;
import java.time.Duration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.gateway.filt... |
package fr.pederobien.uhc.commands.configuration.edit.editions.bawn;
import fr.pederobien.uhc.commands.configuration.edit.editions.AbstractMapEdition;
import fr.pederobien.uhc.interfaces.IBawn;
import fr.pederobien.uhc.interfaces.IMessageCode;
public abstract class AbstractBawnEdition<T extends IBawn> extends Abstrac... |
package com.example.accounting_app.listener;
import android.app.Dialog;
import android.content.Intent;
import android.util.DisplayMetrics;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Adap... |
package com.dreamcatcher.admin.controller;
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;
import com.dreamcatch... |
package net.sourceforge.vrapper.utils;
import java.math.BigInteger;
import java.util.Comparator;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import net.sourceforge.vrapper.platform.SimpleConfiguration;
/**
* Numeric comparator for the sort command.
* @author Brian Detweiler
*/
public class Num... |
package com.cse308.sbuify.security;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.method.configu... |
package com.rekoe.msg;
import com.rekoe.model.gameobjects.client.Client;
/**
* @author 科技㊣²º¹³
* Feb 16, 2013 2:35:33 PM
* http://www.rekoe.com
* QQ:5382211
*/
public abstract class AbstractMessage extends BaseIoMessage<Client>{
protected Client player;
private String charId;
public String get... |
package tweakedindentical;
public class Solution2 {
public boolean tweakedsame(TreeNode a, TreeNode b){
if(a == null && b == null){
return true;
}
if(a == null || b == null){
return false;
}
else if(a.key != b.key){
return false;
}
return (tweakedsame(a.left, b.right) && tweakedsame(a.right, b.... |
/*
* Minesweeper Project
* by Group3 : Arnaud BABOL, Guillaume SIMMONEAU
*/
package Controler;
import Controler.Exceptions.AlreadyInstanciedApplet;
import Controler.Listeners.ConsoleListener;
import Model.Events.RefreshEvent;
import Model.Events.ResizeEvent;
import Model.Game.WorldModel;
import Model.Game.WorldMode... |
package com.dennistjahyadigotama.soaya.activities.CategoryActivity.adapter;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import ... |
int main() {
printInt(-9);
return 0;
}
|
package com.junior.dwan.testuran.ui.fragments;
import android.app.ListFragment;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.view.menu.MenuBuilder;
import android.support.v7.view.menu.MenuPopupHelper;
import android.util.Log;... |
package Iterator;
/**
*
* @author MSI
*/
public class patientDemo {
public static void main(String[] args) {
patientListIterator iterator = new patientListIterator();
for(Iterator iteratorPattern = iterator.getIterator();iteratorPattern.hasNext();){
String nameOfPatien... |
package jwscert.jaxws.services.fromjava.wsannotation;
import javax.jws.WebService;
/*
<portType name="LogServiceImpl2">...</portType>
<binding name="LogServiceImpl2PortBinding" type="tns:LogServiceImpl2">...</binding>
<service name="LogWebService2">
<port name="LogServiceImpl2Port" binding="tns:LogServiceImpl2PortB... |
package laserlight;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.IOException;
public class Mirror extends GameObjects{
private int typeMirrorSignum = 0;
public MirrorType type;
@Override
public Point transformujVektor(Point dir) {
... |
package jwscert.rest.services.annotations;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.QueryParam;
@Path("/queryparam")
public class QueryParamAnnotation {
@QueryParam("param1")
private String param1;
@GET
public String helloWithParams(@QueryParam("param2") String param2){
return para... |
/**
*
*/
package com.goodhealth.design.demo.StatePattern;
/**
* @author 24663
* @date 2018年10月27日
* @Description
*/
public class StopAndOpen extends AbstractState {
/* (non-Javadoc)
* @see com.goodhealth.design.demo.StatePattern.AbstractState#run()
*/
@Override
public void run() {
// TODO Auto-generat... |
/**
* Created by lin on 2016/8/27.
*/
/*下面的TwoDShape和Triangle。这两个类都添加了把对象作为形参的构造函数。*/
public class TwoDShape8 {
private double width;
private double height;
// 一个默认的构造函数。
TwoDShape8() {
width = height = 0.0;
}
// 参数化构造函数。
TwoDShape8(double w, double h) {
width = w;
... |
package com.capgemini.service;
import java.util.List;
import com.capgemini.exceptions.DuplicateParkingFloorException;
import com.capgemini.exceptions.DuplicateParkingPremiseException;
import com.capgemini.exceptions.InvalidLoginCredintialException;
import com.capgemini.exceptions.NoSuchParkingFloorException;
... |
package ${package}.config;
import org.springframework.context.annotation.Configuration;
@Configuration
public class SampleApplicationConfig {
}
|
package hadoop_rpc_test.server;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.ipc.RPC;
import org.apache.hadoop.ipc.RPC.Server;
public class RPCServer {
public static void main(String[] args) throws Exception {
// 定义一个RPC Builder
RPC.Builder builder = new RPC.Builder(new Config... |
package test;
import config.Message;
public class StringMessage extends Message<String> {
public StringMessage(String value) {
super(value);
}
}
|
package com.example.testimage.services;
import java.util.Vector;
import java.util.List;
/*
* QQ:1650941960
* by:hui
*
*
* */
public class Model {
int count;//手数
int value;//权值
//一组牌
List<String> a1 = new Vector<String>(); //单张
List<String> a2 = new Vector<String>(); //对子
List<String> a3 = new Vector<Stri... |
package com.tencent.mm.plugin.fingerprint.b;
import android.os.Bundle;
import android.os.Message;
import com.tencent.mm.plugin.fingerprint.b.h.a;
import com.tencent.mm.sdk.platformtools.x;
class h$a$2 implements Runnable {
final /* synthetic */ String jgB;
final /* synthetic */ a jgJ;
h$a$2(a aVar, Strin... |
package com.tencent.magicbrush.a;
public final class b {
private static a bnl = new 1();
public static void a(a aVar) {
bnl = aVar;
}
public static void loadLibrary(String str) {
bnl.loadLibrary(str);
}
}
|
package com.jiuzhe.app.hotel.module;
import com.aliyun.opensearch.sdk.generated.search.Order;
public class OpenSearchQuery {
/**
* 服务器名称
*/
private String appName;
/**
* 起始位置
*/
private int start;
/**
* 返回结果数目
*/
private int hits;
/**
* 查询语句
*/
p... |
package com.wj.service;
import com.wj.service.entity.Health;
import java.util.List;
/**
* @author jun.wang
* @title: RegisterService
* @projectName ownerpro
* @description: TODO
* @date 2019/4/28 14:20
*/
public interface RegisterService {
List<Health> getAllService();
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.