text stringlengths 10 2.72M |
|---|
package com.example.jkl.pojo;
import lombok.Data;
import java.util.Date;
import javax.persistence.*;
@Data
@Table(name = "t_goods")
public class Goods {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column(name = "g_name")
private String gName;
@Column(name = "... |
package com.example.retail.controllers.retailer.edibleproducts_retailer;
import com.example.retail.services.edibleproducts.EdibleProductsService;
import com.example.retail.util.CreateResponse;
import com.example.retail.util.JWTDetails;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfra... |
package com.mes.old.meta;
// Generated 2017-5-22 1:25:24 by Hibernate Tools 5.2.1.Final
/**
* DxjDeviceId generated by hbm2java
*/
public class DxjDeviceId implements java.io.Serializable {
private String deviceId;
private String deviceName;
private String wcName;
private String tableCount;
private String wcId... |
package com.cnk.travelogix.operations.facades.populator;
import de.hybris.platform.converters.Populator;
import de.hybris.platform.enumeration.EnumerationService;
import de.hybris.platform.servicelayer.dto.converter.ConversionException;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resou... |
package github.vatsal.popularmoviesapp.Utils;
/**
* Created by
* --Vatsal Bajpai under
* --AppyWare on
* --17/06/16 at
* --11:41 PM in
* --PopularMoviesApp
*/
public class Constants {
public static final String MOVIE_ITEM_KEY = "movieItem";
}
|
package main.java.com.Arkioner.schibstedTest.core.security.service;
import com.sun.net.httpserver.HttpExchange;
import main.java.com.Arkioner.schibstedTest.core.http.HttpSession;
import main.java.com.Arkioner.schibstedTest.core.http.session.Session;
import main.java.com.Arkioner.schibstedTest.core.security.token.UserT... |
package calculations;
import java.util.Scanner;
public class DeterminingCompoundInterest {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("What is the principal amount? ");
double principalAmount = scanner.nextDouble();
System.... |
package com.apprisingsoftware.xmasrogue.io;
import com.apprisingsoftware.xmasrogue.ChristmasRogue;
import com.apprisingsoftware.xmasrogue.util.Coord;
import java.awt.Color;
import java.awt.event.KeyEvent;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
pub... |
package dev.gerardo.shortener.utils;
public interface Shortener {
public String processUrl(String url);
}
|
package com.jim.multipos.ui.products_expired.expired_products;
import com.jim.multipos.core.Presenter;
import com.jim.multipos.data.db.model.inventory.StockQueue;
public interface ExpiredProductsFragmentPresenter extends Presenter {
void onFilterClicked();
void search(String searchText);
void onWriteOff(S... |
package com.example.ilham.obatherbal;
public interface OnLoadMoreListener {
void onLoadMore();
}
|
package com.nhatdear.sademo.activities;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.NavigationView;
import android.support.design.widget.Snackbar;
import android.support.v4.app.FragmentM... |
public class Main {
public static void main(String[] args) {
start();
}
private static void start()
{
MainController mainController = new MainController();
mainController.getWord();
mainController.createListValidWords();
mainController.printValidWords();
... |
package com.github.ovchingus.controller;
import com.github.ovchingus.core.*;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.control.*;
public class AppController {
@FXML
private TextArea textAreaArtist;
/**
* Artist sc... |
package com.tencent.mm.plugin.account.bind.ui;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.KeyEvent;
impor... |
package fr.lteconsulting.training.struts.interceptors;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
import com.opensymphony.xwork2.util.logging.Logger;
import com.opensymphony.xwork2.util.logging.LoggerFactory;
... |
package com.pineapple.mobilecraft.tumcca.server;
import com.pineapple.mobilecraft.tumcca.data.Notification;
import com.pineapple.mobilecraft.utils.SyncHttpGet;
import com.pineapple.mobilecraft.utils.SyncHttpPost;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.Ar... |
package la.opi.verificacionciudadana.activities;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
impor... |
package com.mertbozkurt.readingisgood.mapper;
import com.mertbozkurt.readingisgood.dto.book.BookDTO;
import com.mertbozkurt.readingisgood.dto.customer.CustomerProfileDTO;
import com.mertbozkurt.readingisgood.model.Book;
import com.mertbozkurt.readingisgood.model.Customer;
import com.mertbozkurt.readingisgood.model.Ord... |
package com.diozero.sampleapps;
import java.util.concurrent.locks.LockSupport;
import com.diozero.internal.spi.MmapGpioInterface;
import com.diozero.sbc.DeviceFactoryHelper;
public class Rf433Sender {
public static void main(String[] args) {
int gpio = 26;
int iterations = 10;
int delay_ns = 300_000;
try (M... |
package day08ternaryoperator;
import java.util.Scanner;
public class TernaryOperator04 {
public static void main(String[] args) {
// ternary operator (if else if)
// Kullanicidanbir sayi aliniz
// sayi o dan buyuk esit ise "10 dan kpcpk olup olmadigini kontrol ediniz
// kücük ise ekrana " rakam" degilse "po... |
package com.vinicius.pixeon.challenge.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction... |
package com.javateam.demoMyBatis.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
... |
package com.mundo.web.annotation;
import java.lang.annotation.*;
/**
* CheckLogin
*
* @author maodh
* @since 2017/8/1
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface CheckLogin {
boolean value() default true;
}
|
package day13_review;
public class kahootReview {
public static void main(String[] args) {
//Q1
if (!true != !false) {
// false != true===>true
System.out.println("Cybertek");
}else {
System.out.println("Batch12");
}
//Q2
boolean resultA = 9>=9 || 10<=10;
// true || true===>true
b... |
package com.yunheenet.pcroom.view;
import javax.swing.*;
import java.awt.*;
public class PopupFrame extends Frame {
private String userId;
private int screenWidth;
private int screenHeight;
private JFrame frame;
private JLabel titleLabel;
public static void main(String args[]) {
new... |
package kr.meet42.memberservice.config;
import kr.meet42.memberservice.security.FtOAuth2SuccessHandler;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
... |
package de.zarncke.lib.util;
import java.io.Serializable;
public interface Shortener extends Serializable {
/**
* Leaves text unchanged.
*/
Shortener NONE = new Shortener() {
public CharSequence shorten(final CharSequence longText) {
return longText;
}
};
/**
* Shortens to 80 characters... |
package com.dilip.annotationbased.SpringAnnotationBased;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class App
{
public static void main( String[] args )
{
ApplicationContext ac = new AnnotationConfigAppl... |
package com.codecool.csepdo.FilePartReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.NoSuchElementException;
public class FileWordAnalyzer {
private FilePartReader text;
public FileWordAnalyzer(FilePartReader filePart) {
this.text = filePart;
}
public ArrayList<S... |
package de.ybroeker.assertions.json;
import org.assertj.core.api.AbstractDoubleAssert;
import org.assertj.core.util.CheckReturnValue;
/**
* @author ybroeker
*/
public class JsonDoubleAssert extends AbstractDoubleAssert<JsonDoubleAssert> implements JsonElementAssert {
private final JsonAssert parent;
@Chec... |
package org.newdawn.slick.tests;
import java.util.ArrayList;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.Color;
import org.newdawn.slick.Game;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Input;
import or... |
package org.b.d;
import java.io.OutputStream;
public final class a {
public final String scope;
public final String vKl;
public final String vKm;
public final String vKn;
public final h vKp;
private final OutputStream vKq;
public a(String str, String str2, String str3, h hVar, String str4... |
package com.cmj.netty.response;
/**
* Created by chenminjian on 2018/4/19.
*/
public abstract class AbstractResponseFuture<T> implements ResponseFuture<T> {
protected volatile FutureState state = FutureState.NEW; //状态
protected final long createTime = System.currentTimeMillis();//处理开始时间
public Abstrac... |
/*
* Copyright 2008 Eckhart Arnold (eckhart_arnold@hotmail.com).
*
* 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... |
package at.ac.tuwien.sepm.assignment.individual.unit.persistence;
import static org.junit.jupiter.api.Assertions.*;
import at.ac.tuwien.sepm.assignment.individual.exception.NotFoundException;
import at.ac.tuwien.sepm.assignment.individual.persistence.BreedDao;
import org.junit.jupiter.api.DisplayName;
import org.juni... |
package components;
public class UserPiece extends Piece {
public UserPiece(int posX, int posY, Matrix mat) {
super(posX, posY);
this.mat = mat;
}
}
|
package com.example.root.monerotest.QRReader;
import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.root.monerotest.R;
public class QRReaderFragment extends Fra... |
package com.example.testproject;
import android.content.Intent;
import android.os.Bundle;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.snackbar.Snackbar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
imp... |
package pe.egcc.cursoapp.controller;
import java.util.List;
import pe.egcc.cursoapp.dto.ProductoDto;
import pe.egcc.cursoapp.service.contrato.CursoService;
import pe.egcc.cursoapp.service.implementacion.CursoServiceImpl;
public class CursoController {
private CursoService cursoService;
public CursoControlle... |
package io.github.wickhamwei.wessential.wprotect.command;
import io.github.wickhamwei.wessential.WEssentialMain;
import io.github.wickhamwei.wessential.wprotect.WProtect;
import io.github.wickhamwei.wessential.wtools.WPlayer;
import org.bukkit.block.Block;
import org.bukkit.command.Command;
import org.bukkit.command.C... |
package techokami.computronics;
import java.util.Random;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import li.cil.oc.api.Driver;
import openperipheral.api.OpenPeripheralAPI;
import techokami.computronics.audio.DFPWMPlaybackManager;
import techokami.computronics.block.BlockCam... |
package ru.lember.neointegrationadapter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import ru.lember.neointegrationadapter.conf... |
package org.locker;
public class DeadlockDetectedException extends RuntimeException {
public DeadlockDetectedException(String message) {
super(message);
}
}
|
/*
* Copyright 2007 Bastian Schenke 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 to in writing, ... |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Observable;
import java.util.Observer;
public class Evade_CLI implements Observer {
public static void main(String[] args)
{
System.out.println("*******************... |
package com.example.httpclient.demohttpclient.entity;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
public class Person {
String name;
String age;
User user;
}
|
package application.repository.impls;
import application.mapper.PersonRowMapper;
import application.model.Person;
import application.model.Song;
import application.repository.PersonRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
imp... |
package board;
import java.util.*;
import java.io.BufferedReader;
import java.io.FileReader;
import city.City;
import _aux.Options;
import _aux.CustomTypes;
import _aux.CustomTypes.Direction;
/*
Board class
Mimics the game board. Composed by individual cells disposed in bidimensional arrays
*/
public class Boa... |
package plp.orientadaObjetos1.expressao.leftExpression;
import plp.orientadaObjetos1.expressao.Expressao;
/**
* Classe que representa um acesso de atributo.
*/
public abstract class AcessoAtributo implements LeftExpression{
/**
* Identificador.
*/
private Id id;
/**
* Construtor
* @p... |
/**
*/
package com.rockwellcollins.atc.limp.impl;
import com.rockwellcollins.atc.limp.Else;
import com.rockwellcollins.atc.limp.Expr;
import com.rockwellcollins.atc.limp.IfThenElseStatement;
import com.rockwellcollins.atc.limp.LimpPackage;
import com.rockwellcollins.atc.limp.StatementBlock;
import org.eclipse.emf.co... |
package COM.JambPracPortal.DAO;
import COM.JambPracPortal.MODEL.userResponse;
import java.sql.PreparedStatement;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import org.primefaces.context.RequestContext;
public class userResponseDAO extends DAO {
public void userRes... |
/*
* Copyright (C) 2021-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 applicab... |
/*
* The purpose of this lab is to learn about how to extract data
* from user input and apply the extracted digit using remainder
* and division symbols.
*
* Author: Victor (Zach) Johnson
* Date: 9/9/17
*/
package chapter2;
import java.util.Scanner;
public class Ex2_06 {
public static void mai... |
package android.support.v4.app;
import android.app.Notification;
import android.os.Bundle;
import android.support.v4.app.ae.a;
import android.support.v4.app.z.d;
import android.support.v4.app.z.l;
class z$p extends l {
z$p() {
}
public Notification b(d dVar) {
a aVar = new a(dVar.mContext, dVar.p... |
/*
* This software is licensed under the MIT License
* https://github.com/GStefanowich/MC-Server-Protection
*
* Copyright (c) 2019 Gregory Stefanowich
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... |
package Domain;
import Domain.Effetti.Effetto;
import Exceptions.DomainException;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import static org.junit.Assert.*;
/**
* Created by Michele on 04/06/2017.
*/
public class TorreTest {
private Torre torre;
@Before
public void ... |
package bootcamp.test.elements;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import io.github.bonigarcia.wdm.WebDriverManager;
public class IsDisplayed {
public static void main(String[] args) {
WebDriverManager.chromedriver().setup();
Web... |
package polydungeons.item;
import net.minecraft.item.Item;
public class EssenceItem extends Item {
public EssenceItem(Settings settings) {
super(settings);
}
}
|
package Structural.Composite;
//Composite Class
// This will have operations to access child
public class Menu extends MenuComponent{
public Menu(String name , String url) {
this.name = name;
this.url = url;
}
public MenuComponent add(MenuComponent menuComponent){
this.menuCompon... |
/**
* Tina Rickard, William Eggert
* CSC 365-03
* Lab 8: Database Connectivity with JDBC
*/
import java.io.*;
import java.util.*;
import java.sql.*;
import java.lang.*;
import java.text.*;
import java.util.Date;
public class InnReservations {
static String url = null;
static String user = nul... |
package jour14;
import java.util.Scanner;
public class Soru02 {
public static void main(String[] args) {
//Kullanıcıdan başlangıç ve bitiş değerlerini alın
//ve başlangıç değerinden başlayıp bitiş değerinde biten
//4 ve 6 ile bölünebilen tüm tamsayıları ekrana yazdırınız.
Scanner scan = new Scanner(Sys... |
package ru.otus.json.writer;
import com.google.gson.Gson;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import ru.otus.json.writer.gson.GsonWriter;
import ru.otus.json.writer.testobjects.TestPrimitive;
import ru.otus.json.writer.testobjects.TestWithArrays;
public class ... |
package com.example.sujith.roomdatabdase_demo;
import android.arch.persistence.room.Room;
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.Toast;
public class AddUserActivity extends... |
package com.gcsw.teamone;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;
import androidx.annotation.NonNull;
import com.google.an... |
package com.appdear.bdmap;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.util.List;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpSta... |
package com.leepc.chat.controller;
import com.alibaba.druid.util.StringUtils;
import com.leepc.chat.annotation.PassToken;
import com.leepc.chat.exception.ClientException;
import com.leepc.chat.service.UserService;
import com.leepc.chat.util.Response;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.f... |
import java.util.Scanner;
public class CurrencyConversion {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("input amount of money (in USD)");
int rate = scanner.nextInt();
int vnd = rate * 23000;
System.out.printf("The am... |
package br.com.sdad;
public class Alertas {
public enum TipoAlerta {
EMAIL("email"),
SMS("sms"),
TELEGRAM("telegram");
private String tipoAlerta;
TipoAlerta(String tipoAlerta){
this.tipoAlerta = tipoAlerta;
}
public String getTipoAlerta() {
... |
package com.rbgt.mb.respons;
/**
* @project_name: mb
* @package_name: com.rbgt.mb.respons
* @name: ResponseCode
* @author: 俞春旺
* @date: 2020/4/5 10:50
* @day_name_full: 星期日
* @remark: 返回状态码
**/
public enum ResponseCode {
/**
* 成功返回的状态码
*/
SUCCESS(10000, "success"),
/**
* 资源不存在的状态码
... |
package com.shopify.admin.popup;
import javax.servlet.http.HttpSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.ann... |
package chainofresponsibility.design.pattern.example1;
public class CsvParser extends Parser {
@Override
public void parse(String fileName) {
if ( canHandleFile(fileName, ".csv")){
System.out.println(fileName+" parsed by CSV Parser");
}
else{
super.parse(fileName);
... |
package com.application.model.tax;
import java.text.NumberFormat;
import java.util.Locale;
/**
* This class is percentage representation.
* Anywhere in project if percentage need to be described this class can be used.
*/
public final class Percent {
public static final Percent TEN_PERCENT = new Percent(10);
p... |
package org.mybatis.spring.cache;
/**
* 缓存更新上下文,指定需要更新的地方,方便php java缓存同步
* @author lindezhi
* 2015年12月10日 上午1:40:36
*/
public class RedisCacheContext {
private static ThreadLocal<Integer> update = new ThreadLocal<Integer>();
private static ThreadLocal<Integer> select = new ThreadLocal<Integer>();
public s... |
package org.got5.tapestry5.roo;
public class TapestryUtils {
public final static String createEmptyTemplateContent() {
StringBuffer buffer = new StringBuffer();
buffer.append("<html t:type=\"layout\" xmlns:t=\"http://tapestry.apache.org/schema/tapestry_5_1_0.xsd\" " +
" xmlns:p=\"tapestry:parameter\"... |
package com.nxtlife.mgs.enums;
public enum ApprovalStatus {
PENDING, VERIFIED, REJECTED ,FORWARDED;
}
|
package fr.xebia.xkeakka.transcoder;
import java.io.IOException;
public class LameTranscoder extends Transcoder {
@Override
public void transcode(FileFormat input) {
try {
Process p = Runtime.getRuntime().exec(buildCommand(input));
p.waitFor();
} catch (Exception e) {
... |
/*
* created 02.08.2005 by sell
*
* $Id: Messages.java 664 2007-09-28 17:28:39Z cse $
*/
package com.byterefinery.rmbench.actions;
import org.eclipse.osgi.util.NLS;
/**
* translatable strings for dialogs
*
* @author sell
*/
public class Messages extends NLS {
private static final Strin... |
/*
* 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... |
/* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
package com.emp.friskyplayer.receivers;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.KeyEvent;
import com.emp.friskyplayer.utils.ServiceActionConstants;
/**
* Manages lock screen media button actions
* @author ... |
package Algorithm;
//给定一个整数数组,其中第 i 个元素代表了第 i 天的股票价格 。
// 设计一个算法计算出最大利润。在满足以下约束条件下,你可以尽可能地完成更多的交易(多次买卖一支股票):
// 你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。
// 卖出股票后,你无法在第二天买入股票 (即冷冻期为 1 天)。
//[][0]拿着股票 [][1]没拿,可以买 [][2]没拿,不可以买
public class a309 {
public int maxProfit(int[] prices) {
if (pr... |
package x.format;
import org.junit.Test;
import x.java.JavaRulePath;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.*;
public class RulePathTest {
@Test
public void matchesShouldMatch() {
// given
RulePath rulePath = new RulePath();
rulePath.enter("a");
... |
package ej6;
public class PruebaEntero {
public static void main(String[] args) {
// TODO Auto-generated method stub
Entero e = new Entero(5);
System.out.println("El numero ingresado es: " + e.getNumero());
System.out.println("El cuadrado de " + e.getNumero() + " es: " + e.cuadrado());
}
}
|
package view.guicomponents.guiconsole;
/**
* Contains the last user input of a GUI console input text field.
*
* @author Andreas Fender
*/
public class ConsoleUserInput {
private String input;
private boolean awaiting;
public ConsoleUserInput() {
awaiting = false;
}
/... |
package com.cachecats.domin.shop.model;
import java.io.Serializable;
import java.util.List;
/**
* Created by solo on 2018/1/18.
* 商店对应的 model
*/
public class ShopModel implements Serializable{
private String id;
private String name;
private String logo;
private String address;
private String ... |
package com.example.wsec.controller;
import java.security.Principal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.print.attribute.standard.PagesPerMinute;
import javax.servlet.http.HttpServletRequest;
import javax.s... |
package com.tencent.mm.plugin.appbrand.menu;
import android.content.Context;
import com.tencent.mm.plugin.appbrand.menu.a.a;
import com.tencent.mm.plugin.appbrand.page.p;
import com.tencent.mm.plugin.appbrand.s.j;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.ui.base.l;
public final class b extend... |
package com.cse308.sbuify.playlist;
import com.cse308.sbuify.customer.FollowedPlaylist;
import com.cse308.sbuify.customer.FollowedPlaylistRepository;
import com.cse308.sbuify.image.StorageService;
import com.cse308.sbuify.image.Image;
import com.cse308.sbuify.security.AuthFacade;
import com.cse308.sbuify.security.Secu... |
package com.example.patrick.rccar.listener;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorListener;
import com.example.patrick.rccar.Steuerung;
public class LenkungsListener implements SensorEventListener {
private ... |
public class Round {
public Round(Dealer dealer) {
dealer.setCheckRoundCount(dealer.getCheckRoundCount()+1);
}
//region boolean _checkRoundType
private boolean _RoundType;
public boolean getCheckRoundType() {
return _RoundType;
}
public void setCheckRoundType(boolean chec... |
package com.dayuanit.shop.dto;
import java.util.List;
public class OrderDetailDTO {
private Integer id;
private Integer status;
private String userRealName;
private String createTime;
private Integer payChannel;
private String totalPrice;
private String dtaAddress;
private String provinceName... |
/*
* The MIT License
*
* Copyright 2018 Edson Passos <edsonpassosjr@outlook.com>.
*
* 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 th... |
package com.tencent.mm.plugin.emoji.ui;
import android.content.Intent;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
import com.tencent.mm.R;
import com.tencent.mm.plugin.emoji.model.i;
import com.tencent.mm.sdk.platformtools.ad;
import com.tencent.mm.sdk.platformtools.ao;
import ... |
package myaop.java;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class ExeTimeCalculator implements Calculator{
private Calculator delegate;
static final Logger logger = LogManager.getLogger(App.class);
public ExeTimeCalculator(Calculator cal){
delegate =... |
package com.espendwise.manta.web.util;
import com.espendwise.manta.util.alert.MessageType;
import com.espendwise.manta.util.arguments.TypedArgument;
public class WebMessage extends ActionMessage {
public WebMessage(String key, TypedArgument[] arguments, String defaultMessage) {
super(MessageType.MESSAGE,... |
package com.mydemo.webtest.pages;
import com.microsoft.playwright.Page;
import com.mydemo.webtest.browser.BrowserConfig;
public class LoginPage {
Page page = BrowserConfig.localPage;
private String txtUsername = "#username";
private String txtPassword = "#password";
private String btnSignIn = "button... |
package kr.ko.nexmain.server.MissingU.msgbox.dao;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import kr.ko.nexmain.server.MissingU.common.model.CommReqVO;
import kr.ko.nexmain.server.MissingU.msgbox.model.LnkMsgboxMsgVO;
import kr.ko.nexmain.server.MissingU.msgbox.model.MsgBoxConversSendVO;... |
package de.dzmitry_lamaka.lesaratesttask.network.data;
import android.support.annotation.NonNull;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class Products {
@NonNull
private List<Product> products;
@SerializedName("number_products")
private int numberProducts;
... |
package com.example.remotestarvideonew;
import android.os.Handler;
import android.os.Looper;
import androidx.lifecycle.Observer;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.gson.Gson;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.