text stringlengths 10 2.72M |
|---|
package com.accp.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupp... |
package code.fractals;
/**
*
* BurningShip subclass that defines a Multibrot fractal.
*
*/
public class BurningShip extends Fractal {
/**
* Constructs a Fractal object with default x- and y-coordinate ranges of (-1.0,1.0) and an output grid of 512 x 512 pixels.
*
*/
public BurningShip() {
/**
* Co... |
package tk.martijn_heil.elytraoptions.command.common.bukkit;
import com.sk89q.intake.CommandException;
import com.sk89q.intake.InvocationCommandException;
import com.sk89q.intake.argument.Namespace;
import com.sk89q.intake.dispatcher.Dispatcher;
import com.sk89q.intake.util.auth.AuthorizationException;
import... |
package com.tt.miniapp.jsbridge;
import android.text.TextUtils;
import com.tt.miniapp.AppbrandApplicationImpl;
import com.tt.miniapp.event.InnerEventHelper;
import com.tt.miniapphost.AppBrandLogger;
import com.tt.miniapphost.AppbrandApplication;
import com.tt.miniapphost.entity.AppInfoEntity;
import com.tt.opt... |
package leetcode.algorithms;
import static org.junit.Assert.*;
import org.junit.Test;
public class _011_MaxArea {
public int maxArea(int[] height) {
int left = 0;
int right = height.length-1;
int maxArea = 0;
while(left < right) {
int area = (right - left) * ... |
package com.wb.cloud.config;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @ClassName : LoggerConfig
* @Author : 王斌
* @Date : 2020-11-23 17:13
* @Description
* @Version
*/
@Configuration
public class LoggerConfig {
... |
package com.tencent.mm.plugin.webview.ui.tools;
class WebViewUI$26 implements Runnable {
final /* synthetic */ WebViewUI pZJ;
WebViewUI$26(WebViewUI webViewUI) {
this.pZJ = webViewUI;
}
public final void run() {
this.pZJ.mhH.getCurWebviewClient().a(this.pZJ.mhH, this.pZJ.mhH.getUrl())... |
package esir.dom11.nsoc.datactrl.dao.model.mysql;
import esir.dom11.nsoc.datactrl.dao.connection.ConnectionDbMySQL;
import esir.dom11.nsoc.datactrl.dao.dao.ActionDAO;
import esir.dom11.nsoc.datactrl.dao.factory.DAOFactoryMySQL;
import esir.dom11.nsoc.model.Action;
import esir.dom11.nsoc.model.device.Actuator;
import e... |
package com.heartmarket.model.dto.response;
import com.heartmarket.model.dto.Trade;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class TradeDetail {
// 게시글 정보
Trade trade;
// 매너 지수
double heartguage;
// 찜 여부
int ... |
package com.classcheck.panel;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import j... |
/*
* 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 util;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.util.*;
public class Utils {
public static final String CRLF = "\r\n";... |
package com.example.demo.exceptions;
public class ParameterNotFoundException extends Exception {
String message;
public ParameterNotFoundException(String message) {
super(message);
}
}
|
package com.e6soft.api.userright;
/**
* 组织机构接口
* @author 陈福忠
*
*/
public interface UserRightInterface {
}
|
package com.yunusunnotlari.animasyon;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
public class MainActivity extends AppC... |
class Solution {
Integer ways[];
Set<Integer>
temp = new HashSet();
public int climbStairs(int n) {
ways = new Integer [n + 1];
if(n == 0)
return 0;
ways[0] = 1;
ways[1] = 1;
return differentWays(n);
}
int differentWays(... |
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
/**
* KReportOrderPara generated by hbm2java
*/
public class KReportOrderPara implements java.io.Serializable {
private KReportOrderParaId id;
private KReportOrder KReportOrder;
public KReportOrderPara() {
}
public KRepor... |
package cz.alza.uitest.tests;
import java.io.FileNotFoundException;
import static com.codeborne.selenide.Selenide.$;
public class DownloadTest {
public void downloadByXpathTest(){
try {
$("div").download();
} catch (FileNotFoundException e) {
e.printStackTrace();
}... |
package com.github.frostyaxe.cucumber.hooks;
import com.github.frostyaxe.cucumber.controllers.BaseController;
import io.cucumber.java8.En;
/**
* <b>Description:</b> This hook class closes the browser session once the
* execution gets completed.
*
* @author Abhishek Prajapati
* @team Frostyaxe
* @email prajap... |
package com.njupt.ws_cxf_spring.ws.bean;
public class APPInfo {
private String devkey;
private String datatype;
private String showtype;
public APPInfo(String devkey, String datatype, String showtype) {
super();
this.devkey = devkey;
this.datatype = datatype;
this.showtype = showtype;
}
public String g... |
package model;
/**
* Created by 11437 on 2017/12/5.
*/
public class Register {
private String userid;
private String code;
private String password;
private String status;
private String nickname;
private int gender;
private String Tel;
private int type;
public void setNickname(St... |
package wrapper;
import beans.GraduateLeave;
import java.util.List;
public class GraduateLeaveOperate implements BasicOperate<GraduateLeave> {
@Override
public GraduateLeave getById(String x) {
return null;
}
@Override
public List<GraduateLeave> getAll() {
return null;
}
... |
public class Course {
private String courseID;
private String courseName;
private String startDate;
private String endDate;
private String summary;
private int enrollmentLimit;
private int numberOfStudentsEnrolled;
public Course()
{
}
public Course(String courseID, String courseName, String startDate, St... |
/**
*
*/
package com.shubhendu.javaworld;
/**
* Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.
The update(i, val) function modifies nums by updating the element at index i to val.
Example:
Given nums = [1, 3, 5]
sumRange(0, 2) -> 9
update(1, 2)
sumRan... |
package com.takshine.wxcrm.service;
import com.takshine.wxcrm.base.services.EntityService;
import com.takshine.wxcrm.domain.WeekReport;
import com.takshine.wxcrm.message.error.CrmError;
import com.takshine.wxcrm.message.sugar.WeekReportResp;
/**
* 周报 业务处理接口
*
* @author dengbo
*/
public interface WeekReport2SugarS... |
package Application;
import java.io.File;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.scene.layout.BorderPane;
import javafx.sta... |
package com.philippe.app.hbase;
import com.philippe.app.service.hbase.HBaseWriteManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static java.lang.String.format;
public class StormSimulatorTest {
private static final Logger LOGGER = LoggerFactory.getLogger(StormSimulatorTest.class);
... |
/**
*
*/
package chapter_4;
import java.util.*;
/**
* @author Ashish
* This programs displays the any given sting in reverse order without using in-built methods.
*
*
*/
public class ReverseString {
private String s, rev=""; //Two variables defined one to get a string value and other to hold the... |
package com.netbanking.util;
import java.util.regex.Pattern;
public class XSSChecker {
public static String stripXSS(String input) {
//REFERENCE LINK USED ------ http://www.javacodegeeks.com/2012/07/anti-cross-site-scripting-xss-filter.html
if (input != null) {
input = i... |
/*
* 2012-3 Red Hat Inc. and/or its affiliates and other contributors.
*
* 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 requi... |
package com.andrew.metar;
import java.io.IOException;
import org.apache.http.HttpResponse;
import org.apache.http.StatusLine;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.conn.scheme.PlainSocketFactory;
import org.apache.http.conn.scheme... |
package com.ntxdev.zuptecnico.api;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.ntxdev.zuptecnico.entities.InventoryCategory;
import com.ntxdev.zuptecnico.entities.InventoryItem;
import com.ntxdev.zuptecnico.entities.responses.PublishInven... |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.IOException;
... |
/**
*
*/
/**
* @author c0kalla
*
*/
package stack.queue; |
public class Moto extends Veiculo{
//Atributos
private int rodas = 0;
private int cilindrada = 0;
//Metodos
//Setters
public void setRodas(int rodas){
this.rodas = rodas;
}
public void setCilindrada(int cilindrada){
this.cilindrada = cilindrada;
}
//Getters
public int getRodas(){
re... |
package cl.jdomynyk.pulent.presentation.views.main;
import androidx.annotation.NonNull;
import java.util.List;
import cl.jdomynyk.pulent.domain.Handler;
import cl.jdomynyk.pulent.domain.Track;
import cl.jdomynyk.pulent.domain.interactor.GetLocalTracks;
import cl.jdomynyk.pulent.domain.interactor.GetRemoteTracks;
imp... |
package com.tyss.cg.inheritence;
public class FunctionalInterfaceImpl implements FunctionalInterfaceEx, FunctionalInterfaceEx2 {
@Override
public void showMessage() {
System.out.println("Overriden showMessage() of FunctionalInterfaceEx");
}
@Override
public int add(int i, int j) {
return i+j;
}
public s... |
package com.espendwise.manta.util;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.config.PlaceholderConfigurerSupport;
import javax.annotation.Resource;
import java.util.*;
@Resource(mappedName = ResourceNames.APPLICATION_SETTINGS)
publi... |
package library.utils;
import java.security.MessageDigest;
import java.util.Random;
/**
* Created by Administrator on 2016/12/17.
*/
public class Func {
/**
* 获取MD5加密字符串
*
* @param s
* @return
*/
public final static String getMD5(String s) {
char hexDigits[] = {'0', '1', '2'... |
package cn.edu.sdjzu.xg.bysj.dao;
import cn.edu.sdjzu.xg.bysj.domain.School;
import util.Condition;
import util.JdbcHelper;
import util.Pagination;
import java.sql.*;
import java.util.Collection;
import java.util.TreeSet;
public final class SchoolDao {
public static SchoolDao schoolDao = new SchoolDao();
pr... |
package io.github.apfelcreme.Pipes.Pipe;
import com.google.common.collect.Multimap;
import com.google.common.collect.MultimapBuilder;
import io.github.apfelcreme.Pipes.Exception.ChunkNotLoadedException;
import io.github.apfelcreme.Pipes.PipesConfig;
import io.github.apfelcreme.Pipes.PipesUtil;
import org.bukkit.Bukkit... |
package cxy.twitch;
public class Vector {
private double x;
private double y;
private double z;
private double r;
private double l;
public Vector(double x, double y, double z) {
this.x = x;
this.y = y;
this.z = z;
this.r = Math.sqrt(Math.pow(x, 2) +... |
package pl.cwanix.opensun.commonserver.configuration;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Marker;
import org.slf4j.MarkerFactory;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Bean;
import org.springfr... |
package cn.edu.ruc.aqi;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.a... |
package com.tencent.mm.plugin.subapp.jdbiz;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.tencent.mm.ui.MMBaseActivity;
import com.tencent.mm.ui.base.x;
import com.tencent.mm.ui.widget.a.c;
import com.tencent.mm.ui.widget.a.c.a;
public class JDRemindDialog extends... |
package com.nic.form.servlet.save;
import com.nic.utility.MacAdr;
import com.nic.validation.DataConnect;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.logging.Level;
import... |
package com.myowndev.main;
import javax.swing.JFrame;
public class Main extends JFrame {
/**
*
*/
private static final long serialVersionUID = 1L;
public static void main(String args[]) {
new Main();
}
public Main() {
add(new Panel());
setSize(560, 700);
setResizable(false);
setLocationRelative... |
package com.tencent.mm.booter;
import com.tencent.mm.model.au;
import com.tencent.mm.model.br;
import com.tencent.mm.protocal.c.aqa;
import com.tencent.mm.sdk.platformtools.bi;
import java.util.LinkedList;
public final class i {
public static void run() {
int i;
aqa aqa;
LinkedList linkedL... |
import java.util.Scanner;
public class L2_I5 {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.println("Podaj liczbę naturalną");
int n = s.nextInt();
int i = 2;
while(i<n) {
if(n%i==0) {
System.out.println("NIE Liczba pierwsza");
System.exit(0);
} //if
... |
public class p36 {
}
|
package net.minecraft.item;
import com.google.common.base.Predicate;
import java.util.List;
import javax.annotation.Nullable;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityAreaEffectCloud;
import net.minecraft.entity.player.EntityPlayer;
... |
package akademia.ox.game;
import java.util.function.IntFunction;
public class VictoryChecker {
private Board board;
private int toWin;
public VictoryChecker() {
}
public GameResult checkVictory(int lastMove, GameCharacter character, Board board, int toWin) {
setParameters(board, toWin)... |
/*
* 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 Gestion.utils;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import ja... |
package com.example.covid19;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.LinearLayout;
import andr... |
package FactoryMethod;
public class Almaviva extends Vinho{
public Almaviva() {
this.setNome("ALMAVIVA");
this.setAno(2016);
this.setTipo("Tinto");
}
}
|
package com.umind.games;
import android.R;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.Toast;
public class CustomOnItemSelectedListener implements OnItemSelectedListener {
public void onItemSelected(Adapte... |
package com.ibm.xml.parser;
import com.ibm.esc.xml.core.*;
/**
* Util is a collection of XML4J utility routines which check the conformance of various
* XML-defined values (XML name, language ID, encoding ID), and which provide services for
* converting strings to XML format.
*
* @version Revision: 09 ... |
package coordinates;
public class DMSlongitudeBuilder {
public DMSlongitude dmsLongitude;
public DMSlongitudeBuilder (){
dmsLongitude = new DMSlongitude();
}
public DMSlongitudeBuilder degrees (Integer d){
dmsLongitude.setDegrees(d);
return this;
}
public DMSlongitudeB... |
package tss;
public class Driver {
/**
* Provide some strings to use for inputs to save having to type them
* in all the time.
*/
//private static String[][] TEST_VALUES = {
// { "The Jesus And Mary Chain", "2019-03-04T21:30", "150" },
// { "Milk and Honey Festival", "2019-03-08T19:00", "180" },
// { ... |
package leetcode;
/**
* @author kangkang lou
*/
/**
* 数组中位数
*/
public class Main_4 {
public double findMedianSortedArrays(int[] nums1, int[] nums2) {
int m = nums1.length;
int n = nums2.length;
if (m > n) {
return findMedianSortedArrays(nums2, nums1);
}
int ... |
package com.programyourhome.adventureroom.module.amazonpolly.module;
import java.util.Arrays;
import java.util.Collection;
import com.programyourhome.adventureroom.dsl.regex.AbstractRegexDslAdventureModule;
import com.programyourhome.adventureroom.dsl.regex.RegexActionConverter;
import com.programyourhome.adventurero... |
package com.ats.qa.pages;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;
import com.ats.qa.base.Listeners;
import com.ats.qa.base.Log;
public class AssessmentQualif... |
package com.ifli.mbcp.vo;
public class NeedAnalysisReportsVO {
private CustomerDetailsVO leadCustomerDetails;
private String name;
private String dateOfBirth;
private String gender;
private String maritalStatus;
public CustomerDetailsVO getLeadCustomerDeta... |
package org.rtmplite.red5.trash.amf.io;
public interface IRemotingClient {
Object invokeMethod(String method, Object[] params);
}
|
package ba.bitcamp.CSVBuilder;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
public class CSVBu... |
package edu.frostburg.COSC310.TrippJohnathan;
/**
* Class representing a Singly-Linked List data structure and its Node component
* @author Johnathan Tripp (╯°□°)╯︵ ┻━┻
* @param <E> Generic type declaration for the Singly-Linked List
*/
public class SinglyLinkedList<E> {
class Node <E>{
... |
package com.njc.cartshopping.dto;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Value;
import javax.validat... |
package com.xu.easyweb.util;
import org.apache.commons.lang.StringUtils;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
/**
* 超实检查过滤器
* User: zht
* Date: 12-9-17
* Time: 下午4:49... |
/*
* 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 com.liqw;
public class HelloServiceImp implements HelloService {
@Override
public String sayHello(String content) {
return "hello! "+ content;
}
}
|
package org.training.issuetracker.dao.interfaces;
import java.util.List;
import org.training.issuetracker.dao.entities.Role;
/**
* Interface, providing access to the user's roles and their data
* @author Dzmitry Salnikau
* @since 10.02.2014
*/
public interface RoleDAO {
/**
* @return List of al... |
package es.maltimor.genericRest;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.ws.rs.core.UriInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import es.maltimor.genericUser.User;
import es.maltimor.web... |
package com.espendwise.manta.service;
import com.espendwise.manta.dao.PropertyDAO;
import com.espendwise.manta.dao.PropertyDAOImpl;
import com.espendwise.manta.model.data.OrderPropertyData;
import com.espendwise.manta.model.data.PropertyData;
import com.espendwise.manta.model.view.EntityPropertiesView;
import com.espe... |
package logica;
import java.util.ArrayList;
public class Calculadora
{
ArrayList<Integer> numeros;
ArrayList<String> signos;
String numero; //Numero que estara formando
int resultado;
///////////////CONSTRUCTOR///////////////
public Calculadora()
{
numeros = new ArrayList<Integer>();
... |
package com.appc.report.model;
import com.appc.framework.mybatis.annotation.Query;
import com.appc.framework.mybatis.annotation.Where;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.pers... |
package softblue.innerlocal;
public class Main {
public static void main(String[] args) {
String t2 = "Imprimir dado fora";
class Texto {
private String t;
public Texto(String t) {
this.t = t;
}
public void imprimir() {
System.out.println(t);
}
public void imprimir2(... |
/*
* SE1021 - 021
* Winter 2017
* Lab: Lab 3 Interfaces
* Name: Rock Boynton
* Created: 12/13/17
*/
package boyntonrl.Lab3;
import java.text.DecimalFormat;
/**
* A class to represent bolt objects.
*/
public class Bolt implements Part {
/**
* Number used to calculate the weight of the bolt
*/
... |
package me.zakeer.justchat.services;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.preferenc... |
package com.dzz.policy.service.service.notify;
import com.dzz.policy.api.domain.dto.PolicyPayDataUpdateParam;
import com.dzz.policy.api.service.PolicyService;
import com.dzz.util.response.ResponsePack;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfra... |
/*
* 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 BikeStore;
public class BicycleManagement {
private final int MAXBIKES = 20;
private Bicycle[] bikelist = new Bicycle[MAXBIKES];
private int count = 0;
/**
* @param bike
*/
public void addbike(Bicycle bike) {
if (count < MAXBIKES) {
bikelist[count] = bike;
... |
package org.forit.blog.dao;
import java.sql.Connection;
import java.sql.Date;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.time.LocalDate;
import java.util.List;
import java.util.stream.Collectors;
import javax.persistence.EntityManager;
import javax.persi... |
package com.cisco.prototype.ledsignaldetection;
/**
* Created by jessicalandreth on 7/17/15.
*/
public class imagePair {
public String kickstartImage;
public String systemImage;
public imagePair(String kick, String sys){
kickstartImage = kick;
systemImage = sys;
}
}
|
package lesson15.hw02;
import java.util.Arrays;
public class GoogleAPI implements API {
private Room[] rooms;
public GoogleAPI(Room[] rooms) {
this.rooms = rooms;
}
public Room[] getRooms() {
return rooms;
}
@Override
public Room[] findRooms(int price, int persons, Stri... |
import java.awt.*;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import javax.swing.*;
public class ComponentEventWin extends JFrame{
private static final long serialVersionUID = 1L;
JTextArea txtArea = new JTextArea();
class MyComponentAdapter extends ComponentAdapter {
public ... |
/*
* Copyright 2000-2011 JetBrains s.r.o.
*
* 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 edu.itserulik.product.controller;
import edu.itserulik.product.model.Item;
import edu.itserulik.product.service.ProductProviderService;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.s... |
package com.lingnet.vocs.service.equipment;
import java.util.HashMap;
import java.util.List;
import com.lingnet.common.service.BaseService;
import com.lingnet.util.Pager;
import com.lingnet.vocs.entity.Machine;
public interface EquipmentUseService extends BaseService<Machine, String>{
/**
*... |
package com.hly.o2o.dao;
import com.hly.o2o.entity.Award;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import o... |
package com.java.phondeux.team;
import org.bukkit.ChatColor;
import com.java.phondeux.team.StatsHandler.TeamStats;
public class TeamUtils {
public static String colorize(String string) {
for (ChatColor cc : ChatColor.values()) {
string = string.replaceAll("%" + cc.name(), cc.toString());
}
return string;
... |
package com.google.sample.cast.refplayer;
public class SolutionMessage {
public String senderId;
public String solution;
}
|
package dev.evertonsavio.app.webfluxtests;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import reactor.core.publisher.Flux;
import reactor.test.StepVerifier;
@ExtendWith(SpringExtension.class) //JUnit 5
cla... |
package pattern_test.visitor;
/**
* Description:
*
* @author Baltan
* @date 2019-04-02 10:40
*/
public class Monitor implements Component {
@Override
public void getPrice(ComputerPriceTable table) {
table.showPrice(this);
}
}
|
package com.example.ahmed.octopusmart.Interfaces;
import android.view.View;
import com.example.ahmed.octopusmart.Model.ServiceModels.ProductModel;
import com.example.ahmed.octopusmart.Model.ServiceModels.CatModel;
/**
* Created by sotra on 12/9/2017.
*/
public interface HomeAdapterListener {
void onProduc... |
package es.utils.mapper.annotation;
import es.utils.mapper.configuration.Configuration;
import es.utils.mapper.defaultvalue.DefaultValueFactory;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.util.function.Supplier;
import static java.lang.annotation.ElementType.FIELD;
import ... |
package ogr.hpe.bridge;
import java.util.UUID;
import java.util.function.Consumer;
import org.hpe.df.event.MessageConsumer;
import org.hpe.df.event.MessageProducer;
import org.hpe.dnslog.DNSLogCallBack;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.hivemq.client.mqtt.mqtt5.Mqtt5AsyncClient;
impo... |
package com.google.tv.android.polycastengine.gl.shader;
import java.io.IOException;
import java.io.InputStream;
import android.content.Context;
public class ShaderLoader {
private Context mContext;
public ShaderLoader(Context context) {
mContext = context;
}
public String getVertex... |
package com.tencent.mm.plugin.appbrand;
import android.app.Activity;
import android.os.Build.VERSION;
import com.tencent.mm.plugin.appbrand.appcache.WxaCommLibRuntimeReader;
import com.tencent.mm.plugin.appbrand.appcache.ao;
import com.tencent.mm.plugin.appbrand.appcache.d.a;
import com.tencent.mm.plugin.appbrand.conf... |
package sqlite;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class SQLite {
private static Connection connection;
private Statement statement;
private PreparedStatem... |
package com.mysql.cj.protocol.a;
import com.mysql.cj.conf.PropertyKey;
import com.mysql.cj.protocol.ColumnDefinition;
import com.mysql.cj.protocol.Message;
import com.mysql.cj.protocol.ProtocolEntityFactory;
import com.mysql.cj.protocol.Resultset;
import com.mysql.cj.protocol.ResultsetRow;
import com.mysql.cj.protocol... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.