text stringlengths 10 2.72M |
|---|
package code.enemy;
import code.achievments.AchievementController;
import code.achievments.GameMessage;
import code.buttons.ButtonController;
import code.global.GlobalVariables;
import code.graphics.FurnitureObjects;
import code.intersectObjects.IntersectsObjectLevel1;
import code.player.Player;
import code.player.Spr... |
package com.rachelgrau.rachel.health4theworldstroke.Activities;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.GridView;
import com.rachelgrau.rachel.health4theworldstroke.Adap... |
package com.binarysprite.evemat.page.blueprint.data;
import java.io.Serializable;
/**
*
* @author Tabunoki
*
*/
public class CharaterSelect implements Serializable {
private final long id;
private final String characterName;
public CharaterSelect(long id, String name) {
super();
this.id = id;
this.c... |
package model;
public class GeneticAlgorithm {
private static int populationSize = 10;
private static int maxGenerations = 10000;
private static double mutationRate = 0.5;
public static Chromosome generateTimeTable(){
Generator gen = Generator.getInstance();
gen.initialize... |
package DuckHunt.GUI;
import DuckHunt.Constant.Request;
import DuckHunt.Constant.Responses;
import DuckHunt.Global.GameGlobalVariables;
import DuckHunt.Main.Game;
import DuckHunt.Request.GroupDetails;
import DuckHunt.Request.Response;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXPassw... |
package com.example.dolly0920.week8;
import java.io.SerializablePermission;
public class CustomObjectStreamConstants {
private CustomObjectStreamConstants() {}
public static final short STREAM_MAGIC = (short) 0xaced;
public static final short STREAM_VERSION = 5;
public static final byte TC_BASE = 0x70;
... |
package com.yukai.monash.student_seek;
import android.app.Fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view... |
package com.socialportal.domain.blog.model;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.List;
@Document(collection = "blogEntries")
public class BlogEntry {
@Id
private String entryId;
private String title;
private ... |
package com.example.hhx.teacher;
import android.content.ContentValues;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.method.PasswordTransformationMethod;
import android... |
package com.dh.comunicacao.comunicacaoactivityfragment;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;
import com.dh.comunicacao.R;
public class MainActivity extends AppCompatActivity implements FragmentListener {
private CallbackFragment callbackFragment... |
package com.redrocket.photoeditor.screens.presentation;
import android.content.Context;
/**
* Базовый интерфейс для всех view в терминах MVP.
*/
public interface MvpView {
Context getContext();
}
|
package com.kab.chatclient.dummy;
import android.content.Context;
import com.kab.chatclient.Utility;
import java.util.Random;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import static java.util.concurrent.TimeUnit.SECONDS;
/**
* Created by Kraskovskiy on 21.09.16.
... |
package sample;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import sample.main.FileUtil;
import java.io.IOException;
public class Main extends Application{
private static Stage stage;
@Override
public voi... |
package com.web.common;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.HashMap;
import java.io.Serializable;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import com.web.common.user.UserMemDTO;
import com.web.framework.logging.Log;
impo... |
package com.dokyme.alg4.sorting.basic;
import com.dokyme.alg4.sorting.CompareUtil;
import com.dokyme.alg4.sorting.Sorting;
import edu.princeton.cs.algs4.StdOut;
import edu.princeton.cs.algs4.StdRandom;
import edu.princeton.cs.algs4.Stopwatch;
import static com.dokyme.alg4.sorting.basic.Example.*;
import java.util.*;... |
package webBasedPopup;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.chrome.ChromeDriver;
public class HiddenDivisionPopup {
public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.chrome.driver","./driv... |
package com.bitwise.ticketbooking;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletReque... |
import java.io.IOException;
/**
* A fake appendable that only throws exceptions, intending to fail to write to it.
*/
public class MockFailAppendable implements Appendable {
/**
* Would append given sequence to the structure, but instead only throws an exception.
*
* @param csq would be a character seque... |
import javax.swing.*;
import java.awt.event.*;
import java.awt.Dimension;
import java.awt.*;
import java.util.*;
public class Bucket{
int amount;
int x, y;
public Bucket(int aX, int aY, int anAmount){
x = aX;
y = aY;
amount = anAmount;
}
public void f... |
package com.meizu.scriptkeeper.view.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.ImageView;
import andr... |
package com.example.banque.model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.Inheritan... |
/*
* Copyright (C) 2016 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... |
package GUI;
/*Doing the needed imports*/
import java.awt.Container;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.Button;
public class ScreenButton extends ScreenElement implements InputDevice {
Button button;
boolean inputAvailable = false; //boole... |
package reflect;
/**
* 简述:
*
* @author WangLipeng 1243027794@qq.com
* @version 1.0
* @since 2019/12/23 12:08
*/
public class User {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public ... |
/*
* 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 pt.uminho.sdc.railmanager;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
package org.xbill.DNS;
import java.time.Instant;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
/**
* Routines for converting time values... |
package com.wdl.entity.rbac;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.wdl.base.entity.BaseEntity;
@Entity
@Table(name = "t_org")
public class Org extends BaseEntity {
private static final long serialVersionUID = -892723165144628561L;
... |
package in.vamsoft.excersise2;
public class MappingTest {
public static void main(String[] args) {
Mapping mapper = new Mapping();
System.out.println("English names");
printNumbers(mapper, 22);
String[] spanishNums =
{"cero", "uno", "dos", "tres", "cuatro", "cinco",
"seis", "siete", "ocho... |
package burst.test.tags;
import com.tngtech.jgiven.annotation.TagDescriptionGenerator;
import com.tngtech.jgiven.config.TagConfiguration;
import java.lang.annotation.Annotation;
public class NarrativeDescriptionGenerator implements TagDescriptionGenerator {
@Override
public String generateDescription(TagConf... |
package com.rationaleemotions.pojo;
import com.rationaleemotions.utils.Preconditions;
import com.rationaleemotions.utils.Strings;
import java.io.File;
/**
* Represents the attributes of a user for whom a remote ssh is being attempted.
*/
public class SSHUser {
private static final String USER_NAME = "user.nam... |
package com.example.logsys.service;
import com.example.logsys.entity.BusClick;
import java.util.List;
public interface ExcelService {
List<BusClick> getBusClick();
}
|
package shulei.july26;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JT... |
/*
* 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 ur.ur_item_ctr;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.ambit.city_guide.R;
import lib.hyxen.ui.SimpleViewController;
import ur.ur_flow.coupon.obj.CateObj;
/**
* Created by red... |
package com.github.reubuisnessgame.gamebank.stockexchangeservice.dao;
import com.github.reubuisnessgame.gamebank.stockexchangeservice.model.ChangingPriceModel;
import com.github.reubuisnessgame.gamebank.stockexchangeservice.model.CompanyModel;
import com.github.reubuisnessgame.gamebank.stockexchangeservice.model.Share... |
package reflect;
/**
* 简述:
*
* @author WangLipeng 1243027794@qq.com
* @version 1.0
* @since 2019/12/24 9:00
*/
public class TT {
}
|
/* Level Order Traversal of a Binary Tree */
public class Solution {
public List<List<Integer>> levelOrder(TreeNode root) {
List<List<Integer>> ll = new ArrayList<>();
Queue<TreeNode> q = new LinkedList();
if(root==null) return ll;
q.add(root);
whi... |
package stringhandling;
public class AlphabeticalOrder {
public static void main(String args[])
{
String name[]={"Prashant","Mayur","Tejas","Ali","Nandani","Prajakta","Ashlesha"};
for(int i=0;i<name.length;i++)
{
for(int j=i+1;j<name.length;j++)
{
if(name[i].compareToIgnoreCase(name[j])>0)
{
... |
package com.example.demo.service;
import com.example.demo.entity.PageInfo;
import com.example.demo.entity.ProjectApprovalProject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.entity.PubProjectVO;
import com.example.demo.entity.PublishSearchParams;
import java.util.List;
/**
* ... |
package com.yhkx.core.storage.dao.mapper;
import com.yhkx.core.storage.dao.entity.SkillInfo;
import tk.mybatis.mapper.common.Mapper;
/**
* <p>
* </p>
*
* @author uniqu
* @date 2018-10-09 11:01:51
* @version
*/
public interface SkillInfoMapper extends Mapper<SkillInfo> {
} |
package com.evature.evasdk.evaapis.crossplatform.flow;
import com.evature.evasdk.evaapis.crossplatform.EvaLocation;
import com.evature.evasdk.util.DLog;
import java.io.Serializable;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
public class ReplyElement extends FlowElement imp... |
package com.test;
import java.util.ArrayList;
import java.util.List;
/**
* Given an array of words and a width maxWidth,
* format the text such that each line has exactly maxWidth characters
* and is fully (left and right) justified.
*
* 给一串字符串,以及一个最大宽度;格式化text,使得每一行的宽度都是最大宽度;
*
* You should pack your words ... |
package org.giddap.dreamfactory.mitbbs.amazon;
import org.giddap.dreamfactory.leetcode.commons.TreeNode;
import java.util.HashMap;
import java.util.Map;
/**
* There is a binary tree that each node has a value of single digit 0-9.
* <p/>
* Find a node-to-node path from the tree that generates the largest integer.
... |
package global.dao;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import global.model.Teachingtask;
import global.model.View_teacher;
import global.model.View_teachingtask;
/**
* 教学任务数据访问类
*
* @author czy
*
*/
public... |
package qdu.java.recruit.renwu.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import qdu.java.recruit.renwu.entity.Paper;
import qdu.java.recruit.renwu.entity.SuperUser;
import qdu.java.recruit.renwu.entity.User;
@Mapper
public interface SuperUser... |
package DataStructures.arrays;
/**
* Created by sydgsk9 on 8/22/2017.
*/
public class SubsetSummationWithNumberConstraint {
}
|
package com.evan.demo.yizhu.shouye;
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.ImageButton;
import android.widget.TextView;
import com.evan.demo.yizhu.R;
public class shouye_zh... |
/* ====================================================================
*
* Copyright (c) Atos Origin INFORMATION TECHNOLOGY All rights reserved.
*
* ==================================================================== *
*/
package com.aof.webapp.action;
import java.util.*;
/**
* @author xxp
* @version 2003-1... |
package com.atguigu.gmall0105.gmall0105publisher.service;
import java.util.Map;
/**
* Created by jxy on 2020/12/22 0022 20:46
*/
public interface EsService {
public Long getDauTotal(String date);
public Map getDauHour(String date);
}
|
package service;
public class BrokerService {
}
|
package ch.epfl.moocprog;
import static ch.epfl.moocprog.app.Context.getConfig;
import static ch.epfl.moocprog.config.Config.ANT_WORKER_HP;
import static ch.epfl.moocprog.config.Config.ANT_WORKER_LIFESPAN;
import static ch.epfl.moocprog.config.Config.ANT_WORKER_SPEED;
import static ch.epfl.moocprog.config.Config.ANT_M... |
package com.example.demo.moduls.Systerm.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.moduls.Systerm.entity.SystemUser;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SystemUserMapper extends BaseMapper<SystemUser> {
}
|
package com.sapl.retailerorderingmsdpharma.ServerCall;
import android.content.Context;
import android.util.Log;
import com.android.volley.AuthFailureError;
import com.android.volley.DefaultRetryPolicy;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
impor... |
package com.javasampleapproach.mysql.association.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "... |
package com.webserver.shoppingmall.item.service.impl;
import com.webserver.shoppingmall.ShoppingMallApplicationTests;
import com.webserver.shoppingmall.item.model.Category;
import com.webserver.shoppingmall.item.model.Item;
import com.webserver.shoppingmall.item.repository.ItemRepository;
import org.junit.jupiter.api.... |
package org.carpark.barrier;
/**
* Class to display a sign at an Entry Barrier.
*
* @author Sian Turner
* @version 12/04/05
*/
public class EntryBarrierSign {
private String message;
/**
* Constructor for objects of class EntryBarrierSign
* @param newMessage the message to be displayed on the... |
package edu.ncsu.csc563.velocity.actors.components;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import edu.ncsu.csc563.velocity.rendering.GLES20Shader;
import android.opengl.GLES20;
public class Mesh extends Component {
/** Array of handles that id... |
package com.git.cloud.resmgt.network.model.vo;
import java.util.HashMap;
//网络地址区间信息
public class NetIPInfo {
/**
* 网络地址类型编码,主要取值范围:
* HP 物理机生产地址
* HM 物理机管理地址
* HV 物理机管理-vMontion地址
* HL 物理机管理-ILO地址
* HF1 物理机管理-FSP1地址
* HF2 物理机管理-FSP2地址
* NP NAS存储生产地址
* NM NAS存储管理地址
* VP 虚拟机生产地址
... |
package edu.gatech.oad.fullhouse.findmystuff.test;
import java.util.List;
import edu.gatech.oad.fullhouse.findmystuff.R;
import edu.gatech.oad.fullhouse.findmystuff.dao.UserAccessor;
import edu.gatech.oad.fullhouse.findmystuff.model.User;
import edu.gatech.oad.fullhouse.findmystuff.pres.RegisterPresenter;
import edu... |
// **********************************************************
// 1. 제 목: PROPOSE STATUS DATA
// 2. 프로그램명: ProposeStatusData.java
// 3. 개 요: 신청 현황 data bean
// 4. 환 경: JDK 1.3
// 5. 버 젼: 1.0
// 6. 작 성: 박진희 2003. 8. 20.
// 7. 수 정:
// ***************************************************... |
package com.qiyewan.crm_joint.service;
import com.qiyewan.crm_joint.domain.ContractService;
import com.qiyewan.crm_joint.domain.ContractServiceRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class Contrac... |
package com.esum.web.monitor.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMap... |
public class singleton3 {//饿汉式的
//直接进行实例化就不会产生线程不安全的,但是这样也就没有了之前的延迟实例化的好处
//基于classloader机制
private static singleton3 uniqueistance =new singleton3();
private singleton3(){}
public static singleton3 getuniqueinstance(){
return uniqueistance;
}
}
|
package Gerente;
import java.io.IOException;
import java.util.List;
import Controle.*;
import Exception.*;
public class Gerente {
private ControleAluno aluno;
private ControleExercicios exercicios;
private ControleArquivo arquivo;
private ControleProfessor professor;
public Gerente(){
this.arquivo = new Co... |
package dataFactory;
import po.CreditInfoPO;
import java.util.ArrayList;
/**
* Created by njulgh on 16-12-5.
*/
public interface CreditDataHelper {
public ArrayList<CreditInfoPO> getCustomerCredits(String userName);
public ArrayList<CreditInfoPO> insert(CreditInfoPO cipo);
}
|
package Lec_02_SimpleOperationsAndCalculations;
import java.util.Scanner;
public class Lab08_YardGreening {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Въведете площа за озеленяване: ");
double area = Double.parseDouble(scanner.nex... |
package com.bupsolutions.polaritydetection.ml.rnn;
import com.bupsolutions.polaritydetection.model.LabeledTextSet;
import com.bupsolutions.polaritydetection.model.Polarity;
public class RNNPolarityTrainer extends RNNTrainer<Polarity> {
public RNNPolarityTrainer() {
super(new RNNPolarityModel());
}
... |
package com.gamzat;
public class Main {
public static void main(String[] args) {
int Finger = 1; // Пальцы.
while (Finger <= 10 ) {
System.out.println("Палец номер " + Finger);
++Finger;
}
}
}
|
package br.unb.poo.mh;
public class Igual extends ExpressaoBinaria {
public Igual(Expressao expDireita, Expressao expEsquerda) {
super(expDireita, expEsquerda);
}
@Override
public Valor avaliar() {
if(expEsquerda.tipo() == Tipo.Booleano){
ValorBooleano v1 = (ValorBooleano) expEsquerda.avaliar();
... |
package 数据库.JDBC入门;
import java.sql.*;
import java.util.ResourceBundle;
public class Demo1 {
public static void main(String[] args) throws ClassNotFoundException, SQLException {
ResourceBundle RD = ResourceBundle.getBundle("数据库.JDBC入门.data");
Class.forName(RD.getString("jdbc.Driver"));
//... |
import java.io.FileNotFoundException;
import java.io.IOException;
import virtualdisk.DiskThread;
import virtualdisk.VirtualDisk;
import common.Constants;
import dblockcache.DBufferCache;
import dfs.DFS;
public class TestLoad
{
public static void main(String[] args) throws FileNotFoundException, IOException
{
... |
package com.tutorialspoint.collections;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class MainApp {
public static void main(String[] args) {
AbstractApplicationContext context = new ClassPathXmlApp... |
package cn.happy.spring1006aspectj;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
/**
* Created by LY on 2017/10/6.
*/
@Aspect
public class MyAspectj {
//@Before(value = "execution(* *..spring1006aspectj.*.*(..))")
public void myBefore(){
System.out.println("====... |
package com.ajhlp.app.integrationTools.services.impl;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.ajhlp.app.integrationTools.model.DBType;
import com.ajhlp.app.integrationTools.services.... |
package Veiculo;
public class CarroPasseio extends Veiculo {
private String cor;
private String modelo;
public String getCor() {
return cor;
}
public void setCor(String cor) {
this.cor = cor;
}
public String getModelo() {
return modelo;
}
public void setModelo(String modelo) {
this.modelo = mo... |
package strategy01;
public class NormalFreight implements Freight {
@Override
public double calculate(Integer numKilometers) {
return numKilometers * 1.2D;
}
}
|
/******************************************************************************
* __ *
* <-----/@@\-----> *
* <-< < \\// > >-> *
... |
package com.my.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author:ljn
* @Description:
* @Date:2021/02/09 19:28
*/
@RestController
public class HelleConfroller {... |
package org.asynchttpclient.proxy;
public enum ProxyType {
HTTP,
SOCKS_V4 {
@Override
public boolean isSocks() {
return true;
}
},
SOCKS_V5 {
@Override
public boolean isSocks() {
return true;
}
};
public boolean isSocks() ... |
package gui;
import dao.ClienteDAO;
import java.util.ArrayList;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import models.Cliente;
public class MenuPrincipal extends javax.swing.JFrame {
ArrayList<Cliente> todosClientes;
ArrayList<Cliente> clientesNaTabela;
Cliente cliente... |
/*
* Copyright (C) 2018 Instituto Nacional de Telecomunicações
*
* All rights are reserved. Reproduction in whole or part is
* prohibited without the written consent of the copyright owner.
*
*/
package inatel.br.nfccontrol.di.module;
import android.content.Context;
import android.content.SharedPreferences;
imp... |
/*
* Copyright 2017 Goldman Sachs.
* 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 br.com.zup.treinocasadocodigo.controllers;
import br.com.zup.treinocasadocodigo.entities.pais.Pais;
import br.com.zup.treinocasadocodigo.entities.pais.PaisNovoRequest;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
import javax.persistence.EntityManager;
import j... |
package core.order;
import core.AppConfig;
import core.member.Grade;
import core.member.Member;
import core.member.MemberService;
import core.member.MemberServiceImpl;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class Or... |
/*
* 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.davivienda.sara.bean.page.diarioelectronico;
import com.davivienda.sara.dto.DiarioElectronicoTransaccionDTO;
import com.da... |
/* Author: Arkadiusz Galas
Date: 7 JUL 2016
ID: 27307
Name: Alternating Sequences */
/**
* AlternatingSequences class is a solution of Alternating Sequences problem
* on http://www.spoj.com/problems/ALTSEQ/
*/
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.St... |
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
Scanner sc=new Scanner(System.in);
int[] a=new int[6];
int fine;
... |
package com.saasxx.core.module.account.vo;
public class VPreUser {
String email;
String tel;
String realName;
String advice;
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getTel() {
retu... |
package com.lti.Collections.Set;
import java.util.Set;
import java.util.StringTokenizer;
/**
* Created by busis on 2020-12-03.
*/
public class TreeSet {
public String removeDups(String input){
StringTokenizer stringTokenizer = new StringTokenizer(input,",");
Set fruits = new java.util.TreeSet()... |
package com.vaccination.app.services;
import java.util.ArrayList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.vaccination.app.models.User;
import com.vaccination.app.repositories.UserRepository;
@Service
public class UserService... |
package com.jixin.factory.method;
public class TeslaCarFactory implements CarFactory {
public Car getCar() {
return new TeslaCar();
}
}
|
package com.company.project.system.es;
import com.thunisoft.elasticsearch.ElasticReader;
import com.thunisoft.elasticsearch.ElasticWriter;
import org.elasticsearch.action.bulk.BulkItemResponse;
import org.elasticsearch.action.bulk.BulkRequestBuilder;
import org.elasticsearch.action.bulk.BulkResponse;
import org.elasti... |
package com.xianzaishi.wms.tmscore.dto;
import com.xianzaishi.wms.tmscore.vo.PickingBasketStatuDO;
public class PickingBasketStatuDTO extends PickingBasketStatuDO {
} |
package com.dqm.msg;
import com.dqm.annotations.Index;
import com.dqm.msg.common.MsgPack;
import lombok.Getter;
import lombok.Setter;
import java.math.BigInteger;
/**
* Created by dqm on 2018/9/14.
*/
@Getter
@Setter
public class Pong implements MsgPack {
@Index(val = 0, specialType = Index.SpecialType.UINT64... |
class Solution {
public int lengthLongestPath(String input) {
if(input == null || input == "") return 0;
String[] items = input.split("\n");
Stack<Integer> stack = new Stack<>();
stack.push(0);
int maxLen = 0;
for(String item : items){
int level = item.lastIndexOf("\t") +... |
package com.example.vijaygarg.delagain.Model;
/**
* Created by vijaygarg on 03/04/18.
*/
public class SchemeModel {
String imageurl;
String description;
String date;
String title;
Boolean is_active;
public Boolean getIs_active() {
return is_active;
}
public void setIs_active(Bo... |
package com.qa.hubspot.test;
import org.testng.Assert;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import com.qa.hubspot.base.BaseTest;
import com.qa.hubspot.listeners.ExtentReportListener;
import com.qa.hubspot.utils.Constants;
import com.qa.hubspot.utils.JavaScriptUtil;
//@Listener... |
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* Servlet implementation class Se... |
package com.cai.seckill.config;
import com.cai.seckill.access.UserContext;
import com.cai.seckill.pojo.User;
import com.cai.seckill.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.MethodParameter;
import org.springframework.stereotype.Service;
import ... |
package com.beadhouse.domen;
public class Advertising {
private int id;
private String background;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getBackground() {
return background;
}
public void setBackground... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.