text stringlengths 10 2.72M |
|---|
package slimeknights.tconstruct.world.block;
import com.google.common.collect.Lists;
import net.minecraft.block.Block;
import net.minecraft.block.BlockBush;
import net.minecraft.block.SoundType;
import net.minecraft.block.properties.PropertyEnum;
import net.minecraft.block.state.BlockStateContainer;
import net.minecr... |
package org.deeplearning4j.util;
import java.io.DataInputStream;
import java.io.IOException;
/**
* Created by endy on 16-7-27.
*/
public class ByteUtil {
private ByteUtil(){}
public static String readString(DataInputStream dis , int maxSize) throws IOException{
byte[] bytes = new byte[maxSize];
... |
package page;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.Assert;
... |
/*
* 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 fr.ucbl.disp.vfos.controller;
import fr.ucbl.disp.vfos.controller.sensor.listner.SensorProcessedDataListener;
public abstract class AController implements SensorProcessedDataListener, Decide, Apply {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
t... |
package org.garret.perst;
/**
* Interface used to fileter records in result set (ResultSet class)
*/
public interface Filter {
public boolean fit(Object obj);
}
|
package com.mahang.weather.model.db;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sq... |
package com.pwq.again;
import java.util.HashMap;
import java.util.Map;
/**
* Created by BF100500 on 2017/3/21.
*/
public class WorkThread implements Runnable {
public void run() {
System.out.println(Thread.currentThread().getName());
InThread inThread = new InThread("pwq");
inThread.sta... |
/**
* Project: CarPark
* File: Location.java
*/
package org.carpark;
import java.lang.IllegalArgumentException;
/**
* Store distance and direction of a car park
* @author Marjan Rahimi
* @version March 2005
*/
public class Location {
private int distance;
private Direction direction;
/**
* Construc... |
/*
* Copyright (C) 2018 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 app... |
/*
* 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.services;
import com.dao.ImplDao;
import com.entity.Cliente;
import com.entity.Detallepreventa;
import com.ent... |
package Transform;
import entity.WaterSensor;
import org.apache.flink.api.common.functions.ReduceFunction;
import org.apache.flink.streaming.api.datastream.KeyedStream;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import javax.xml.bind.SchemaOutputResolver;
import java.util.ArrayList;... |
package jvmTool;
/**
* user is lwb
**/
public class NMTTest {
public static void main(String[] args){
System.out.println("hello world!!");
}
}
|
package com.stackroute.userservice.service;
import com.stackroute.userservice.domain.User;
import java.util.Map;
/**
* Interface for JWT Token Generation
*/
public interface JWTTokenGenerator {
/**
* Abstract method for token generation
*/
Map<String, String> generateToken(String emailId);
}
|
package com.techelevator.dao;
import java.util.List;
import com.techelevator.model.DamageClaim;
import com.techelevator.model.Report;
public interface ReportDAO {
public List<Report> listReports();
public void addReport(Report report);
public void deleteReportByReportId(int report_id);
public void update... |
package jd.http;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import jd.http.requests.PostFormDataRequest;
import jd.http.requests.PostRequest;
import org.appwork.utils.net.httpconnection.HTTPProxy;
import org.appwork.utils.net.httpconnection.HTTPProxyHTTPConnectionImpl;
public class... |
public class isCom implements BetterBehavior
{
public void comIs()
{
System.out.println("This is comparative.");
}
} |
package com.mycompany.itman.corecourse.lesson2.task2;
import com.mycompany.itman.corecourse.lesson1.Event;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.time.Duration;
import java.util.Comparator... |
package com.wy.common;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.dom4j.Document;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
/**
*
* 该类放一些与服务器相关的参数
* 200,404,500;s
* 端口号port,线程池含量MAX_Thread
* 解析XML文件,并存放在中间
*/
public class CommonChar {
static public String ... |
package com.test.base;
import com.test.SolutionA;
import com.test.SolutionB;
import junit.framework.TestCase;
public class Example extends TestCase
{
private Solution solution;
@Override
protected void setUp()
throws Exception
{
super.setUp();
}
public void testSolut... |
package clienteLogica;
import java.io.DataInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import com.google.gson.Gson;
import interfazDelJuego.JVentanaGrafica;
import logicaJuego.Bomberman;
... |
package com.oracle.curd.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class LoginController {
@RequestMapping(value = "/adminLogin")
public String adminLogin(){
return "managerLogin";
}
@RequestM... |
package com.abstraction;
public class abstract2 extends abstract1 {
@Override
void password() {
System.out.println("1342");
// TODO Auto-generated method stub
//iyihfih
}
public static void main(String[] args) {
abstract2 e=new abstract2();
e.name();
e.password();
}
}
|
package org.usfirst.frc.team5114.MyRobot2016;
import edu.wpi.first.wpilibj.vision.USBCamera;
/**
* Manages multiple cameras regardless of actual configuration
* imaqOverlayText
*/
public class CameraSystems {
public USBCamera[] cameras;
private int maxCameras = 0;
private int currentCamera = -1;
/... |
/**
* Copyright (C) 2008 Atlassian
*
* 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 t... |
package checkers.core.boards;
import checkers.core.Checker;
import checkers.core.Coordinates;
public interface Board {
int getNumOfCol();
int getNumOfRows();
Checker getFieldOccupiedBy(Coordinates location);
Checker getFieldType(Coordinates location);
void makeMove(Coordinates currLocation, Coordi... |
package exo_oiseaux;
public class Pie extends Oiseau{
public void decrire() {
super.decrire();
System.out.println("Je suis une pie");
}
}
|
package edu.neu.ccs.cs5010;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class FollowedGraphTest {
@Before
public void setUp() throws Exception {
}
@Test
public void createFollowedGraph() throws Exception {
}
@Test
public void getVexNum() ... |
package com.impulse.test.config;
import java.util.HashMap;
import javax.persistence.EntityManagerFactory;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import o... |
package loginform;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class ManejadorMD5 {
public String encriptaClave(String clave) throws NoSuchAlgorithmException {
MessageDigest instanciaMD =MessageDigest.getInstance("MD5");
instanciaMD.update(clave.getBytes())... |
package com.buttercell.vaxn.model;
/**
* Created by amush on 23-Jan-18.
*/
public class Record {
public String testName,testResults,testComments,dateAdded;
public Record( String testName, String testResults, String testComments, String dateAdded) {
this.testName = testName;
this.testResults... |
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
public class FileInputStream2 {
public static void main(String[] args) throws IOException {
FileInputStream fis = new FileInputStream("C:/Users/RAKESH/Desktop/Tutorial.txt");
FileOutputStream fos = new FileOutputStream... |
package lab02;
import java.util.LinkedList;
import lab01.Edge;
import lab01.GraphInterface;
import lab01.MatrixGraph;
import lab01.Vertex;
public class WarshalFloyd
{
private int vertexCount;
private int[][] distances;
private int[][] predecessors;
private LinkedList<Integer> path = new LinkedList<Integer>();
... |
package com.example.usser.moneycatch;
public class Addrecycleitem {
private String name;
public Addrecycleitem(String name){
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
|
package kxg.searchaf.url.hollisterco;
import java.util.*;
import kxg.searchaf.mail.Mail;
import kxg.searchaf.mail.SystemMail;
import kxg.searchaf.url.Constant;
import kxg.searchaf.util.ProxyUtli;
public class SearchHollisterco {
public HashMap<Integer, HollistercoProduct> allmenoldprolist = new HashMap<Inte... |
package com.qst.dms.entity;
import java.io.Serializable;
import java.util.Date;
/**
* @author 陌意随影
TODO :基础数据类
*2019年11月7日 下午7:25:55
*/
public class DataBase implements Serializable{
private static final long serialVersionUID = 1L;
/**ID标识*/
private int id;
/**时间*/
private Date time;
/**地点*/
private St... |
package net.cpollet.es.stores.fakes;
import net.cpollet.es.Event;
import net.cpollet.es.EventNotStoredException;
import net.cpollet.es.EventStore;
import java.util.Map;
public class SucceedingEventStore implements EventStore {
private final Event event;
public SucceedingEventStore(Event event) {
thi... |
package reseau.couches;
import reseau.Message;
import reseau.adresses.Adresse;
import reseau.adresses.AdresseMac;
/**
* @author martine
*/
public class Ethernet extends Liaison12 {
public Ethernet(AdresseMac am ) {
super(am);
}
@Override
public void sendMessage(AdresseMac dest, Message m... |
import java.util.Scanner;
public class Cinema {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String type = scan.nextLine().toLowerCase(); // Premiere, Normal, Discount
int rows = Integer.parseInt(scan.nextLine());
int cols = Integer.parseInt(scan.... |
package com.example.andrew.colorpicker.EyeChallenge;
import java.util.List;
import java.lang.InterruptedException;
import java.util.concurrent.TimeUnit;
import com.example.andrew.colorpicker.framework.Game;
import com.example.andrew.colorpicker.framework.Graphics;
import com.example.andrew.colorpicker.framework.Input... |
package com.fujitsu.frontech.palmsecure_smpl.segovia;
import java.io.File;
import java.io.FilenameFilter;
public class SegoviaCSVFilter implements FilenameFilter {
private static final String EXTENSION = ".csv";
private static String campaign;
public SegoviaCSVFilter(String campaign) {
SegoviaCSVFilter.campaign ... |
package com.framgia.fsalon.screen.customerinfo.user;
import android.content.pm.PackageManager;
import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutI... |
package com.andikaahmad.aplikasikeuangan;
import android.Manifest;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.support.v4.app.ActivityCompat;
import android.support.v4.con... |
import java.util.*;
class HashMapExample{
public static void main(String []z){
Map<Integer,String> hm1=new HashMap<Integer,String>();
hm1.put(1,"krishan");
hm1.put(2,"gulati");
hm1.put(3,"krishan");
hm1.put(4,"sarth");
hm1.put(5,"gulati");
hm1.put(6,"gulati");
hm1.put(7,"krishan");
hm1.put(8,"sarth"... |
package application.client.ui.admin;
public class admin {
}
|
/*
* 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 server.control.tasks;
/**
*
* @author luisburgos
*/
public class ReservedSeatTask extends SeatTask {
private final sta... |
package collections.demo;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;
public class AscEvenSet {
public static void main(String[] args) {
Scanner s= new Scanner(System.in);
int var=0;
System.out.println("Enter the num... |
package HelloWorld;
public class HelloWorld {
public static void main(String[] args)
{
System.out.println("Hello World");
System.out.println("Look Mom Im prgraming, by the way MR. Brosius is not a very good speller.");
System.out.println("*");
System.out.println("*");
System.out.println("*");
System.out.p... |
package mobi.app.redis;
/**
* User: thor
* Date: 12-12-27
* Time: 下午1:50
*/
public class ZEntity<T> {
public final T member;
public final double score;
public ZEntity(T member, double score) {
this.member = member;
this.score = score;
}
}
|
package com.capgemini.batatatinhadellivery.enums;
public enum TipoProduto {
BATATA,BEBIDA,ADICONAIS
}
|
package com.nanyin.enumEntity;
public enum DeletedStatusEnum {
IS_NOT_DELETED(false),
IS_DELETED(true);
private DeletedStatusEnum(boolean judge) {
this.judge = judge;
}
private boolean judge;
public boolean isJudge() {
return judge;
}
}
|
package com.library.Library.domain;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.*;
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Entity
public class Reader {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
pri... |
package com.cyhz_common_component_activity;
import android.test.ActivityInstrumentationTestCase2;
/**
* Created by liuxiaolong on 15/8/14.
*/
public class PicTest extends ActivityInstrumentationTestCase2<CCA_TestActivity> {
public PicTest(Class<CCA_TestActivity> activityClass) {
super(activityClass);
... |
/*
* Copyright 2002-2022 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 com.gtambit.gt.app.MemberCard;
import android.app.ProgressDialog;
import android.content.Intent;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationManager;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.wid... |
package com.github.tobby48.java.scene3;
/**
* <pre>
* com.github.tobby48.java.scene3
* Robot.java
*
* 설명 :클래스 기본 정리 예제
* </pre>
*
* @since : 2017. 11. 15.
* @author : Administrator
* @version : v1.0
*/
public class Robot extends Toy{
String gender;
Robot(int price, String name){
super... |
package kr.ac.kopo.day02.homework;
import java.util.Scanner;
public class HomeworkMain03b {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("물건값 입력: ");
int price = sc.nextInt();
System.out.print("지불액수 입력: ");
int payment = sc.nextInt();
sc.close();
int ... |
package com.db.aspects;
import com.db.persistence.events.audit.ObjectModificationEvent;
import com.db.persistence.objectStore.VirtualizedEntityManager;
import com.db.persistence.scheme.BaseObject;
import com.db.persistence.workSession.WorkSessionManager;
import org.apache.log4j.Logger;
import org.aspectj.lang.Proceedi... |
// https://leetcode.com/problems/consecutive-characters/solution/
class Solution {
public int maxPower(String s) {
if (s.length() == 1) return 1;
int count = 0, maxCount = 0;
char previous = ' ';
for (int i = 0; i < s.length(); i++) {
char c = s.charAt(i);
if... |
package org.jaxws.stub2html.model;
import static org.apache.commons.lang.builder.ToStringStyle.SHORT_PREFIX_STYLE;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
* Imagine a Java Language Variable = a Field in a Java Class, or a Parameter in
* a Java Method
*
* @author chenjianjx
*
*/
public cla... |
package writer;
import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
public class SpaceSeparatedNumberWriter extends AbstractNumberWriter implements NumberWriter {
private static final int NUMBER_OF_ELEMENTS_IN_LINE = 10;
pri... |
package com.airelogic.artistinfo.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
public class LLyrics {
@JsonProperty("lyrics")
String lyrics;
public LLyrics() {
}
public LLyrics(String lyrics) {
this.lyrics = lyrics;
}
public String getL... |
package no.nav.vedtak.log.util;
import static java.nio.charset.StandardCharsets.UTF_8;
import static java.util.function.Predicate.not;
import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.Base64;
import java.util.List;
import java.util.Optional;
public final class LoggerUtils {
private sta... |
package com.sinodynamic.hkgta.dao.mms;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.sinodynamic.hkgta.dao.GenericDao;
import com.sinodynamic.hkgta.dto.mms.MmsOrderItemDto;
import com.sinodynamic.hkg... |
../../../jvmti-common/Breakpoint.java |
package cn.edu.njnu.around_part;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import cn.edu.njnu.main_part.MainActivity;
import cn.edu.njnu.nnu_creative_cloud.*;
public class AroundActivity extends FunctionActivity {
@Override
protected void onCreate(Bundle savedInstanceState)... |
package mainGame.components.interfaces;
/**
* This interface contains all the essential methods that'll make the column lane class work
*
* @author Justin Yau
*
*/
public interface ColumnLaneInterface {
/**
* This method converts the current x position and determines which column lane this is
*... |
package com.version.SpringOne.Repository;
import com.version.SpringOne.Model.UserData;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import java.util.Optional;
public interface UserRepo extends MongoRepository<UserData,String> {
@Quer... |
package com.example.elearning.rest;
import com.example.elearning.entities.Formateur;
import com.example.elearning.entities.Formation;
import com.example.elearning.entities.Module;
import com.example.elearning.repositories.ModuleRepository;
import org.springframework.data.rest.webmvc.ResourceNotFoundException;
import o... |
package com.lxl.web.util;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.lxl.beans.vo.DfGroup;
import com.lxl.beans.vo.DfItem;
import org.apache.commons.lang3.builder.ToStringBuilder;
import java.util.ArrayList;
import java.util.List;
/**
* Created by xiaolu on 15/5/12.
*/
public class DfGroupVo {
... |
package ltd.getman.testjobproject.utils;
/**
* Created by Artem Getman on 17.05.17.
* a.e.getman@gmail.com
*/
public class UIHelper {
}
|
public class Parent {
public void hello(){
System.out.println("hello parent");
bye();
}
public void bye(){
System.out.println("bye parent");
}
}
class Child extends Parent{
public void hello(){
super.hello();
}
public void bye(){
System.out.prin... |
/**
* project name:saas
* file name:MsgIdentifyCodeController
* package name:com.cdkj.msg.controller
* date:2018/3/20 上午9:01
* author:bovine
* Copyright (c) CD Technology Co.,Ltd. All rights reserved.
*/
package com.cdkj.manager.msg.controller;
import com.cdkj.common.base.controller.BaseController;
import com.c... |
package controller;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
import dao.Dictionnaire;
import model.Main;
import vue.Vue;
import javafx.fxml.FXML;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.PasswordField;
import javafx.scene.contro... |
package com.example.anand38.encryptit.Activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.exam... |
/*
* ################################################################
*
* ProActive Parallel Suite(TM): The Java(TM) library for
* Parallel, Distributed, Multi-Core Computing for
* Enterprise Grids & Clouds
*
* Copyright (C) 1997-2011 INRIA/University of
* Nice-Sophia Antipolis/ActiveEon
... |
package com.algorithm.tree;
import java.util.ArrayList;
import java.util.List;
public class PathSum {
List<List<Integer>> list = new ArrayList<List<Integer>>();
List<Integer> innerList = new ArrayList();
int result = 0;
public List<List<Integer>> pathSum(TreeNode root, int sum) {
dfs(root, in... |
package webuters.com.geet_uttarakhand20aprilpro.activity;
import android.app.Activity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;... |
package chessknights.resultsJAXB;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import java.time.Duration;
import java.time.ZonedDateTime;
@Data
@AllArgsConstructor
@NoArgsConstr... |
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 CreditsPanel extends MessagePane... |
package com.example.qiyue.mvp_dragger.entity;
/**
* Created by Administrator on 2016/11/17 0017.
*/
public class WeatherParam {
public String format;
public String cityname;
public String key;
}
|
package com.utils;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.servlet.view.freemarker.FreeMarkerView;
public class ExtFreemarkerView extends FreeMarkerView {
@Override
protected void exposeHelpers(Map<String, Object> model,
HttpServletRequest request) thr... |
package algorithm.annealing.factory;
import java.util.ArrayList;
import java.util.List;
import algorithm.annealing.SAParameters;
import algorithm.annealing.SimulatedAnnealing;
import algorithm.annealing.neighbor.ConsecutiveSwap;
import algorithm.annealing.neighbor.NeighborGenerator;
import algorithm.annealing.neighbo... |
package com.miaoke.hook.utils;
public class StackUtils {
public static String getMethodStack() {
StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
StringBuilder stringBuilder = new StringBuilder();
for (StackTraceElement temp : stackTraceElements) {
... |
package com.javaArray;
import java.util.ArrayList;
public class Bank {
private ArrayList<Branches> myBranches;
public boolean addBankTransactions(String BankName, String customerName, double amount) {
if (findBank(BankName) != null) {
findBank(BankName).addNewCustomer(customerNam... |
package com.capstone.videoeffect.Adapters;
import android.app.Activity;
import android.app.Dialog;
import android.app.WallpaperManager;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap.Config;
import android.graphics.BitmapFactory;
import android.graphics.BitmapFactory.Opti... |
package com.chinasoft.education_manage.service.impl;
import com.chinasoft.education_manage.dao.ClassDao;
import com.chinasoft.education_manage.dao.StudentDao;
import com.chinasoft.education_manage.dao.impl.ClassDaoImpl;
import com.chinasoft.education_manage.dao.impl.StudentDaoImpl;
import com.chinasoft.education_manag... |
package br.ufs.dcomp.chatrabbitmq;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.util.GregorianCalendar;
import javax.activation.MimeType;
import org.json.JSONObject;
import com.google.protobuf.ByteString;
import com.rabbitmq.client.Ch... |
package Controllers;
import org.glassfish.jersey.media.multipart.FormDataParam;
import org.json.simple.JSONArray;
import server.Main;
import javax.annotation.PostConstruct;
import javax.print.attribute.standard.Media;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import java.sql.PreparedStatement;
import j... |
/*
* 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 Question1_25;
import Test.ListNode;
public class _19_RemoveNthNode {
public ListNode removeNthFromEnd(ListNode head, int n) {
ListNode first = head;
ListNode second = head;
ListNode last = head;
if( n <= 0) {
return null;
}
while( n > 1) {
n--;
last = last.next;
}
while(last.ne... |
package com.fm.scheduling.domain;
import java.time.LocalDateTime;
public class BaseRecord<E> {
private LocalDateTime createDate;
private String createdBy;
private LocalDateTime lastUpdate;
private String lastUpdateBy;
public LocalDateTime getCreateDate() {
return createDate;
}
... |
package example.com.db.nimbuzz_banbot_android_by_db;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
... |
package cn.jbit.epet.entity;
import java.util.Date;
/**
* 宠物实体类。
*/
public class Pet {
private int id;// 宠物id
private int masterId;// 主人id
private String name;// 昵称
private int typeId;// 类型id
private int health;// 健康值
private int love;// 亲密度
private Date adoptTime;// 领养时间
private String status;// 状态
public... |
package com.company;
import com.company.services.impl.UserTypeSelectingService;
import com.company.services.impl.FilmInventoryService;
import com.company.services.impl.FilmRentalService;
import com.company.storage.FilmStore;
public class Main {
public static void main(String[] args) {
UserTypeSelectingSe... |
package se.mah.m11p0121.iotproject;
class Constants {
static final String MQTT_BROKER_URL = "tcp://m23.cloudmqtt.com:10999";
static final String PUBLISH_TOPIC = "LED";
static final String CLIENT_ID = "IOTP";
}
|
package org.squonk.core;
/** Interface that defined an executable service. From an instance of this class you can obtain a @{link ServiceConfig} instance
* that defines the properties that are needed by a client of this service.
* Implementations of this interface define the details of how the service is to be execu... |
package duke.command;
import duke.ImageType;
import duke.TaskList;
import duke.Ui;
import duke.exception.NonExistentTaskException;
/**
* Represents a PriorityLevelCommand.
*/
public class PriorityLevelCommand extends Command {
/**
* Number on the list of the task to be updated.
*/
protected int t... |
package com.daydvr.store.util;
import android.os.Handler;
import android.os.Message;
/**
* @author LoSyc
* @version Created on 2017/12/28. 11:05
*/
public class LoaderHandler extends Handler {
private LoaderHandlerListener mListener;
public Message createMessage(int what, int arg1, int arg2, Object obj) ... |
package com.designpattern.dp1simplefactory.v2;
/**
* 优点:由课程工厂创建课程,把具体对象的创建细节隐藏起来
* 缺点:如果继续扩展,要增加前端课程,那么工厂CourseFactory中的create()方法就要
* 每次都根据产品的增加修改代码逻辑,不符合开闭原则。
*/
public class Test {
public static void main(String[] args) {
CourseFactory.createCourse("java").record();
CourseFactory.createCour... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.